|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A project nature descriptor contains information about a project nature
obtained from the plug-in manifest (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.
This interface is not intended to be implemented by clients.
IProjectNature
,
IWorkspace.getNatureDescriptor(java.lang.String)
Method Summary | |
String |
getLabel()
Returns a displayable label for this nature. |
String |
getNatureId()
Returns the unique identifer 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. |
Method Detail |
public 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 identifer will be "com.xyz.myNature"
.
public String getLabel()
Note that any translation specified in the plug-in manifest file is automatically applied.
public String[] getRequiredNatureIds()
"requires-nature"
element on a nature extension.
Returns an empty array if no natures are required by this nature.
public String[] getNatureSetIds()
"one-of-nature"
element on a nature extension.
Returns an empty array if no nature sets are specified for this nature.
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |