|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jmlspecs.eclipse.jdt.ui.WarningDeclarationsAction
public class WarningDeclarationsAction
This is the class that implements the action method for the 'Go To associated specification' menu item - through the run method. It needs to identify the marker being selected, then find the associated information in that marker, and finally open an editor on the correct file and location.
Constructor Summary | |
---|---|
WarningDeclarationsAction()
|
Method Summary | |
---|---|
static java.util.List |
getMarkers(org.eclipse.ui.IWorkbenchWindow window,
org.eclipse.jface.viewers.ISelection selection)
Gets all the markers corresponding to the stated selection |
static void |
openEditor(org.eclipse.ui.IWorkbenchWindow window,
java.lang.String data)
Utility routine that opens up an editor in the given window corresponding to the data string. |
void |
run(org.eclipse.jface.action.IAction action)
|
static void |
run(org.eclipse.swt.widgets.Shell shell,
org.eclipse.ui.IWorkbenchWindow window,
org.eclipse.jface.viewers.ISelection selection)
TODO |
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
|
void |
setActiveEditor(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IEditorPart targetEditor)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WarningDeclarationsAction()
Method Detail |
---|
public void setActiveEditor(org.eclipse.jface.action.IAction action, org.eclipse.ui.IEditorPart targetEditor)
setActiveEditor
in interface org.eclipse.ui.IEditorActionDelegate
public void run(org.eclipse.jface.action.IAction action)
run
in interface org.eclipse.ui.IActionDelegate
public static void run(org.eclipse.swt.widgets.Shell shell, org.eclipse.ui.IWorkbenchWindow window, org.eclipse.jface.viewers.ISelection selection)
shell
- window
- selection
- public static java.util.List getMarkers(org.eclipse.ui.IWorkbenchWindow window, org.eclipse.jface.viewers.ISelection selection)
selection
-
public static void openEditor(org.eclipse.ui.IWorkbenchWindow window, java.lang.String data) throws java.lang.Exception
window
- the workbench window in which we are workingdata
- the file, line number, and character position
java.lang.Exception
public void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.IActionDelegate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |