|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for project nature runtime classes. It can configure a project with the project nature, or deconfigure it. When a project is configured with a project nature, this is recorded in the list of project natures on the project. Individual project natures may expose a more specific runtime type, with additional API for manipulating the project in a nature-specific way.
Clients may implement this interface.
IProject.getNature(java.lang.String)
,
IProject.hasNature(java.lang.String)
,
IProjectDescription.getNatureIds()
,
IProjectDescription.hasNature(java.lang.String)
,
IProjectDescription.setNatureIds(java.lang.String[])
Method Summary | |
void |
configure()
Configures this nature for its project. |
void |
deconfigure()
Deconfigures this nature for its project. |
IProject |
getProject()
Returns the project to which this project nature applies. |
void |
setProject(IProject project)
Sets the project to which this nature applies. |
Method Detail |
public void configure() throws CoreException
IProject.setDescription
and should not be called directly by clients. The nature extension
id is added to the list of natures before this method is called,
and need not be added here.
Exceptions thrown by this method will be propagated back to the caller
of IProject.setDescription
, but the nature will remain in
the project description.
CoreException
- if this method fails.public void deconfigure() throws CoreException
IProject.setDescription
and should not be called directly by
clients. The nature extension id is removed from the list of natures before
this method is called, and need not be removed here.
Exceptions thrown by this method will be propagated back to the caller
of IProject.setDescription
, but the nature will still be
removed from the project description.
*
CoreException
- if this method fails.public IProject getProject()
public void setProject(IProject project)
IProject.create()
or
IProject.setDescription()
and should not be called directly by clients.
project
- the project to which this nature applies
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |