Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How do I programmatically add a launch config to the run history?
How do I programmatically add a launch config to the run history? [message #269847] Thu, 02 September 2004 12:34 Go to next message
Eclipse UserFriend
Hi,
I have a wizard that creates a new Java project and populates it with
Java files. I also create a launch configuration for it.
How can i programmatically set this to be the last run configuration?
i.e. so that the user just has to press the green run button or press F9
to launch the project without having to select the launch.

Thanks,
Niall
Re: How do I programmatically add a launch config to the run history? [message #269876 is a reply to message #269847] Thu, 02 September 2004 15:14 Go to previous messageGo to next message
Eclipse UserFriend
There is no API for setting the last launch. It is controlled internally via
the actual order of launching. Allowing API to change this could be
confusing to users (i.e. why has my last launch changed when I did not
launch anything?).

Darin

"Niall Murphy" <nmurphy@ie.ibm.com> wrote in message
news:ch7hs9$cae$1@eclipse.org...
> Hi,
> I have a wizard that creates a new Java project and populates it with Java
> files. I also create a launch configuration for it.
> How can i programmatically set this to be the last run configuration? i.e.
> so that the user just has to press the green run button or press F9 to
> launch the project without having to select the launch.
>
> Thanks,
> Niall
Re: How do I programmatically add a launch config to the run history? [message #270182 is a reply to message #269876] Sat, 04 September 2004 11:43 Go to previous message
Eclipse UserFriend
Darin Wright wrote:
> There is no API for setting the last launch. It is controlled internally via
> the actual order of launching. Allowing API to change this could be
> confusing to users (i.e. why has my last launch changed when I did not
> launch anything?).
>
> Darin
>
> "Niall Murphy" <nmurphy@ie.ibm.com> wrote in message
> news:ch7hs9$cae$1@eclipse.org...
>
>>Hi,
>>I have a wizard that creates a new Java project and populates it with Java
>>files. I also create a launch configuration for it.
>>How can i programmatically set this to be the last run configuration? i.e.
>>so that the user just has to press the green run button or press F9 to
>>launch the project without having to select the launch.
>>
>>Thanks,
>>Niall
>
>
>
I see why it would be a bad thing to have it available too easily.
But I still need to do it.
What if i start launching their project automaticaly but kill it before
it starts? ;)
Previous Topic:How to use ResourceLocator
Next Topic:[NEWSGROUP] - Dedicated "Project" and "Newcomer" Discussion Groups
Goto Forum:
  


Current Time: Tue May 06 18:04:49 EDT 2025

Powered by FUDForum. Page generated in 0.03338 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top