Package com.iizigo.term.project
Class TerminalNature
- java.lang.Object
- com.iizigo.term.project.TerminalNature
- All Implemented Interfaces:
org.eclipse.core.resources.IProjectNature
public class TerminalNature extends java.lang.Object implements org.eclipse.core.resources.IProjectNatureThe IIZI Terminal Project nature.- Author:
- Christopher Mindus
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNATURE_IDThe nature ID.
Constructor Summary
Constructors Constructor Description TerminalNature()Default Eclipse constructor.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure()Configures the IIZI Terminal Project nature for its project.voiddeconfigure()De-configures this nature for its project.TerminalModelgetModel()Gets the model for the project.org.eclipse.core.resources.IProjectgetProject()Returns the project to which this project nature applies.voidsetProject(org.eclipse.core.resources.IProject project)Sets the project to which this nature applies.
Field Detail
NATURE_ID
public static final java.lang.String NATURE_ID
The nature ID.- See Also:
- Constant Field Values
Method Detail
setProject
public 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 interfaceorg.eclipse.core.resources.IProjectNature- Parameters:
project- Project the project to which this nature applies.
getProject
public org.eclipse.core.resources.IProject getProject()
Returns the project to which this project nature applies.- Specified by:
getProjectin interfaceorg.eclipse.core.resources.IProjectNature- Returns:
- The project handle.
configure
public void configure() throws org.eclipse.core.runtime.CoreExceptionConfigures the IIZI Terminal 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 interfaceorg.eclipse.core.resources.IProjectNature- Throws:
org.eclipse.core.runtime.CoreException- If this method fails.
deconfigure
public 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 interfaceorg.eclipse.core.resources.IProjectNature- Throws:
org.eclipse.core.runtime.CoreException- If this method fails.
getModel
public TerminalModel getModel()
Gets the model for the project.- Returns:
- The model, or null if not initialized/configured yet.