How to pass command line argument to an RCP application [message #459903] |
Fri, 08 December 2006 09:39  |
Eclipse User |
|
|
|
Hi,
I want to pass a command-line argument (a file location) to my RCP
application.
So I have a script and call it like that: <script>.bat <argument>
In IPlatformRunnable, public Object run(Object args) I see the argument in
my debugger.
But how to proceed, what's the recommended way or what are the recommended
classes where to launch the Editor with the argument?
Kind Regards, Erwin
|
|
|
Re: How to pass command line argument to an RCP application [message #459908 is a reply to message #459903] |
Fri, 08 December 2006 11:09  |
Eclipse User |
|
|
|
String args[] = Platform.getApplicationArgs();
Returns an array of command line arguments not consumed by the framework.
Regards
Alexander
Erwin Margewitsch schrieb:
> Hi,
>
> I want to pass a command-line argument (a file location) to my RCP
> application.
>
> So I have a script and call it like that: <script>.bat <argument>
> In IPlatformRunnable, public Object run(Object args) I see the argument
> in my debugger.
>
> But how to proceed, what's the recommended way or what are the
> recommended classes where to launch the Editor with the argument?
>
> Kind Regards, Erwin
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02802 seconds