Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Custom program launcher options?
Custom program launcher options? [message #864936] Mon, 30 April 2012 06:36 Go to next message
Klara Ward is currently offline Klara WardFriend
Messages: 14
Registered: July 2009
Junior Member
Is there a way to create custom options for your program launcher (aka eclipse.exe/myapp.exe) ?

We're currently using our own main class that parses all options before calling org.eclipse.equinox.launcher.Main.

I'd like to add options like -help, -version (both of which will print some short info and then terminating) and -showversion that prints version info and then continues.

Using the eclipse launcher would be nice because we get 'restart after installing plugins' functionality.

Is this at all possible to achieve?


Klara,
Java Mission Control
Re: Custom program launcher options? [message #869287 is a reply to message #864936] Thu, 03 May 2012 07:20 Go to previous message
Klara Ward is currently offline Klara WardFriend
Messages: 14
Registered: July 2009
Junior Member
I'll answer my own questions:

Use org.eclipse.core.runtime.Platform.getApplicationArgs() "Returns the arguments not consumed by the framework implementation itself."
I added parsing of arguments to my IApplication implementation.
Previous Topic:How to call data binding from a toolbar handler
Next Topic:How do I use perspective placeholders correctly?
Goto Forum:
  


Current Time: Fri Apr 26 05:33:25 GMT 2024

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

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

Back to the top