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 132674 - takes 2 open actions to open the diagram
Summary: takes 2 open actions to open the diagram
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Thuy.d Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-12 01:17 UTC by Peter Lam
Modified: 2008-06-16 18:54 UTC (History)
0 users

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 Peter Lam 2008-04-12 01:17:56 UTC
build 20080411

The 1st right-click Open or double-click does not open the diagram from the project tree. The 2nd right-click Open or
double-click will do.

- create a uml project
- create a diagram (activity, class or sequence diagram)
- create a couple of elements in the diagram
- save and close the diagram
- open the diagram with double-click or right-click Open
Result: the 1st time won't work. Have to do it the 2nd time.
Comment 1 Thuy.d Nguyen 2008-06-11 22:48:55 UTC
There was a flaw in the showDiagram(diagramFilename) method, i.e, the opened diagram's top component was recreated based
on the value of m_CurretnDiagram variable which was not set correctly the first time users clicked on Open diagram. 
Fixed the code to get the diagram information from the proxy diagram instead.

changeset 504c8939f14b in uml-main
details: http://hg.netbeans.org/uml-main?cmd=changeset;node=504c8939f14b
description:
	Fix issue 132674: takes 2 open actions to open the diagram.
Comment 2 Peter Lam 2008-06-16 18:54:45 UTC
verified in build 20080616