java.lang.Objectcom.ibm.jdg2e.resources.extensions.ActionResourceAction
com.ibm.jdg2e.resources.extensions.natures.ActionAddCustomNature
Implements an action to add the CustomNature directly
to an existing project.
This demonstrates the API for the project and project description workspace resources and how you might implement this logic in your tool.
IProject,
IProjectDescription,
ICommand| Field Summary |
| Fields inherited from class com.ibm.jdg2e.resources.extensions.ActionResourceAction |
selection |
| Constructor Summary | |
ActionAddCustomNature()
ActionAddBuilderToProject default constructor. |
|
| Method Summary | |
void |
addCustomNature(org.eclipse.core.resources.IProject project)
Add the nature to the project if it does not yet have the nature. |
void |
run(org.eclipse.jface.action.IAction action)
Uses saved reference to selected project to call custom logic that adds the builder to the current project. |
| Methods inherited from class com.ibm.jdg2e.resources.extensions.ActionResourceAction |
resultError, resultInformation, resultQuestion, selectionChanged, setActivePart |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ActionAddCustomNature()
| Method Detail |
public void addCustomNature(org.eclipse.core.resources.IProject project)
throws org.eclipse.core.runtime.CoreException
project -
org.eclipse.core.runtime.CoreExceptionpublic void run(org.eclipse.jface.action.IAction action)
action - action proxy that handles the presentation
portion of the plugin actionIActionDelegate.run(IAction)