Interface ActionBar<V extends org.eclipse.jface.viewers.Viewer>

  • Type Parameters:
    V - the viewer type
    All Known Implementing Classes:
    TableActionBar, TableRendererActionBar

    public interface ActionBar<V extends org.eclipse.jface.viewers.Viewer>
    Callback interface for the creation of action bar composites.
    Author:
    Johannes Faltermeier
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void fillComposite​(org.eclipse.swt.widgets.Composite composite, V viewer)
      This method is called to fill the given Composite with action controls.
      int getActionCount()
      Get the number of currently registered actions.
      Optional<org.eclipse.swt.widgets.Control> getControlById​(java.lang.String id)
      Get a control by its action ID.
      int getControlCount()
      Get the number of currently registered controls.
      void updateActionBar()
      Updates the controls of this action bar.
    • Method Detail

      • fillComposite

        void fillComposite​(org.eclipse.swt.widgets.Composite composite,
                           V viewer)
        This method is called to fill the given Composite with action controls.
        Parameters:
        composite - the composite
        viewer - the AbstractTableViewer
      • updateActionBar

        void updateActionBar()
        Updates the controls of this action bar. For instance, this can include enabling or disabling controls dependent on whether actions can be executed.
      • getControlById

        Optional<org.eclipse.swt.widgets.Control> getControlById​(java.lang.String id)
        Get a control by its action ID.
        Parameters:
        id - the action ID to get the control for
        Returns:
        the control for the given action ID (if any)
      • getControlCount

        int getControlCount()
        Get the number of currently registered controls.
        Returns:
        the number of controls
      • getActionCount

        int getActionCount()
        Get the number of currently registered actions.
        Returns:
        the number of actions