IJavaProject.findPackageFragmentRoot(
IPath path)
Returns the existing package fragment root on this project's classpath
whose path matches the given (absolute) path, or null if
one does not exist.
IJavaProject.getAllPackageFragmentRoots()
Returns all of the existing package fragment roots that exist
on the classpath, in the order they are defined by the classpath.
IJavaProject.getPackageFragmentRoot(
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.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.getPackageFragmentRoots()
Returns all of the package fragment roots contained in this
project, identified on this project's resolved classpath.
PackageFragmentRootSourceLocation.getPackageFragmentRoot() Deprecated. Returns the package fragment root associated with this
source location, or null if none
NewContainerWizardPage.setPackageFragmentRoot(
IPackageFragmentRoot root,
boolean canBeModified)
Sets the current source folder (model and text field) to the given package
fragment root.