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);
}