Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to relaunch the RCP Application?
How to relaunch the RCP Application? [message #464429] Mon, 05 March 2007 05:27 Go to next message
Eclipse UserFriend
Originally posted by: jayam.balasubramaniam.gmail.com

Hi all,

I want to relaunch my application to take the different command line
argument.I used IPlatform.EXIT_RELAUNCH but the application is not started
up again.
1.How to relaunch my application?
2.What are the steps i need to follow?

Thanks,
Jayam
Re: How to relaunch the RCP Application? [message #464440 is a reply to message #464429] Tue, 06 March 2007 10:10 Go to previous messageGo to next message
Stefan Zugal is currently offline Stefan ZugalFriend
Messages: 59
Registered: July 2009
Member
Hi,

you can use IWorkbench.restart() to restart the workbench - I guess this
should work for your RCP application too.

HTH,
Stefan

Jayam wrote:
> Hi all,
>
> I want to relaunch my application to take the different command line
> argument.I used IPlatform.EXIT_RELAUNCH but the application is not
> started up again.
> 1.How to relaunch my application?
> 2.What are the steps i need to follow?
> Thanks,
> Jayam
>
Re: How to relaunch the RCP Application? [message #464445 is a reply to message #464440] Tue, 06 March 2007 13:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jayam.balasubramaniam.gmail.com

Thanks Stefan!

i don't want to restart the application,i want to relaunch the
application,because if i restart the application it will take same command
line argument but i want my application to take different commad line
argument.I think this is possible only if we relaunch the application.

How we can make the application restart or relaunch to take different
commandline arguments?
For example i don't want splashscreen while startup of the application(i
used -noSplash as command line argument) ,after some process i am
restarting the application now i want to show the splashscreen.So how i
can implement this?


Thanks,
Jayam
Re: How to relaunch the RCP Application? [message #464448 is a reply to message #464445] Tue, 06 March 2007 16:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 11235813.despammed.com

Jayam schrieb:
> i don't want to restart the application,i want to relaunch the
> application,because if i restart the application it will take same
> command line argument but i want my application to take different commad
> line argument.I think this is possible only if we relaunch the application.

I don't think that there's a restart/relaunch difference.

> For example i don't want splashscreen while startup of the application(i
> used -noSplash as command line argument) ,after some process i am
> restarting the application now i want to show the splashscreen.So how i
> can implement this?

You could change the corresponding lines in the config.ini and then
restart the workbench. Like you do with the locale change, you remember?

Carmen
Re: How to relaunch the RCP Application? [message #464610 is a reply to message #464429] Mon, 12 March 2007 15:42 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Javam,
See this message I posted back in February:
http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/m sg20658.html

The problem is probably that you are not setting the "eclipse.exitdata" property
with the new command line.

-Andrew

Jayam wrote:
> Hi all,
>
> I want to relaunch my application to take the different command line
> argument.I used IPlatform.EXIT_RELAUNCH but the application is not
> started up again.
> 1.How to relaunch my application?
> 2.What are the steps i need to follow?
> Thanks,
> Jayam
>
Previous Topic:Can FindReplaceAction use IFindReplaceTarget.isEditable?
Next Topic:How To Ensure Single Instance of J2ME Application on PocketPC
Goto Forum:
  


Current Time: Wed Oct 09 13:14:34 GMT 2024

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

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

Back to the top