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

Quick Search    Search Deep

com.port80.eclipse.jdt.annotation
Class SortAction  view SortAction download SortAction.java

java.lang.Object
  extended byorg.eclipse.jface.action.Action
      extended bycom.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


Field Summary
private  java.util.List fActions
           
private  AnnotationView fView
           
 
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
SortAction(AnnotationView view)
           
 
Method Summary
private  void addActionToMenu(org.eclipse.swt.widgets.Menu parent, org.eclipse.jface.action.Action action)
           
 void dispose()
          Disposes the menu returned by getMenu.
 org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Control parent)
          Returns the SWT menu, created as a pop up menu parented by the given control.
 org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Menu parent)
          Returns an SWT menu created as a drop down menu parented by the given menu.
(package private)  AnnotationView getView()
           
 void run()
          The default implementation of this IAction method does nothing.
 
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

fView

private AnnotationView fView

fActions

private java.util.List fActions
Constructor Detail

SortAction

public SortAction(AnnotationView view)
Method Detail

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)