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.
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
if Model tree node that contains mentioned diagram wasn't expanded, Digram node will not even appear in the tree.
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...
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.
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')
Fixed to include the create-package-with-scoped-diagram scenario.
verified in all-nbms-griffin-070221_11