Add launcher for SWTCalculatorUI on Mac
Mac needs VM argument -XstartOnFirstThread to start SWT application.
Change-Id: Ieb4a4f87c6eb1086df38dc63c0f3fd607e08ceef
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
diff --git a/org.eclipse.example.calc/SWTCalculatorUI-Mac.launch b/org.eclipse.example.calc/SWTCalculatorUI-Mac.launch
new file mode 100644
index 0000000..66e7080
--- /dev/null
+++ b/org.eclipse.example.calc/SWTCalculatorUI-Mac.launch
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.eclipse.example.calc/src/org/eclipse/example/calc/internal/ui/swt/CalculatorUI.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
+<mapEntry key="[run]" value="org.eclipse.jdt.launching.localJavaApplication"/>
+</mapAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.example.calc.internal.ui.swt.CalculatorUI"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.example.calc"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-XstartOnFirstThread"/>
+</launchConfiguration>
diff --git a/org.eclipse.example.calc/SWTCalculatorUI.launch b/org.eclipse.example.calc/SWTCalculatorUI.launch
index 66e7080..3c0cb07 100644
--- a/org.eclipse.example.calc/SWTCalculatorUI.launch
+++ b/org.eclipse.example.calc/SWTCalculatorUI.launch
@@ -11,5 +11,4 @@
</mapAttribute>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.example.calc.internal.ui.swt.CalculatorUI"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.example.calc"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-XstartOnFirstThread"/>
</launchConfiguration>