Package com.iizigo.project
Class ModuleNature
java.lang.Object
com.iizigo.project.ModuleNature
- All Implemented Interfaces:
- org.eclipse.core.resources.IProjectNature
The IIZI Module Project Nature.
- Author:
- Christopher Mindus
- Field SummaryFields
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- static void- associateNature- (org.eclipse.core.resources.IProject project, PluginDescriptor[] plugins, org.eclipse.core.runtime.IProgressMonitor monitor) Associating the IIZI Nature with a Project.- voidConfigures the IIZI Module Project nature for its project.- voidDe-configures this nature for its project.- getModel()Gets the model for the project.- org.eclipse.core.resources.IProjectReturns the project to which this project nature applies.- void- setProject- (org.eclipse.core.resources.IProject project) Sets the project to which this nature applies.
- Field Details- NATURE_IDThe nature ID.- See Also:
 
 
- Constructor Details- ModuleNaturepublic ModuleNature()Default Eclipse constructor.
 
- Method Details- associateNaturepublic static void associateNature- (org.eclipse.core.resources.IProject project, PluginDescriptor[] plugins, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException Associating the IIZI Nature with a Project.- Parameters:
- project- The project.
- plugins- The plugins for the project.
- monitor- The progress monitor.
- Throws:
- org.eclipse.core.runtime.CoreException- If this method doesn't complete.
 
- setProjectpublic void setProject- (org.eclipse.core.resources.IProject project) 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:
- setProjectin interface- org.eclipse.core.resources.IProjectNature
- Parameters:
- project- Project the project to which this nature applies.
 
- getProjectpublic org.eclipse.core.resources.IProject getProject()Returns the project to which this project nature applies.- Specified by:
- getProjectin interface- org.eclipse.core.resources.IProjectNature
- Returns:
- The project handle.
 
- configurepublic void configure() throws org.eclipse.core.runtime.CoreExceptionConfigures 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:
- configurein interface- org.eclipse.core.resources.IProjectNature
- Throws:
- org.eclipse.core.runtime.CoreException- If this method fails.
 
- deconfigurepublic void deconfigure() throws org.eclipse.core.runtime.CoreExceptionDe-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:
- deconfigurein interface- org.eclipse.core.resources.IProjectNature
- Throws:
- org.eclipse.core.runtime.CoreException- If this method fails.
 
- getModelGets the model for the project.- Returns:
- The model, or null if not initialized/configured yet.