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 11006 - ExplorerManager.setSelectedNode claims that a child is not under its parent
Summary: ExplorerManager.setSelectedNode claims that a child is not under its parent
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks: 10979
  Show dependency tree
 
Reported: 2001-04-03 17:17 UTC by _ ttran
Modified: 2008-12-22 23:43 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 _ ttran 2001-04-03 17:17:14 UTC
There is a bug in Form editor: IllegalArgumentException when every the user
invokes the customizer for 'border' property if the current value is "no border"
or an unknown border type.  The Bug Id is 10979.

The bug is timing dependent but reproducible in 90% of cases.  I inserted
println into the the code immediately after the exception is thrown by
ExplorerManager.  Looks like this is a bug in Explorer not in Form Editor.

P1 because it blocks an important functionality of the form editor


*** root = org.openide.nodes.AbstractNode@2c4b66[Name=null, displayName=null]
*** getExplorerManager().getRootContext() =
org.openide.nodes.AbstractNode@2c4b66[Name=null, displayName=null]
*** root.getChildren().getNodeCount() = 9
*** noBorder.getParentNode() = org.openide.nodes.AbstractNode@2c4b66[Name=null,
displayName=null]
*** getExplorerManager().getRootContext() == noBorder.getParentNode() = true
*** getExplorerManager().getRootContext().equals(noBorder.getParentNode()) = true



java.lang.IllegalArgumentException: A node selection cannot contain nodes ((No
Border)) not underneath the root (null).
at org.openide.explorer.ExplorerManager.setSelectedNodes(ExplorerManager.java:138)
at
org.netbeans.modules.form.editors2.BorderEditor$BorderPanel.setValue(BorderEditor.java:275)
at
org.netbeans.modules.form.editors2.BorderEditor.getCustomEditor(BorderEditor.java:174)
at org.netbeans.modules.form.FormCustomEditor.<init>(FormCustomEditor.java:145)
at
org.netbeans.modules.form.FormPropertyEditor.getCustomEditor(FormPropertyEditor.java:225)
at
org.openide.explorer.propertysheet.PropertyDetails.getPropertyCustomEditor(PropertyDetails.java:479)
at
org.openide.explorer.propertysheet.PropertyDisplayer$CustomPEListener.sheetButtonClicked(PropertyDisplayer.java:930)
Comment 1 David Strupl 2001-04-04 13:16:33 UTC
Trying to apply fix by Yarda.
Comment 2 David Strupl 2001-04-04 13:52:12 UTC
Fixed in [dev] and [release32].
Comment 3 Jan Chalupa 2001-05-06 08:20:57 UTC
Target milestone -> 3.2
Comment 4 Marian Mirilovic 2001-11-29 14:54:11 UTC
verified 
Comment 5 Quality Engineering 2003-07-01 16:30:49 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.