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 85412 - uml project data is lost including all diagrams are empty after closing and re-opening uml project
Summary: uml project data is lost including all diagrams are empty after closing and r...
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Trey Spiva
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2006-09-21 09:12 UTC by bugbridge
Modified: 2006-09-29 12:56 UTC (History)
1 user (show)

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 bugbridge 2006-09-21 09:12:27 UTC
Original status: 1-Dispatched; Suggested Status: NEW

Original Target Release: ; Suggested Target Milestone : 5.5

These items should be added to the Keywords: REGRESSION
Original submitter: petersl

Description:
From the latest nightly uml build 060920_17.

After closing the uml project and then re-opening it, the following issues exist.
1. all diagrams open empty
2. class elements when expanded from project tree has no content. maybe one or
two would still show the constructor operation
3. drag/drop class element to empty diagram shows label "{Imported from
<projectname>}" under class name, where <projectname> is the same project for
the diagram.
4. new class elements can not be named on new class diagram

Repro steps:
- create a uml project of any type
- create a diagram of any type, let use class diagram for this example
- create and name a few classes on the class diagram
- save the diagram 
- from the project tree, close the uml project
- re-open the uml project
- open the class diagram
Result: class diagram is empty
- expand the class elements from the project tree
Result: some or all elements would not have any content
- drag/drop the class elements from project tree to class diagram
Result: diagram shows class elements with imported label
- create a new class diagram
- select class element from palette and click on new class diagram
- start typing new name for class element and press Enter key
Result: class name was reverted back to Unnamed and newly created class elements
are not showing up in project tree
Comment 1 Trey Spiva 2006-09-27 19:39:51 UTC
When you close a project and then reopen a project, NetBeans does not seem to
create a new project instance.  Instead it was reusing the existing project. 
When we got the project close event, we deinitialized the UML information, but
did not release the UML data.  Therefore, when the project was reopened we just
used the uninitialized project information.  

We are not releasing the reference to the UML data.  When the project is
reopened, we not reinitialize the UML data.
Comment 2 Andrew Korostelev 2006-09-29 12:56:41 UTC
verified in coke_uml zip 060928