E
- the type of elements managed by the historypublic class HistoryDropDownAction<E>
extends org.eclipse.jface.action.Action
Modifier and Type | Class and Description |
---|---|
static class |
HistoryDropDownAction.History<E>
Represents the underlying history for the
HistoryDropDownAction . |
Constructor and Description |
---|
HistoryDropDownAction(HistoryDropDownAction.History<E> history)
Constructs a
HistoryDropDownAction on the given history. |
Modifier and Type | Method and Description |
---|---|
protected void |
addMenuEntries(org.eclipse.jface.action.IMenuManager manager)
Allows subclasses to place additional menu entries to the history
drop-down.
|
protected void |
configureHistoryListAction(org.eclipse.jface.action.IAction action)
Configures the history list action.
|
protected org.eclipse.jface.action.IAction |
getClearHistoryAction()
Returns a 'clear history' action.
|
protected java.lang.String |
getHistoryListDialogMessage()
Returns the message for the history list dialog.
|
protected java.lang.String |
getHistoryListDialogTitle()
Returns the title for the history list dialog.
|
protected int |
getMaxEntriesInDropDown()
Returns the maximum number of entries in the history drop-down.
|
protected org.eclipse.swt.widgets.Shell |
getShell()
Returns the shell to use as the parent shell of the history list dialog.
|
void |
run() |
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
public HistoryDropDownAction(HistoryDropDownAction.History<E> history)
HistoryDropDownAction
on the given history.history
- not null
public void run()
run
in interface org.eclipse.jface.action.IAction
run
in class org.eclipse.jface.action.Action
protected void configureHistoryListAction(org.eclipse.jface.action.IAction action)
action
- never null
protected java.lang.String getHistoryListDialogTitle()
null
)protected java.lang.String getHistoryListDialogMessage()
null
)protected org.eclipse.jface.action.IAction getClearHistoryAction()
HistoryDropDownAction.History.setHistoryEntries(List)
with an empty list.null
,
in which case no 'clear history' action will be contributed to the
history drop-down)protected void addMenuEntries(org.eclipse.jface.action.IMenuManager manager)
manager
- never null
protected int getMaxEntriesInDropDown()
protected org.eclipse.swt.widgets.Shell getShell()
null
)Copyright (c) 2014, 2019 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0