Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF ecore editor and EMF validation framework
GMF ecore editor and EMF validation framework [message #1109] Mon, 31 July 2006 15:28 Go to next message
lucas bigeardel is currently offline lucas bigeardelFriend
Messages: 155
Registered: July 2009
Senior Member
Hello,

Validation framework overview article is really interresting. It proposes a
solution to validate EMF models even in cases EMFT based validation
solutions are not possible (eg : EMF "batch" use).

My concern is I dont have rose license and already did my design with GMF
ecore editor. So, I would like to find a way to design constraints in this
configuration.

OK, I know I am modeler addicted (and poor as well).

Is there a way to define constraints at design time with the GMF ecore
editor integration ?

I'm not sure this post is 100% GMF, I posted to EMF newsgroup just in case.

regards,

- Lucas
Re: GMF ecore editor and EMF validation framework [message #1162 is a reply to message #1109] Mon, 31 July 2006 16:30 Go to previous messageGo to next message
Radomil Dvorak is currently offline Radomil DvorakFriend
Messages: 249
Registered: July 2009
Senior Member
Hi Lucas,

Sure, you can use GMF ecore editor to design constraints for EMF generated
validators.
At the moment, only by plain creation of annotation elements the same way as
if edited in non-graphical ecore
editor.
There is no special constraint modeling support available now.

Regards,
/Radek

"lucas bigeardel" <lucas.bigeardel@gmail.com> wrote in message
news:eal7j3$ihm$1@utils.eclipse.org...
> Hello,
>
> Validation framework overview article is really interresting. It proposes
> a
> solution to validate EMF models even in cases EMFT based validation
> solutions are not possible (eg : EMF "batch" use).
>
> My concern is I dont have rose license and already did my design with GMF
> ecore editor. So, I would like to find a way to design constraints in this
> configuration.
>
> OK, I know I am modeler addicted (and poor as well).
>
> Is there a way to define constraints at design time with the GMF ecore
> editor integration ?
>
> I'm not sure this post is 100% GMF, I posted to EMF newsgroup just in
> case.
>
> regards,
>
> - Lucas
>
>
>
Re: GMF ecore editor and EMF validation framework [message #2191 is a reply to message #1162] Tue, 01 August 2006 13:09 Go to previous messageGo to next message
lucas bigeardel is currently offline lucas bigeardelFriend
Messages: 155
Registered: July 2009
Senior Member
Hi,

you're right I did it with simple annotations.

Did you managed to make it working with Annotations references.

In my case, reference values selected by ComboBox aren't "remembered".

I just created a EAnnotation, filling it according to EMFconstraints specs
and drag an drop it inside the EClass to be under validation.

The problem is that I'm not sure this is the best solution as I duplicate
EAnnotations.

Is there a way to define an EAnnotion and reusing it in several different
EClasses for EMF constraints validation code generation (eg: with Ecore
editor)?

regards,

- Lucas

"Radek Dvorak" <radek.dvorak@borland.com> wrote in message
news:ealb70$ibh$1@utils.eclipse.org...
> Hi Lucas,
>
> Sure, you can use GMF ecore editor to design constraints for EMF generated
> validators.
> At the moment, only by plain creation of annotation elements the same way
> as if edited in non-graphical ecore
> editor.
> There is no special constraint modeling support available now.
>
> Regards,
> /Radek
>
> "lucas bigeardel" <lucas.bigeardel@gmail.com> wrote in message
> news:eal7j3$ihm$1@utils.eclipse.org...
>> Hello,
>>
>> Validation framework overview article is really interresting. It proposes
>> a
>> solution to validate EMF models even in cases EMFT based validation
>> solutions are not possible (eg : EMF "batch" use).
>>
>> My concern is I dont have rose license and already did my design with GMF
>> ecore editor. So, I would like to find a way to design constraints in
>> this
>> configuration.
>>
>> OK, I know I am modeler addicted (and poor as well).
>>
>> Is there a way to define constraints at design time with the GMF ecore
>> editor integration ?
>>
>> I'm not sure this post is 100% GMF, I posted to EMF newsgroup just in
>> case.
>>
>> regards,
>>
>> - Lucas
>>
>>
>>
>
>
Re: GMF ecore editor and EMF validation framework [message #2221 is a reply to message #2191] Tue, 01 August 2006 14:07 Go to previous messageGo to next message
Radomil Dvorak is currently offline Radomil DvorakFriend
Messages: 249
Registered: July 2009
Senior Member
Hi,

If you look at the ecore metamodel, there is EModelElement class which can
contain EAnnotation elements via
'eAnnotations' reference and to my best knowledge of ecore, constraints are
extracted only from there.
So most probably, you can not reuse them due to the containment
relationship.
Anyway, you'd better check yourself ;-)

Regards,
/Radek

"lucas bigeardel" <lucas.bigeardel@gmail.com> wrote in message
news:eanjq9$n7u$1@utils.eclipse.org...
> Hi,
>
> you're right I did it with simple annotations.
>
> Did you managed to make it working with Annotations references.
>
> In my case, reference values selected by ComboBox aren't "remembered".
>
> I just created a EAnnotation, filling it according to EMFconstraints specs
> and drag an drop it inside the EClass to be under validation.
>
> The problem is that I'm not sure this is the best solution as I duplicate
> EAnnotations.
>
> Is there a way to define an EAnnotion and reusing it in several different
> EClasses for EMF constraints validation code generation (eg: with Ecore
> editor)?
>
> regards,
>
> - Lucas
>
> "Radek Dvorak" <radek.dvorak@borland.com> wrote in message
> news:ealb70$ibh$1@utils.eclipse.org...
>> Hi Lucas,
>>
>> Sure, you can use GMF ecore editor to design constraints for EMF
>> generated validators.
>> At the moment, only by plain creation of annotation elements the same way
>> as if edited in non-graphical ecore
>> editor.
>> There is no special constraint modeling support available now.
>>
>> Regards,
>> /Radek
>>
>> "lucas bigeardel" <lucas.bigeardel@gmail.com> wrote in message
>> news:eal7j3$ihm$1@utils.eclipse.org...
>>> Hello,
>>>
>>> Validation framework overview article is really interresting. It
>>> proposes a
>>> solution to validate EMF models even in cases EMFT based validation
>>> solutions are not possible (eg : EMF "batch" use).
>>>
>>> My concern is I dont have rose license and already did my design with
>>> GMF
>>> ecore editor. So, I would like to find a way to design constraints in
>>> this
>>> configuration.
>>>
>>> OK, I know I am modeler addicted (and poor as well).
>>>
>>> Is there a way to define constraints at design time with the GMF ecore
>>> editor integration ?
>>>
>>> I'm not sure this post is 100% GMF, I posted to EMF newsgroup just in
>>> case.
>>>
>>> regards,
>>>
>>> - Lucas
>>>
>>>
>>>
>>
>>
>
>
Re: GMF ecore editor and EMF validation framework [message #2559 is a reply to message #2221] Wed, 02 August 2006 14:03 Go to previous message
Madanagopal is currently offline MadanagopalFriend
Messages: 39
Registered: July 2009
Member
Hello Lucas,

Please ignore this if you have come across this kind of Ecore Editor
previously.
Check out the "Emphatic Editor" for creating Ecore files.

Regards,
Madanagopal.


On Tue, 01 Aug 2006 16:07:31 +0200, Radek Dvorak
<radek.dvorak@borland.com> wrote:

> Hi,
>
> If you look at the ecore metamodel, there is EModelElement class which
> can
> contain EAnnotation elements via
> 'eAnnotations' reference and to my best knowledge of ecore, constraints
> are
> extracted only from there.
> So most probably, you can not reuse them due to the containment
> relationship.
> Anyway, you'd better check yourself ;-)
>
> Regards,
> /Radek
>
> "lucas bigeardel" <lucas.bigeardel@gmail.com> wrote in message
> news:eanjq9$n7u$1@utils.eclipse.org...
>> Hi,
>>
>> you're right I did it with simple annotations.
>>
>> Did you managed to make it working with Annotations references.
>>
>> In my case, reference values selected by ComboBox aren't "remembered".
>>
>> I just created a EAnnotation, filling it according to EMFconstraints
>> specs
>> and drag an drop it inside the EClass to be under validation.
>>
>> The problem is that I'm not sure this is the best solution as I
>> duplicate
>> EAnnotations.
>>
>> Is there a way to define an EAnnotion and reusing it in several
>> different
>> EClasses for EMF constraints validation code generation (eg: with Ecore
>> editor)?
>>
>> regards,
>>
>> - Lucas
>>
>> "Radek Dvorak" <radek.dvorak@borland.com> wrote in message
>> news:ealb70$ibh$1@utils.eclipse.org...
>>> Hi Lucas,
>>>
>>> Sure, you can use GMF ecore editor to design constraints for EMF
>>> generated validators.
>>> At the moment, only by plain creation of annotation elements the same
>>> way
>>> as if edited in non-graphical ecore
>>> editor.
>>> There is no special constraint modeling support available now.
>>>
>>> Regards,
>>> /Radek
>>>
>>> "lucas bigeardel" <lucas.bigeardel@gmail.com> wrote in message
>>> news:eal7j3$ihm$1@utils.eclipse.org...
>>>> Hello,
>>>>
>>>> Validation framework overview article is really interresting. It
>>>> proposes a
>>>> solution to validate EMF models even in cases EMFT based validation
>>>> solutions are not possible (eg : EMF "batch" use).
>>>>
>>>> My concern is I dont have rose license and already did my design with
>>>> GMF
>>>> ecore editor. So, I would like to find a way to design constraints in
>>>> this
>>>> configuration.
>>>>
>>>> OK, I know I am modeler addicted (and poor as well).
>>>>
>>>> Is there a way to define constraints at design time with the GMF ecore
>>>> editor integration ?
>>>>
>>>> I'm not sure this post is 100% GMF, I posted to EMF newsgroup just in
>>>> case.
>>>>
>>>> regards,
>>>>
>>>> - Lucas
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Previous Topic:Re: Opening an editor with focus on an element
Next Topic:Re: GMF errors
Goto Forum:
  


Current Time: Tue Nov 12 19:49:26 GMT 2024

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

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

Back to the top