Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » launcher.openFile not working on RCP
launcher.openFile not working on RCP [message #1091777] Thu, 22 August 2013 00:26 Go to next message
Erick Fonseca is currently offline Erick Fonseca
Messages: 68
Registered: December 2011
Member
The command line argument --launcher.openFile, for opening a given file, is not working on my RCP. I tried setting it in a .ini file with

--launcher.defaultAction
openFile


but it didn't work. I also tried calling explicitly from the command line with

myRCP --launcher.openFile foo.txt


and it also didn't work.

Other command line arguments seem to work fine. For example, I use -data to set the workspace directory. I also defined a few arguments for my RCP and treat them in a class implementing IStartup.

I don't even know where the problem could be. Any suggestions?
Re: launcher.openFile not working on RCP [message #1092222 is a reply to message #1091777] Thu, 22 August 2013 13:37 Go to previous message
Erick Fonseca is currently offline Erick Fonseca
Messages: 68
Registered: December 2011
Member
After digging about launcher.openFile I found the answer: the app name and the launcher name must be the same.

The former is set in the product extension point (org.eclipse.core.runtime.products), as the appName property. The latter is simply the name of the executable, with a capital initial. So, I must either supply a -name command line argument to match the appName or (more sensibly) change the appName in the plugin.xml.

[Updated on: Thu, 22 August 2013 13:37]

Report message to a moderator

Previous Topic:Custom native launcher
Next Topic:Console text is smeared
Goto Forum:
  


Current Time: Sun Oct 26 04:36:05 GMT 2014

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

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