/** * 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); }
/** * 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); }
/** * 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); }