Klasse ExternalJavaProject

Alle implementierten Schnittstellen:
IBufferChangedListener, IJavaElement, IJavaProject, IOpenable, IParent, SuffixConstants, org.eclipse.core.resources.IProjectNature, org.eclipse.core.runtime.IAdaptable

public class ExternalJavaProject extends JavaProject
  • Felddetails

  • Konstruktordetails

    • ExternalJavaProject

      public ExternalJavaProject(IClasspathEntry[] rawClasspath)
  • Methodendetails

    • equals

      public boolean equals(Object o)
      Beschreibung aus Klasse kopiert: JavaProject
      Returns true if this handle represents the same Java project as the given handle. Two handles represent the same project if they are identical or if they represent a project with the same underlying resource and occurrence counts.
      Setzt außer Kraft:
      equals in Klasse JavaProject
      Siehe auch:
    • exists

      public boolean exists()
      Beschreibung aus Schnittstelle kopiert: IJavaElement
      Returns whether this Java element exists in the model.

      Java elements are handle objects that may or may not be backed by an actual element. Java elements that are backed by an actual element are said to "exist", and this method returns true. For Java elements that are not working copies, it is always the case that if the element exists, then its parent also exists (provided it has one) and includes the element as one of its children. It is therefore possible to navigated to any existing Java element from the root of the Java model along a chain of existing Java elements. On the other hand, working copies are said to exist until they are destroyed (with IWorkingCopy.destroy). Unlike regular Java elements, a working copy never shows up among the children of its parent element (which may or may not exist).

      Angegeben von:
      exists in Schnittstelle IJavaElement
      Setzt außer Kraft:
      exists in Klasse Openable
      Gibt zurück:
      true if this element exists in the Java model, and false if this element does not exist
      Siehe auch:
    • getOption

      public String getOption(String optionName, boolean inheritJavaCoreOptions)
      Beschreibung aus Schnittstelle kopiert: IJavaProject
      Helper method for returning one option value only. Equivalent to (String)this.getOptions(inheritJavaCoreOptions).get(optionName) Note that it may answer null if this option does not exist, or if there is no custom value for it.

      For a complete description of the configurable options, see JavaCore#getDefaultOptions.

      Angegeben von:
      getOption in Schnittstelle IJavaProject
      Setzt außer Kraft:
      getOption in Klasse JavaProject
      Parameter:
      optionName - the name of an option
      inheritJavaCoreOptions - - boolean indicating whether JavaCore options should be inherited as well
      Gibt zurück:
      the String value of a given option
      Siehe auch:
    • isOnClasspath

      public boolean isOnClasspath(IJavaElement element)
      Beschreibung aus Schnittstelle kopiert: IJavaProject
      Returns whether the given element is on the classpath of this project, that is, referenced from a classpath entry and not explicitly excluded using an exclusion pattern.
      Angegeben von:
      isOnClasspath in Schnittstelle IJavaProject
      Setzt außer Kraft:
      isOnClasspath in Klasse JavaProject
      Parameter:
      element - the given element
      Gibt zurück:
      true if the given element is on the classpath of this project, false otherwise
      Siehe auch:
    • isOnClasspath

      public boolean isOnClasspath(org.eclipse.core.resources.IResource resource)
      Beschreibung aus Schnittstelle kopiert: IJavaProject
      Returns whether the given resource is on the classpath of this project, that is, referenced from a classpath entry and not explicitly excluded using an exclusion pattern.
      Angegeben von:
      isOnClasspath in Schnittstelle IJavaProject
      Setzt außer Kraft:
      isOnClasspath in Klasse JavaProject
      Parameter:
      resource - the given resource
      Gibt zurück:
      true if the given resource is on the classpath of this project, false otherwise
      Siehe auch:
    • validateExistence

      protected org.eclipse.core.runtime.IStatus validateExistence(org.eclipse.core.resources.IResource underlyingResource)
      Setzt außer Kraft:
      validateExistence in Klasse JavaProject