/** * Returns a new cool bar manager for the window. * <p> * By default this method calls <code>createCoolBarManager</code>. Subclasses * may override this method to provide an alternative implementation for the * cool bar manager. * </p> * * @param style swt style bits used to create the Coolbar * * @return a cool bar manager * @since 3.2 * @see #createCoolBarManager(int) */ protected ICoolBarManager createCoolBarManager2(int style) { return createCoolBarManager(style); }
/** * Configures this window to have a cool bar. * Does nothing if it already has one. * This method must be called before this window's shell is created. * * @param style the cool bar style * @since 3.0 */ protected void addCoolBar(int style) { if ((getShell() == null) && (toolBarManager == null) && (coolBarManager == null)) { coolBarManager = createCoolBarManager2(style); } }
/** * Configures this window to have a menu bar. * Does nothing if it already has one. * This method must be called before this window's shell is created. */ protected void addMenuBar() { if ((getShell() == null) && (menuBarManager == null)) { menuBarManager = createMenuManager(); } }
/** * Configures this window to have a status line. * Does nothing if it already has one. * This method must be called before this window's shell is created. */ protected void addStatusLine() { if ((getShell() == null) && (statusLineManager == null)) { statusLineManager = createStatusLineManager(); } }
if (getToolBarControl() == w) { if (!toolBarChildrenExist()) { hide = true; } else if (getCoolBarControl() == w) { if (!coolBarChildrenExist()) { hide = true; result.y += BAR_SIZE;
/** * Creates the trim widgets around the content area. * * @param shell the shell * @since 1.0 */ protected void createTrimWidgets(Shell shell) { if (menuBarManager != null) { shell.setMenuBar(menuBarManager.createMenuBar((Decorations) shell)); menuBarManager.updateAll(true); } if (showTopSeperator()) { seperator1 = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL); } // will create either a cool bar or a tool bar createToolBarControl(shell); createCoolBarControl(shell); createStatusLine(shell); }
/** * Configures this window to have a tool bar. * Does nothing if it already has one. * This method must be called before this window's shell is created. * @param style swt style bits used to create the Toolbar * @see ToolBarManager#ToolBarManager(int) * @see ToolBar for style bits */ protected void addToolBar(int style) { if ((getShell() == null) && (toolBarManager == null) && (coolBarManager == null)) { toolBarManager = createToolBarManager2(style); } }
/** * Returns a new tool bar manager for the window. * <p> * By default this method calls <code>createToolBarManager</code>. Subclasses * may override this method to provide an alternative implementation for the * tool bar manager. * </p> * * @param style swt style bits used to create the Toolbar * * @return a tool bar manager * @since 1.0 * @see #createToolBarManager(int) */ protected IToolBarManager createToolBarManager2(int style) { return createToolBarManager(style); }
if (getToolBarControl() == w) { if (!toolBarChildrenExist()) { hide = true; } else if (getCoolBarControl() == w) { if (!coolBarChildrenExist()) { hide = true; result.y += BAR_SIZE;
/** * Creates the trim widgets around the content area. * * @param shell the shell * @since 3.0 */ protected void createTrimWidgets(Shell shell) { if (menuBarManager != null) { boolean resizeHasOccurredBackup = this.resizeHasOccurred; shell.setMenuBar(menuBarManager.createMenuBar((Decorations) shell)); this.resizeHasOccurred = resizeHasOccurredBackup; menuBarManager.updateAll(true); } if (showTopSeperator()) { seperator1 = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL); } // will create either a cool bar or a tool bar createToolBarControl(shell); createCoolBarControl(shell); createStatusLine(shell); }
/** * Configures this window to have a status line. * Does nothing if it already has one. * This method must be called before this window's shell is created. */ protected void addStatusLine() { if ((getShell() == null) && (statusLineManager == null)) { statusLineManager = createStatusLineManager(); } }
/** * Configures this window to have a tool bar. * Does nothing if it already has one. * This method must be called before this window's shell is created. * @param style swt style bits used to create the Toolbar * @see ToolBarManager#ToolBarManager(int) * @see ToolBar for style bits */ protected void addToolBar(int style) { if ((getShell() == null) && (toolBarManager == null) && (coolBarManager == null)) { toolBarManager = createToolBarManager2(style); } }
/** * Returns a new tool bar manager for the window. * <p> * By default this method calls <code>createToolBarManager</code>. Subclasses * may override this method to provide an alternative implementation for the * tool bar manager. * </p> * * @param style swt style bits used to create the Toolbar * * @return a tool bar manager * @since 3.2 * @see #createToolBarManager(int) */ protected IToolBarManager createToolBarManager2(int style) { return createToolBarManager(style); }
if (getToolBarControl() == w) { if (!toolBarChildrenExist()) { hide = true; } else if (getCoolBarControl() == w) { if (!coolBarChildrenExist()) { hide = true; result.y += BAR_SIZE;
/** * Creates the trim widgets around the content area. * * @param shell the shell * @since 3.0 */ protected void createTrimWidgets(Shell shell) { if (menuBarManager != null) { boolean resizeHasOccurredBackup = this.resizeHasOccurred; shell.setMenuBar(menuBarManager.createMenuBar((Decorations) shell)); this.resizeHasOccurred = resizeHasOccurredBackup; menuBarManager.updateAll(true); } if (showTopSeperator()) { seperator1 = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL); } // will create either a cool bar or a tool bar createToolBarControl(shell); createCoolBarControl(shell); createStatusLine(shell); }
/** * Configures this window to have a menu bar. * Does nothing if it already has one. * This method must be called before this window's shell is created. */ protected void addMenuBar() { if ((getShell() == null) && (menuBarManager == null)) { menuBarManager = createMenuManager(); } }
/** * Configures this window to have a status line. * Does nothing if it already has one. * This method must be called before this window's shell is created. */ protected void addStatusLine() { if ((getShell() == null) && (statusLineManager == null)) { statusLineManager = createStatusLineManager(); } }
/** * Configures this window to have a cool bar. * Does nothing if it already has one. * This method must be called before this window's shell is created. * * @param style the cool bar style * @since 3.0 */ protected void addCoolBar(int style) { if ((getShell() == null) && (toolBarManager == null) && (coolBarManager == null)) { coolBarManager = createCoolBarManager2(style); } }
/** * Configures this window to have a tool bar. * Does nothing if it already has one. * This method must be called before this window's shell is created. * @param style swt style bits used to create the Toolbar * @see ToolBarManager#ToolBarManager(int) * @see ToolBar for style bits */ protected void addToolBar(int style) { if ((getShell() == null) && (toolBarManager == null) && (coolBarManager == null)) { toolBarManager = createToolBarManager2(style); } }
/** * Returns a new tool bar manager for the window. * <p> * By default this method calls <code>createToolBarManager</code>. Subclasses * may override this method to provide an alternative implementation for the * tool bar manager. * </p> * * @param style swt style bits used to create the Toolbar * * @return a tool bar manager * @since 3.2 * @see #createToolBarManager(int) */ protected IToolBarManager createToolBarManager2(int style) { return createToolBarManager(style); }