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 02:36 Go to next message
Klara Ward is currently offline Klara Ward
Messages: 9
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 03:20 Go to previous message
Klara Ward is currently offline Klara Ward
Messages: 9
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: Thu Aug 21 16:11:35 EDT 2014

Powered by FUDForum. Page generated in 0.01491 seconds