|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ocleditor.internal.core.nature_builder.OclNature
Simple implementation of a nature that customizes a project by adding the
OclBuilder
to the list of builders found in a project description.
Constructor Summary | |
OclNature()
Default constructor. |
Method Summary | |
void |
configure()
Customizes the project by adding the OCL builder. |
void |
deconfigure()
Removes any nature customization and private resources as may be required. |
org.eclipse.core.resources.IProject |
getProject()
Returns local reference to associated project. |
void |
setProject(org.eclipse.core.resources.IProject pr)
Saves local reference to associated project. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OclNature()
Method Detail |
public void configure() throws org.eclipse.core.runtime.CoreException
configure
in interface org.eclipse.core.resources.IProjectNature
org.eclipse.core.runtime.CoreException
IProjectNature.configure()
public void deconfigure() throws org.eclipse.core.runtime.CoreException
The OCL Builder is not removed here, but is removed automatically by the platform as the plugin.xml definition links the builder to the nature.
This works when the nature identifies the builder using a
entry.
deconfigure
in interface org.eclipse.core.resources.IProjectNature
org.eclipse.core.runtime.CoreException
IProjectNature.deconfigure()
public org.eclipse.core.resources.IProject getProject()
getProject
in interface org.eclipse.core.resources.IProjectNature
IProjectNature.getProject()
public void setProject(org.eclipse.core.resources.IProject pr)
setProject
in interface org.eclipse.core.resources.IProjectNature
IProjectNature.setProject(IProject)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |