java.lang.Object
org.eclipse.jface.action.Action
com.port80.eclipse.jdt.annotation.SortAction
- All Implemented Interfaces:
- org.eclipse.jface.action.IAction, org.eclipse.jface.action.IMenuCreator
- public class SortAction
- extends org.eclipse.jface.action.Action
- implements org.eclipse.jface.action.IMenuCreator
| 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 |
| 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 |
fView
private AnnotationView fView
fActions
private java.util.List fActions
SortAction
public SortAction(AnnotationView view)
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
getMenu
public org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Menu parent)
- Description copied from interface:
org.eclipse.jface.action.IMenuCreator
- Returns an SWT menu created as a drop down menu parented by the
given menu. In most cases, this menu can be created once, cached and reused
when the pop-up/drop-down action occurs. If the menu must be dynamically
created (i.e., each time it is popped up or dropped down), the old menu
should be disposed of before replacing it with the new menu.
- Specified by:
getMenu in interface org.eclipse.jface.action.IMenuCreator
getMenu
public org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Control parent)
- Description copied from interface:
org.eclipse.jface.action.IMenuCreator
- Returns the SWT menu, created as a pop up menu parented by the
given control. In most cases, this menu can be created once, cached and reused
when the pop-up/drop-down action occurs. If the menu must be dynamically
created (i.e., each time it is popped up or dropped down), the old menu
should be disposed of before replacing it with the new menu.
- Specified by:
getMenu in interface org.eclipse.jface.action.IMenuCreator
run
public void run()
- Description copied from class:
org.eclipse.jface.action.Action
- The default implementation of this
IAction method
does nothing. Subclasses should override this method
if they do not need information from the triggering event,
or override runWithEvent(Event) if they do.
- Specified by:
run in interface org.eclipse.jface.action.IAction
getView
AnnotationView getView()
addActionToMenu
private void addActionToMenu(org.eclipse.swt.widgets.Menu parent,
org.eclipse.jface.action.Action action)