Package org.eclipse.jface.action

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


    IContributionItem[] items = fManager.getItems();
    for (IContributionItem item : items) {
      if (item instanceof ToolBarContributionItem) {
        IToolBarManager toolBarManager = ((ToolBarContributionItem) item).getToolBarManager();
        if (toolBarManager != null) {
          IContributionItem result = toolBarManager.find(id);
          if (result != null && result instanceof CoolBarActionContributionitem)
            return (CoolBarActionContributionitem) result;
        }
      }
    }
View Full Code Here


            // create a coolitem for the toolbar id if it does not yet exist       
            IToolBarManager toolBarManager = bars.getToolBarManager(toolBarId);

            // Check to see if the group already exists
            IContributionItem groupMarker = toolBarManager.find(toolGroupId);
            // Add a group marker if one does not exist
            if (groupMarker == null) {
                toolBarManager.add(new Separator(toolGroupId));
            }
            IContributionItem refItem = findAlphabeticalOrder(toolGroupId,
View Full Code Here

            // retreive the toolbar from the action bars.
            IToolBarManager toolBar = bars.getToolBarManager(toolBarId);

            // Check to see if the group already exists
            IContributionItem groupMarker = toolBar.find(toolGroupId);
            // Add a group marker if one does not exist
            if (groupMarker == null) {
                // @issue should this be a GroupMarker?
                toolBar.add(new Separator(toolGroupId));
            }
View Full Code Here

    synchronized (myPage) {
      // check if the actions are already there, if not, create them
      IActionBars bars = myPage.getSite().getActionBars();
      IToolBarManager mgr = bars.getToolBarManager();

      editAction = ((ActionContributionItem) mgr.find(EDITACTIONID));
      if (editAction != null)
        ((EditAction) editAction.getAction()).setSource(this);
      else {
        editAction = new ActionContributionItem(new EditAction(
            UIText.RepositoryPropertySource_EditConfigButton,
View Full Code Here

    IContributionItem[] items = fManager.getItems();
    for (IContributionItem item : items) {
      if (item instanceof ToolBarContributionItem) {
        IToolBarManager toolBarManager = ((ToolBarContributionItem) item).getToolBarManager();
        if (toolBarManager != null) {
          IContributionItem result = toolBarManager.find(id);
          if (result != null && result instanceof CoolBarActionContributionitem)
            return (CoolBarActionContributionitem) result;
        }
      }
    }
View Full Code Here

     
      IMenuManager menuMgr = getViewSite().getActionBars().getMenuManager();
     
      menuMgr.add(updateAction);
     
      IContributionItem checkUpdatesItem = mgr.find(CheckUpdatesActionDelegate.ID);
      if( checkUpdatesItem != null )
        checkUpdatesItem.setVisible(false); // hide Check for Updates action
    }
  }
 
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.