Package com.iizigo.project
Class ModuleNature
java.lang.Object
com.iizigo.project.ModuleNature
- All Implemented Interfaces:
IProjectNature
The IIZI Module Project Nature.
- Author:
- Christopher Mindus
Field Summary
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionstatic void
associateNature
(IProject project, PluginDescriptor[] plugins, IProgressMonitor monitor) Associating the IIZI Nature with a Project.void
Configures the IIZI Module Project nature for its project.void
De-configures this nature for its project.getModel()
Gets the model for the project.Returns the project to which this project nature applies.static boolean
hasModuleNature
(IProject project) Checks if the project has the Module Model nature.void
setProject
(IProject project) Sets the project to which this nature applies.
Field Details
NATURE_ID
The nature ID.- See Also:
Constructor Details
ModuleNature
public ModuleNature()Default Eclipse constructor.
Method Details
hasModuleNature
Checks if the project has the Module Model nature.- Parameters:
project
- The project.- Returns:
true
if project is accessible and has the Module Model nature,false
otherwise.- Throws:
CoreException
- If project nature cannot be retrieved.
associateNature
public static void associateNature(IProject project, PluginDescriptor[] plugins, IProgressMonitor monitor) throws CoreException Associating the IIZI Nature with a Project.- Parameters:
project
- The project.plugins
- The plugins for the project.monitor
- The progress monitor.- Throws:
CoreException
- If this method doesn't complete.
setProject
Sets the project to which this nature applies. Used when instantiating this project nature runtime. This is called by IProject.create() or IProject.setDescription() and should not be called directly by clients.- Specified by:
setProject
in interfaceIProjectNature
- Parameters:
project
- Project the project to which this nature applies.
getProject
Returns the project to which this project nature applies.- Specified by:
getProject
in interfaceIProjectNature
- Returns:
- The project handle.
configure
Configures the IIZI Module Project nature for its project. This is called by the workspace when natures are added to the project using 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.
- Specified by:
configure
in interfaceIProjectNature
- Throws:
CoreException
- If this method fails.
deconfigure
De-configures this nature for its project. This is called by the workspace when natures are removed from the project using 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.
- Specified by:
deconfigure
in interfaceIProjectNature
- Throws:
CoreException
- If this method fails.
getModel
Gets the model for the project.- Returns:
- The model, or null if not initialized/configured yet.