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 134792 - elements created through context palette inside a container do not have correct namespace
Summary: elements created through context palette inside a container do not have corre...
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Yang Su
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-10 00:00 UTC by Yang Su
Modified: 2008-07-23 23:42 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 Yang Su 2008-05-10 00:00:10 UTC
1. create a class diagram
2. drop a package widget, resize it to be larger
3. drop a class "A" inside the package
4. from "A" context palette select generalization and create class "B" inside the same package ( similar case with
creating an implementation or a comment link)

class "B" or comment element are now created with package's parent namespace instead of under this package. Select
package and invoke 'bring forward', you will see class "B" widget is behind the package now.

Current workaround is to move container around, so the containment logic will be invoked.
Comment 1 Trey Spiva 2008-06-09 23:21:06 UTC
I have fixed this for packages.  For partition and statemachines it works if a sub region or sub partition is not visible.  I do not know how those work, 
therefore I am assigning the issue back to sheryl.
Comment 2 Trey Spiva 2008-06-09 23:51:34 UTC
http://hg.netbeans.org/uml-main/rev/aeddad028f1b
Comment 3 George Vasick 2008-06-10 17:16:24 UTC
Removing obsolete assignments.  Bugs will be reassigned for M2.
Comment 4 Yang Su 2008-07-17 18:00:56 UTC
It's not an issue in the current build for activity/state diagram, mark it as fixed.
Comment 5 Peter Lam 2008-07-23 23:42:28 UTC
verified in nb 6.5 trunk build 20080723145315