6
« on: November 22, 2007, 08:31:16 am »
dear all,
When I define a profile with a stereotype and a property on that stereotype, and I import this profile into another project, I don't see that property.
The exact steps that I executed are:
1. Start Enterprise Architect
2. File : New Project..., File name = hjsProfile.eap, click Save, click OK
3. In Project Browser right click Model, New View..., Name=hjsView, click OK
4. In Project Browser Expand Model, double click hjsView, right of Stereotype click …, click New…, type profile, click OK, click OK, click OK
5. In Project Browser right click hjsView, Add : Add Diagram, Name = hjsDiagram, click OK
6. In Toolbox click More tools..., UML : Profile
7. In Toolbox (under Profile Elements) click Metaclass, click canvas, in dialog in Element list check UseCase, click OK
8. In Toolbox (under Profile Elements) click Metaclass, click canvas, in dialog in Element list check Class, click OK
9. In Toolbox (under Profile Elements) click Stereotype, click canvas, Name = maintains, click OK
10. In Toolbox (under Profile Relationships) click Extension, in diagram drag from stereotype maintains to metaclass UseCase
11. In the diagram right click stereotype maintains, choose Attributes...:
a. Click New
b. Name = maintainedClasses
c. In the Type dropdown choose Class
d. In Scope dropdown choose Public
e. Click Save
f. Click tab Detail, Lower bound = 1, Upper bound = *, click Save, click Close
12. ctrl-s
13. In Project Browser right click package hjsView, Save Package as UML Profile, Filename = hjsProfile.xml, click Save
14. File : New Project..., File name = useHJsProfile.eap, click Save, Click OK
15. Click tab Resources, and then in it:
a. Right click UML Profiles, Import Profile
b. Right of Filename click ..., double click hjsProfile.xml, click Import
16. Click tab Project Browser, and then in it:
a. Right click Model, New View..., Name = hjsUsingView, click OK
b. Expand Model, right click hjsUsingView, Add : Add Diagram..., Name = hjsUsingDiagram, click OK
17. In Toolbox click Class, click Canvas, Name = Order, OK
18. In Toolbox click More tools..., UML : Use Case
19. In Toolbox click Use Case, click Canvas, Name = maintainsOrders, in Stereotype dropdown select maintains, click OK
20. ctrl-s
Problem: In the Properties pane I don't see property maintainedClasses, and in the Tagged Values pane I don't see it either.
What should I do to make this property visible?
Thanks,
Hendrik Jan
P.S. In earlier experiments I did see the property, but at that time I didn't write down the exact steps that I had taken, and now I don't succeed in finding out which those steps were... :-(