Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Standalone ATL execution with UML
Standalone ATL execution with UML [message #93733] Wed, 29 October 2008 13:38 Go to next message
neto Mising name is currently offline neto Mising nameFriend
Messages: 33
Registered: July 2009
Member
Hi,

i m trying execute some transformations under UML models programatically.
On the eclipse plugin these transformations works. But on the java code a
exception is throwed

Package with uri 'http:///schemas/MYSCHEMA/_W1muUN0UEdutEfdnsVqhQA/53' not
found.

i read these links and i m not understanding the solution.

http://dev.eclipse.org/newslists/news.eclipse.modeling.m2m/m sg00971.html

http://wiki.eclipse.org/MDT-UML2-FAQ#What.27s_required_to_lo ad_a_UML_.28.uml.29_resource_from_a_standalone_application.3 F

i add these streach code on my java source, but dont work.

ResourceSet resourceSet = ASMEMFModel.getResourceSet();
resourceSet.getPackageRegistry().put(
UMLPackage.eNS_URI, UMLPackage.eINSTANCE);

URI uri = URI.createURI("jar:file:///C:/Users/Netuh/Desktop/eclipse
Place/workspace/GeneratorTool/lib/org.eclipse.uml2.uml_2.2.0 .v200805141133.jar!/ ");

Map<URI, URI> uris = URIConverter.URI_MAP;
uris.put(URI.createURI(UMLResource.LIBRARIES_PATHMAP), uri
.appendSegment("libraries").appendSegment(""));
uris.put(URI.createURI(UMLResource.METAMODELS_PATHMAP),
uri.appendSegment("metamodels").appendSegment(""));
uris.put(URI.createURI(UMLResource.PROFILES_PATHMAP), uri
.appendSegment("profiles").appendSegment(""));
resourceSet.getResourceFactoryRegistry().getExtensionToFacto ryMap()
.put(UMLResource.FILE_EXTENSION, UMLResource.Factory.INSTANCE);
Re: Standalone ATL execution with UML [message #93747 is a reply to message #93733] Wed, 29 October 2008 14:08 Go to previous message
Skander TURKI is currently offline Skander TURKIFriend
Messages: 130
Registered: July 2009
Senior Member
here you can find a working example:

http://wiki.eclipse.org/JWT_Transformations

------------------------------------------------------------ ------
Dr. Skander TURKI
Post-Doc
Université de Bretagne Sud
Lab-STICC / CNRS UMR 3192
BP92116 / 56321 LORIENT Cedex
Tel:0624392697
------------------------------------------------------------ ------
Previous Topic:[ATL] package not found
Next Topic:UML 1.4 (or UML 1.5) to UML 2.1.x?
Goto Forum:
  


Current Time: Sat Oct 19 18:06:13 GMT 2024

Powered by FUDForum. Page generated in 0.03293 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top