When I assocciate some files with NB like .js or .php to have NB my favourite text editor, doubleclick them, then NB opens or comes to front as excpected. But, the "opened" file is not open in NB. When I drag it in then it works fine.
Product Version = NetBeans IDE 7.1 (Build 201201101530)
Operating System = Mac OS X version 10.7.2 running on x86_64
Java; VM; Vendor = 1.6.0_29
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.4-b02-402
Created attachment 117820 [details]
Patch - registering ApplicationListener
Patch that registers com.apple.eawt.ApplicationListener, but handleOpenFile is never called.
The patch works just in partly. Once applied I can associate a extension with NetBeans IDE and then it opens the IDE on open action on the file and then opens it in editor area. But it doesn't work if IDE is currently running. In that case it only pops IDE in the front and doesn't open anything.
*** Bug 222296 has been marked as a duplicate of this bug. ***