Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » eclipse.exitdata in 3.5
eclipse.exitdata in 3.5 [message #498664] Tue, 17 November 2009 23:17
Daniel is currently offline DanielFriend
Messages: 34
Registered: July 2009

I am trying to achieve an action triggered restart of an RCP app
(PlatformUI.getWorkbench().restart()) with slightly altered programm
arguments. I am basically following the change of the -data argument in
the OpenWorkspaceAction. Somehow the programm arguments are ignored
after the relaunch, any hints?

I would have expected the "-m MODE" argument to be contained in the
Application Arguments (Platform.getApplicationArgs())

Thanks in advance and kind regards,


The snippet below shows the code I am using:

//from the action's run method
System.setProperty(PROP_EXIT_CODE,IApplication.EXIT_RELAUNCH .toString());
// buildCommandline() basically is a copy of the OpenWorkspaceAction's
buildCommandLine() method
System.setProperty(PROP_EXIT_DATA, buildCommandline());

// restart

commandLine contains the following before the restart:
-Djava.class.path=/ org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
/ x.launcher.carbon.macosx_1.0.200.v20090520-1835/eclipse_1206 .so
/ x.launcher_1.0.201.R35x_v20090715.jar
-Djava.class.path=/ org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
Previous Topic:Webinar: Cross Platform Development and Testing with Eclipse - Dec. 1
Next Topic:Get LabelProvider from active View
Goto Forum:

Current Time: Sat Oct 10 19:47:30 GMT 2015

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

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