public abstract class GanttViewerListeningAction extends ViewerAbstractAction implements CurrentViewListener
SELECTED_KEY
Constructor and Description |
---|
GanttViewerListeningAction(Viewer viewer,
java.lang.String iD,
java.lang.String name,
javax.swing.Icon icon,
javax.swing.KeyStroke key,
java.lang.String shortDescription,
java.lang.String longDescription)
Builds a
GanttViewerListeningAction . |
Modifier and Type | Method and Description |
---|---|
void |
currentViewChanged(CurrentViewChangedEvent event)
Listens for current view changes to update the action.
|
actionPerformed, getContextualAction, getID, getViewer, isAvailable
getAccelerator, getAcceleratorText, getIcon, getLongDescription, getMnemonic, getName, getShortDescription, setAccelerator, setIcon, setIcon, setLongDescription, setMnemonic, setName, setShortDescription
public GanttViewerListeningAction(Viewer viewer, java.lang.String iD, java.lang.String name, javax.swing.Icon icon, javax.swing.KeyStroke key, java.lang.String shortDescription, java.lang.String longDescription)
GanttViewerListeningAction
.viewer
- The viewer.iD
- ID of the action.name
- Name of the action.icon
- Icon of the action.key
- Accelerator of the action.shortDescription
- Short description of the action.longDescription
- Long description of the action.public void currentViewChanged(CurrentViewChangedEvent event)
currentViewChanged
in interface CurrentViewListener
event
- The current view changed event.