Association Link problem [message #216059] |
Wed, 21 January 2009 19:05  |
Eclipse User |
|
|
|
Hi all,
I have the following problem in my Association Link. The structure is this
may (1), ie, my association (Contribution Link) has its type defined by an
Enum. When I create my Contribution Link this is happening (2). I need
when I create my Contribution Link each type in menu (1)
each type in the menu is set to name EEnumLiteral, eg:
Create MAKE
Create BREAK
Create UNKNOWN
...
(1)http://img502.imageshack.us/my.php?image=93618121vo1.jpg
(2)http://img502.imageshack.us/my.php?image=43211409df1.jpg
Another question,
This Constribution Link contains constraints between Elements (1), for
example, Contribution MAKE only be used between GOAL E TASK. As I do that
for the creation of a Contribution between these elements show in menu
only MAKE (allowed) and not show the other types that can not be used?
Thanks,
Josias Paes
|
|
|
|
Re: Association Link problem [message #216854 is a reply to message #216059] |
Fri, 30 January 2009 07:43  |
Eclipse User |
|
|
|
Hello Josias,
> each type in the menu is set to name EEnumLiteral, eg:
> Create MAKE
> Create BREAK
> Create UNKNOWN
Then you have to create MAKE, BREAK, ..., UNKNOWN link mappings having own
creation tools and (!) corresponding Feature Seq Initializer/Constraint elements
specified. In other words – make link of each type recognized as a different
link type by GMF.
> only MAKE (allowed) and not show the other types that can not be used?
You have to add appropriate LinkConstraints to the LinkMapping representing
MAKE – this will tell GMF that MAKE link cannot be created from/to some specific
nodes.
-----------------
Alex Shatalin
|
|
|
Powered by
FUDForum. Page generated in 0.27011 seconds