Skip to content

Commit d6e5f62

Browse files
committed
trying define unique LaunchConfigurationType for every Laumch
http://stackoverflow.com/questions/19157302; add 2 special icons; disable LitCoffee Editor as it should be definied in plugin where MarkDown Editor is (that would add strong dependency)
1 parent 9f2bcd6 commit d6e5f62

File tree

4 files changed

+52
-10
lines changed

4 files changed

+52
-10
lines changed
476 Bytes
Loading
293 Bytes
Loading

org.nodeclipse.debug/plugin.xml

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,31 @@
2222
modes="run, debug"
2323
name="Node Application">
2424
</launchConfigurationType>
25-
<!-- node run/debug with monitor (not yet used)
2625
<launchConfigurationType
2726
delegate="org.nodeclipse.debug.launch.LaunchConfigurationDelegate"
28-
id="org.nodeclipse.debug.launch.LaunchTypeWithMonitor"
27+
id="org.nodeclipse.debug.launch.LaunchConfigurationTypeNodeWithMonitor"
2928
modes="run, debug"
3029
name="Node with monitor">
3130
</launchConfigurationType>
32-
-->
31+
<launchConfigurationType
32+
delegate="org.nodeclipse.debug.launch.LaunchConfigurationDelegate"
33+
id="org.nodeclipse.debug.launch.LaunchConfigurationTypeCoffee"
34+
modes="run, debug"
35+
name="Coffee">
36+
</launchConfigurationType>
37+
<launchConfigurationType
38+
delegate="org.nodeclipse.debug.launch.LaunchConfigurationDelegate"
39+
id="org.nodeclipse.debug.launch.LaunchConfigurationTypeCoffeeCompile"
40+
modes="run, debug"
41+
name="Coffee --compile">
42+
</launchConfigurationType>
43+
<launchConfigurationType
44+
delegate="org.nodeclipse.debug.launch.LaunchConfigurationDelegate"
45+
id="org.nodeclipse.debug.launch.LaunchConfigurationTypeTypescriptCompiler"
46+
modes="run, debug"
47+
name="Typescript Compiler">
48+
</launchConfigurationType>
49+
3350
<launchConfigurationType
3451
id="org.nodeclipse.debug.launch.LaunchType$StandaloneV8"
3552
delegate="org.nodeclipse.debug.launch.StandaloneV8LaunchTypeWrapper"
@@ -47,7 +64,30 @@
4764
configTypeID= "org.nodeclipse.debug.launch.LaunchConfigurationType"
4865
icon= "icons/node.png"
4966
id= "org.nodeclipse.debug.launch.LaunchConfigurationTypeImage" >
50-
</launchConfigurationTypeImage>
67+
</launchConfigurationTypeImage>
68+
<launchConfigurationTypeImage
69+
configTypeID= "org.nodeclipse.debug.launch.LaunchConfigurationTypeNodeWithMonitor"
70+
icon= "icons/node_with_monitor.png"
71+
id= "org.nodeclipse.debug.launch.LaunchConfigurationTypeNodeWithMonitor.image" >
72+
</launchConfigurationTypeImage>
73+
<launchConfigurationTypeImage
74+
configTypeID= "org.nodeclipse.debug.launch.LaunchConfigurationTypeCoffee"
75+
icon= "icons/coffee.png"
76+
id= "org.nodeclipse.debug.launch.LaunchConfigurationTypeCoffee.image" >
77+
</launchConfigurationTypeImage>
78+
<launchConfigurationTypeImage
79+
configTypeID= "org.nodeclipse.debug.launch.LaunchConfigurationTypeTypescriptCompiler"
80+
icon= "icons/coffee_compile.png"
81+
id= "org.nodeclipse.debug.launch.LaunchConfigurationTypeTypescriptCompiler.image" >
82+
</launchConfigurationTypeImage>
83+
<!-- TODO tsc
84+
<launchConfigurationTypeImage
85+
configTypeID= "org.nodeclipse.debug.launch.LaunchConfigurationTypeCoffeeCompile"
86+
icon= "icons/coffee_compile.png"
87+
id= "org.nodeclipse.debug.launch.LaunchConfigurationTypeCoffeeCompile.image" >
88+
</launchConfigurationTypeImage>
89+
-->
90+
5191
<launchConfigurationTypeImage
5292
configTypeID= "org.nodeclipse.debug.launch.LaunchType$StandaloneV8"
5393
icon= "icons/node.png"
@@ -95,12 +135,12 @@
95135
point= "org.eclipse.debug.ui.launchShortcuts" >
96136
<shortcut
97137
class= "org.nodeclipse.debug.launch.LaunchShortcutWithMonitor"
98-
icon= "icons/node.png"
138+
icon= "icons/node_with_monitor.png"
99139
id= "org.nodeclipse.debug.launch.LaunchShortcutWithMonitor"
100140
label= "Node with monitor"
101141
modes= "run, debug" >
102142
<configurationType
103-
id= "org.nodeclipse.debug.launch.LaunchConfigurationType" >
143+
id= "org.nodeclipse.debug.launch.LaunchConfigurationTypeNodeWithMonitor" >
104144
</configurationType>
105145
<contextualLaunch>
106146
<enablement>
@@ -136,7 +176,7 @@
136176
label= "coffee"
137177
modes= "run, debug" >
138178
<configurationType
139-
id= "org.nodeclipse.debug.launch.LaunchConfigurationType" >
179+
id= "org.nodeclipse.debug.launch.LaunchConfigurationTypeCoffee" >
140180
</configurationType>
141181
<contextualLaunch>
142182
<enablement>
@@ -171,12 +211,12 @@
171211
point= "org.eclipse.debug.ui.launchShortcuts" >
172212
<shortcut
173213
class= "org.nodeclipse.debug.launch.LaunchShortcutCoffeeCompile"
174-
icon= "icons/coffee.png"
214+
icon= "icons/coffee_compile.png"
175215
id= "org.nodeclipse.debug.launch.LaunchShortcutCoffeeCompile"
176216
label= "coffee --compile"
177217
modes= "run, debug" >
178218
<configurationType
179-
id= "org.nodeclipse.debug.launch.LaunchConfigurationType" >
219+
id= "org.nodeclipse.debug.launch.LaunchConfigurationTypeCoffeeCompile" >
180220
</configurationType>
181221
<contextualLaunch>
182222
<enablement>
@@ -216,7 +256,7 @@
216256
label= "tsc"
217257
modes= "run, debug" >
218258
<configurationType
219-
id= "org.nodeclipse.debug.launch.LaunchConfigurationType" >
259+
id= "org.nodeclipse.debug.launch.LaunchConfigurationTypeTypescriptCompiler" >
220260
</configurationType>
221261
<contextualLaunch>
222262
<enablement>

org.nodeclipse.ui/plugin.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
id="org.nodeclipse.ui.editors.NodeEditor"
6666
name="Node Editor">
6767
</editor>
68+
<!-- class is not on plugin classpath!
6869
<editor
6970
class="winterwell.markdown.editors.MarkdownEditor"
7071
contributorClass="winterwell.markdown.editors.ActionBarContributor"
@@ -74,6 +75,7 @@
7475
id="org.nodeclipse.ui.editors.LitCoffeeEditor"
7576
name="LitCoffee (Markdown) Editor">
7677
</editor>
78+
-->
7779
<!-- TODO above Editor for litcoffee fails
7880
compare to
7981
<editor

0 commit comments

Comments
 (0)