org.ocleditor.internal.ui.navigation
Class ActionGotoOclType

java.lang.Object
  extended byorg.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.


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

ActionGotoOclType

public ActionGotoOclType()
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