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 138025 - package stereotype value removed after being moved to another model project
Summary: package stereotype value removed after being moved to another model project
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Class (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-23 20:33 UTC by Joanne Lau
Modified: 2009-05-25 21:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
package with stereotype and tag value shown in proj1 (23.44 KB, image/png)
2008-06-23 20:33 UTC, Joanne Lau
Details
package moved to Proj2, stereotype value is lost (18.81 KB, image/png)
2008-06-23 20:34 UTC, Joanne Lau
Details
package shown in proj1 after being moved to proj2, stereotype shown (20.27 KB, image/png)
2008-06-23 20:35 UTC, Joanne Lau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joanne Lau 2008-06-23 20:33:01 UTC
Build: 080622

- Create 2 projects (proj1, proj2)
- In proj1,  DnD a package to the class diagram (diag1) , name it pkg1
- In the pkg1 properties window,  add a tag value and a stereotype
- Save all (see pkg_proj1.png screenshot)
- Select pkg1 and drag to proj2 -> Model
  Click Yes to the dialog
- Create a diagram (diag2) in proj2, DnD pkg1 from projects tree to the diagram editor
  Notice that the stereotype field previously set is lost  (see pkg_proj2.png)
- Bring up diag1 again (via clicking diag1 tab),  notice that the stereotype element
  is still shown in pkg1,  however stereotype field is empty in the properties window
  (see pkg_proj1_after.png)

This seems to be a persistence issue.
Comment 1 Joanne Lau 2008-06-23 20:33:47 UTC
Created attachment 63291 [details]
package with stereotype and tag value shown in proj1
Comment 2 Joanne Lau 2008-06-23 20:34:35 UTC
Created attachment 63292 [details]
package moved to Proj2,  stereotype value is lost
Comment 3 Joanne Lau 2008-06-23 20:35:44 UTC
Created attachment 63293 [details]
package shown in proj1 after being moved to proj2,  stereotype shown
Comment 4 _ jyothivasa 2008-06-23 22:18:39 UTC
This is not a persistence issue.. it happens when you drag the package from one project to another.
Comment 5 Trey Spiva 2008-07-08 18:35:36 UTC
It looks like this was fixed by sheryls import element changes.  I was not able to reproduce this problem.
Comment 6 Trey Spiva 2008-07-08 18:36:13 UTC
fixed
Comment 7 Peter Lam 2008-07-26 02:34:17 UTC
verified in build 20080725.
If I just import it by answering No to the dialog, the stereotype is still there.
If I move the package to another project by answering Yes to the dialog, the stereotype is lost.
Comment 8 Yang Su 2008-07-30 01:18:32 UTC
When adding a stereotype to an element, a stereo type model element is created under project namespace 'Profile', it is
meant to stay in the original project as it could be reused by other model elements. This is why the moved element does
not show the stereotype as it was defined in another project. 

Since uml profile itself is not a fully supported feature in the tool, moving an element from one project to another is
an uncommon scenario, this issue has very little impact on users, p4 would be more appropriate.