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)).
        toolBarManager - the tool bar manager to be added
        See Also:
      • getLockLayout

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

        int getStyle()
        Returns the style of the underlying cool bar widget.
        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.
        menuManager - the context menu manager, or null if none
        See Also:
      • 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.

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