How to disable JDT's RunAs launch shortcut? [message #676758] |
Mon, 06 June 2011 08:39  |
Eclipse User |
|
|
|
I'm developing an eclipse plugin for LeJOS (Java for the Lego NXT brick). Currently, a leJOS project has both a leJOS nature and a JDT nature, where the leJOS nature is the first (primary) nature. I also implemented my own launch shortcut. However, when clicking the green play button, Eclipse makes me chose between "Run as Java Application" and "Run as LeJOS NXT Program" (the latter is my own launch shortcut). This is quite annoying for a user.
So is there any way to disable the JDT launch shortcut?
Note, that it doesn't make any sense to run Java code written for the Lego NXT with let's say Sun's JVM. Actually, there nothing comparable to a full fledged JVM. That's why we have our own launch shortcut, launch configuration delegate, etc. and it would make sense to disable JDT's launch shortcut.
|
|
|
(no subject) [message #676775 is a reply to message #676758] |
Mon, 06 June 2011 09:41   |
Eclipse User |
|
|
|
On 06.06.2011 14:39, Sven wrote:
> I'm developing an eclipse plugin for LeJOS (Java for the Lego NXT
> brick). Currently, a leJOS project has both a leJOS nature and a JDT
> nature, where the leJOS nature is the first (primary) nature. I also
> implemented my own launch shortcut. However, when clicking the green
> play button, Eclipse makes me chose between "Run as Java Application"
> and "Run as LeJOS NXT Program" (the latter is my own launch shortcut).
> This is quite annoying for a user.
>
> So is there any way to disable the JDT launch shortcut?
>
> Note, that it doesn't make any sense to run Java code written for the
> Lego NXT with let's say Sun's JVM. Actually, there nothing comparable
> to a full fledged JVM. That's why we have our own launch shortcut,
> launch configuration delegate, etc. and it would make sense to disable
> JDT's launch shortcut.
Did you try to specify your launcher on the Run/Debug > Launching >
Default Launchers preference page?
Dani
|
|
|
|
|
Re: (no subject) [message #676811 is a reply to message #676805] |
Mon, 06 June 2011 11:31  |
Eclipse User |
|
|
|
Update 2: my original complaint, that the green play buttons shows the menu every time has gone. Eclipse let's me chose once, and then reuses the created launch configurations. That's a good thing. I'm not sure anymore, what caused the trouble in the first place.
But I'm still trying to find out, how to make "Run as LeJOS Program" the default choice over "Run as Java Application".
|
|
|
Powered by
FUDForum. Page generated in 0.37955 seconds