Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.ICoolBarManager.find()


    if ((coolItemToolBarMgr != null) && (!isAdjunctType)) {
      return coolItemToolBarMgr;
    }

    // Search for toolBarId in the cool Bar manager
    IContributionItem cbItem = coolBarManager.find(toolBarId);
    // If there hasn't been a tool bar contribution item created for this
    // tool bar
    // id then create one. Otherwise retrieve the tool bar contribution
    // item
    if (cbItem instanceof IToolBarContributionItem) {
View Full Code Here


        /* package */boolean containsCoolItem(String id) {
            ICoolBarManager cbManager = getCoolBarManager();
            if (cbManager == null) {
        return false;
      }
            IContributionItem cbItem = cbManager.find(id);
            if (cbItem == null) {
        return false;
      }
            //@ issue: maybe we should check if cbItem is visible?
            return true;
View Full Code Here

                    action);

            bars.removeAdjunctContribution(actionContribution);

            // remove a coolitem for the toolbar id if it exists      
            IContributionItem cbItem = coolBarMgr.find(toolBarId);
            if (cbItem != null) {
        coolBarMgr.remove(cbItem);
      }

            //      activeManager = cbItem.getToolBarManager(); 
View Full Code Here

      return null;
    }

    // add the editor group if the app did not add it already,
    // otherwise the references to it below will fail
    if (coolBarManager.find(IWorkbenchActionConstants.GROUP_EDITOR) == null) {
      coolBarManager.add(new GroupMarker(
          IWorkbenchActionConstants.GROUP_EDITOR));
    }
    if (toolBarContributionItem == null) {
      IContributionItem foundItem = coolBarManager.find(type);
View Full Code Here

    if (coolBarManager.find(IWorkbenchActionConstants.GROUP_EDITOR) == null) {
      coolBarManager.add(new GroupMarker(
          IWorkbenchActionConstants.GROUP_EDITOR));
    }
    if (toolBarContributionItem == null) {
      IContributionItem foundItem = coolBarManager.find(type);
      if ((foundItem instanceof IToolBarContributionItem)) {
        toolBarContributionItem = (IToolBarContributionItem) foundItem;
        coolItemToolBarMgr = toolBarContributionItem.getToolBarManager();
        if (coolItemToolBarMgr == null) {
          coolItemToolBarMgr = actionBarPresentation.createToolBarManager();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.