Interface ActionConfiguration
-
public interface ActionConfigurationThe action configuration interface.- Author:
- Mat Hansen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Action>getActionById(java.lang.String id)Return an action callback by its action id.java.util.Collection<Action>getActions()Return all actions contained in this configuration.ActionControlCreator<? extends org.eclipse.swt.widgets.Control>getControlCreator(Action action)Returns the control creator callback for a given action.java.util.Collection<org.eclipse.jface.bindings.keys.KeyStroke>getKeyStrokesFor(Action action)Returns the list of key sequences for a given action.booleanhasControlFor(Action action)Returns whether an action has a control.booleanhasKeyStrokesFor(Action action)Returns whether key sequences for a given action exist.
-
-
-
Method Detail
-
getActionById
Optional<Action> getActionById(java.lang.String id)
Return an action callback by its action id. SeeAction.- Parameters:
id- the ID of the action to return- Returns:
- the action instance or null
-
getActions
java.util.Collection<Action> getActions()
Return all actions contained in this configuration.- Returns:
- a collection of actions
-
hasKeyStrokesFor
boolean hasKeyStrokesFor(Action action)
Returns whether key sequences for a given action exist.- Parameters:
action- the action to get the key sequences for.- Returns:
- true in case there are key sequences, otherwise false
-
getKeyStrokesFor
java.util.Collection<org.eclipse.jface.bindings.keys.KeyStroke> getKeyStrokesFor(Action action)
Returns the list of key sequences for a given action.- Parameters:
action- the action to return key sequences for.- Returns:
- a collection of key sequences
-
hasControlFor
boolean hasControlFor(Action action)
Returns whether an action has a control.- Parameters:
action- the action to check for a control- Returns:
- true in case there is a control configured, otherwise false
-
getControlCreator
ActionControlCreator<? extends org.eclipse.swt.widgets.Control> getControlCreator(Action action)
Returns the control creator callback for a given action.- Parameters:
action- the action to return the callback for- Returns:
- a control creator callback (if any), null otherwise
-
-