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: 11
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: 11
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:Programatically invoke Editor
Next Topic:How to call data binding from a toolbar handler
Goto Forum:
  


Current Time: Tue Jun 27 07:12:51 GMT 2017

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

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