| java.lang.Object org.eclipse.ui.internal.layout.TrimToolBarBase
All known Subclasses: org.eclipse.ui.internal.EditorAreaTrimToolBar, org.eclipse.ui.internal.ViewStackTrimToolBar,
TrimToolBarBase | abstract public class TrimToolBarBase implements IWindowTrim(Code) | | This control provides common UI functionality for trim elements
that wish to use a ToolBarManager-based implementation.
It provides the following features:
Drag affordance and handling:
- The ToolBar is contained within a CoolBar/Item to provide the same
drag handle affordance as the rest of the trim
- Drag handling is provided to allow rearrangement within a trim side or
to other sides, depending on the values returned by
IWindowTrim.getValidSides
Context Menu:
- A "Dock on" menu item is provided to allow changing the side, depending on the values returned by
IWindowTrim.getValidSides
- A "Close" menu item is provided to allow the User to close (hide) the trim element,
based on the value returned by
IWindowTrim.isCloseable
since: 3.3 since: |
contextToolItem | protected ToolItem contextToolItem(Code) | | |
orientation | protected int orientation(Code) | | |
tbMgr | protected ToolBarManager tbMgr(Code) | | |
TrimToolBarBase | protected TrimToolBarBase(String id, int curSide, WorkbenchWindow wbw)(Code) | | Create a new trim UI handle for a particular IWindowTrim item
Parameters: layout - the TrimLayout we're being used in Parameters: trim - the IWindowTrim we're acting on behalf of Parameters: curSide - the SWT side that the trim is currently on |
dispose | public void dispose()(Code) | | |
dock | public void dock(int dropSide)(Code) | | |
getControl | public Control getControl()(Code) | | |
getCurrentSide | public int getCurrentSide()(Code) | | The side the trm is currently on |
getHeightHint | public int getHeightHint()(Code) | | |
getValidSides | public int getValidSides()(Code) | | |
getWidthHint | public int getWidthHint()(Code) | | |
handleClose | public void handleClose()(Code) | | |
hookControl | abstract public void hookControl(ToolBarManager mgr)(Code) | | Hook any necessary listeners to the new ToolBar instance.
NOTE: Clients should add a dispose listener if necessary to
unhook listeners added through this call.
Parameters: mgr - The ToolBarManager whose control is to be hooked |
initToolBarManager | abstract public void initToolBarManager(ToolBarManager mgr)(Code) | | Initialize the ToolBarManger for this instance. We create a
new ToolBarManager whenever we need to and this gives the
derived class a chance to define the ICI's and context
menu...
Parameters: mgr - The manager to initialize |
isCloseable | public boolean isCloseable()(Code) | | |
isResizeable | public boolean isResizeable()(Code) | | |
update | public void update(boolean changed)(Code) | | Force the toobar to re-synch to the model
Parameters: changed - true if changes have occurred in the structure |
|
|