|
|
|
|
|
Re: Feaure request: Inerface not extending EObject [message #1780875 is a reply to message #1780840] |
Mon, 29 January 2018 13:11 |
|
Ed Merks wrote on Mon, 29 January 2018 08:39You should probably write interfaces that you intend to implement directly by hand [...]
And model an EDataType that wraps that interface, so that you can use it in your model, for example in EParameters of EOperations:
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="my" nsURI="http://my" nsPrefix="my">
<eClassifiers xsi:type="ecore:EDataType" name="Visitor" instanceClassName="com.foo.bar.Visitor"
serializable="false"/>
<eClassifiers xsi:type="ecore:EClass" name="Node">
<eOperations name="accept">
<eParameters name="visitor" eType="#//Visitor"/>
</eOperations>
</eClassifiers>
</ecore:EPackage>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.04937 seconds