Community
Participate
Working Groups
See bug 302192, to take advantage of the new open file functionality introduced in 3.6M6 (bug 4922) the packages should add --launcher.defaultAction openFile to their eclipse.ini files. This argument tells the launcher that it should try to open a file when it receives a command line without any "-" arguments: eclipse myFile.txt Without this argument windows "Open With" integration to associate a file with eclipse doesn't work well. This affects all packages, not just the java package.
+1 Markus, let me know if you want a patch for the Java package or if you are going to make that change for all packages.
Also, the launcher and SWT need to agree on a name so that they can talk to each other. The launcher derives this from the name of the executable (remove the extension and capitalize the first letter) or the -name argument. SWT takes this from Display.setAppName, which is called by the workbench and the value is taken from the product exension point. I took a look at the org.eclipse.epp.package.java.product and it has: <property name="appName" value="Eclipse"> </property> which will agree with the default eclipse launcher. So I don't think you need to worry about the name. However, it might be a good idea to double check the other packages' product extension point to make sure they are the same.
(In reply to comment #1) > Markus, let me know if you want a patch for the Java package or if you are going > to make that change for all packages. I'll do that for all packages. It is easier for me to keep them in sync and this is an important change for *all* packages. (In reply to comment #2) > I took a look at the org.eclipse.epp.package.java.product and it has: > <property > name="appName" > value="Eclipse"> > </property> > which will agree with the default eclipse launcher. So I don't think you need > to worry about the name. However, it might be a good idea to double check the > other packages' product extension point to make sure they are the same. I will double check... my idea was that all packages should have the same appName, but who knows... maybe there was a change in one of the packages in the meantime.
Created attachment 170452 [details] Include launcher.defaultAction This patch includes --launcher.defaultAction openFile in all package product definitions (epp.product)
Patch applied to HEAD.
On Gtk/64-bit opening of files with the RC4 Java package seems to work.
Closing as FIXED (available since initial Helios release last year).