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.
In version 1.15 of org.netbeans.core.windows.view.ui.DocumentsDlg the TopComponentNode#getName() was changed to getHtmlDisplayName(). It affects UI tests because they just scan JList and in fact use VisualizerNode.toString() to for example select a document in the list. Above change caused that toString() returns an empty string. I think TopComponentNode should also override getName or getDisplayName. Build 20050620-0647, WindowsXP, JDK1.5.0_04.
How about this: public String getName() { return tc.getName(); } ?
I would prefer public String getDisplayName() { return tc.getDisplayName(); } or both because form doesn't have name set (see below). HTMLDN=<html>AbstractLines.java<font color='!Tree.selectionBorderColor'> [Up-to- date; 1.10] DN=<html>AbstractLines.java<font color='!Tree.selectionBorderColor'> [Up-to-date ; 1.10] N=<html>AbstractLines.java<font color='!Tree.selectionBorderColor'> [Up-to-date; 1.10] ---------------------------------------- HTMLDN=Main.java DN=Main.java N=Main.java ---------------------------------------- HTMLDN=DocumentsDlg DN=DocumentsDlg N=
Bug in form I think (note that it doesn't even show the file extension!), but I can add the displayName override too.
committed Up-To-Date 1.16 core/windows/src/org/netbeans/core/windows/view/ui/DocumentsDlg.java
Verified in build 20050621-1826. Thanks.