[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: extending eType(s)

Ralf,

Comments below.

Ralf Buschermoehle wrote:
Hi Ed,

thanks - looks promising ... :)

How do I get the sources for a specific emf build, e.g., 2.5.0 (2009/06/16), that I use into my package explorer as java project to modify the sources and (re-)build the complete (&modified) emf package?
We set up source using these instructions:
http://wiki.eclipse.org/EMF/Getting_Source
I've not done any 2.5 maintenance work yet so I'm not sure if we created a 2.5 branch yet...

But I'm not sure why you're asking this in response to my suggestion?  Normally source is available when you install the SDK and I'm not suggesting you modify it.  I'm suggesting you create your own package with your own data types.

I downloaded the complete sdk http://www.eclipse.org/modeling/download.php?file=/modeling/emf/emf/downloads/drops/2.5.0/R200906151043/emf-xsd-SDK-2.5.0.zip
but in this version I can only rebuild some classes and (maybe) put them back into the jar. Same applies to the sources .zip.

I downloaded the (tagged 2009/06/16 - assuming this is 2.5.0 and not 2.6.0?) sources from dev.eclipse.org which seems to be the "right" place but I can't export the org.eclipse.emf.sdk-feature (it is not shown in the exportable feature list of the export wizard)?

Greetings,

    Ralf


Ed Merks wrote:
Ralf,

Both EcorePackage and XMLTypePackage show numerous examples for how to introduce new EDataTypes.  You'd just create a new EPackage xyz with an EDataType Abc for each Java type you want to support.   Then you'd implement the createAbcFromString/converterAbcToString in the XyzFactoryImpl.  Once you've done that, you'd be able to use that package's data types in any other Ecore model.  In terms of the Java APIs, clients would use those existing classes and interfaces directly as normal.


Ralf Buschermoehle wrote:
Hello,

what would be a good starting point to introduce more (e)types e.g., from java.math or the jscience api like LargeInteger, Rational numbers a.s.o. (including (their) methods to handle/compute such values)?

Greetings,

    Ralf