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 104742 - model tree shows 2 diagram nodes in reopened project if it was closed with opened diagram
Summary: model tree shows 2 diagram nodes in reopened project if it was closed with op...
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Thuy.d Nguyen
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-05-24 16:15 UTC by Andrew Korostelev
Modified: 2007-09-19 19:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Korostelev 2007-05-24 16:15:04 UTC
If project was closed with opened diagram, after project reopening project tree
has two same diagram nodes.

reproducible in netbeans-6.0-nightly-200705230000-full-windows


steps:
- create java-model uml project.
do not create default diagram.
- add named class diagram to the project.
- leave diagram opened in editor and close project.
- reopen project 
(by 'open recent project' or 'open project').

there are two nodes of the one diagram.
Comment 1 Andrew Korostelev 2007-05-24 16:16:51 UTC
regression since 5.5.
Comment 2 Thuy.d Nguyen 2007-08-07 01:29:49 UTC
Modified DiagramEditorSupport.openDiagramEditor() to use FileUtil.toFile(fileObj).getCanonicalPath() instead of using
fileObj.getPath() to get the path name of the target diagram file.
Comment 3 Joanne Lau 2007-09-19 19:17:54 UTC
Verified in trunk build 200709180324