syntax.xml update from hudson build on Sun 30 Mar 2008 01:54:01 AM CDT
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / builder / ExternalEditorInput.java
index 0b08b11..07be7dc 100644 (file)
@@ -1,9 +1,3 @@
-/*
- * Created on 06.09.2003
- *
- * To change the template for this generated file go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
 package net.sourceforge.phpeclipse.builder;
 
 import org.eclipse.core.resources.IStorage;
@@ -18,87 +12,90 @@ import org.eclipse.ui.PlatformUI;
  */
 public class ExternalEditorInput implements IStorageEditorInput {
 
-        IStorage externalFile;
-
-        /**
-               * Two ExternalEditorInputs are equal if their IStorage's are equal.
-               * @see java.lang.Object#equals(java.lang.Object)
-               */
-        public boolean equals(Object obj) {
-                       if (this == obj)
-                                return true;
-                       if (!(obj instanceof ExternalEditorInput))
-                                return false;
-                       ExternalEditorInput other = (ExternalEditorInput) obj;
-                       return externalFile.equals(other.externalFile);
-        }
+       IStorage externalFile;
 
-        /*
-               * @see IEditorInput#exists()
-               */
-        public boolean exists() {
-                       // External file can not be deleted
+       /**
+        * Two ExternalEditorInputs are equal if their IStorage's are equal.
+        * 
+        * @see java.lang.Object#equals(java.lang.Object)
+        */
+       public boolean equals(Object obj) {
+               if (this == obj)
                        return true;
-        }
+               if (!(obj instanceof ExternalEditorInput))
+                       return false;
+               ExternalEditorInput other = (ExternalEditorInput) obj;
+               return externalFile.equals(other.externalFile);
+       }
+
+       /*
+        * @see IEditorInput#exists()
+        */
+       public boolean exists() {
+               // External file can not be deleted
+               return true;
+       }
 
-        /*
-               * @see IAdaptable#getAdapter(Class)
-               */
-        public Object getAdapter(Class adapter) {
-                       return null;
-        }
+       /*
+        * @see IAdaptable#getAdapter(Class)
+        */
+       public Object getAdapter(Class adapter) {
+               return null;
+       }
 
-        /*
-               * @see IEditorInput#getContentType()
-               */
-        public String getContentType() {
-                       return externalFile.getFullPath().getFileExtension();
-        }
+       /*
+        * @see IEditorInput#getContentType()
+        */
+       public String getContentType() {
+               return externalFile.getFullPath().getFileExtension();
+       }
 
-        /*
-               * @see IEditorInput#getFullPath()
-               */
-        public String getFullPath() {
-                       return externalFile.getFullPath().toString();
-        }
+       /*
+        * @see IEditorInput#getFullPath()
+        */
+       public String getFullPath() {
+               return externalFile.getFullPath().toString();
+       }
 
-        /*
-               * @see IEditorInput#getImageDescriptor()
-               */
-        public ImageDescriptor getImageDescriptor() {
-                       IEditorRegistry registry = PlatformUI.getWorkbench().getEditorRegistry();
-                       return registry.getImageDescriptor(externalFile.getFullPath().getFileExtension());
-        }
+       /*
+        * @see IEditorInput#getImageDescriptor()
+        */
+       public ImageDescriptor getImageDescriptor() {
+               IEditorRegistry registry = PlatformUI.getWorkbench()
+                               .getEditorRegistry();
+               return registry.getImageDescriptor(externalFile.getFullPath()
+                               .getFileExtension());
+       }
 
-        /*
-               * @see IEditorInput#getName()
-               */
-        public String getName() {
-                       return externalFile.getName();
-        }
+       /*
+        * @see IEditorInput#getName()
+        */
+       public String getName() {
+               return externalFile.getName();
+       }
 
-        /*
-               * @see IEditorInput#getPersistable()
-               */
-        public IPersistableElement getPersistable() {
-                       return null;
-        }
+       /*
+        * @see IEditorInput#getPersistable()
+        */
+       public IPersistableElement getPersistable() {
+               return null;
+       }
 
-        /*
-               * see IStorageEditorInput#getStorage()
-               */
-        public IStorage getStorage() {
-                       return externalFile;
-        }
+       /*
+        * see IStorageEditorInput#getStorage()
+        */
+       public IStorage getStorage() {
+               return externalFile;
+       }
 
-        /*
-               * @see IEditorInput#getToolTipText()
-               */
-        public String getToolTipText() {
-                       return externalFile.getFullPath().toString();
-        }
+       /*
+        * @see IEditorInput#getToolTipText()
+        */
+       public String getToolTipText() {
+               return externalFile.getFullPath().toString();
+       }
 
-        public ExternalEditorInput(IStorage exFile) {
-                       externalFile = exFile;
-        }
+       public ExternalEditorInput(IStorage exFile) {
+               externalFile = exFile;
+       }
 }