|"Repair stereotypes" after creating model from template with applied profile [message #1761343]
||Tue, 09 May 2017 23:21
| Serge Starovoitenkov
Registered: May 2017
I've got my own UML profile, packed in plugin and registered in Eclipse(extensions for:
Then I created a model template, applied my profile to it and packed to another plugin having an extension for org.eclipse.papyrus.uml.diagram.wizards.templates
Then I try to create a new Papyrus model using my template. The model is created, the content is copied, but then appears "Repair Stereotypes" window with the error on my profile: "unknown schema" and recommended action "Migrate to my_profile (0.0.45)". After pressing "Apply" everything is OK, all stereotypes are seen and values in properties are correct.
But it's not too good to reapply profile every time you create a model from template. I found 1 deffirence between template *.uml file and model *.uml file: template has the foolowing attributes in root xmi:XMI tag:
2. xsi:schemaLocation="...../my_profile pathmap://Custom_PROFILES/my.profile.uml#_tKArwDlFEeS2-rcWP5_YfA"
Model created from template DOES NOT have those attributes, so "Repair Stereotypes" appear. After "Apply" is pressed, Papyrus ADDS those attributes to *.uml file and everything goes right.
Is it a bug, and if so is there any workaround of it? And if it's not a bug, what should I do to correct my solution?
Papyrus 0.10 didn,t have this problem, everything worked fine.
Now I'm using:
- Windows 8.1 x64
- Eclipse 4.5.2 (Mars.2)
- Papyrus 1.1.4
Thanks in advance/
Powered by FUDForum
. Page generated in 0.02092 seconds