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 141215 - diagram layout from cdfs & dependency diagram is not persisted
Summary: diagram layout from cdfs & dependency diagram is not persisted
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: _ jyothivasa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-22 19:09 UTC by Peter Lam
Modified: 2008-08-06 00:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
cdfs class diagram on reopen (52.82 KB, image/png)
2008-07-22 19:09 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-07-22 19:09:16 UTC
build 20080722

The default layout for cdfs on a class diagram is no longer the same after the diagram is reopened.

- create a UML Sample App
- expand the Model and bankpack package
- select the bankpack package and everything under bankpack
- CDFS to a class diagram
Result: diagram is created and opened
- just close the diagram w/o doing anything
- reopen the class diagram
Result: the layout is gone and everything is pretty much stacking on top of each other. see attached screenshot.
Comment 1 Peter Lam 2008-07-22 19:09:53 UTC
Created attachment 65268 [details]
cdfs class diagram on reopen
Comment 2 _ jyothivasa 2008-08-01 21:00:46 UTC
Fixed
http://hg.netbeans.org/uml-main/rev/8c07ee44b319
Comment 3 Quality Engineering 2008-08-04 03:58:33 UTC
Integrated into 'main-golden', available in build *200808040201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/8c07ee44b319
User: jyothivasa@netbeans.org
Log: Fix for #141215 CDFS now saves the diagram and its node positions. Diagram maintains its layout after reloading
Comment 4 _ jyothivasa 2008-08-04 20:36:14 UTC
Based on code review decision, I added a flag to save diagram only when we intend to save. DiagramEngine's layout can be
used in other situations where save is not necessary
http://hg.netbeans.org/uml-main/rev/7592887d46d1
Comment 5 Peter Lam 2008-08-06 00:18:31 UTC
verified in build 20080805.