Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » LinkMap constraint not get evaluated at runtime
- LinkMap constraint not get evaluated at runtime [message #62781] Sun, 15 October 2006 12:58 Go to next message
Eclipse UserFriend
Originally posted by: greenl.mot.com

I found my LinkMap constraint (C1) was not evaluated at runtime, while my
Source End Constraint (C2) and Target End Constraint (C3) did get evaluated.

I searched the code and found the expression of C1 was copied to a generated
file named XXXVisualIDRegistry.java while C2 and C3 was copied to a
generated file named XXXBaseItemSemanticEditPolicy.java. I wonder why there
are this sort of difference and hope you guys can give me some hints.

Thanks,
Green
- Re: LinkMap constraint not get evaluated at runtime [message #62861 is a reply to message #62781] Mon, 16 October 2006 03:34 Go to previous message
Eclipse UserFriend
Hi Green,

LinkMapping constraint is a constraint that allows one to differentiate
between several element types which are bound to the same domain model
EClass. E.g., in the MindMap example, there are three links bound to the
domain EClass Relationship, but their visual aspects are different based on
the value of the feature Relationship::type.

These constraints are rarely, if at all, evaluated at creation time, but are
evaluated by, e.g., XXXCanonicalEditPolicy to find out which element (or
element with which visualID) to create when an underlying model element is
created.

In contrast, LinkConstraints element and its direct children, Source End
Constraint and Target End Constraint are creation constraints. They are used
at creation time to disable creation of links if a link violates any of the
given constraints.

Best regards,
Boris


"Green Law" <greenl@mot.com> wrote in message
news:egtpcc$395$1@utils.eclipse.org...
>I found my LinkMap constraint (C1) was not evaluated at runtime, while my
>Source End Constraint (C2) and Target End Constraint (C3) did get
>evaluated.
>
> I searched the code and found the expression of C1 was copied to a
> generated file named XXXVisualIDRegistry.java while C2 and C3 was copied
> to a generated file named XXXBaseItemSemanticEditPolicy.java. I wonder why
> there are this sort of difference and hope you guys can give me some
> hints.
>
> Thanks,
> Green
>
Previous Topic:Where can I get Logic Sample source code
Next Topic:How to create Connection Figure like ...
Goto Forum:
  


Current Time: Sun Apr 27 21:59:47 EDT 2025

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

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

Back to the top