Returns the view specific menu bar constructed from
the command group given by the toolBarCommandGroupName or
its default

@return
323222
public JComponent getEditorToolBar(){
		CommandGroup commandGroup = getCommandGroup(getToolBarCommandGroupName());
		if(commandGroup == null){
			return null;
		}
		return commandGroup.createToolBar();
	}
524828
public int getHelpPageOptions(int iOptions)
    {
    	String strPreference = this.getProperty(ThinMenuConstants.USER_HELP_DISPLAY);
    	if ((strPreference == null) || (strPreference.length() == 0))
    		strPreference = this.getProperty(ThinMenuConstants.HELP_DISPLAY);
    	if (this.getHelpView() == null)
    		if (ThinMenuConstants.HELP_PANE.equalsIgnoreCase(strPreference))
    			strPreference = null;
    	if ((strPreference == null) || (strPreference.length() == 0))
		{
    		//if (this.getAppletScreen() != null)
    		//	strPreference = MenuConstants.HELP_WEB;
    		//else if ((applet.getHelpView() != null) && (applet.getHelpView().getBaseApplet() == applet))
    			strPreference = ThinMenuConstants.HELP_PANE;
    		//else
    		//	strPreference = MenuConstants.HELP_WINDOW;
		}
		if (ThinMenuConstants.HELP_WEB.equalsIgnoreCase(strPreference))
			iOptions = ThinMenuConstants.HELP_WEB_OPTION;
		else if (ThinMenuConstants.HELP_PANE.equalsIgnoreCase(strPreference))
			iOptions = ThinMenuConstants.HELP_PANE_OPTION;
		else if (ThinMenuConstants.HELP_WINDOW.equalsIgnoreCase(strPreference))
			iOptions = ThinMenuConstants.HELP_WINDOW_OPTION;
		else
			iOptions = ThinMenuConstants.HELP_PANE_OPTION;	// Default
    	return iOptions;
    }
282934
public String getScreenURL()
    {
        String strURL = super.getScreenURL();
        if (m_strMenu != null)
        strURL = this.addURLParam(strURL, DBParams.MENU, m_strMenu);
        else if ((this.getAppletScreen() != null) && (this.getAppletScreen().getScreenFieldView().getControl() != null))
        {
            String strMenu = this.getProperty(DBParams.MENU);
            if (strMenu == null)
                strMenu = Constants.BLANK;
            strURL = this.addURLParam(strURL, DBParams.MENU, strMenu);
        }
        return strURL;
    }
407429
protected JComponent createViewToolBar() {
    	if(getPageComponent() instanceof AbstractEditor){
    		AbstractEditor editor = (AbstractEditor)getPageComponent();
            return editor.getEditorToolBar();
    	}
    	return null;
    }
269065
private void showToolbarNavigationIcon() {
        if (isPreferenceFragmentShown() && isNavigationIconOverridden() && !isNavigationHidden() &&
                !(!isSplitScreen() && isButtonBarShown())) {
            displayHomeAsUp = isDisplayHomeAsUpEnabled();
            ActionBar actionBar = getSupportActionBar();

            if (actionBar != null) {
                actionBar.setDisplayHomeAsUpEnabled(true);
            }
        }
    }
705501
public function getToolbar($toolbar, $config = array())
    {
        if (is_string($toolbar)) {
            //if actorbar or menu alawys default to the base
            if (in_array($toolbar, array('actorbar', 'menubar'))) {
                $identifier = clone $this->getIdentifier();
                $identifier->path = array('controller','toolbar');
                $identifier->name = $toolbar;
                register_default(array('identifier' => $identifier, 'default' => 'ComBaseControllerToolbar'.ucfirst($toolbar)));
                $toolbar = $identifier;
            }
        }

        return parent::getToolbar($toolbar, $config);
    }
128249
public static I_CmsContextMenuCommand getContextMenuCommand() {

        return new I_CmsContextMenuCommand() {

            public void execute(
                CmsUUID structureId,
                final I_CmsContextMenuHandler handler,
                CmsContextMenuEntryBean bean) {

                CmsConfirmDialog dialog = new CmsConfirmDialog(
                    Messages.get().key(Messages.GUI_DIALOG_LOGOUT_TITLE_0),
                    Messages.get().key(Messages.GUI_DIALOG_LOGOUT_TEXT_0));
                dialog.setOkText(Messages.get().key(Messages.GUI_YES_0));
                dialog.setCloseText(Messages.get().key(Messages.GUI_NO_0));
                dialog.setHandler(new I_CmsConfirmDialogHandler() {

                    public void onClose() {

                        // nothing to do
                    }

                    public void onOk() {

                        String logoutTarget = CmsCoreProvider.get().link(CmsCoreProvider.get().getLoginURL())
                            + "?logout=true";
                        handler.leavePage(logoutTarget);
                    }
                });
                dialog.center();
            }

            public A_CmsContextMenuItem getItemWidget(
                CmsUUID structureId,
                I_CmsContextMenuHandler handler,
                CmsContextMenuEntryBean bean) {

                return null;
            }

            public boolean hasItemWidget() {

                return false;
            }
        };
    }
