org.gcn.plinguaplugin.actions
Class ToggleNatureAction
java.lang.Object
org.gcn.plinguaplugin.actions.ToggleNatureAction
- All Implemented Interfaces:
- org.eclipse.ui.IActionDelegate, org.eclipse.ui.IObjectActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate
public class ToggleNatureAction
- extends java.lang.Object
- implements org.eclipse.ui.IObjectActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate
This class performs the action functionality for toggling P-system nature on a project
It's needed as only P-Lingua nature project can be automatically parsed by P-Lingua files parser
- Author:
- Manuel Garcia-Quismondo-Fernandez
Method Summary |
void |
dispose()
|
void |
init(org.eclipse.ui.IWorkbenchWindow window)
|
void |
run(org.eclipse.jface.action.IAction action)
Toggles a project P-Lingua nature |
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
|
void |
setActivePart(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IWorkbenchPart targetPart)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToggleNatureAction
public ToggleNatureAction()
dispose
public void dispose()
- Specified by:
dispose
in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
- See Also:
IWorkbenchWindowActionDelegate.dispose()
init
public void init(org.eclipse.ui.IWorkbenchWindow window)
- Specified by:
init
in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
- See Also:
IWorkbenchWindowActionDelegate.init(org.eclipse.ui.IWorkbenchWindow)
run
public void run(org.eclipse.jface.action.IAction action)
- Toggles a project P-Lingua nature
- Specified by:
run
in interface org.eclipse.ui.IActionDelegate
- Parameters:
action
- The action which invokes the P-Lingua nature project change
selectionChanged
public void selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
- Specified by:
selectionChanged
in interface org.eclipse.ui.IActionDelegate
- See Also:
IActionDelegate.selectionChanged(org.eclipse.jface.action.IAction,
org.eclipse.jface.viewers.ISelection)
setActivePart
public void setActivePart(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IWorkbenchPart targetPart)
- Specified by:
setActivePart
in interface org.eclipse.ui.IObjectActionDelegate
- See Also:
IObjectActionDelegate.setActivePart(org.eclipse.jface.action.IAction,
org.eclipse.ui.IWorkbenchPart)