|
|
| Re: [Acceleo] problem with primitive types when executed as Java application [message #905390 is a reply to message #904402] |
Thu, 30 August 2012 05:49  |
Stephane Begaudeau Messages: 370 Registered: April 2010 Location: Nantes (France) |
Senior Member |

|
|
Hi,
You should use something like this in the method registerPackages of your generator:
Map uriMap = resourceSet.getURIConverter().getURIMap();
URI uri = URI.createURI("platform:/plugin/org.eclipse.uml2.uml.resources/");
uriMap.put(URI.createURI(UMLResource.LIBRARIES_PATHMAP), uri.appendSegment("libraries").appendSegment(""));
uriMap.put(URI.createURI(UMLResource.METAMODELS_PATHMAP), uri.appendSegment("metamodels").appendSegment(""));
uriMap.put(URI.createURI(UMLResource.PROFILES_PATHMAP), uri.appendSegment("profiles").appendSegment(""));
But for the stand alone, the path of the jar org.eclipse.uml2.uml.resources is not "platform:/plugin/org.eclipse.uml2.uml.resources/" but the absolute path of the jar.
Regards,
Stephane Begaudeau
|
|
|
Powered by
FUDForum. Page generated in 0.03022 seconds