Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to pass command line argument to an RCP application
How to pass command line argument to an RCP application [message #459903] Fri, 08 December 2006 09:39 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Help menu
Next Topic:Can anyone tell me the relationship of job and thread?
Goto Forum:
  


Current Time: Tue Apr 15 00:43:58 EDT 2025

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

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

Back to the top