Interface ICoolBarManager

    • Method Detail

      • add

        void add​(IToolBarManager toolBarManager)
        A convenience method to add a tool bar as a contribution item to this cool bar manager. Equivalent to add(new ToolBarContributionManager(toolBarManager)).
        Parameters:
        toolBarManager - the tool bar manager to be added
        See Also:
        ToolBarContributionItem
      • getLockLayout

        boolean getLockLayout()
        Returns whether the layout of the underlying cool bar widget is locked.
        Returns:
        true if cool bar layout is locked, false otherwise
      • getStyle

        int getStyle()
        Returns the style of the underlying cool bar widget.
        Returns:
        the style of the cool bar
      • setContextMenuManager

        void setContextMenuManager​(IMenuManager menuManager)
        Sets the context menu of this cool bar manager to the given menu manager.
        Parameters:
        menuManager - the context menu manager, or null if none
        See Also:
        getContextMenuManager()
      • setLockLayout

        void setLockLayout​(boolean value)
        Locks or unlocks the layout of the underlying cool bar widget. Once the cool bar is locked, cool items cannot be repositioned by the user.

        Note that items can be added or removed programmatically even while the cool bar is locked.

        Parameters:
        value - true to lock the cool bar, false to unlock