public class ExternalJavaProject extends JavaProject
JavaProject.ClasspathResolutionBreakpointListener| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EXTERNAL_PROJECT_NAME |
CLASSPATH_FILENAME, DEFAULT_PREFERENCES_DIRNAME, INVALID_CLASSPATH, IS_CASE_SENSITIVE, JAVA_CORE_PREFS_FILE, NO_PREREQUISITES, projectJEM_ANNOTATION, JEM_CLASSFILE, JEM_COMPILATIONUNIT, JEM_COUNT, JEM_DELIMITER_ESCAPE, JEM_ESCAPE, JEM_FIELD, JEM_IMPORTDECLARATION, JEM_INITIALIZER, JEM_JAVAPROJECT, JEM_LAMBDA_EXPRESSION, JEM_LAMBDA_METHOD, JEM_LOCALVARIABLE, JEM_METHOD, JEM_MODULAR_CLASSFILE, JEM_MODULE, JEM_PACKAGEDECLARATION, JEM_PACKAGEFRAGMENT, JEM_PACKAGEFRAGMENTROOT, JEM_STRING, JEM_TYPE, JEM_TYPE_PARAMETER, NO_ELEMENTS, NO_INFO, NO_STRINGS, parentCLASSPATH_FILE_NAMEANNOTATION, CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_MODULE, JAVA_PROJECT, LOCAL_VARIABLE, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE, TYPE_PARAMETEREXTENSION_aj, EXTENSION_AJ, EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, EXTENSION_jmod, EXTENSION_JMOD, SUFFIX_aj, SUFFIX_AJ, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_aj, SUFFIX_STRING_AJ, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA| Constructor and Description |
|---|
ExternalJavaProject(IClasspathEntry[] rawClasspath) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Returns true if this handle represents the same Java project
as the given handle.
|
boolean |
exists()
Returns whether this Java element exists in the model.
|
java.lang.String |
getOption(java.lang.String optionName,
boolean inheritJavaCoreOptions)
Helper method for returning one option value only.
|
boolean |
isOnClasspath(IJavaElement element)
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.
|
boolean |
isOnClasspath(IResource resource)
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.
|
protected IStatus |
validateExistence(IResource underlyingResource) |
addCPResolutionBPListener, addToBuildSpec, areClasspathsEqual, buildStructure, canonicalizedPath, close, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computeSharedPropertyFileName, configure, contains, createClasspathProblemMarker, createElementInfo, decodeClasspath, decodeClasspathEntry, deconfigure, defaultClasspath, defaultOutputLocation, defaultRootModules, determineModulesOfProjectsWithNonEmptyClasspath, encodeClasspath, encodeClasspathEntry, findElement, findElement, findModule, findPackageFragment, findPackageFragment, findPackageFragmentRoot, findPackageFragmentRoot0, findPackageFragmentRoots, findType, findType, findType, findType, findType, findUnfilteredPackageFragmentRoots, flushClasspathProblemMarkers, getAccessRestrictions, getAllPackageFragmentRoots, getAllPackageFragmentRoots, getAllPackageFragmentRoots, getAutomaticModuleDescription, getClasspathEntryFor, getCycleMarker, getEclipsePreferences, getElementName, getElementType, getExpandedClasspath, getExpandedClasspath, getFolderPackageFragmentRoot, getHandleFromMemento, getHandleMementoDelimiter, getJavaProjectElementInfo, getManifest, getModuleDescription, getNonJavaResources, getOptions, getOutputLocation, getOwnModuleDescription, getPackageFragmentRoot, getPackageFragmentRoot, getPackageFragmentRoot, getPackageFragmentRoot0, getPackageFragmentRoots, getPackageFragmentRoots, getPackageFragments, getPackageFragmentsInRoots, getPatchedModules, getPath, getPerProjectInfo, getProject, getProjectCache, getProjectCache, getRawClasspath, getReferencedClasspathEntries, getRequiredProjectNames, getResolvedClasspath, getResolvedClasspath, getSharedProperty, getSourceMapper, getUnderlyingResource, hasBuildState, hasClasspathCycle, hasCycleMarker, hashCode, hasJavaNature, hasSource, internalDefaultRootModules, newEvaluationContext, newNameLookup, newNameLookup, newNameLookup, newNameLookup, newSearchableNameEnvironment, newSearchableNameEnvironment, newSearchableNameEnvironment, newSearchableNameEnvironment, newTemporaryInfo, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, projectPrerequisites, readFileEntriesWithException, readOutputLocation, readRawClasspath, removeCPResolutionBPListener, removeFromBuildSpec, resetCaches, resetResolvedClasspath, resolveClasspath, resolveClasspath, resolveClasspath, resolveClasspath, resource, rootID, setModuleDescription, setOption, setOptions, setOutputLocation, setProject, setRawClasspath, setRawClasspath, setRawClasspath, setRawClasspath, setRawClasspath, setRawClasspath, setSharedProperty, updateCycleParticipants, validateCycles, writeFileEntries, writeFileEntriesbufferChanged, canBeRemovedFromCache, canBufferBeRemovedFromCache, closeBuffer, closing, codeComplete, codeSelect, findRecommendedLineSeparator, generateInfos, getBuffer, getBufferFactory, getBufferManager, getCorrespondingResource, getOpenable, getPackageFragmentRoot, getResource, hasBuffer, hasUnsavedChanges, ignoreErrorStatus, isConsistent, isOpen, isSourceElement, isStructureKnown, makeConsistent, open, openAncestors, openBuffer, resource, resourceExists, saveappendEscapedDelimiter, escapeMementoName, findNode, getAncestor, getAttachedJavadoc, getChildren, getChildrenOfType, getClassFile, getCompilationUnit, getElementInfo, getElementInfo, getHandleFromMemento, getHandleIdentifier, getHandleMemento, getHandleMemento, getJavadocBaseLocation, getJavaModel, getJavaProject, getLibraryJavadocLocation, getOpenableParent, getParent, getPrimaryElement, getPrimaryElement, getSchedulingRule, getSourceElementAt, getURLContents, hasChildren, isAncestorOf, isReadOnly, newDoesNotExistStatus, newJavaModelException, newNotPresentException, openWhenClosed, readableName, resolved, tabString, toDebugString, toString, toString, toStringAncestors, toStringChildren, toStringInfo, toStringInfo, toStringName, toStringWithAncestors, toStringWithAncestors, unresolved, validateAndCacheclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChildren, hasChildrengetAncestor, getAttachedJavadoc, getCorrespondingResource, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPrimaryElement, getResource, getSchedulingRule, isReadOnly, isStructureKnownfindRecommendedLineSeparator, getBuffer, hasUnsavedChanges, isConsistent, isOpen, makeConsistent, open, savepublic static final java.lang.String EXTERNAL_PROJECT_NAME
public ExternalJavaProject(IClasspathEntry[] rawClasspath)
public boolean equals(java.lang.Object o)
JavaProjectequals in class JavaProjectJavaElement.equals(Object)public boolean exists()
IJavaElement
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).
exists in interface IJavaElementexists in class Openabletrue if this element exists in the Java model, and
false if this element does not existIJavaElementpublic java.lang.String getOption(java.lang.String optionName,
boolean inheritJavaCoreOptions)
IJavaProject(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.
getOption in interface IJavaProjectgetOption in class JavaProjectoptionName - the name of an optioninheritJavaCoreOptions - - boolean indicating whether JavaCore options should be inherited as wellIJavaProject.getOption(String, boolean)public boolean isOnClasspath(IJavaElement element)
IJavaProjectisOnClasspath in interface IJavaProjectisOnClasspath in class JavaProjectelement - the given elementtrue if the given element is on the classpath of
this project, false otherwiseIClasspathEntry.getInclusionPatterns(),
IClasspathEntry.getExclusionPatterns()public boolean isOnClasspath(IResource resource)
IJavaProjectisOnClasspath in interface IJavaProjectisOnClasspath in class JavaProjectresource - the given elementtrue if the given element is on the classpath of
this project, false otherwiseIClasspathEntry.getInclusionPatterns(),
IClasspathEntry.getExclusionPatterns()protected IStatus validateExistence(IResource underlyingResource)
validateExistence in class JavaProject