|Re: XMI from java discoverer [message #855790 is a reply to message #855748]
||Wed, 25 April 2012 05:18
| Ed Merks
Registered: July 2009
Using XyzPackage.eINSTANCE.eClass() is an idiom for initializing the
package instance, and as a side-effect it will register itself in the
EPackage.Registry.INSTANCE, or you can use
XyzPackage.eINSTANCE). Note that Xyz is the name of the package.
On 25/04/2012 6:21 AM, Juan Castel wrote:
> I have the XMI model result of MoDisco java discoverer, but I cannot
> load it and navigate nor use it in ATL, since it simply does not work.
> When you choose that XMI from an ATL configuration as MM:IN, the
> content assist (ctrl+spacebar) in Eclipse ATL doesn't give me any
> element of the XMI model.
> How can I register the java metamodel of MoDisco and then do something
> ResourceSet resourceSet = new ResourceSetImpl();
> URI uri = URI.createFileURI(file.getAbsolutePath());//MoDisco XMI
> absolute path
> Resource resource =
> resourceSet.getResource(uri,true); new
> Thank you.
Powered by FUDForum
. Page generated in 0.02306 seconds