X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/ICompilationUnit.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/ICompilationUnit.java index 94f7f88..5bcfd3f 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/ICompilationUnit.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/ICompilationUnit.java @@ -11,6 +11,7 @@ package net.sourceforge.phpdt.core; + /** * Represents an entire Java compilation unit (.java source file). * Compilation unit elements need to be opened before they can be navigated or manipulated. @@ -23,8 +24,8 @@ package net.sourceforge.phpdt.core; *

* This interface is not intended to be implemented by clients. *

- */ -public interface ICompilationUnit extends IJavaElement, IParent, IOpenable { + */ +public interface ICompilationUnit extends IJavaElement, ISourceReference, IParent, IOpenable, IWorkingCopy, ISourceManipulation { //extends IJavaElement, ISourceReference, IParent, IOpenable, IWorkingCopy, ISourceManipulation, ICodeAssist { /** * Creates and returns an import declaration in this compilation unit @@ -122,7 +123,7 @@ public interface ICompilationUnit extends IJavaElement, IParent, IOpenable { * @exception JavaModelException if this element does not exist or if an * exception occurs while accessing its corresponding resource */ -//IType[] getAllTypes() throws JavaModelException; +IType[] getAllTypes() throws JavaModelException; /** * Returns the smallest element within this compilation unit that * includes the given source position (that is, a method, field, etc.), or @@ -136,7 +137,7 @@ public interface ICompilationUnit extends IJavaElement, IParent, IOpenable { * @exception JavaModelException if the compilation unit does not exist or if an * exception occurs while accessing its corresponding resource */ -//IJavaElement getElementAt(int position) throws JavaModelException; +IJavaElement getElementAt(int position) throws JavaModelException; /** * Returns the first import declaration in this compilation unit with the given name. * This is a handle-only method. The import declaration may or may not exist. This @@ -174,7 +175,7 @@ public interface ICompilationUnit extends IJavaElement, IParent, IOpenable { * * @param name the name of the package declaration as defined by JLS2 7.4. (For example, "java.lang") */ -//IPackageDeclaration getPackageDeclaration(String name); +IPackageDeclaration getPackageDeclaration(String name); /** * Returns the package declarations in this compilation unit * in the order in which they appear in the source. @@ -195,7 +196,7 @@ public interface ICompilationUnit extends IJavaElement, IParent, IOpenable { * @return a handle onto the corresponding type. The type may or may not exist. * @see JavaConventions#validateCompilationUnitName(String name) */ -//IType getType(String name); +IType getType(String name); /** * Returns the top-level types declared in this compilation unit * in the order in which they appear in the source. @@ -203,6 +204,6 @@ public interface ICompilationUnit extends IJavaElement, IParent, IOpenable { * @exception JavaModelException if this element does not exist or if an * exception occurs while accessing its corresponding resource */ -//IType[] getTypes() throws JavaModelException; +IType[] getTypes() throws JavaModelException; }