Package org.eclipse.ui.menus

Examples of org.eclipse.ui.menus.CommandContributionItemParameter


  @SuppressWarnings("unchecked")
  @Override
  public void createContributionItems(IServiceLocator serviceLocator, IContributionRoot additions)
    {
    CommandContributionItemParameter p=null;
    CommandContributionItem item=null;
    for(String config : ConnectorConfiguration.getConfigurationNames())
      {
      p = new CommandContributionItemParameter(serviceLocator, "",
        "net.zero.smarttrace.rcp.connect", SWT.PUSH);
      p.label = config;
      p.parameters=new HashMap<String, String>();
      p.parameters.put("net.zero.smarttrace.rcp.connect.pconfig", config);
     
View Full Code Here


  /**
   *
   */
  public XVRActionProviderHTML() {
    this.set_as_active_html = new CommandContributionItem(
        new CommandContributionItemParameter(
            PlatformUI.getWorkbench().getActiveWorkbenchWindow(),
            ID_ACTIVE_HTML, "org.xvr.xvrengine.command.set_active_html",
            CommandContributionItem.STYLE_PUSH));
  }
View Full Code Here

  /**
   *
   */
  public XVRActionProviderFolder(){
    this.add_existing_res = new CommandContributionItem(
        new CommandContributionItemParameter(
            PlatformUI.getWorkbench().getActiveWorkbenchWindow(),
            ID_ADD_RES, "org.xvr.xvrengine.command.addExistingRes",
            CommandContributionItem.STYLE_PUSH));
  }
View Full Code Here

  private IContributionItem remove_res;

 
  public XVRActionProviderEdit() {
    this.remove_res = new CommandContributionItem(
        new CommandContributionItemParameter(
            PlatformUI.getWorkbench().getActiveWorkbenchWindow(),
            ID_REMOVE_RES, "org.xvr.xvrengine.command.removeRes",
            CommandContributionItem.STYLE_PUSH));
  }
View Full Code Here

       
        IWorkbenchWindow active_win = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
       
        HashMap<String, String> params = new HashMap<String, String>();
        params.put(Build.EVENT_PARAM_ID, "true");
        this.build = new CommandContributionItemParameter(active_win,
            ID_PRJ_BUILD,
            "org.xvr.xvrengine.command.build",
            params,
            null,
            null,
            null,
            "Build",
            "Build",
            "Build the selected project", CommandContributionItem.STYLE_PUSH, null, true);
       
        params = new HashMap<String, String>();
        params.put(Run.EVENT_PARAM_ID, "true");
    this.run = new CommandContributionItemParameter(active_win,
        ID_PRJ_RUN,
        "org.xvr.xvrengine.command.run",
        params,
        null,
        null,
        null,
        "Run",
        "Run",
        "Run the selected project",
        CommandContributionItem.STYLE_PUSH,
        null,
        true);
   
    params = new HashMap<String, String>();
        params.put(Debug.EVENT_PARAM_ID, "true");
    this.debug = new CommandContributionItemParameter(active_win,
        ID_PRJ_DEBUG,
        "org.xvr.xvrengine.command.debug",
        params,
        null,
        null,
        null,
        "Debug",
        "Debug",
        "Debug the selected project",
        CommandContributionItem.STYLE_PUSH,
        null,
        true);
   
   
    this.set_as_active_prj = new CommandContributionItem(
        new CommandContributionItemParameter(
            active_win,
            ID_PRJ_SET_ACT_PRJ, "org.xvr.xvrengine.command.set_active_prj",
            CommandContributionItem.STYLE_PUSH));
    this.saros_share = new CommandContributionItemParameter(active_win, ID_PRJ_SAROS_SHARE, "de.fu_berlin.inf.dpp.ui.commands.ShareResource", CommandContributionItem.STYLE_PUSH);
  }
View Full Code Here

  /**
   *
   */
  public XVRActionProviderS3D() {
    this.set_as_active_s3d = new CommandContributionItem(
        new CommandContributionItemParameter(
            PlatformUI.getWorkbench().getActiveWorkbenchWindow(),
            ID_S3D_ACTIVE, "org.xvr.xvrengine.command.set_active_s3d",
            CommandContributionItem.STYLE_PUSH));
    }
View Full Code Here

  public void init(ICommonActionExtensionSite aSite) {
    super.init(aSite);

    IWorkbenchWindow win = PlatformUI.getWorkbench().getActiveWorkbenchWindow();

    this.new_file = new CommandContributionItemParameter(
        win,
        ID_SUBMENU_NEW_FILE, "org.xvr.xvrengine.command.new_s3d",
        CommandContributionItem.STYLE_PUSH);

    this.new_folder = new CommandContributionItemParameter(
        win,
        ID_SUBMENU_NEW_FOLDER, "org.xvr.xvrengine.command.new_folder",
        CommandContributionItem.STYLE_PUSH);
   
    Map<String, String> args = new HashMap<String, String>();
    args.put("org.xvr.xvrengine.command.parameter.projects_only", "false");
    args.put("org.xvr.xvrengine.command.parameter.resources_only", "true");
   
    this.other = new CommandContributionItemParameter(win, ID_SUBMENU_OTHER, "org.xvr.xvrengine.command.new", args, null, null, null, "Other", null, "Create a new resource", CommandContributionItem.STYLE_PUSH, null, true);
 
View Full Code Here

    for (File file : fileSet) {
      Map<String, String> params = new TreeMap<String, String>();
      params.put(LoadRuleCommandHandler.fileNameKey, file.getAbsolutePath());

      CommandContributionItemParameter itemParam = new CommandContributionItemParameter(//
          PlatformUI.getWorkbench(), // service_locator
          "edu.zao.fire.recentFiles" + index, // ID of the
                            // contribution item
          "edu.zao.fire.commands.loadRuleDirectly", // ID of the
                                // command
View Full Code Here

  }
 
  protected CommandContributionItem createCommandContribution(String commandId) {
    IWorkbenchWindow svcLocator = getPage().getWorkbenchWindow();
    return new CommandContributionItem(
      new CommandContributionItemParameter(svcLocator, null, commandId, CommandContributionItem.STYLE_PUSH));
  }
View Full Code Here

        return o1.getLabel().compareTo(o2.getLabel());
      }
    });
   
    for (Operator op : ops) {
      CommandContributionItemParameter param =
        new CommandContributionItemParameter(
            PlatformUI.getWorkbench(), null,
            "net.sf.logsaw.ui.commands.ShowFilterSettingsCommand"//$NON-NLS-1$
            CommandContributionItem.STYLE_PUSH);
      param.label = op.getLabel();
      Map map = new HashMap();
View Full Code Here

TOP

Related Classes of org.eclipse.ui.menus.CommandContributionItemParameter

Copyright © 2018 www.massapicom. 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.