[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmt.amw] Re: Something similar to getReferredElement in plain Java

Hi,

the getReferredElement() is available in the AMW model handler for ATL (org.eclipse.gmt.weaver.amw4atl).

You can create an Item Provider by contributing to the "Automatic generation of IDs" extension point. The extension must implement the IIdentifierAdapter interface. Then, you can add the EMF code in the getId() and setId() methods.

You can find more information about this extension point in the Developer Guide:

http://dev.eclipse.org/viewcvs/indextech.cgi/org.eclipse.gmt/AMW/org.eclipse.weaver.doc.developer/index.html

Regards,

Marcos.

Alain Michel wrote:
Hi,
I am manipulating an AMW model with the EMF API and I'd like to do something similar to the ATL modelhandler method getReferredElement() - that is, get an element from its reference - but in plain Java without ATL. Is there a method provided in AMW to do such a thing?


Regards,
Alain Michel