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.
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.
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
still the same in NB 6.5 - saving diagram does not save project.
Since this was by design I have made this an enhancement request.
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.