TextEditorAction
Public GotodefinitionAction (ResourceBundle Abundle, String Aprefix,
ITEXTEDITOR ANEDITOR) {
Super (Abundle, Aprefix, Aneditor);
}
/ * (non-javadoc)
* @see org.eclipse.jface.action.iaction # run ()
* /
Public void run () {
VelocityEditor Editor = (velocityEditor) getTextEditor ();
ItextSelection Selection = (ITextSelection) Editor.getSelectionProvider (). GetSelection ();
IF (! selection.isempty ()) {
Editor.gotodefinition (Selection.Getoffset (),
Selection.getLength ()));
}
}
Display display =
NULL;
IWorkbenchPartsite Site = editor.getsite ();
Shell shell = site.getshell ();