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 213560 - Node children not visible after expansion unless created with lookup
Summary: Node children not visible after expansion unless created with lookup
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-04 18:45 UTC by gbivins
Modified: 2012-06-07 14:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ABC File type tutorial with child node bug example (11.86 KB, application/x-zip-compressed)
2012-06-04 18:45 UTC, gbivins
Details
x.abc node with one children in favorites window (1.75 KB, image/png)
2012-06-06 06:45 UTC, Jaroslav Tulach
Details
7.1.2 node expansion not working (145.63 KB, image/png)
2012-06-06 12:33 UTC, gbivins
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gbivins 2012-06-04 18:45:44 UTC
Created attachment 120337 [details]
ABC File type tutorial with child node bug example

following the filetype integration tutorial:
http://platform.netbeans.org/tutorials/nbm-filetype.html


The child nodes for ABCDataObject's delegate node do not appear in the Favorites window after expansion.

The workaround is to modify the childfactory createNodeForKey method to create
and AbstractNode using the lookup constructor
http://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/AbstractNode.html#AbstractNode(org.openide.nodes.Children, org.openide.util.Lookup)

and specifying a lookup. In the attached example that demonstrates the bug,
the lookup of the ABCDataObject is passed into the constructor of the children nodes.

It is not documented as a requirement and I don't believe this was a requirement in previous netbeans API versions (<7.1).
Comment 1 Jaroslav Tulach 2012-06-06 06:44:27 UTC
I can see one child node. See the attached image.
Comment 2 Jaroslav Tulach 2012-06-06 06:45:22 UTC
Created attachment 120404 [details]
x.abc node with one children in favorites window
Comment 3 gbivins 2012-06-06 12:33:04 UTC
Created attachment 120426 [details]
7.1.2 node expansion not working
Comment 4 gbivins 2012-06-06 12:34:00 UTC
Interesting...I thought maybe it was due to the version so I up'd to 7.1.2 and I still have the issue. Are you using 7.2 beta or the trunk of NB?
Comment 5 Jaroslav Tulach 2012-06-07 14:21:00 UTC
I was using three day old build : e.g. from June 4th.