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 79297

Summary: Save dialog does not include diagram name from project tree on exiting ide with modified diagram
Product: uml Reporter: Peter Lam <petersl>
Component: GeneralAssignee: Craig Conover <conover>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Peter Lam 2006-06-28 00:45:06 UTC
Problem reproducible on winxp and solaris 10 sparc and should be on other
platforms too.
This dialog did not come up on a previous coco build (eg, 060202) when exiting
ide with a modified diagram open. Only the Save dialog prompting to save the
project instead. In this build, 2 Save dialogs comes up: 1st one for the
modified diagram, 2nd for the project.

Repro steps:
- create a uml project of any type
- create a diagram of any type, eg, class diagram
- create and name some elements in the diagram
- do not save the diagram and select File->Exit
Result: the 1st Save dialog comes up promptint to save the diagram but the
diagram name displayed is the physical file name that includes the numbers used
by UML project repository (see attached snapshot exit-ide-modify-diagram.jpg).
This dialog did not come up from the previous builds.

This dialog should be eliminated and any modified diagrams should be saved
automatically if the Save or Save All is selected on the Save dialog for the
project(s) before IDE exits.
Comment 1 Alexandr Scherbatiy 2006-06-29 08:29:21 UTC
see also issue 79072
Comment 2 Craig Conover 2006-07-01 01:03:40 UTC
Added logic to the DataObject/DataNode for diagram files to get the display name
and appropriate icon for the diagram type.

Files affected:
uml/drawingareacontrol/src/org/netbeans/modules/uml/drawingarea/dataobject/DiagramXmlDataLoaderBeanInfo.java
uml/drawingareacontrol/src/org/netbeans/modules/uml/drawingarea/dataobject/DiagramXmlDataObject.java
uml/drawingareacontrol/src/org/netbeans/modules/uml/drawingarea/dataobject/DiagramXmlDataNode.java
uml/drawingareacontrol/src/org/netbeans/modules/uml/drawingarea/dataobject/DiagramXmlDataLoader.java
uml/drawingareacontrol/src/org/netbeans/modules/uml/drawingarea/DiagramTopComponent.java
Comment 3 Peter Lam 2006-07-12 20:19:06 UTC
verified in coke build 060711
Comment 4 Sergey Petrov 2006-07-24 09:04:08 UTC
*** Issue 79072 has been marked as a duplicate of this issue. ***