Class ExternalJavaProject
- All Implemented Interfaces:
IBufferChangedListener,IJavaElement,IJavaProject,IOpenable,IParent,SuffixConstants,org.eclipse.core.runtime.IAdaptable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaProject
JavaProject.ClasspathResolutionBreakpointListener -
Field Summary
FieldsFields inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaProject
CLASSPATH_FILENAME, DEFAULT_PREFERENCES_DIRNAME, INVALID_CLASSPATH, JAVA_CORE_PREFS_FILE, NO_PREREQUISITES, projectFields inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElement
JEM_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_STRINGSFields inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement
ANNOTATION, 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_PARAMETERFields inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaProject
CLASSPATH_FILE_NAMEFields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.util.SuffixConstants
EXTENSION_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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if this handle represents the same Java project as the given handle.booleanexists()Returns whether this Java element exists in the model.Helper method for returning one option value only.booleanisOnClasspath(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.booleanisOnClasspath(org.eclipse.core.resources.IResource resource) 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.protected org.eclipse.core.runtime.IStatusvalidateExistence(org.eclipse.core.resources.IResource underlyingResource) Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaProject
addCPResolutionBPListener, areClasspathsEqual, buildStructure, calculateHashCode, canonicalizedPath, close, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computeSharedPropertyFileName, contains, createClasspathProblemMarker, createElementInfo, createPackageFragementKey, decodeClasspath, decodeClasspathEntry, defaultClasspath, defaultOutputLocation, defaultRootModules, defaultRootModules, determineModulesOfProjectsWithNonEmptyClasspath, encodeClasspath, encodeClasspathEntry, findContainingClasspathEntry, findElement, findElement, findElement, findModule, findPackageFragment, findPackageFragment, findPackageFragmentRoot, findPackageFragmentRoot0, findPackageFragmentRoots, findType, findType, findType, findType, findType, findType, findType, findType, findUnfilteredPackageFragmentRoots, flushClasspathProblemMarkers, getAccessRestrictions, getAllPackageFragmentRoots, getAllPackageFragmentRoots, getAllPackageFragmentRoots, getAutomaticModuleDescription, getClasspathEntryFor, getCycleMarker, getEclipsePreferences, getElementName, getElementType, getExpandedClasspath, getExpandedClasspath, getFolderPackageFragmentRoot, getHandleFromMemento, getHandleMementoDelimiter, getJavaModel, getJavaProject, getJavaProjectElementInfo, getManifest, getModuleDescription, getNonJavaResources, getOptions, getOutputLocation, getOwnModuleDescription, getPackageFragmentRoot, 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, hasJavaNature, hasSource, internalDefaultRootModules, newEvaluationContext, newNameLookup, newNameLookup, newNameLookup, newNameLookup, newSearchableNameEnvironment, newSearchableNameEnvironment, newSearchableNameEnvironment, newSearchableNameEnvironment, newTemporaryInfo, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, projectPrerequisites, readFileEntriesWithException, readOutputLocation, readRawClasspath, removeCPResolutionBPListener, resetCaches, resetResolvedClasspath, resolveClasspath, resolveClasspath, resolveClasspath, resolveClasspath, resource, rootID, setModuleDescription, setOption, setOptions, setOutputLocation, setRawClasspath, setRawClasspath, setRawClasspath, setRawClasspath, setRawClasspath, setRawClasspath, setSharedProperty, updateCycleParticipants, validateCycles, writeFileEntries, writeFileEntriesMethods inherited from class org.aspectj.org.eclipse.jdt.internal.core.Openable
bufferChanged, 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, saveMethods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElement
appendEscapedDelimiter, escapeMementoName, findNode, getAncestor, getAttachedJavadoc, getChildren, getChildrenOfType, getClassFile, getCompilationUnit, getElementInfo, getElementInfo, getHandleFromMemento, getHandleIdentifier, getHandleMemento, getHandleMemento, getJavadocBaseLocation, getLibraryJavadocLocation, getOpenableParent, getParent, getPrimaryElement, getPrimaryElement, getSchedulingRule, getSourceElementAt, getURLContents, hasChildren, hashCode, isAncestorOf, isReadOnly, newDoesNotExistStatus, newJavaModelException, newNotPresentException, openWhenClosed, readableName, resetHashCode, resolved, tabString, toDebugString, toString, toString, toStringAncestors, toStringChildren, toStringInfo, toStringInfo, toStringName, toStringWithAncestors, toStringWithAncestors, unresolved, validateAndCacheMethods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapterMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement
getAncestor, getAttachedJavadoc, getCorrespondingResource, getHandleIdentifier, getOpenable, getParent, getPrimaryElement, getResource, getSchedulingRule, isReadOnly, isStructureKnownMethods inherited from interface org.aspectj.org.eclipse.jdt.core.IOpenable
findRecommendedLineSeparator, getBuffer, hasUnsavedChanges, isConsistent, isOpen, makeConsistent, open, saveMethods inherited from interface org.aspectj.org.eclipse.jdt.core.IParent
getChildren, hasChildren
-
Field Details
-
EXTERNAL_PROJECT_NAME
- See Also:
-
-
Constructor Details
-
ExternalJavaProject
-
-
Method Details
-
equals
Description copied from class:JavaProjectReturns 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.- Overrides:
equalsin classJavaProject- See Also:
-
exists
public boolean exists()Description copied from interface:IJavaElementReturns 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 (withIWorkingCopy.destroy). Unlike regular Java elements, a working copy never shows up among the children of its parent element (which may or may not exist).- Specified by:
existsin interfaceIJavaElement- Overrides:
existsin classOpenable- Returns:
trueif this element exists in the Java model, andfalseif this element does not exist- See Also:
-
getOption
Description copied from interface:IJavaProjectHelper method for returning one option value only. Equivalent to(String)this.getOptions(inheritJavaCoreOptions).get(optionName)Note that it may answernullif 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.- Specified by:
getOptionin interfaceIJavaProject- Overrides:
getOptionin classJavaProject- Parameters:
optionName- the name of an optioninheritJavaCoreOptions- - boolean indicating whether JavaCore options should be inherited as well- Returns:
- the String value of a given option
- See Also:
-
isOnClasspath
Description copied from interface:IJavaProjectReturns 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.- Specified by:
isOnClasspathin interfaceIJavaProject- Overrides:
isOnClasspathin classJavaProject- Parameters:
element- the given element- Returns:
trueif the given element is on the classpath of this project,falseotherwise- See Also:
-
isOnClasspath
public boolean isOnClasspath(org.eclipse.core.resources.IResource resource) Description copied from interface:IJavaProjectReturns 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.- Specified by:
isOnClasspathin interfaceIJavaProject- Overrides:
isOnClasspathin classJavaProject- Parameters:
resource- the given resource- Returns:
trueif the given resource is on the classpath of this project,falseotherwise- See Also:
-
validateExistence
protected org.eclipse.core.runtime.IStatus validateExistence(org.eclipse.core.resources.IResource underlyingResource) - Overrides:
validateExistencein classJavaProject
-