Hi !
Papyrus introduces the stereotype <<External>>. My UML model built from Reverse Java had such a stereotype, applied but getAppliedStereotypes() can't see it in my eclipse plugin. It returns something like null.
Nevertheless, I have written this snippet in my plugin :
String papyrusJavaProfileResourcePath = PapyrusJavaPackage.class.getProtectionDomain().getCodeSource().getLocation().getPath();
try
{
papyrusJavaProfileResourcePath = URLDecoder.decode(papyrusJavaProfileResourcePath, "UTF-8");
}
catch (UnsupportedEncodingException e)
{
e.printStackTrace();
}
URI papyrusJavaProfileResourcePluginURI = URI.createURI("jar:file:" + papyrusJavaProfileResourcePath + "!/");
URI papyrusJavaProfileURI = papyrusJavaProfileResourcePluginURI.appendSegment("profiles").appendSegment("PapyrusJava.profile.uml");
resourceSet.getURIConverter().getURIMap().put(URI.createURI("pathmap://PapyrusJava_PROFILES/PapyrusJava.profile.uml"), papyrusJavaProfileURI);
thanks a lot for your help. (Several days I investiigate)
[Updated on: Thu, 10 August 2017 12:18] by Moderator