Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF contraints
GMF contraints [message #220685] Fri, 06 March 2009 12:42 Go to next message
Eclipse UserFriend
Originally posted by: tobk42.gmx.de

Hello,

I'm not sure for which version(s) of GMF this applies, but when I
started modeling with GMF, declaring a java constraint resulted in a
method-to-be-implemented of the name given in the GMFmap, which was a
really nice thing, as one knew exactly which method was supposed to
implement which constraint [1]. However, for some time now, instead of
methods having that name, a number of adapters is created, which each
have a numeric identifier, and the only way to look up which adapter
handles which constraint one has to find the constraint with the same
identifier in the plugin XML.

And even worse: When inserting a new contraint, that new constraint is
not given a new number, but the number depends on the position in the
list (which, when using groups, is not always at the end of the list),
and existing constraints will be given a new number. If one has a high
number of contraints (in my case: more than fifty) re-assigning the
constraints is extremely labarous and error prone task.

Just wanted to tell this. It would be great if this could be improved in
the next version of GMF. I think simply using the names (the "body")
given in the constraint in the gmfMap instead of a numeric identifier
would be sufficient and shouldn't be much of a problem.

Regards,
Tobias

PS.: Apart from this, GMF rocks! ;-)

[1] (Of course it would have been even better if the Error-Message and
Description would have appeared in the generated method's javadoc, but a
carefully chosen method name was fine, too).
Re: GMF contraints [message #220694 is a reply to message #220685] Fri, 06 March 2009 12:54 Go to previous message
Richard Gronback is currently offline Richard GronbackFriend
Messages: 605
Registered: July 2009
Senior Member
Perhaps this will help:
http://wiki.eclipse.org/GMF_2.1_New_and_Noteworthy#Inject_Ja va_Expression_Bo
dy

Best,
Rich


On 3/6/09 7:42 AM, in article gor5o5$5r3$1@build.eclipse.org, "Tobias"
<tobk42@gmx.de> wrote:

> Hello,
>
> I'm not sure for which version(s) of GMF this applies, but when I
> started modeling with GMF, declaring a java constraint resulted in a
> method-to-be-implemented of the name given in the GMFmap, which was a
> really nice thing, as one knew exactly which method was supposed to
> implement which constraint [1]. However, for some time now, instead of
> methods having that name, a number of adapters is created, which each
> have a numeric identifier, and the only way to look up which adapter
> handles which constraint one has to find the constraint with the same
> identifier in the plugin XML.
>
> And even worse: When inserting a new contraint, that new constraint is
> not given a new number, but the number depends on the position in the
> list (which, when using groups, is not always at the end of the list),
> and existing constraints will be given a new number. If one has a high
> number of contraints (in my case: more than fifty) re-assigning the
> constraints is extremely labarous and error prone task.
>
> Just wanted to tell this. It would be great if this could be improved in
> the next version of GMF. I think simply using the names (the "body")
> given in the constraint in the gmfMap instead of a numeric identifier
> would be sufficient and shouldn't be much of a problem.
>
> Regards,
> Tobias
>
> PS.: Apart from this, GMF rocks! ;-)
>
> [1] (Of course it would have been even better if the Error-Message and
> Description would have appeared in the generated method's javadoc, but a
> carefully chosen method name was fine, too).
Previous Topic:How can I load and save the GMF model and diagram into/from another persistence like database (not a
Next Topic:Generate Model Transformation from an MouseEvent
Goto Forum:
  


Current Time: Thu Apr 25 01:53:14 GMT 2024

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

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

Back to the top