Uses of Interface
org.eclipse.jdt.core.IPackageFragmentRoot
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 interface to access Java refactorings provided by JDT.
Provides support for searching the workspace Java
elements that match a particular description.
Application programming interfaces and classes for source lookup.
Provides advanced source lookup support for the Java debugger.
Provides source lookup support for the Java debugger.
Application programming interfaces for interaction
with the Eclipse Java User Interface.
Application programming interfaces for rename refactorings.
Application programming interfaces for interaction
with the Eclipse Java User Interface wizards.
-
Uses of IPackageFragmentRoot in org.eclipse.jdt.core
Modifier and TypeMethodDescriptionstatic IPackageFragmentRoot
JavaCore.createJarPackageFragmentRootFrom
(org.eclipse.core.resources.IFile file) Creates and returns a handle for the given JAR file.IJavaProject.findPackageFragmentRoot
(org.eclipse.core.runtime.IPath path) Returns the existing package fragment root on this project's classpath whose path matches the given (absolute) path, ornull
if one does not exist.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.getAllPackageFragmentRoots()
Returns all of the existing package fragment roots that exist on the classpath, in the order they are defined by the classpath.IJarEntryResource.getPackageFragmentRoot()
Returns the package fragment root this jar entry resource belongs to.IJavaProject.getPackageFragmentRoot
(String externalLibraryPath) Returns a package fragment root for an external library (a ZIP archive - e.g. a.jar
, a.zip
file, etc. - or - since 3.4 - a class folder) at the specified file system path.IJavaProject.getPackageFragmentRoot
(org.eclipse.core.resources.IResource resource) Returns a package fragment root for the given resource, which must either be a folder representing the top of a package hierarchy, or a ZIP archive (e.g. a.jar
, a.zip
file, etc.)IJavaProject.getPackageFragmentRoots()
Returns all of the package fragment roots contained in this project, identified on this project's resolved classpath.IJavaProject.getPackageFragmentRoots
(IClasspathEntry entry) Deprecated.Modifier and TypeMethodDescriptionJavaCore.defaultRootModules
(Iterable<IPackageFragmentRoot> allSystemRoots) Filter the given set of system roots by the rules for root modules from JEP 261. -
Uses of IPackageFragmentRoot in org.eclipse.jdt.core.refactoring.descriptors
Modifier and TypeMethodDescriptionvoid
MoveDescriptor.setMovePackageFragmentRoots
(IPackageFragmentRoot[] roots) Sets the package fragment roots to move. -
Uses of IPackageFragmentRoot in org.eclipse.jdt.core.search
Modifier and TypeMethodDescriptionTypeNameMatch.getPackageFragmentRoot()
Returns the package fragment root of the stored type. -
Uses of IPackageFragmentRoot in org.eclipse.jdt.launching.sourcelookup
Modifier and TypeMethodDescriptionPackageFragmentRootSourceLocation.getPackageFragmentRoot()
Deprecated.Returns the package fragment root associated with this source location, ornull
if noneModifierConstructorDescriptionDeprecated.Creates a source location on the given package fragment root. -
Uses of IPackageFragmentRoot in org.eclipse.jdt.launching.sourcelookup.advanced
Modifier and TypeMethodDescriptionstatic Map<File,
IPackageFragmentRoot> AdvancedSourceLookup.getClasspath
(IJavaProject project) Modifier and TypeMethodDescriptionvoid
IWorkspaceProjectDescriber.IJavaProjectSourceDescription.addDependencies
(Map<File, IPackageFragmentRoot> dependencies) Adds runtime classes location of project dependencies and their corresponding package fragment roots, typically for standard java application, this is dependency jar or classes directory for equinox, this is dependency bundle location -
Uses of IPackageFragmentRoot in org.eclipse.jdt.launching.sourcelookup.containers
Modifier and TypeMethodDescriptionPackageFragmentRootSourceContainer.getPackageFragmentRoot()
Returns the package fragment root this container searches for source.ModifierConstructorDescriptionConstructs a new package fragment root source container on the given root. -
Uses of IPackageFragmentRoot in org.eclipse.jdt.ui
Modifier and TypeMethodDescriptionstatic org.eclipse.ui.dialogs.SelectionDialog
JavaUI.createPackageDialog
(org.eclipse.swt.widgets.Shell parent, IPackageFragmentRoot root) Creates a selection dialog that lists all packages under the given package fragment root.static org.eclipse.ui.dialogs.SelectionDialog
JavaUI.createPackageDialog
(org.eclipse.swt.widgets.Shell parent, IPackageFragmentRoot root, String filter) Creates a selection dialog that lists all packages under the given package fragment root.protected Object[]
StandardJavaElementContentProvider.getPackageFragmentRootContent
(IPackageFragmentRoot root) Evaluates all children of a givenIPackageFragmentRoot
.static void
JavaElementLabels.getPackageFragmentRootLabel
(IPackageFragmentRoot root, long flags, StringBuffer buf) Appends the label for a package fragment root to aStringBuffer
.static void
JavaElementLabels.getPackageFragmentRootLabel
(IPackageFragmentRoot root, long flags, org.eclipse.jface.viewers.StyledString result) Appends the label for a package fragment root to aStyledString
.protected boolean
StandardJavaElementContentProvider.isProjectPackageFragmentRoot
(IPackageFragmentRoot root) Tests if the package fragment root is located on the project.protected Object
StandardJavaElementContentProvider.skipProjectPackageFragmentRoot
(IPackageFragmentRoot root) Note: This method is for internal use only. -
Uses of IPackageFragmentRoot in org.eclipse.jdt.ui.refactoring
Modifier and TypeMethodDescriptionstatic RenameSupport
RenameSupport.create
(IPackageFragmentRoot root, String newName) Creates a new rename support for the givenIPackageFragmentRoot
. -
Uses of IPackageFragmentRoot in org.eclipse.jdt.ui.wizards
Modifier and TypeMethodDescriptionprotected IPackageFragmentRoot
NewContainerWizardPage.chooseContainer()
Opens a selection dialog that allows to select a source container.NewContainerWizardPage.getPackageFragmentRoot()
Returns theIPackageFragmentRoot
that corresponds to the current value of the source folder field.Modifier and TypeMethodDescriptionvoid
NewContainerWizardPage.setPackageFragmentRoot
(IPackageFragmentRoot root, boolean canBeModified) Sets the current source folder (model and text field) to the given package fragment root.
IJavaProject.findPackageFragmentRoots(IClasspathEntry)
instead