This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 208038

Summary: Opening a file assocciated with NB7.1 does not open file
Product: utilities Reporter: markuszeller
Component: Open FileAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: normal CC: jgwill, smcguffee
Priority: P3 Keywords: USABILITY
Version: 7.3   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: Patch - registering ApplicationListener

Description markuszeller 2012-02-03 08:47:05 UTC
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
Comment 1 Jaroslav Havlin 2012-04-04 15:10:58 UTC
Created attachment 117820 [details]
Patch - registering ApplicationListener

Patch that registers com.apple.eawt.ApplicationListener, but handleOpenFile is never called.
Comment 2 Jiri Rechtacek 2012-05-25 16:32:33 UTC
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.
Comment 3 Jaroslav Havlin 2012-11-19 08:04:37 UTC
*** Bug 222296 has been marked as a duplicate of this bug. ***
Comment 4 Jaroslav Havlin 2014-05-28 05:19:00 UTC
*** Bug 244146 has been marked as a duplicate of this bug. ***