Skip to content
Snippets Groups Projects
Commit 610e6926 authored by Mark Prediger's avatar Mark Prediger
Browse files

uaalpax: new command parameter for debug mode added

parent 9782a34e
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,10 @@
icon="icons/newuaal_clss.png"
id="org.universaal.uaalpax.menu.newRunConfig"
style="push">
<commandParameter
id="org.universaal.uaalpax.commandparameters.runDebugMode"
name="Run/Debung mode">
</commandParameter>
</command>
</menuContribution>
</extension>
......
......@@ -45,11 +45,13 @@ import org.universaal.uaalpax.ui.dialogs.NewRunconfigDialog;
public class NewRunConfigHandler extends AbstractHandler {
public Object execute(ExecutionEvent event) throws ExecutionException {
createNewLaunchConfiguration(HandlerUtil.getActiveWorkbenchWindow(event).getShell());
String mode = event.getParameter("org.universaal.uaalpax.commandparameters.runDebugMode");
boolean debug = (mode != null && mode.toLowerCase().equals("debug"));
createNewLaunchConfiguration(HandlerUtil.getActiveWorkbenchWindow(event).getShell(), debug);
return null;
}
private void createNewLaunchConfiguration(Shell shell) {
private void createNewLaunchConfiguration(Shell shell, boolean debug) {
ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
ILaunchConfigurationType type = manager.getLaunchConfigurationType("org.eclipse.pde.ui.EquinoxLauncher");
......@@ -124,7 +126,7 @@ public class NewRunConfigHandler extends AbstractHandler {
// IStructuredSelection selection = new StructuredSelection(configuration);
DebugUITools.openLaunchConfigurationDialog(shell, configuration, DebugUIPlugin.getDefault()
.getLaunchConfigurationManager().getLaunchGroup(type, ILaunchManager.RUN_MODE).getIdentifier(),
.getLaunchConfigurationManager().getLaunchGroup(type, debug? ILaunchManager.DEBUG_MODE : ILaunchManager.RUN_MODE).getIdentifier(),
null);
// TODO
......
......@@ -2,6 +2,9 @@
<version>
<middleware>
<bundleset>
<bundle level="1">wrap:mvn:javax.xml.stream/stax-api/1.0-2</bundle>
<bundle level="1">wrap:mvn:javax.activation/activation/1.1</bundle>
<bundle level="1">wrap:mvn:javax.xml.bind/jaxb-api/2.1</bundle>
<bundle level="2">mvn:org.universAAL.middleware/mw.schemas/2.0.0</bundle>
<bundle level="3">mvn:org.universAAL.middleware/mw.interfaces.osgi/2.0.0</bundle>
<bundle level="4">wrap:mvn:org.json/json/20090211</bundle>
......@@ -21,6 +24,7 @@
<bundle level="18">mvn:org.universAAL.middleware/mw.data.representation.osgi/2.0.0</bundle>
<bundle level="19">mvn:org.jgroups/jgroups/3.3.0.Alpha1</bundle>
<bundle level="20">mvn:org.universAAL.middleware/mw.modules.communication.osgi/2.0.0</bundle>
<bundle level="20">wrap:mvn:org.bouncycastle/jce.jdk13/144</bundle>
<bundle level="21">mvn:org.universAAL.middleware/mw.connectors.communication.jgroups.osgi/2.0.0</bundle>
<bundle level="22">wrap:mvn:ch.ethz.iks.slp/jslp-osgi/1.0.2.RC5</bundle>
<bundle level="23">mvn:org.universAAL.middleware/mw.brokers.control.osgi/2.0.0</bundle>
......@@ -42,14 +46,14 @@
<features>
<bundleset name="UI bus">
<bundle>mvn:org.universAAL.ui/ui.dm/1.3.3-SNAPSHOT</bundle>
<bundle>mvn:org.universAAL.ui/ui.dm/1.3.4-SNAPSHOT</bundle>
<bundle>mvn:org.universAAL.ontology/ont.profile.ui.mainmenu/2.0.0</bundle>
<bundle>mvn:org.universAAL.ontology/ont.profile.userid/2.0.0</bundle>
<bundle>mvn:org.universAAL.ontology/ont.impairment/2.0.0</bundle>
mvn:org.universAAL.ontology/ont.profile.ui.preferences/1.3.6-SNAPSHOT
<bundle>mvn:org.universAAL.ontology/ont.profile.ui.preferences/1.3.6-SNAPSHOT</bundle>
</bundleset>
<bundleset name="Swing UI Handler">
<bundle>mvn:org.universAAL.ui/ui.dm/1.3.3-SNAPSHOT</bundle>
<bundle>mvn:org.universAAL.ui/ui.dm/1.3.4-SNAPSHOT</bundle>
<bundle>mvn:org.universAAL.ontology/ont.profile.ui.mainmenu/2.0.0</bundle>
<bundle>mvn:org.universAAL.ontology/ont.profile.userid/2.0.0</bundle>
<bundle>mvn:org.universAAL.ontology/ont.impairment/2.0.0</bundle>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment