org.ocleditor.internal.ui.navigation
Class ActionGotoOclType
java.lang.Object
org.ocleditor.internal.ui.navigation.ActionGotoOclType
- All Implemented Interfaces:
- org.eclipse.ui.IActionDelegate
- public class ActionGotoOclType
- extends java.lang.Object
- implements org.eclipse.ui.IActionDelegate
This class is used to navigate from a selected java type to the corresponding OCL file.
If the type context exists the cursor is moved to the context. Otherwise a method context code
is generated at the end of the OCL file and the cursor is positioned at the context.
Also if the file doesn't exist it will be created and the package structure generated.
Method Summary |
void |
run(org.eclipse.jface.action.IAction action)
|
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionGotoOclType
public ActionGotoOclType()
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
run
public void run(org.eclipse.jface.action.IAction action)
- Specified by:
run
in interface org.eclipse.ui.IActionDelegate