Examples of find()


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

            public void run() {

                IContributionManager bar = mapEditorSite.getActionBars().getStatusLineManager();
                if (bar == null)
                    return;
                StatusBarButton label = (StatusBarButton) bar.find(StatusBarButton.CRS_ITEM_ID);
                if (label == null) {
                    label = new StatusBarButton(StatusBarButton.CRS_ITEM_ID, full);
                    bar.appendToGroup(StatusLineManager.MIDDLE_GROUP, label);
                    label.setVisible(true);
                    bar.update(true);
View Full Code Here

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

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

                    if( groupName.equals( Constants.M_TOOL)){
                        groupName = "map";
                    }
                    IMenuManager targetMenu = manager.findMenuUsingPath(root);
                    if (targetMenu != null) {
                        IContributionItem find = targetMenu.find(groupName);
                        if ( find!=null && find instanceof GroupMarker ){
                            //targetMenu.appendToGroup(groupName, action); //$NON-NLS-1$
                            targetMenu.appendToGroup(groupName, tool.getAction());
                            targetMenu.setVisible(true);
                        }else{
View Full Code Here

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

            WorkbenchWindow window = (WorkbenchWindow) associatedWindow;
            IStatusLineManager statusLine = window.getStatusLineManager();
            // TODO implicit dependency on IDE's action builder
            // @issue implicit dependency on IDE's action builder
            if (statusLine != null) { // this can be null if we're exiting
                IContributionItem item = statusLine
                        .find("ModeContributionItem"); //$NON-NLS-1$
                if (item instanceof StatusLineContributionItem) {
                    return ((StatusLineContributionItem) item);
                }
            }
View Full Code Here

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

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

      toolsMenu.add(new Separator());
      IAction preferences = getAction(ActionFactory.PREFERENCES.getId());
      preferences.setImageDescriptor(OwlUI.getImageDescriptor("icons/elcl16/preferences.gif")); //$NON-NLS-1$
      toolsMenu.add(preferences);
      if (Application.IS_MAC) {
        IContributionItem item = toolsMenu.find(ActionFactory.PREFERENCES.getId());
        if (item != null)
          item.setVisible(false);
      }
    }
  }
View Full Code Here

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

      public void run() {
        fIsPreviewVisible = !fIsPreviewVisible;
        fSashForm.setWeights(fIsPreviewVisible ? THREE_SASH_WEIGHTS : TWO_SASH_WEIGHTS);
        fBottomSash.setVisible(fIsPreviewVisible);
        fSashForm.layout();
        dialogToolBar.find(previewActionId).update(IAction.TOOL_TIP_TEXT);

        /* Select and Show News if required */
        if (fIsPreviewVisible && fResultViewer.getTable().getItemCount() > 0) {

          /* Select first News if required */
 
View Full Code Here

Examples of org.eclipse.jface.internal.provisional.action.ICoolBarManager2.find()

          }
          String id = contributionMem
              .getString(IWorkbenchConstants.TAG_ID);

          // Prevent duplicate items from being read back in.
          IContributionItem existingItem = coolBarMgr.find(id);
          if ((id != null) && (existingItem != null)) {
            if (Policy.DEBUG_TOOLBAR_DISPOSAL) {
              System.out
                  .println("Not loading duplicate cool bar item: " + id); //$NON-NLS-1$
            }
View Full Code Here

Examples of org.eclipse.jface.preference.PreferenceManager.find()

        }
    }

    protected boolean showPreferencePage(Composite composite) {
        PreferenceManager manager = PlatformUI.getWorkbench().getPreferenceManager();
        IPreferenceNode node = manager.find("org.eclipse.jdt.ui.preferences.JavaBasePreferencePage").findSubNode(
                "org.eclipse.jdt.debug.ui.preferences.VMPreferencePage");
        PreferenceManager manager2 = new PreferenceManager();
        manager2.addToRoot(node);
        final PreferenceDialog dialog = new PreferenceDialog(composite.getShell(), manager2);
        final boolean[] result = new boolean[] { false };
View Full Code Here

Examples of org.eclipse.jface.resource.LocalResourceManager.find()

    checkHashMaps();
    BoldFontDescriptor desc = (BoldFontDescriptor)descriptors.get(boldFont);
    if (desc != null) {
      LocalResourceManager resourceManager = manager.getResourceManager(display);
      resourceManager.destroyFont(desc);
      if (resourceManager.find(desc) == null) {
        descriptors.remove(boldFont);
        validateHashMaps();
      }
      return true;
     
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.