Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.eclipse.jdt.actions
Class GotoOffsetAction  view GotoOffsetAction download GotoOffsetAction.java

java.lang.Object
  extended bycom.port80.eclipse.jdt.actions.GotoOffsetAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IEditorActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate

public class GotoOffsetAction
extends java.lang.Object
implements org.eclipse.ui.IWorkbenchWindowActionDelegate, org.eclipse.ui.IEditorActionDelegate

Goto character offset in active editor.


Field Summary
private static boolean DEBUG
           
private static java.lang.String ID
           
private static java.lang.String NAME
           
 
Constructor Summary
GotoOffsetAction()
           
 
Method Summary
 void dispose()
          Disposes this action delegate.
 void init(org.eclipse.ui.IWorkbenchWindow window)
          Initializes this action delegate with the workbench window it will work in.
 void run(org.eclipse.jface.action.IAction action)
          Performs this action.
 void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
          Notifies this action delegate that the selection in the workbench has changed.
 void setActiveEditor(org.eclipse.jface.action.IAction action, org.eclipse.ui.IEditorPart targetEditor)
          Sets the active editor for the delegate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

private static final java.lang.String NAME
See Also:
Constant Field Values

ID

private static final java.lang.String ID
See Also:
Constant Field Values

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

GotoOffsetAction

public GotoOffsetAction()
Method Detail

run

public void run(org.eclipse.jface.action.IAction action)
Description copied from interface: org.eclipse.ui.IActionDelegate
Performs this action.

This method is called by the proxy action when the action has been triggered. Implement this method to do the actual work.

Note: If the action delegate also implements IActionDelegate2, then this method is not invoked but instead the runWithEvent(IAction, Event) method is called.

Specified by:
run in interface org.eclipse.ui.IActionDelegate

dispose

public void dispose()
Description copied from interface: org.eclipse.ui.IWorkbenchWindowActionDelegate
Disposes this action delegate. The implementor should unhook any references to itself so that garbage collection can occur.

Specified by:
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegate

init

public void init(org.eclipse.ui.IWorkbenchWindow window)
Description copied from interface: org.eclipse.ui.IWorkbenchWindowActionDelegate
Initializes this action delegate with the workbench window it will work in.

Specified by:
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegate

selectionChanged

public void selectionChanged(org.eclipse.jface.action.IAction action,
                             org.eclipse.jface.viewers.ISelection selection)
Description copied from interface: org.eclipse.ui.IActionDelegate
Notifies this action delegate that the selection in the workbench has changed.

Implementers can use this opportunity to change the availability of the action or to modify other presentation properties.

When the selection changes, the action enablement state is updated based on the criteria specified in the plugin.xml file. Then the delegate is notified of the selection change regardless of whether the enablement criteria in the plugin.xml file is met.

Specified by:
selectionChanged in interface org.eclipse.ui.IActionDelegate

setActiveEditor

public void setActiveEditor(org.eclipse.jface.action.IAction action,
                            org.eclipse.ui.IEditorPart targetEditor)
Description copied from interface: org.eclipse.ui.IEditorActionDelegate
Sets the active editor for the delegate. Implementors should disconnect from the old editor, connect to the new editor, and update the action to reflect the new editor.

Specified by:
setActiveEditor in interface org.eclipse.ui.IEditorActionDelegate