Uses of Interface
org.eclipse.jdt.core.IClasspathEntry
-
Packages that use IClasspathEntry Package Description org.eclipse.jdt.core The Java model is the set of classes that model the objects associated with creating, editing, and building a Java program.org.eclipse.jdt.launching Application programming interfaces for interaction with the Eclipse Java launching support.org.eclipse.jdt.ui Application programming interfaces for interaction with the Eclipse Java User Interface.org.eclipse.jdt.ui.text.java Application programming interfaces for interaction with the Eclipse Java User Interface.org.eclipse.jdt.ui.wizards Application programming interfaces for interaction with the Eclipse Java User Interface wizards. -
-
Uses of IClasspathEntry in org.eclipse.jdt.core
Methods in org.eclipse.jdt.core that return IClasspathEntry Modifier and Type Method Description IClasspathEntryIJavaProject. decodeClasspathEntry(String encodedEntry)Decodes the classpath entry that has been encoded in the given string in the context of this project.IClasspathEntry[]IClasspathContainer. getClasspathEntries()Answers the set of classpath entries this container is mapping to.IClasspathEntryIJavaProject. getClasspathEntryFor(IPath path)Returns the classpath entry that refers to the given path ornullif there is no reference to the path.IClasspathEntry[]IJavaProject. getRawClasspath()Returns the raw classpath for the project, as a list of classpath entries.IClasspathEntryIPackageFragmentRoot. getRawClasspathEntry()Returns the first raw classpath entry that corresponds to this package fragment root.IClasspathEntry[]IJavaProject. getReferencedClasspathEntries()Returns the list of referenced classpath entries stored in the .classpath file ofthisjava 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.IClasspathEntryIClasspathEntry. getReferencingEntry()Returns the classpath entry that is making a reference to this classpath entry.IClasspathEntry[]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.IClasspathEntryIPackageFragmentRoot. getResolvedClasspathEntry()Returns the first resolved classpath entry that corresponds to this package fragment root.static IClasspathEntryJavaCore. 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).IClasspathEntryIClasspathEntry. getResolvedEntry()Deprecated.static IClasspathEntryJavaCore. newContainerEntry(IPath containerPath)Creates and returns a new classpath entry of kindCPE_CONTAINERfor the given path.static IClasspathEntryJavaCore. newContainerEntry(IPath containerPath, boolean isExported)Creates and returns a new classpath entry of kindCPE_CONTAINERfor the given path.static IClasspathEntryJavaCore. newContainerEntry(IPath containerPath, IAccessRule[] accessRules, IClasspathAttribute[] extraAttributes, boolean isExported)Creates and returns a new classpath entry of kindCPE_CONTAINERfor the given path.static IClasspathEntryJavaCore. newLibraryEntry(IPath path, IPath sourceAttachmentPath, IPath sourceAttachmentRootPath)Creates and returns a new non-exported classpath entry of kindCPE_LIBRARYfor the JAR or folder identified by the given absolute path.static IClasspathEntryJavaCore. newLibraryEntry(IPath path, IPath sourceAttachmentPath, IPath sourceAttachmentRootPath, boolean isExported)Creates and returns a new classpath entry of kindCPE_LIBRARYfor the JAR or folder identified by the given absolute path.static IClasspathEntryJavaCore. newLibraryEntry(IPath path, IPath sourceAttachmentPath, IPath sourceAttachmentRootPath, IAccessRule[] accessRules, IClasspathAttribute[] extraAttributes, boolean isExported)Creates and returns a new classpath entry of kindCPE_LIBRARYfor the JAR or folder identified by the given absolute path.static IClasspathEntryJavaCore. newProjectEntry(IPath path)Creates and returns a new non-exported classpath entry of kindCPE_PROJECTfor the project identified by the given absolute path.static IClasspathEntryJavaCore. newProjectEntry(IPath path, boolean isExported)Creates and returns a new classpath entry of kindCPE_PROJECTfor the project identified by the given absolute path.static IClasspathEntryJavaCore. newProjectEntry(IPath path, IAccessRule[] accessRules, boolean combineAccessRules, IClasspathAttribute[] extraAttributes, boolean isExported)Creates and returns a new classpath entry of kindCPE_PROJECTfor the project identified by the given absolute path.static IClasspathEntryJavaCore. newSourceEntry(IPath path)Creates and returns a new classpath entry of kindCPE_SOURCEfor all files in the project's source folder identified by the given absolute workspace-relative path.static IClasspathEntryJavaCore. newSourceEntry(IPath path, IPath[] exclusionPatterns)Creates and returns a new classpath entry of kindCPE_SOURCEfor 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 IClasspathEntryJavaCore. newSourceEntry(IPath path, IPath[] exclusionPatterns, IPath specificOutputLocation)Creates and returns a new classpath entry of kindCPE_SOURCEfor 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 IClasspathEntryJavaCore. newSourceEntry(IPath path, IPath[] inclusionPatterns, IPath[] exclusionPatterns, IPath specificOutputLocation)Creates and returns a new classpath entry of kindCPE_SOURCEfor 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 IClasspathEntryJavaCore. newSourceEntry(IPath path, IPath[] inclusionPatterns, IPath[] exclusionPatterns, IPath specificOutputLocation, IClasspathAttribute[] extraAttributes)Creates and returns a new classpath entry of kindCPE_SOURCEfor 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 IClasspathEntryJavaCore. newVariableEntry(IPath variablePath, IPath variableSourceAttachmentPath, IPath sourceAttachmentRootPath)Creates and returns a new non-exported classpath entry of kindCPE_VARIABLEfor the given path.static IClasspathEntryJavaCore. newVariableEntry(IPath variablePath, IPath variableSourceAttachmentPath, IPath variableSourceAttachmentRootPath, boolean isExported)Creates and returns a new classpath entry of kindCPE_VARIABLEfor the given path.static IClasspathEntryJavaCore. newVariableEntry(IPath variablePath, IPath variableSourceAttachmentPath, IPath variableSourceAttachmentRootPath, IAccessRule[] accessRules, IClasspathAttribute[] extraAttributes, boolean isExported)Creates and returns a new classpath entry of kindCPE_VARIABLEfor the given path.IClasspathEntry[]IJavaProject. readRawClasspath()Returns the raw classpath for the project as defined by its.classpathfile from disk, ornullif unable to read the file.Methods in org.eclipse.jdt.core with parameters of type IClasspathEntry Modifier and Type Method Description voidIPackageFragmentRoot. copy(IPath destination, int updateResourceFlags, int updateModelFlags, IClasspathEntry sibling, 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.StringIJavaProject. encodeClasspathEntry(IClasspathEntry classpathEntry)Encodes the given classpath entry into a string in the context of this project.IPackageFragmentRoot[]IJavaProject. findPackageFragmentRoots(IClasspathEntry entry)Returns the existing package fragment roots identified by the given entry.IPackageFragmentRoot[]IJavaProject. findUnfilteredPackageFragmentRoots(IClasspathEntry entry)In a Java 9 project, a classpath entry can be filtered using aIClasspathAttribute.LIMIT_MODULESattribute, otherwise for an unnamed module a default set of roots is used as defined in JEP 261.IPackageFragmentRoot[]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 IClasspathEntryJavaCore. 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).booleanIJavaProject. hasClasspathCycle(IClasspathEntry[] entries)Returns whether setting this project's classpath to the given classpath entries would result in a cycle.voidIPackageFragmentRoot. move(IPath destination, int updateResourceFlags, int updateModelFlags, IClasspathEntry sibling, 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.ICompilationUnitWorkingCopyOwner. newWorkingCopy(String name, IClasspathEntry[] classpath, IProgressMonitor monitor)Returns a new working copy with the given name using this working copy owner to create its buffer.ICompilationUnitWorkingCopyOwner. newWorkingCopy(String name, IClasspathEntry[] classpath, IProblemRequestor problemRequestor, IProgressMonitor monitor)Deprecated.voidIJavaProject. setRawClasspath(IClasspathEntry[] entries, boolean canModifyResources, IProgressMonitor monitor)Sets the classpath of this project using a list of classpath entries.voidIJavaProject. setRawClasspath(IClasspathEntry[] entries, IPath outputLocation, boolean canModifyResources, IProgressMonitor monitor)Sets both the classpath of this project and its default output location at once.voidIJavaProject. setRawClasspath(IClasspathEntry[] entries, IPath outputLocation, IProgressMonitor monitor)Sets the both the classpath of this project and its default output location at once.voidIJavaProject. setRawClasspath(IClasspathEntry[] entries, IProgressMonitor monitor)Sets the classpath of this project using a list of classpath entries.voidIJavaProject. setRawClasspath(IClasspathEntry[] entries, IClasspathEntry[] referencedEntries, IPath outputLocation, IProgressMonitor monitor)Works similar toIJavaProject.setRawClasspath(IClasspathEntry[], IPath, IProgressMonitor)and additionally allows persisting the given array of referenced entries for this project.static IJavaModelStatusJavaConventions. validateClasspath(IJavaProject javaProject, IClasspathEntry[] rawClasspath, 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 IJavaModelStatusJavaConventions. 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.OKif 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
Methods in org.eclipse.jdt.launching that return IClasspathEntry Modifier and Type Method Description IClasspathEntryIRuntimeClasspathEntry. getClasspathEntry()Returns a classpath entry equivalent to this runtime classpath entry, ornullif none.static IClasspathEntryJavaRuntime. getDefaultJREContainerEntry()Creates and returns a classpath entry describing the default JRE container entry.static IClasspathEntryJavaRuntime. getJREVariableEntry()Creates and returns a classpath entry describing the JRE_LIB classpath variable.Methods in org.eclipse.jdt.launching with parameters of type IClasspathEntry Modifier and Type Method Description static booleanJavaRuntime. isModule(IClasspathEntry entry, IJavaProject proj)Checks if classpath entry is modular and project is modular .booleanIRuntimeClasspathEntryResolver2. isVMInstallReference(IClasspathEntry entry)Returns whether the given classpath entry references a VM install.IVMInstallIRuntimeClasspathEntryResolver. resolveVMInstall(IClasspathEntry entry)Returns a VM install associated with the given classpath entry, ornullif none. -
Uses of IClasspathEntry in org.eclipse.jdt.ui
Methods in org.eclipse.jdt.ui that return IClasspathEntry Modifier and Type Method Description static 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.Methods in org.eclipse.jdt.ui with parameters of type IClasspathEntry Modifier and Type Method Description static StringPreferenceConstants. encodeJRELibrary(String description, IClasspathEntry[] entries)Encodes a JRE library to be used in the named preferenceNEWPROJECT_JRELIBRARY_LIST.static URLJavaUI. getLibraryJavadocLocation(IClasspathEntry entry)Returns the Javadoc location for library's classpath entry ornullif no location is available. -
Uses of IClasspathEntry in org.eclipse.jdt.ui.text.java
Methods in org.eclipse.jdt.ui.text.java with parameters of type IClasspathEntry Modifier and Type Method Description static ChangeClasspathFixProcessor.ClasspathFixProposal. newAddClasspathChange(IJavaProject project, IClasspathEntry entryToAdd)A helper method to create aChangethat adds an entry to the class path.static ChangeClasspathFixProcessor.ClasspathFixProposal. newClasspathChange(IJavaProject project, IClasspathEntry[] newClasspath, IPath outputLocation)A helper method to create aChangethat modifies a class path. -
Uses of IClasspathEntry in org.eclipse.jdt.ui.wizards
Methods in org.eclipse.jdt.ui.wizards that return IClasspathEntry Modifier and Type Method Description static IClasspathEntry[]BuildPathDialogAccess. chooseContainerEntries(Shell shell, IJavaProject project, IClasspathEntry[] currentClasspath)Shows the UI to choose new classpath container classpath entries.static IClasspathEntryBuildPathDialogAccess. configureContainerEntry(Shell shell, IClasspathEntry initialEntry, IJavaProject project, IClasspathEntry[] currentClasspath)Shows the UI to configure a classpath container classpath entry.static IClasspathEntryBuildPathDialogAccess. configureJavadocLocation(Shell shell, IClasspathEntry initialEntry)Shows the UI for configuring a javadoc location attribute of the classpath entry.static IClasspathEntryBuildPathDialogAccess. configureSourceAttachment(Shell shell, IClasspathEntry initialEntry)Shows the UI for configuring source attachments, with editing of source attachment encoding disabled.static IClasspathEntryBuildPathDialogAccess. configureSourceAttachment(Shell shell, IClasspathEntry initialEntry, boolean canEditEncoding)Shows the UI for configuring source attachments.IClasspathEntry[]NewJavaProjectWizardPageOne. getDefaultClasspathEntries()Returns the default class path entries to be added on new projects.IClasspathEntry[]IClasspathContainerPageExtension2. getNewContainers()MethodIClasspathContainerPageExtension2.getNewContainers()is called instead ofIClasspathContainerPage.getSelection()to get the newly added containers.abstract IClasspathEntryClasspathAttributeConfiguration.ClasspathAttributeAccess. getParentClasspassEntry()Returns the classpath entry the current attribute is part ofIClasspathEntry[]JavaCapabilityConfigurationPage. getRawClassPath()Returns the currently configured classpath.IClasspathEntry[]NewJavaProjectWizardPage. getRawClassPath()Deprecated.Returns the currently configured classpath.IClasspathEntryIClasspathContainerPage. getSelection()Returns the edited or created classpath container entry.IClasspathEntry[]NewJavaProjectWizardPageOne. getSourceClasspathEntries()Returns the source class path entries to be added on new projects.Methods in org.eclipse.jdt.ui.wizards with parameters of type IClasspathEntry Modifier and Type Method Description static IClasspathEntry[]BuildPathDialogAccess. chooseContainerEntries(Shell shell, IJavaProject project, IClasspathEntry[] currentClasspath)Shows the UI to choose new classpath container classpath entries.static IClasspathEntryBuildPathDialogAccess. configureContainerEntry(Shell shell, IClasspathEntry initialEntry, IJavaProject project, IClasspathEntry[] currentClasspath)Shows the UI to configure a classpath container classpath entry.static IClasspathEntryBuildPathDialogAccess. configureJavadocLocation(Shell shell, IClasspathEntry initialEntry)Shows the UI for configuring a javadoc location attribute of the classpath entry.static IClasspathEntryBuildPathDialogAccess. configureSourceAttachment(Shell shell, IClasspathEntry initialEntry)Shows the UI for configuring source attachments, with editing of source attachment encoding disabled.static IClasspathEntryBuildPathDialogAccess. configureSourceAttachment(Shell shell, IClasspathEntry initialEntry, boolean canEditEncoding)Shows the UI for configuring source attachments.voidJavaCapabilityConfigurationPage. init(IJavaProject jproject, IPath defaultOutputLocation, IClasspathEntry[] defaultEntries, boolean defaultsOverrideExistingClasspath)Initializes the page with the project and default classpath.voidIClasspathContainerPageExtension. initialize(IJavaProject project, IClasspathEntry[] currentEntries)Methodinitialize()is called beforeIClasspathContainerPage.setSelectionto give additional information about the context the classpath container entry is configured in.voidNewJavaProjectWizardPage. setDefaultClassPath(IClasspathEntry[] entries, boolean appendDefaultJRE)Deprecated.Sets the default classpath to be used for the new Java project.voidIClasspathContainerPage. setSelection(IClasspathEntry containerEntry)Sets the classpath container entry to be edited ornullif a new entry should be created.
-