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.
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.
Created attachment 63291 [details] package with stereotype and tag value shown in proj1
Created attachment 63292 [details] package moved to Proj2, stereotype value is lost
Created attachment 63293 [details] package shown in proj1 after being moved to proj2, stereotype shown
This is not a persistence issue.. it happens when you drag the package from one project to another.
It looks like this was fixed by sheryls import element changes. I was not able to reproduce this problem.
fixed
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.
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.