Skip to main content


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
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
Previous Topic:Webinar: Cross Platform Development and Testing with Eclipse - Dec. 1
Next Topic:Get LabelProvider from active View
Goto Forum:
  


Current Time: Thu Apr 25 21:15:53 GMT 2024

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

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

Back to the top