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.
reproducible with 061221 it may not be a good idea to reopen all diagrams by default because it may take a long time, but uml may ask on ide startup if user want to open previously opened diagrams (by default) and it should be possible to set with uml options next cases: always open,ask me,do not open
Provided diagram editor support so that it responds to Open, View and Edit cookie actions. The list of changes: 1. "View" menu is added to diagram file node, so users can check the file content with xml editor. 2. "Open" menu on diagram file node will bring up diagram GUI editor. 3. When loading project the previously opened diagrams will be opened by default, just like any other NB project files. Option UML->Open Project Diagrams (Yes/No) is provided to turn on/off this behavior. ( I personally don't think it's necessary because this is the default behavior of all NB projects which users are familiar with, the way not to have those documents open for the next session is to close them before closing the project or IDE. 4. Removed diagram file from template category so it will not show up in New File -> Catetories Others -> Empty DiagramXmlFile. UML Diagram file is generated from GUI editor, it is not meant to be created from a template, it does not make sense to list it in the new file template. 5. Made diagram document a cloneable TC so that it will be closed when its owning project is closed ( due to a change in NB6.0, no issue was filed yet )
1. it;s not in this enhancement 2. --||-- 3. doesn't work in 070409, i.e. class source is opened, but diagrams are not 4. :) it's good, is there another filed issue for this case? 5. works, but why you added this comment to this enhancement?
I was merely documenting what were changed as a result of diagram editor support integration. As to the issue of restoring diagram editor, the current implemented mechnism will reopen diagram when UML project is closed and later reopened, the opened file list is saved in project private.xml for project framework to be loaded when project is reopened. However, the story is different when IDE is shut down and restarted. NB uses Top Component serialization data saved in userdir when IDE was shut down to restore TC. This approach may not be suitable for UML due to its complex initialization logic. Will leave the issue open while feasibility is being researched for the second scenario (IDE restart).
Obsolete milestone, please reevaluate