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 95782 - Can't open empty diagram after closing the diagram
Summary: Can't open empty diagram after closing the diagram
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Thuy.d Nguyen
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-02-16 10:47 UTC by Sergey Petrov
Modified: 2007-02-22 13:02 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 Sergey Petrov 2007-02-16 10:47:57 UTC
Can't open empty diagram after closing the diagram and diagram's name is corrupted

reproducible with 070215_6

steps:
1. create new uml project
2. add package with scioped class diagram
3. close the diagram
diagram name in project tree is empty
and it's impossile to open the digram by doubleclick or Open from context
Comment 1 Andrew Korostelev 2007-02-16 11:13:46 UTC
if Model tree node that contains mentioned diagram wasn't expanded, 
Digram node will not even appear in the tree.
Comment 2 Thuy.d Nguyen 2007-02-20 21:41:39 UTC
Noticed that when a diagram  is created, the .etld file is created but empty and
the .etlp file does not even exist.  Compared to builds earlier than  070212_01,
 both .etlp and etld were created and have some content at the time a diagram is
created.  Investigating the cause...
Comment 3 Thuy.d Nguyen 2007-02-21 06:52:11 UTC
Cause: When a diagram is 1st created, its dirty state is false; therefore, it is
not being saved properly.  As a result, only the diagram layout file .etld  gets
created but empty, and the diagram presentation file .etlp does not even exist.
 This is the side effect of the recently fix for "save/save all" issues.

Solution: set the diagram's dirty state to true when it's 1st created to have it
initially saved.
Comment 4 Sergey Petrov 2007-02-21 10:42:56 UTC
it's unclear from update if empty diagrams are autosaved or stay in dirty state,
but they are, it's good (the same as for java classes and the same as before)
but the issue is reproducible with initial steps if step2 is considered as step
to create package with scoped diagram by 'Add|Package' wizard (and not
reproducible if step 2 is changed to 2a- 'add package' and 2b-'add diagram')
Comment 5 Thuy.d Nguyen 2007-02-21 17:33:03 UTC
Fixed to include the create-package-with-scoped-diagram scenario.
Comment 6 Andrew Korostelev 2007-02-22 13:02:43 UTC
verified in all-nbms-griffin-070221_11