org.ocleditor.internal.ui.navigation
Class ActionGotoOclMethod
java.lang.Object
org.ocleditor.internal.ui.navigation.ActionGotoOclMethod
- All Implemented Interfaces:
- org.eclipse.ui.IActionDelegate
- public class ActionGotoOclMethod
- extends java.lang.Object
- implements org.eclipse.ui.IActionDelegate
This class is used to navigate from a selected method in a java file to the corresponding OCL file.
If the method 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 |
ActionGotoOclMethod
public ActionGotoOclMethod()
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