Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Association Link problem
Association Link problem [message #216059] Thu, 22 January 2009 00:05 Go to next message
josiaspaesjr  is currently offline josiaspaesjr Friend
Messages: 28
Registered: July 2009
Junior Member
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 #216326 is a reply to message #216059] Sat, 24 January 2009 01:31 Go to previous messageGo to next message
josiaspaesjr  is currently offline josiaspaesjr Friend
Messages: 28
Registered: July 2009
Junior Member
Help me ???

Thanks,
Josias Paes
Re: Association Link problem [message #216854 is a reply to message #216059] Fri, 30 January 2009 12:43 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
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
Previous Topic:modification of ElementInitializers generation
Next Topic:Diagram partitioning - with outline
Goto Forum:
  


Current Time: Fri Apr 26 13:21:23 GMT 2024

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

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

Back to the top