Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to get program arguments from RAP application
icon5.gif  How to get program arguments from RAP application [message #508493] Tue, 19 January 2010 08:49 Go to next message
Rustam  is currently offline Rustam Friend
Messages: 20
Registered: January 2010
Junior Member
Is there some way to get command line program arguments from RAP application ?

Unfortunately IEntryPoint.createUI has no argument which refer to command line arguments whereas Equinox IApplication has IApplicationContext.

Thanks !
Re: How to get program arguments from RAP application [message #508543 is a reply to message #508493] Tue, 19 January 2010 11:47 Go to previous messageGo to next message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
What do you mean by "Command line arguments"? Do refer to URL
parameters? If so, these can be read them using
RWT.getRequest().getParameters()

Regards,
Stefan.


Rustam schrieb:
> Is there some way to get command line program arguments from RAP
> application ?
> Unfortunately IEntryPoint.createUI has no argument which refer to
> command line arguments whereas Equinox IApplication has
> IApplicationContext.
>
> Thanks !
Re: How to get program arguments from RAP application [message #508806 is a reply to message #508493] Wed, 20 January 2010 11:58 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
In RAP there is no IApplicationContext yet, but we hope to resolve the
issue [1] in the near future.

Have you tried to delve into the IApplicationContext implementation and
do the same as is done there?

BTW, what do you need to program arguments for?

HTH
Rüdiger
--
Rüdiger Herrmann
http://eclipsesource.com


[1] 277689: IApplication support
https://bugs.eclipse.org/bugs/show_bug.cgi?id=277689

On 19.01.2010 09:49, Rustam wrote:
> Is there some way to get command line program arguments from RAP
> application ?
> Unfortunately IEntryPoint.createUI has no argument which refer to
> command line arguments whereas Equinox IApplication has
> IApplicationContext.
>
> Thanks !
Re: How to get program arguments from RAP application [message #508929 is a reply to message #508806] Wed, 20 January 2010 18:11 Go to previous message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
In the meantime, you could use Platform.getApplicationArgs.

Regards,
Benny

Rüdiger Herrmann wrote:
> In RAP there is no IApplicationContext yet, but we hope to resolve the
> issue [1] in the near future.
>
> Have you tried to delve into the IApplicationContext implementation and
> do the same as is done there?
>
> BTW, what do you need to program arguments for?
>
> HTH
> Rüdiger


--
Benjamin Muskalla | EclipseSource Karlsruhe
http://www.eclipsesource.com | http://twitter.com/eclipsesource
Previous Topic:Wizard's background colour
Next Topic:How to use lables from IDialogConstants for use with RCP and RAP (SingleSource)
Goto Forum:
  


Current Time: Fri Oct 11 03:40:59 GMT 2024

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

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

Back to the top