Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » AMW » [AMW] weave a metamodel in the registry
[AMW] weave a metamodel in the registry [message #550754] Wed, 04 August 2010 05:18 Go to next message
Eclipse User
Originally posted by: ivanomalavolta.gmail.com

Hi all, I am developing a plugin extending AMW in which all the
metamodels are woven to the same metamodel (it is a kind of semantic
anchoring). So I would like to have that metamodel in my plugin and be
able to reference it directly from the EMF registry, is it possible?

In other words, I am trying to refer to a woven model by its uri in the
EMF registry, something like this in the amw.prop file:

<woven id="1">
<model-relative-path>null</model-relative-path>
<metamodel-relative-path>uri:<THE URI OF MY
METAMODEL></metamodel-relative-path>
<reference>rightMetamodel</reference>
<title>rightMetamodel</title>
<panel>DefaultWovenPanelExtension</panel>
<wmodelref>ModelRef</wmodelref>
</woven>

Is it feasible?

Thanks and best regards,
Ivano
Re: [AMW] weave a metamodel in the registry [message #551088 is a reply to message #550754] Thu, 05 August 2010 03:54 Go to previous message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARD
Messages: 522
Registered: July 2009
Senior Member
AMW don't know how to use Java-EMF generated metamodels.
So you can use a uri if your metamodel is registered using the extension point org.eclipse.emf.ecore.dynamic_package (which maps an uri to a physical ecore file in contrary to org.eclipse.emf.ecore.generated_package which maps an uri to an EMF-generated Package)
Previous Topic:An internal error occurred during: "Launching"
Next Topic:Problem installing AMW and AM3 plugins.
Goto Forum:
  


Current Time: Sun Aug 31 00:27:12 EDT 2014

Powered by FUDForum. Page generated in 0.10583 seconds