Interface IToolbarAction

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean canExecute​(java.lang.Object object)  
      org.eclipse.jface.action.Action getAction​(java.lang.Object currentObject, org.eclipse.jface.viewers.ISelectionProvider selectionProvider)
      Returns the action to add to the toolbar.
    • Method Detail

      • getAction

        org.eclipse.jface.action.Action getAction​(java.lang.Object currentObject,
                                                  org.eclipse.jface.viewers.ISelectionProvider selectionProvider)
        Returns the action to add to the toolbar.
        Parameters:
        currentObject - the currently edited object of the editor
        selectionProvider - the selection provider
        Returns:
        the action
      • canExecute

        boolean canExecute​(java.lang.Object object)
        Parameters:
        object - the currently edited object of the editor
        Returns:
        true, if the Action can be executed for the provided input