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

Quick Search    Search Deep

com.port80.eclipse.jdt.history
Class GotoVisitedAction  view GotoVisitedAction download GotoVisitedAction.java

java.lang.Object
  extended byorg.eclipse.jface.action.Action
      extended bycom.port80.eclipse.jdt.history.GotoVisitedAction
All Implemented Interfaces:
org.eclipse.jface.action.IAction, org.eclipse.ui.IActionDelegate, org.eclipse.jface.action.IMenuCreator, org.eclipse.ui.IWorkbenchWindowActionDelegate, org.eclipse.ui.IWorkbenchWindowPulldownDelegate

public class GotoVisitedAction
extends org.eclipse.jface.action.Action
implements org.eclipse.jface.action.IMenuCreator, org.eclipse.ui.IWorkbenchWindowPulldownDelegate

Popup a dialog to let user choose the sort key from a list.


Field Summary
private static boolean DEBUG
           
(package private)  org.eclipse.ui.IWorkbenchWindow fWindow
           
private static java.lang.String NAME
           
 
Fields inherited from class org.eclipse.jface.action.Action
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
GotoVisitedAction()
           
 
Method Summary
private  org.eclipse.swt.widgets.Menu createMenu(org.eclipse.swt.widgets.Menu menu)
          Creates the menu for the action
 void dispose()
          Disposes the menu returned by getMenu.
 org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Control parent)
          Popup menu.
 org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Menu parent)
          Pulldown menu.
 void init(org.eclipse.ui.IWorkbenchWindow window)
          Initializes this action delegate with the workbench window it will work in.
(package private)  void populateMenu(org.eclipse.swt.widgets.Menu menu)
          Populates the menu with its items
 void run()
          Fast action is go back.
 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.
 
Methods inherited from class org.eclipse.jface.action.Action
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, notifyResult, removeAcceleratorText, removeMnemonics, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
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

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values

fWindow

org.eclipse.ui.IWorkbenchWindow fWindow
Constructor Detail

GotoVisitedAction

public GotoVisitedAction()
Method Detail

run

public void run()
Fast action is go back.

Specified by:
run in interface org.eclipse.jface.action.IAction

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

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

getMenu

public org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Control parent)
Popup menu. Method declared on IWorkbenchWindowPulldownDelegate.

Specified by:
getMenu in interface org.eclipse.jface.action.IMenuCreator

getMenu

public org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Menu parent)
Pulldown menu.

Specified by:
getMenu in interface org.eclipse.jface.action.IMenuCreator

dispose

public void dispose()
Description copied from interface: org.eclipse.jface.action.IMenuCreator
Disposes the menu returned by getMenu. Does nothing if there is no menu. This method will be executed only when the parent of the menu is disposed.

Specified by:
dispose in interface org.eclipse.jface.action.IMenuCreator

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

createMenu

private org.eclipse.swt.widgets.Menu createMenu(org.eclipse.swt.widgets.Menu menu)
Creates the menu for the action


populateMenu

void populateMenu(org.eclipse.swt.widgets.Menu menu)
Populates the menu with its items