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.
Summary: | sequence diagram interaction node does not appear immediately after created using RE-Operation | ||
---|---|---|---|
Product: | uml | Reporter: | Peter Lam <petersl> |
Component: | Diagram Sequence | Assignee: | Thuy.d Nguyen <thuydn> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 110808 |
Description
Peter Lam
2007-09-06 17:18:19 UTC
This is the same for creating collaboration diagram. 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. 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. 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. verified in trunk build 070910-b3163. |