The Open Diagrams option is checked by default and should be unchecked by default. When it is checked, diagrams that
were open when NB was shutdown are not reopened when NB is restarted.
According to my understanding, this option is not supposed to work for restarting ide. Instead, it was designed to open
the previously open diagram(s) if any associated with the uml project when it is closed and then re-opened.
I was under the impression it would work as Java projects with its source files works. If it was open when the IDE
shutdown, it would be reopened when it was restarted, as well as close/open just the project. I rarely find myself
opening and closing projects on a regular basis, but I do shutdown/restart the IDE with the projects I use regularly
already opened. Maybe I am not a typical user, though.
Currently, the Open Diagrams option does work for close/open UML project, but not for IDE shutdown/startup. Seems we
should match how other NB modules work.
excerpt from previous email discussion
It was a partial solution to issue 91579 - It's good to have option to restore opened diagrams after restart ide.
Due to performance concerns, an option is provided to turn it on/off, default behavior is to open the diagrams. So it's
really a feature that was implemented to comply with the rest of IDE UI flow. IMO, looking for what you were working on
in the previous session and then open it takes a lot more time.
The implementation is fine with reopening the project without shutting down IDE, however, the mechanism used by NB to
restore a TopComponent after IDE restart is different, it tries to deserialize TC object persisted in userdir,
something that cannot be applied to UML as diagram TC contains references to Tom Sawyer objects that are not
serializable. I haven't yet found a perfect solution (something working but with a pop up warning msg from NB) and have
dropped the effort on this for other issues.
Since it's not a complete solution, I suggest we take it out for this release and properly address it in Meteora work.
Open diagrams option is checked by default in 6.5, diagram is not open after restarting ide for UML project with
previous closing and reopening diagram.
*** Issue 154724 has been marked as a duplicate of this issue. ***