public interface IProjectNatureDescriptor
plugin.xml
) file.
Nature descriptors are platform-defined objects that exist
independent of whether that nature's plug-in has been started.
In contrast, a project nature's runtime object (IProjectNature
)
generally runs plug-in-defined code.
IProjectNature
,
IWorkspace.getNatureDescriptor(String)
Modifier and Type | Method and Description |
---|---|
String |
getLabel()
Returns a displayable label for this nature.
|
String |
getNatureId()
Returns the unique identifier of this nature.
|
String[] |
getNatureSetIds()
Returns the identifiers of the nature sets that this nature belongs to.
|
String[] |
getRequiredNatureIds()
Returns the unique identifiers of the natures required by this nature.
|
boolean |
isLinkingAllowed()
Returns whether this project nature allows linked resources to be created
in projects where this nature is installed.
|
String getNatureId()
The nature identifier is composed of the nature's plug-in id and the simple
id of the nature extension. For example, if plug-in "com.xyz"
defines a nature extension with id "myNature"
, the unique
nature identifier will be "com.xyz.myNature"
.
String getLabel()
Note that any translation specified in the plug-in manifest file is automatically applied.
String[] getRequiredNatureIds()
"requires-nature"
element on a nature extension.
Returns an empty array if no natures are required by this nature.String[] getNatureSetIds()
"one-of-nature"
element on a nature extension.
Returns an empty array if no nature sets are specified for this nature.boolean isLinkingAllowed()
true
if creating links is allowed,
and false
otherwise.IFolder.createLink(org.eclipse.core.runtime.IPath, int, org.eclipse.core.runtime.IProgressMonitor)
,
IFile.createLink(org.eclipse.core.runtime.IPath, int, org.eclipse.core.runtime.IProgressMonitor)
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.