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 142873 - [65cat] [ui] Navigator Panel behaves incorrectly for UML projects
Summary: [65cat] [ui] Navigator Panel behaves incorrectly for UML projects
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-05 05:20 UTC by esmithbss
Modified: 2009-05-25 21:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Open UML Project without any open diagrams. (97.85 KB, text/plain)
2008-08-05 05:21 UTC, esmithbss
Details
Image showing improperly labeled Navigator Panel (74.98 KB, text/plain)
2008-08-05 05:21 UTC, esmithbss
Details
Image showing UML project with open diagram (130.55 KB, text/plain)
2008-08-05 05:23 UTC, esmithbss
Details
Image showing Navigator with thumbnail sketch (114.13 KB, text/plain)
2008-08-05 05:24 UTC, esmithbss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2008-08-05 05:20:28 UTC
[ BUILD # : 200808021401 ]
[ JDK VERSION : 1.6.0_07 ]

When I open my UML Project, the Navigator Panel is set as "<title of
the first drawing> - Navigator" but doesn't contain any contents.  

When a diagram is opened, the Navigator panel title changes to
"Navigator" and contains a "thumbnail" of the diagram.

When the diagram is closed, the content is cleared out of the
navigator window.

(See Screencaptures)
Comment 1 esmithbss 2008-08-05 05:21:07 UTC
Created attachment 66545 [details]
Open UML Project without any open diagrams.
Comment 2 esmithbss 2008-08-05 05:21:52 UTC
Created attachment 66546 [details]
Image showing improperly labeled Navigator Panel
Comment 3 esmithbss 2008-08-05 05:23:11 UTC
Created attachment 66547 [details]
Image showing UML project with open diagram
Comment 4 esmithbss 2008-08-05 05:24:12 UTC
Created attachment 66548 [details]
Image showing Navigator with thumbnail sketch
Comment 5 Trey Spiva 2008-08-05 13:50:42 UTC
After looking at the Java nodes the name of the open navigator should be "<Top Component Display Name> - Navigator." 

Is the incorrect behavior that you are talking about is the fact that we do not have a navigator for closed diagrams?
Comment 6 esmithbss 2008-08-06 15:37:29 UTC
Not quite.

The error is in the naming of the navigator panel and when the name should be set/changed.

First is when the project is opened, but no diagram is opened, the Navigator should not be named for a specific diagram.
 Naming for a specific diagram, when the diagram has not been opened is incorrect.

The other is, as you noted.  The navigator name should be named appropriately for the current diagram.
 
Comment 7 esmithbss 2008-08-06 17:04:36 UTC
Not quite.

The error is in the naming of the navigator panel and when the name should be set/changed.

First is when the project is opened, but no diagram is opened, the Navigator should not be named for a specific diagram.
 Naming for a specific diagram, when the diagram has not been opened is incorrect.

The other is, as you noted.  The navigator name should be named appropriately for the current diagram.
 
Comment 8 Trey Spiva 2008-09-02 17:15:44 UTC
This is strange because I am not seeing the navigator being named unless the diagram is open.  Can you see if you can still replicate the problem?
Comment 9 Peter Lam 2008-09-02 17:35:06 UTC
with the latest UML daily build 20080902, here's what I see.
- when project is opened without any diagram open, the Navigator title is "Navigator" with blank window as content :
this is correct.
- when a diagram is opened, the Navigator title is still "Navigator" without displaying the diagram name : this is
INCORRECT. The content is displayed with an overview (or maybe called a thumbnail) of the diagram : this is correct. The
Navigator title is "<whatever is selected> - Navigator" : this is INCORRECT.
<whatever is selected> means whenever an object is selected. It should ALWAYS display the name of the diagram.
* if a class is selected, the class name is displayed.
* if the diagram is selected, the diagram name is displayed
- when the diagram is closed, the Navigator title is "Navigator" with blank window as content : this is correct.
Comment 10 Trey Spiva 2008-09-02 17:47:58 UTC
"if a class is selected, the class name is displayed."

Are you talking about when the class is selected in the diagram?  If that is what you are talking about I do not agree.  The diagram navigator is about the 
diagram not the individual components in the diagram.

"- when a diagram is opened, the Navigator title is still "Navigator" without displaying the diagram name : this is
INCORRECT. The content is displayed with an overview (or maybe called a thumbnail) of the diagram : this is correct. The
Navigator title is "<whatever is selected> - Navigator" : this is INCORRECT."

I am not seeing this.  When the diagram top component is selected, the navigator is show the name - <Diagram Name> - Navigator.  You are correct.  We 
are currently show the name of what ever is selected in the title.
Comment 11 Peter Lam 2008-09-02 17:57:08 UTC
Sorry, forgot to make the following clear. I meant the current situation is the following which is not correct. The
diagram name should always be displayed instead of whatever is selected.

* if a class is selected, the class name is displayed.
* if the diagram is selected, the diagram name is displayed