Class WorkbenchToolBarPresenter


  • @ApplicationScoped
    public class WorkbenchToolBarPresenter
    extends Object
    Presenter for WorkbenchToolBar that mediates changes to the Workbench ToolBar in response to changes to the selected WorkbenchPart. This implementation is specific to GWT. An alternative implementation should be considered for use within Eclipse.
    • Constructor Detail

      • WorkbenchToolBarPresenter

        public WorkbenchToolBarPresenter()
    • Method Detail

      • getView

        public com.google.gwt.user.client.ui.IsWidget getView()
      • getHeight

        public int getHeight()
      • hide

        public void hide()
      • show

        public void show()
      • addItemsFor

        public void addItemsFor​(org.uberfire.mvp.PlaceRequest place)
        Adds all the ToolBar items associated with the given place to this toolbar. The exact list of items added is remembered, and can be removed later by a call to removeItemsFor(PlaceRequest).

        The toolbar items are filtered for the current user subject to their security requirements.

        This method becomes a no-op when any of the following is true:

        • The place doesn't have an associated Activity
        • The place's Activity is not a WorkbenchActivity
        • The place's WorkbenchActivity doesn't have a ToolBar
      • addWorkbenchItem

        public void addWorkbenchItem​(org.uberfire.workbench.model.toolbar.ToolBar toolBar)
      • addWorkbenchPerspective

        public void addWorkbenchPerspective​(org.uberfire.workbench.model.toolbar.ToolBar toolBar)
      • clearWorkbenchItems

        public void clearWorkbenchItems()
      • clearWorkbenchPerspectiveItems

        public void clearWorkbenchPerspectiveItems()