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 134807 - UML projects MUST be saved when diagrams are saved
Summary: UML projects MUST be saved when diagrams are saved
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks: 133987
  Show dependency tree
 
Reported: 2008-05-10 17:57 UTC by datique
Modified: 2008-06-27 19:07 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description datique 2008-05-10 17:57:55 UTC
I have created a UML project and have been entering information in it the whole morning. Each diagram I created
displayed the usual asterisk indicating that it needed be saved. So I saved each diagram as I edited them. Suddenly,
after a few hours NetBeans 6.1 just crashed and when I reopened it it had the diagrams but had lost all model
information. This is unbelievable! If the diagram depends on model elements how can a diagram be saved if the elements
which it uses are not?!
Also there is no clue to the very important fact that the project is not saved. This is very very bad.
Comment 1 George Vasick 2008-05-12 16:31:34 UTC
File -> Save All or the Save All button on the main toolbar will save the model in addition to the diagrams.  I agree
that saving a diagram without saving the model is a serious usability issue.

If you still have a copy of your UML project in the state it was in after the IDE crashed, we may be able to recover
images of your diagrams for you.  We cannot recover the actual model elements however.  Let us know.

Thanks,
George
Comment 2 Peter Lam 2008-05-23 01:19:45 UTC
still the same in NB 6.5 - saving diagram does not save project.
Comment 3 Trey Spiva 2008-06-27 17:56:07 UTC
Since this was by design I have made this an enhancement request.
Comment 4 Trey Spiva 2008-06-27 17:56:30 UTC
Since this was by design I have made this an enhancement request.
Comment 5 Trey Spiva 2008-06-27 19:06:35 UTC
We will simply our saving logic.  There will be only one save logic, the model save.  There are still issues that need to be solved that will prevent this issue 
into making the 6.5 release train.  What happens if the user closes a diagram.  We can not simply save the model, because that will effect other diagrams that 
may not be ready to be put be saved yet.  

Therefore a closed diagram should go into a mini saved state.  In other words we need to save the contents of the diagram some where (either in memory or 
in a temporary file).  When the model is saved we need to find the diagrams that are in the mini saved state and make them truly saved.  These are the kind of 
details that will need to worked out before we can implement this enhancement.