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 119696 - Double-click on a file does not open it
Summary: Double-click on a file does not open it
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: REGRESSION
Depends on: 119727
Blocks: 108923
  Show dependency tree
 
Reported: 2007-10-22 21:36 UTC by _ ludo
Modified: 2008-12-22 12:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ ludo 2007-10-22 21:36:12 UTC
Have nightly build of Nb 10/20/2007  (pretty close to Beta 1).

Create a NBM project type
In it, use the "File Type" wizard to create a new File type based on the"buggy" extension.
buggy DataLoader, DataNode, DataObject files  are created, as well as the resolver to load *.buggy files.
create a file foo.buggy to test the loader.
In the project node, use the "Install/Reload In Dev IDE" action to install this module in test mode.
Then double click on the foo.buggy file.
Only a "beep" sound is emitted, the file is not open.

If you use the "open" popup menu, the file is opened.

I am on Mac, JDK1.5

This used to work with Beta 1 or before, so some code has regressed in core I think.
Comment 1 _ ludo 2007-10-22 21:40:32 UTC
typo:

wanted to say "close to beta 2"

reproducible also with the *.ejs" extension handled by scriting/ejs module in NetBeans code base.

There is an OpenCookie on the dataobject.
Also, I tried:
   @Override
   public Action getPreferredAction () {
            System.out.println("ludododododod");
           return SystemAction.get(OpenAction.class);
         }

on the node, the "ludododododod" is printed on double click, but I keep hearing 
this "beep" sound, and nothing is opened. 
Comment 2 Jesse Glick 2007-10-22 22:33:06 UTC
Reproducible, but not if the fix for issue #108923 is reverted.
Comment 3 Petr Nejedly 2007-10-23 07:38:14 UTC
Well, it does work for me on most nodes.
Does the node in question add itself into its lookup?
If not, then it may be related to some problem in the lookup (which I haven't reported so far, ccing Yarda, he knows).
Comment 4 Petr Nejedly 2007-10-23 08:20:54 UTC
Anyway, thanks for the steps to reproduce. Now I can easily debug it...
Comment 5 Petr Nejedly 2007-10-23 08:57:46 UTC
Yes, there is some problem in lookup, logged as 119727.
If this should be really critical (works for most nodes even with this bug, so I don't think so), I can workaround the
lookup problem in the TreeView.
Comment 6 Jaroslav Tulach 2007-10-24 16:10:19 UTC
The lookup issue fixed this problem.
Comment 7 Petr Nejedly 2007-10-25 10:05:27 UTC
Ludo, can you verify on your file types?

Comment 8 _ ludo 2007-10-25 19:05:08 UTC
ejs works again now.