eclipse.exitdata in 3.5 [message #498664] |
Tue, 17 November 2009 23:17 |
Daniel Messages: 34 Registered: July 2009 |
Member |
|
|
Hi,
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,
Daniel
The snippet below shows the code I am using:
<snip>
//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
PlatformUI.getWorkbench().restart();
</snip>
commandLine contains the following before the restart:
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Djava.class.path=/Demo.app/Contents/MacOS/../../../plugins/ org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-os
macosx
-ws
carbon
-arch
x86
-showsplash
-launcher
/Demo.app/Contents/MacOS/Demo
-name
TEK-Demo
--launcher.library
/Demo.app/Contents/MacOS/../../../plugins/org.eclipse.equino x.launcher.carbon.macosx_1.0.200.v20090520-1835/eclipse_1206 .so
-startup
/Demo.app/Contents/MacOS/../../../plugins/org.eclipse.equino x.launcher_1.0.201.R35x_v20090715.jar
-keyring
/Users/username/.eclipse_keyring
-showlocation
-vm
/System/Library/Frameworks/JavaVM.framework
-m
MODE
-vmargs
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Djava.class.path=/Demo.app/Contents/MacOS/../../../plugins/ org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
|
|
|
Powered by
FUDForum. Page generated in 0.03405 seconds