Uses of Interface
org.eclipse.jdt.core.IClasspathEntry
Package
Description
The Java model is the set of classes that model the
objects associated with creating, editing, and building a Java program.
Application programming interfaces for interaction
with the Eclipse Java launching support.
Application programming interfaces for interaction
with the Eclipse Java User Interface.
Application programming interfaces for interaction
with the Eclipse Java User Interface.
Application programming interfaces for interaction
with the Eclipse Java User Interface wizards.
-
Uses of IClasspathEntry in org.eclipse.jdt.core
Modifier and TypeMethodDescriptionIJavaProject.decodeClasspathEntry
(String encodedEntry) Decodes the classpath entry that has been encoded in the given string in the context of this project.IJavaProject.findContainingClasspathEntry
(org.eclipse.core.resources.IResource resource) Returns the class path entry which contains the given resource and not explicitly excluded using an exclusion pattern, or null otherwise.IClasspathContainer.getClasspathEntries()
Answers the set of classpath entries this container is mapping to.IJavaProject.getClasspathEntryFor
(org.eclipse.core.runtime.IPath path) Returns the classpath entry that refers to the given path ornull
if there is no reference to the path.IJavaProject.getRawClasspath()
Returns the raw classpath for the project, as a list of classpath entries.IPackageFragmentRoot.getRawClasspathEntry()
Returns the first raw classpath entry that corresponds to this package fragment root.IJavaProject.getReferencedClasspathEntries()
Returns the list of referenced classpath entries stored in the .classpath file ofthis
java project.static IClasspathEntry[]
JavaCore.getReferencedClasspathEntries
(IClasspathEntry libraryEntry, IJavaProject project) Returns an array of classpath entries that are referenced directly or indirectly by a given classpath entry.IClasspathEntry.getReferencingEntry()
Returns the classpath entry that is making a reference to this classpath entry.IJavaProject.getResolvedClasspath
(boolean ignoreUnresolvedEntry) This is a helper method returning the resolved classpath for the project as a list of simple (non-variable, non-container) classpath entries.IPackageFragmentRoot.getResolvedClasspathEntry()
Returns the first resolved classpath entry that corresponds to this package fragment root.static IClasspathEntry
JavaCore.getResolvedClasspathEntry
(IClasspathEntry entry) This is a helper method, which returns the resolved classpath entry denoted by a given entry (if it is a variable entry).IClasspathEntry.getResolvedEntry()
Deprecated.static IClasspathEntry
JavaCore.newContainerEntry
(org.eclipse.core.runtime.IPath containerPath) Creates and returns a new classpath entry of kindCPE_CONTAINER
for the given path.static IClasspathEntry
JavaCore.newContainerEntry
(org.eclipse.core.runtime.IPath containerPath, boolean isExported) Creates and returns a new classpath entry of kindCPE_CONTAINER
for the given path.static IClasspathEntry
JavaCore.newContainerEntry
(org.eclipse.core.runtime.IPath containerPath, IAccessRule[] accessRules, IClasspathAttribute[] extraAttributes, boolean isExported) Creates and returns a new classpath entry of kindCPE_CONTAINER
for the given path.static IClasspathEntry
JavaCore.newLibraryEntry
(org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IPath sourceAttachmentPath, org.eclipse.core.runtime.IPath sourceAttachmentRootPath) Creates and returns a new non-exported classpath entry of kindCPE_LIBRARY
for the JAR or folder identified by the given absolute path.static IClasspathEntry
JavaCore.newLibraryEntry
(org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IPath sourceAttachmentPath, org.eclipse.core.runtime.IPath sourceAttachmentRootPath, boolean isExported) Creates and returns a new classpath entry of kindCPE_LIBRARY
for the JAR or folder identified by the given absolute path.static IClasspathEntry
JavaCore.newLibraryEntry
(org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IPath sourceAttachmentPath, org.eclipse.core.runtime.IPath sourceAttachmentRootPath, IAccessRule[] accessRules, IClasspathAttribute[] extraAttributes, boolean isExported) Creates and returns a new classpath entry of kindCPE_LIBRARY
for the JAR or folder identified by the given absolute path.static IClasspathEntry
JavaCore.newProjectEntry
(org.eclipse.core.runtime.IPath path) Creates and returns a new non-exported classpath entry of kindCPE_PROJECT
for the project identified by the given absolute path.static IClasspathEntry
JavaCore.newProjectEntry
(org.eclipse.core.runtime.IPath path, boolean isExported) Creates and returns a new classpath entry of kindCPE_PROJECT
for the project identified by the given absolute path.static IClasspathEntry
JavaCore.newProjectEntry
(org.eclipse.core.runtime.IPath path, IAccessRule[] accessRules, boolean combineAccessRules, IClasspathAttribute[] extraAttributes, boolean isExported) Creates and returns a new classpath entry of kindCPE_PROJECT
for the project identified by the given absolute path.static IClasspathEntry
JavaCore.newSourceEntry
(org.eclipse.core.runtime.IPath path) Creates and returns a new classpath entry of kindCPE_SOURCE
for all files in the project's source folder identified by the given absolute workspace-relative path.static IClasspathEntry
JavaCore.newSourceEntry
(org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IPath[] exclusionPatterns) Creates and returns a new classpath entry of kindCPE_SOURCE
for the project's source folder identified by the given absolute workspace-relative path but excluding all source files with paths matching any of the given patterns.static IClasspathEntry
JavaCore.newSourceEntry
(org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IPath[] exclusionPatterns, org.eclipse.core.runtime.IPath specificOutputLocation) Creates and returns a new classpath entry of kindCPE_SOURCE
for the project's source folder identified by the given absolute workspace-relative path but excluding all source files with paths matching any of the given patterns, and associated with a specific output location (that is, ".class" files are not going to the project default output location).static IClasspathEntry
JavaCore.newSourceEntry
(org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IPath[] inclusionPatterns, org.eclipse.core.runtime.IPath[] exclusionPatterns, org.eclipse.core.runtime.IPath specificOutputLocation) Creates and returns a new classpath entry of kindCPE_SOURCE
for the project's source folder identified by the given absolute workspace-relative path but excluding all source files with paths matching any of the given patterns, and associated with a specific output location (that is, ".class" files are not going to the project default output location).static IClasspathEntry
JavaCore.newSourceEntry
(org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IPath[] inclusionPatterns, org.eclipse.core.runtime.IPath[] exclusionPatterns, org.eclipse.core.runtime.IPath specificOutputLocation, IClasspathAttribute[] extraAttributes) Creates and returns a new classpath entry of kindCPE_SOURCE
for the project's source folder identified by the given absolute workspace-relative path using the given inclusion and exclusion patterns to determine which source files are included, and the given output path to control the output location of generated files.static IClasspathEntry
JavaCore.newVariableEntry
(org.eclipse.core.runtime.IPath variablePath, org.eclipse.core.runtime.IPath variableSourceAttachmentPath, org.eclipse.core.runtime.IPath sourceAttachmentRootPath) Creates and returns a new non-exported classpath entry of kindCPE_VARIABLE
for the given path.static IClasspathEntry
JavaCore.newVariableEntry
(org.eclipse.core.runtime.IPath variablePath, org.eclipse.core.runtime.IPath variableSourceAttachmentPath, org.eclipse.core.runtime.IPath variableSourceAttachmentRootPath, boolean isExported) Creates and returns a new classpath entry of kindCPE_VARIABLE
for the given path.static IClasspathEntry
JavaCore.newVariableEntry
(org.eclipse.core.runtime.IPath variablePath, org.eclipse.core.runtime.IPath variableSourceAttachmentPath, org.eclipse.core.runtime.IPath variableSourceAttachmentRootPath, IAccessRule[] accessRules, IClasspathAttribute[] extraAttributes, boolean isExported) Creates and returns a new classpath entry of kindCPE_VARIABLE
for the given path.IJavaProject.readRawClasspath()
Returns the raw classpath for the project as defined by its.classpath
file from disk, ornull
if unable to read the file.Modifier and TypeMethodDescriptionvoid
IPackageFragmentRoot.copy
(org.eclipse.core.runtime.IPath destination, int updateResourceFlags, int updateModelFlags, IClasspathEntry sibling, org.eclipse.core.runtime.IProgressMonitor monitor) Copies the resource of this package fragment root to the destination path as specified byIResource.copy(IPath, int, IProgressMonitor)
but excluding nested source folders.IJavaProject.encodeClasspathEntry
(IClasspathEntry classpathEntry) Encodes the given classpath entry into a string in the context of this project.IJavaProject.findPackageFragmentRoots
(IClasspathEntry entry) Returns the existing package fragment roots identified by the given entry.IJavaProject.findUnfilteredPackageFragmentRoots
(IClasspathEntry entry) In a Java 9 project, a classpath entry can be filtered using aIClasspathAttribute.LIMIT_MODULES
attribute, otherwise for an unnamed module a default set of roots is used as defined in JEP 261.IJavaProject.getPackageFragmentRoots
(IClasspathEntry entry) Deprecated.static IClasspathEntry[]
JavaCore.getReferencedClasspathEntries
(IClasspathEntry libraryEntry, IJavaProject project) Returns an array of classpath entries that are referenced directly or indirectly by a given classpath entry.static IClasspathEntry
JavaCore.getResolvedClasspathEntry
(IClasspathEntry entry) This is a helper method, which returns the resolved classpath entry denoted by a given entry (if it is a variable entry).boolean
IJavaProject.hasClasspathCycle
(IClasspathEntry[] entries) Returns whether setting this project's classpath to the given classpath entries would result in a cycle.void
IPackageFragmentRoot.move
(org.eclipse.core.runtime.IPath destination, int updateResourceFlags, int updateModelFlags, IClasspathEntry sibling, org.eclipse.core.runtime.IProgressMonitor monitor) Moves the resource of this package fragment root to the destination path as specified byIResource.move(IPath,int,IProgressMonitor)
but excluding nested source folders.final ICompilationUnit
WorkingCopyOwner.newWorkingCopy
(String name, IClasspathEntry[] classpath, org.eclipse.core.runtime.IProgressMonitor monitor) Returns a new working copy with the given name using this working copy owner to create its buffer.final ICompilationUnit
WorkingCopyOwner.newWorkingCopy
(String name, IClasspathEntry[] classpath, IProblemRequestor problemRequestor, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.void
IJavaProject.setRawClasspath
(IClasspathEntry[] entries, boolean canModifyResources, org.eclipse.core.runtime.IProgressMonitor monitor) Sets the classpath of this project using a list of classpath entries.void
IJavaProject.setRawClasspath
(IClasspathEntry[] entries, org.eclipse.core.runtime.IPath outputLocation, boolean canModifyResources, org.eclipse.core.runtime.IProgressMonitor monitor) Sets both the classpath of this project and its default output location at once.void
IJavaProject.setRawClasspath
(IClasspathEntry[] entries, org.eclipse.core.runtime.IPath outputLocation, org.eclipse.core.runtime.IProgressMonitor monitor) Sets the both the classpath of this project and its default output location at once.void
IJavaProject.setRawClasspath
(IClasspathEntry[] entries, org.eclipse.core.runtime.IProgressMonitor monitor) Sets the classpath of this project using a list of classpath entries.void
IJavaProject.setRawClasspath
(IClasspathEntry[] entries, IClasspathEntry[] referencedEntries, org.eclipse.core.runtime.IPath outputLocation, org.eclipse.core.runtime.IProgressMonitor monitor) Works similar toIJavaProject.setRawClasspath(IClasspathEntry[], IPath, IProgressMonitor)
and additionally allows persisting the given array of referenced entries for this project.static IJavaModelStatus
JavaConventions.validateClasspath
(IJavaProject javaProject, IClasspathEntry[] rawClasspath, org.eclipse.core.runtime.IPath projectOutputLocation) Validate a given classpath and output location for a project, using the following rules: Classpath entries cannot collide with each other; that is, all entry paths must be unique.static IJavaModelStatus
JavaConventions.validateClasspathEntry
(IJavaProject project, IClasspathEntry entry, boolean checkSourceAttachment) Returns a Java model status describing the problem related to this classpath entry if any, a status object with codeIStatus.OK
if the entry is fine (that is, if the given classpath entry denotes a valid element to be referenced onto a classpath). -
Uses of IClasspathEntry in org.eclipse.jdt.launching
Modifier and TypeMethodDescriptionIRuntimeClasspathEntry.getClasspathEntry()
Returns a classpath entry equivalent to this runtime classpath entry, ornull
if none.static IClasspathEntry
JavaRuntime.getDefaultJREContainerEntry()
Creates and returns a classpath entry describing the default JRE container entry.static IClasspathEntry
JavaRuntime.getJREVariableEntry()
Creates and returns a classpath entry describing the JRE_LIB classpath variable.Modifier and TypeMethodDescriptionstatic boolean
JavaRuntime.isModule
(IClasspathEntry entry, IJavaProject proj) Checks if classpath entry is modular and project is modular .boolean
IRuntimeClasspathEntryResolver2.isVMInstallReference
(IClasspathEntry entry) Returns whether the given classpath entry references a VM install.IRuntimeClasspathEntryResolver.resolveVMInstall
(IClasspathEntry entry) Returns a VM install associated with the given classpath entry, ornull
if none. -
Uses of IClasspathEntry in org.eclipse.jdt.ui
Modifier and TypeMethodDescriptionstatic IClasspathEntry[]
PreferenceConstants.decodeJRELibraryClasspathEntries
(String encodedLibrary) Decodes an encoded JRE library and returns its class path entries.static IClasspathEntry[]
PreferenceConstants.getDefaultJRELibrary()
Returns the current configuration for the JRE to be used as default in new Java projects.Modifier and TypeMethodDescriptionstatic String
PreferenceConstants.encodeJRELibrary
(String description, IClasspathEntry[] entries) Encodes a JRE library to be used in the named preferenceNEWPROJECT_JRELIBRARY_LIST
.static URL
JavaUI.getLibraryJavadocLocation
(IClasspathEntry entry) Returns the Javadoc location for library's classpath entry ornull
if no location is available. -
Uses of IClasspathEntry in org.eclipse.jdt.ui.text.java
Modifier and TypeMethodDescriptionstatic org.eclipse.ltk.core.refactoring.Change
ClasspathFixProcessor.ClasspathFixProposal.newAddClasspathChange
(IJavaProject project, IClasspathEntry entryToAdd) A helper method to create aChange
that adds an entry to the class path.static org.eclipse.ltk.core.refactoring.Change
ClasspathFixProcessor.ClasspathFixProposal.newClasspathChange
(IJavaProject project, IClasspathEntry[] newClasspath, org.eclipse.core.runtime.IPath outputLocation) A helper method to create aChange
that modifies a class path. -
Uses of IClasspathEntry in org.eclipse.jdt.ui.wizards
Modifier and TypeMethodDescriptionstatic IClasspathEntry[]
BuildPathDialogAccess.chooseContainerEntries
(org.eclipse.swt.widgets.Shell shell, IJavaProject project, IClasspathEntry[] currentClasspath) Shows the UI to choose new classpath container classpath entries.static IClasspathEntry
BuildPathDialogAccess.configureContainerEntry
(org.eclipse.swt.widgets.Shell shell, IClasspathEntry initialEntry, IJavaProject project, IClasspathEntry[] currentClasspath) Shows the UI to configure a classpath container classpath entry.static IClasspathEntry
BuildPathDialogAccess.configureJavadocLocation
(org.eclipse.swt.widgets.Shell shell, IClasspathEntry initialEntry) Shows the UI for configuring a javadoc location attribute of the classpath entry.static IClasspathEntry
BuildPathDialogAccess.configureSourceAttachment
(org.eclipse.swt.widgets.Shell shell, IClasspathEntry initialEntry) Shows the UI for configuring source attachments, with editing of source attachment encoding disabled.static IClasspathEntry
BuildPathDialogAccess.configureSourceAttachment
(org.eclipse.swt.widgets.Shell shell, IClasspathEntry initialEntry, boolean canEditEncoding) Shows the UI for configuring source attachments.NewJavaProjectWizardPageOne.getDefaultClasspathEntries()
Returns the default class path entries to be added on new projects.IClasspathContainerPageExtension2.getNewContainers()
MethodIClasspathContainerPageExtension2.getNewContainers()
is called instead ofIClasspathContainerPage.getSelection()
to get the newly added containers.abstract IClasspathEntry
ClasspathAttributeConfiguration.ClasspathAttributeAccess.getParentClasspassEntry()
Returns the classpath entry the current attribute is part ofJavaCapabilityConfigurationPage.getRawClassPath()
Returns the currently configured classpath.NewJavaProjectWizardPage.getRawClassPath()
Deprecated.Returns the currently configured classpath.IClasspathContainerPage.getSelection()
Returns the edited or created classpath container entry.NewJavaProjectWizardPageOne.getSourceClasspathEntries()
Returns the source class path entries to be added on new projects.Modifier and TypeMethodDescriptionstatic IClasspathEntry[]
BuildPathDialogAccess.chooseContainerEntries
(org.eclipse.swt.widgets.Shell shell, IJavaProject project, IClasspathEntry[] currentClasspath) Shows the UI to choose new classpath container classpath entries.static IClasspathEntry
BuildPathDialogAccess.configureContainerEntry
(org.eclipse.swt.widgets.Shell shell, IClasspathEntry initialEntry, IJavaProject project, IClasspathEntry[] currentClasspath) Shows the UI to configure a classpath container classpath entry.static IClasspathEntry
BuildPathDialogAccess.configureJavadocLocation
(org.eclipse.swt.widgets.Shell shell, IClasspathEntry initialEntry) Shows the UI for configuring a javadoc location attribute of the classpath entry.static IClasspathEntry
BuildPathDialogAccess.configureSourceAttachment
(org.eclipse.swt.widgets.Shell shell, IClasspathEntry initialEntry) Shows the UI for configuring source attachments, with editing of source attachment encoding disabled.static IClasspathEntry
BuildPathDialogAccess.configureSourceAttachment
(org.eclipse.swt.widgets.Shell shell, IClasspathEntry initialEntry, boolean canEditEncoding) Shows the UI for configuring source attachments.void
JavaCapabilityConfigurationPage.init
(IJavaProject jproject, org.eclipse.core.runtime.IPath defaultOutputLocation, IClasspathEntry[] defaultEntries, boolean defaultsOverrideExistingClasspath) Initializes the page with the project and default classpath.void
IClasspathContainerPageExtension.initialize
(IJavaProject project, IClasspathEntry[] currentEntries) Methodinitialize()
is called beforeIClasspathContainerPage.setSelection
to give additional information about the context the classpath container entry is configured in.void
NewJavaProjectWizardPage.setDefaultClassPath
(IClasspathEntry[] entries, boolean appendDefaultJRE) Deprecated.Sets the default classpath to be used for the new Java project.void
IClasspathContainerPage.setSelection
(IClasspathEntry containerEntry) Sets the classpath container entry to be edited ornull
if a new entry should be created.
JavaCore.getResolvedClasspathEntry(IClasspathEntry)
instead