Access to derived attributes

6 views
Skip to first unread message

joern.guy.suess

unread,
Oct 28, 2007, 7:32:47 PM10/28/07
to Tefkat
My project uses a large set of derived attributes. How can I
programmatically load the implementation with Tefkat so they become
accessible?

michael lawley

unread,
Oct 28, 2007, 8:01:23 PM10/28/07
to Tef...@googlegroups.com
Hi Joern,

There are two essential requirements: 1. the classes are in the
classpath, 2. the resource factory gets loaded and registered with the
EMF runtime. Assuming you're using Tefkat as a plugin to Eclipse,
the simplest way to do all this is to package your model
implementation as a plugin and install it in Eclipse. The plugin.xml
file should contain an entry that links the URI of your model with the
appropriate Package class. For example, Tefkat's has the following:

<extension
point="org.eclipse.emf.ecore.generated_package">
<package
uri="http:///TefkatModel-2.5.ecore"
class="tefkat.model.TefkatPackage">
</package>
</extension>

Cheers,

michael

Reply all
Reply to author
Forward
0 new messages