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 91579 - It's good to have option to restore opened diagrams after restart ide
Summary: It's good to have option to restore opened diagrams after restart ide
Status: REOPENED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Yang Su
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-26 18:10 UTC by Sergey Petrov
Modified: 2007-09-17 21:38 UTC (History)
0 users

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 Sergey Petrov 2006-12-26 18:10:44 UTC
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
Comment 1 Yang Su 2007-04-02 23:05:01 UTC
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 )
Comment 2 Sergey Petrov 2007-04-10 09:45:18 UTC
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?
Comment 3 Yang Su 2007-04-10 23:37:11 UTC
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).

Comment 4 Jiri Prox 2007-09-17 21:38:02 UTC
Obsolete milestone, please reevaluate