Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Creating custom EDataType
Creating custom EDataType [message #481781] Mon, 24 August 2009 10:01 Go to next message
Bogdan Nic. is currently offline Bogdan Nic.Friend
Messages: 3
Registered: July 2009
Junior Member
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 want to extend somehow the EString data type and
indicate the maximum length of the EDataType(from some user preferences).
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.
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.

Thanks!
Re: Creating custom EDataType [message #481974 is a reply to message #481781] Mon, 24 August 2009 22:53 Go to previous message
Ed Merks is currently offline Ed MerksFriend
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/
Previous Topic:containment or reference -> consequences in generated Editor commands
Next Topic:genmodel problem
Goto Forum:
  


Current Time: Thu Apr 18 23:00:55 GMT 2024

Powered by FUDForum. Page generated in 0.02187 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top