|
Re: Problems during loading my own Profile in standalone mode [message #643853 is a reply to message #643841] |
Wed, 08 December 2010 13:39 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Maik,
Maik,
Did you load your model file using an absolute URI? If you're loading
from the file system, be sure to use java.io.File.getAbsolutePath before
converting it to a file URI.
Maik wrote:
> Hi,
>
> i created UML Model with MagicDraw and exported as EMF UML2.x. So now
> ich have my model file *.uml and 5 profile files.
>
> During code generation, in standalone mode using acceleo 3.x, my
> datatypes (from MagicDraw Profile) and my stereotypes (from my own
> profile) are empty. After debuging is saw the following
> mailto:org.eclipse.uml2.uml.internal.impl.DataTypeImpl@2016b0
> (eProxyURI:
> UML_Standard_Profile.MagicDraw_Profile.profile.uml#eee_10454
> 67100323_249638_60)
>
> Ok i now i need to register the magic draw profile files and my own
> profile file. But how can i do this?
>
> I have a method public void registerResourceFactories(ResourceSet
> resourceSet). Here i registered the UML Standard profile and metamodel
> via
>
> URIConverter.URI_MAP.put(URI
> .createURI(UMLResource.LIBRARIES_PATHMAP), uri
> .appendSegment("libraries").appendSegment(""));
> // UMLResource.METAMODELS_PATHMAP=pathmap://UML_LIBRARIES/
> URIConverter.URI_MAP.put(URI
> .createURI(UMLResource.METAMODELS_PATHMAP), uri
> .appendSegment("metamodels").appendSegment(""));
> // UMLResource.PROFILES_PATHMAP=UMLResource.PROFILES_PATHMAP
> URIConverter.URI_MAP.put(URI
> .createURI(UMLResource.PROFILES_PATHMAP), uri
> .appendSegment("profiles").appendSegment(""));
>
> But how can i register the other profiles or my own profiles? The
> profiles are in the same directory as the model file. In eclipse UML
> Model editor the profiles shown as
>
> platform:/resources/UML_Standard_Profile.MagicDraw_Profile.p rofile.uml
>
>
>
> Best regards
> Maik
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03428 seconds