Program arguments with Eclipse 3.3M5eh [message #198375] |
Wed, 07 March 2007 16:45 |
Eclipse User |
|
|
|
Originally posted by: mrnone2000.yahoo.fr
Hi,
I'm currently using the Eclipse 3.3M5 and i would like to get the program
arguments.
With the previous version of Eclipse 3.2.1 i used the code below :
public class PlatformRunnable implements IPlatformRunnable {
public Object run(Object args) throws Exception {
String[] myVar = (String[])args;
...
}
}
If my RCP application was launched like "eclipse.exe temp second", i was
getting the parameters "temp" and "second".
Now with the Eclipse 3.3 version i'm using IApplication instead of
IPlatformRunnable that is a deprecated interface.
I'm getting the program arguments thanks to the IApplicationContext
parameter from the start() method. However i'm receiving a set of strange
strings which are -launcher d:\Eclipse\eclipse -name Eclipse 600 temp
second. Only the two last parameters are significants.
How can you only get the good parameters? In fact how do you have the same
behavior like in the Eclipse 3.2.
Thanks for helping
|
|
|
Powered by
FUDForum. Page generated in 0.11135 seconds