Interface ActionConfiguration


  • public interface ActionConfiguration
    The action configuration interface.
    Author:
    Mat Hansen
    • Method Detail

      • getActionById

        Optional<Action> getActionById​(java.lang.String id)
        Return an action callback by its action id. See Action.
        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