89878
private JSONObject getToolbarJson() throws JSONException {

        JSONObject result = new JSONObject();
        List<String> barItems = getHtmlWidgetOption().getButtonBarShownItems();
        String toolbar = CmsTinyMceToolbarHelper.createTinyMceToolbarStringFromGenericToolbarItems(barItems);
        result.put("toolbar", toolbar);
        String contextmenu = CmsTinyMceToolbarHelper.getContextMenuEntries(barItems);
        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(contextmenu)) {
            result.put("contextmenu", contextmenu);
        }
        return result;
    }
631042
public org.parosproxy.paros.view.MainMenuBar getMainMenuBar() {
		if (mainMenuBar == null) {
			mainMenuBar = new org.parosproxy.paros.view.MainMenuBar();
		}
		return mainMenuBar;
	}
221718
@InterfaceAudience.Private
    protected List<View> getViewsInGroup() {
        List<View> views = new ArrayList<View>();
        int slash = name.indexOf('/');
        if (slash > 0) {
            String prefix = name.substring(0, slash + 1);
            for (View view : database.getAllViews()) {
                if (view.name.startsWith(prefix))
                    views.add(view);
            }
        } else
            views.add(this);
        return views;
    }
78618
public function getViewPath()
    {
        if ($this->_viewPath === null) {
            $ref = new ReflectionClass($this);
            $this->_viewPath = dirname(dirname($ref->getFileName())) . '/views/menus';
        }
        return $this->_viewPath;
    }
1113237
private JToolBar getToolbarLeft() {
		if (footerToolbarLeft == null) {
			footerToolbarLeft = new JToolBar();
			footerToolbarLeft.setEnabled(true);
			footerToolbarLeft.setFloatable(false);
			footerToolbarLeft.setRollover(true);
			footerToolbarLeft.setName("Footer Toolbar Left");
			footerToolbarLeft.setBorder(BorderFactory.createEmptyBorder());
		}
		return footerToolbarLeft;
	}
1053125
private JToolBar getToolbar()
    {
        if (toolbar == null)
        {
            toolbar = new JToolBar("Classification");
            toolbar.add(getTagsButton());
            toolbar.add(getClassesButton());
        }
        return toolbar;
    }
1234412
protected String htmlToolBar() {

        boolean showToolBar = getMetadata().isSearchable();
        Iterator<CmsListMultiAction> itMultiActions = getMetadata().getMultiActions().iterator();
        while (!showToolBar && itMultiActions.hasNext()) {
            CmsListMultiAction multiAction = itMultiActions.next();
            showToolBar = showToolBar || multiAction.isVisible();
        }
        if (!showToolBar) {
            // prevent empty table if there is nothing to display
            return "";
        }
        StringBuffer html = new StringBuffer(512);
        html.append("<table width='100%' cellspacing='0' style='margin-bottom: 5px'>\n");
        html.append("\t<tr>\n");
        html.append(m_metadata.htmlSearchBar());
        html.append(m_metadata.htmlMultiActionBar());
        html.append("\t</tr>\n");
        html.append("</table>\n");
        return html.toString();
    }
154761
public Project.Layouts.Layout.Bars.BarGroup.Bar createProjectLayoutsLayoutBarsBarGroupBar()
   {
      return new Project.Layouts.Layout.Bars.BarGroup.Bar();
   }
713884
View getTargetView() {
    View view = screenshotTarget;
    if (!screenshotChildrenOnly) {
      while (view.getRootView() != view) {
        view = view.getRootView();
      }
    }

    return view;
  }
442419
private ZapMenuItem getMenuToolsFilter() {
		if (menuToolsFilter == null) {
			menuToolsFilter = new ZapMenuItem("menu.tools.filter");
			menuToolsFilter.addActionListener(new java.awt.event.ActionListener() { 

				@Override
				public void actionPerformed(java.awt.event.ActionEvent e) {    

					FilterDialog dialog = new FilterDialog(getView().getMainFrame());
				    dialog.setAllFilters(filterFactory.getAllFilter());
				    dialog.showDialog(false);

					boolean startThread = false;
					for (Filter filter : filterFactory.getAllFilter()) {
						if (filter.isEnabled()) {
							startThread = true;
							break;
						}
					}

					if (startThread) {
						if (timerFilterThread == null) {
							timerFilterThread = new TimerFilterThread(filterFactory.getAllFilter());
							timerFilterThread.start();
						}
					} else if (timerFilterThread != null) {
						timerFilterThread.setStopped();
						timerFilterThread = null;
					}
				}
			});

		}
		return menuToolsFilter;
	}