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 114922 - sequence diagram interaction node does not appear immediately after created using RE-Operation
Summary: sequence diagram interaction node does not appear immediately after created u...
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Sequence (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Thuy.d Nguyen
URL:
Keywords:
Depends on:
Blocks: 110808
  Show dependency tree
 
Reported: 2007-09-06 17:18 UTC by Peter Lam
Modified: 2007-09-10 23:46 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 Peter Lam 2007-09-06 17:18:19 UTC
This is a refreshing issue. If an operation node is expanded to create the sequence diagram using CDFS or RE-Operation,
the interaction node for the newly created sequence diagram never shows up under the operation node. A filtering action
has to be done in order to refresh the project tree in order for the newly created to show up. This is a tedious action
to do and misleading to users about where the newly created diagram is.

Repro steps:
- create and name class
- add and name an operation to the class
- expand the class node
- expand the operation node
- right click on the operation and select either CDFS or RE-Operation
- select sequence diagram on the dialog and press OK
Result: the sequence diagram is created but the interaction node containing everything for the sequence diagram never
shows up in the project tree under the operation node.
Comment 1 Peter Lam 2007-09-06 17:19:29 UTC
This is the same for creating collaboration diagram.
Comment 2 Thuy.d Nguyen 2007-09-06 18:10:12 UTC
I can not reproduce the issue with CDFS an operation. In fact, the refresh issue with CDFS has been fixed  and
integrated to pre Beta1 builds (see issue 110811 for more info).

For RE-Operation, I confirm  the issue is reproducible.  RE  and CDFS actions do not share the same code, so the fix put
in for CDFS does not apply for RE.  We need to put the same fix to RE code.
Comment 3 Peter Lam 2007-09-06 18:41:37 UTC
Yes, correct. CDFS is no longer reproducible now in my new ide session but for some reason it was in my previous ide
session. So, removing it from the summary.
Comment 4 Thuy.d Nguyen 2007-09-08 02:47:02 UTC
Cause: The code gets an instance IProjectTreeControl to represent the uml project tree by calling
ProductHelper.getProjectTree(), but it seems that IProjectTreeControl is obsolete and always null.  I don't see it being
created and initialized any where in our code. Therefore the tree is not updated when an interaction is added.

Solution: I added getter and setter APIs for IProjectTreeModel (NetBeansUMLProjectTreeModel is its implementing class)
and called ProductHelper.getProjectTreeModel() to get the instance of  IProjectTreeModel instead.  

Side note:  From now, any class in Core module can access NetBeansUMLProjectTreeModel instance which resides in
ProjectUI module by calling ProductHelper.getProjectTreeModel().  This was not possible before this  fix, because Core
module does not have ProjectUI module as its dependencies.
Comment 5 Peter Lam 2007-09-10 23:46:00 UTC
verified in trunk build 070910-b3163.