X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/IJavaProject.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/IJavaProject.java index 612ff56..8bf235a 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/IJavaProject.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/IJavaProject.java @@ -14,7 +14,12 @@ *******************************************************************************/ package net.sourceforge.phpdt.core; +import java.util.Map; + import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IResource; +import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; /** @@ -70,7 +75,7 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * classpath-relative path, or null if no such * IJavaElement is found */ -// IJavaElement findElement(IPath path) throws JavaModelException; + IJavaElement findElement(IPath path) throws JavaModelException; /** * Returns the first existing package fragment on this project's classpath @@ -102,8 +107,8 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * whose path matches the given (absolute) path, or null if * one does not exist */ -// IPackageFragmentRoot findPackageFragmentRoot(IPath path) -// throws JavaModelException; + IPackageFragmentRoot findPackageFragmentRoot(IPath path) + throws JavaModelException; /** * Returns the existing package fragment roots identified by the given entry. * Note that a classpath entry that refers to another project may @@ -122,7 +127,7 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * @see IClasspathContainer * @since 2.1 */ -// IPackageFragmentRoot[] findPackageFragmentRoots(IClasspathEntry entry); + IPackageFragmentRoot[] findPackageFragmentRoots(IClasspathEntry entry); /** * Returns the first type found following this project's classpath * with the given fully qualified name or null if none is found. @@ -182,7 +187,7 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * @exception JavaModelException if this element does not exist or if an * exception occurs while accessing its corresponding resource */ -// IPackageFragmentRoot[] getAllPackageFragmentRoots() throws JavaModelException; + IPackageFragmentRoot[] getAllPackageFragmentRoots() throws JavaModelException; /** * Returns an array of non-Java resources directly contained in this project. @@ -216,7 +221,7 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * @see JavaCore#getDefaultOptions * @since 2.1 */ -// String getOption(String optionName, boolean inheritJavaCoreOptions); + String getOption(String optionName, boolean inheritJavaCoreOptions); /** * Returns the table of the current custom options for this project. Projects remember their custom options, @@ -254,7 +259,7 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * @see #setOutputLocation * @see IClasspathEntry#getOutputLocation */ -// IPath getOutputLocation() throws JavaModelException; + IPath getOutputLocation() throws JavaModelException; /** * Returns a package fragment root for the JAR at the specified file system path. @@ -278,7 +283,7 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * must either be a folder representing the top of a package hierarchy, * or a .jar or .zip file */ -// IPackageFragmentRoot getPackageFragmentRoot(IResource resource); + IPackageFragmentRoot getPackageFragmentRoot(IResource resource); /** * Returns all of the package fragment roots contained in this @@ -293,7 +298,7 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * @exception JavaModelException if this element does not exist or if an * exception occurs while accessing its corresponding resource */ -// IPackageFragmentRoot[] getPackageFragmentRoots() throws JavaModelException; + IPackageFragmentRoot[] getPackageFragmentRoots() throws JavaModelException; /** * Returns the existing package fragment roots identified by the given entry. @@ -313,7 +318,7 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * @see IClasspathContainer * @deprecated Use IJavaProject#findPackageFragmentRoots instead */ -// IPackageFragmentRoot[] getPackageFragmentRoots(IClasspathEntry entry); + IPackageFragmentRoot[] getPackageFragmentRoots(IClasspathEntry entry); /** * Returns all package fragments in all package fragment roots contained @@ -327,7 +332,7 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * @exception JavaModelException if this element does not exist or if an * exception occurs while accessing its corresponding resource */ -// IPackageFragment[] getPackageFragments() throws JavaModelException; + IPackageFragment[] getPackageFragments() throws JavaModelException; /** * Returns the IProject on which this IJavaProject @@ -356,7 +361,7 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * exception occurs while accessing its corresponding resource * @see IClasspathEntry */ -// IClasspathEntry[] getRawClasspath() throws JavaModelException; + IClasspathEntry[] getRawClasspath() throws JavaModelException; /** * Returns the names of the projects that are directly required by this @@ -369,7 +374,7 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * @exception JavaModelException if this element does not exist or if an * exception occurs while accessing its corresponding resource */ -// String[] getRequiredProjectNames() throws JavaModelException; + String[] getRequiredProjectNames() throws JavaModelException; /** * This is a helper method returning the resolved classpath for the project @@ -403,14 +408,14 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * * @see IClasspathEntry */ -// IClasspathEntry[] getResolvedClasspath(boolean ignoreUnresolvedEntry) -// throws JavaModelException; + IClasspathEntry[] getResolvedClasspath(boolean ignoreUnresolvedEntry) + throws JavaModelException; /** * Returns whether this project has been built at least once and thus whether it has a build state. * @return true if this project has been built at least once, false otherwise */ -// boolean hasBuildState(); + boolean hasBuildState(); /** * Returns whether setting this project's classpath to the given classpath entries @@ -422,7 +427,7 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * @param entries the given classpath entries * @return true if the given classpath entries would result in a cycle, false otherwise */ -// boolean hasClasspathCycle(IClasspathEntry[] entries); + boolean hasClasspathCycle(IClasspathEntry[] entries); /** * Returns whether the given element is on the classpath of this project, * that is, referenced from a classpath entry and not explicitly excluded @@ -503,7 +508,7 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * @see JavaCore#getDefaultOptions * @since 2.1 */ -// void setOptions(Map newOptions); + void setOptions(Map newOptions); /** * Sets the default output location of this project to the location @@ -535,8 +540,8 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * @see #getOutputLocation * @see IClasspathEntry#getOutputLocation */ -// void setOutputLocation(IPath path, IProgressMonitor monitor) -// throws JavaModelException; + void setOutputLocation(IPath path, IProgressMonitor monitor) + throws JavaModelException; /** * Sets the classpath of this project using a list of classpath entries. In particular such a classpath may contain @@ -566,8 +571,8 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * * @see IClasspathEntry */ -// void setRawClasspath(IClasspathEntry[] entries, IProgressMonitor monitor) -// throws JavaModelException; + void setRawClasspath(IClasspathEntry[] entries, IProgressMonitor monitor) + throws JavaModelException; /** * Sets the both the classpath of this project and its default output @@ -614,6 +619,6 @@ public interface IJavaProject extends IParent, IJavaElement, IOpenable { * @see IClasspathEntry * @since 2.0 */ -// void setRawClasspath(IClasspathEntry[] entries, IPath outputLocation, IProgressMonitor monitor) -// throws JavaModelException; + void setRawClasspath(IClasspathEntry[] entries, IPath outputLocation, IProgressMonitor monitor) + throws JavaModelException; } \ No newline at end of file