|
Re: Creating custom EDataType [message #481974 is a reply to message #481781] |
Mon, 24 August 2009 22:53 |
Ed Merks Messages: 33136 Registered: July 2009 |
Senior Member |
|
|
Bogdan,
Comments below.
Bogdan Nic. wrote:
> Hello,
>
> For my application I want to create a custom EDataType programmaticaly
> in order to use it later in the same class for generating
> programmaticaly EMF Classes & Attributes.
I don't understand this programmatic thing but later you want to
generate it...
> I want to extend somehow the EString data type and indicate the
> maximum length of the EDataType(from some user preferences).
If you define a simple type in an XML Schema (with a maxLength facet)
you'll see extended metadata annotations that are are generated to
support this...
> I googled the internet and eclipse.org and I haven't found any other
> similar example.I found an example where somenone did something like
> this but not programmaticaly, he did it from the Ecore Editor inside
> Eclipse.
Well, you did mention wanting to generate things but maybe you want to
use dynamic EMF. That's been explained a few times...
> Can somebody help me? I think it isn't very difficult to do something
> like this, but I don't have enough EMF knowledge & experience.
Pretty much all the documentation available is linked from the
documentation page, so have a look at that and then maybe you'll have
more specific questions...
> Thanks!
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02187 seconds