/** * 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 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 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 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); } }
/** * 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 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); } }
/** * 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); } }
/** * 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 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 1.0 */ protected void addCoolBar(int style) { if ((getShell() == null) && (toolBarManager == null) && (coolBarManager == null)) { coolBarManager = createCoolBarManager2(style); } }
Shell shell = getShell(); boolean contentsWasEnabled = contents.getEnabled(); MenuManager manager = getMenuBarManager();
Shell shell = getShell(); boolean contentsWasEnabled = contents.getEnabled(); MenuManager manager = getMenuBarManager();
Shell shell = getShell(); boolean contentsWasEnabled = contents.getEnabled(); MenuManager manager = getMenuBarManager();