org.ocleditor.internal.ui.navigation
Class ActionGotoOclField

java.lang.Object
  extended byorg.ocleditor.internal.ui.navigation.ActionGotoOclField
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate

public class ActionGotoOclField
extends java.lang.Object
implements org.eclipse.ui.IActionDelegate

This class is used to navigate from a selected java field to the corresponding OCL file.

If the type context exists the cursor is moved to the context. Otherwise a type 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.


Constructor Summary
ActionGotoOclField()
           
 
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
 

Constructor Detail

ActionGotoOclField

public ActionGotoOclField()
Method Detail

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