Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to display two relations at different time using the same Tool?
How to display two relations at different time using the same Tool? [message #182679] Fri, 11 April 2008 17:12 Go to next message
Eclipse UserFriend
Originally posted by: feliutn.gmail.com

Hi all,

I'm trying to display two relations using the same "Tool" but at different
moment. In my diagram I have a class called BusinessService and other one
called Classifier related by two unidirectional relations (one from
Classifier to BusinessService and the other one viceversa). The user
should be able to establish, graphically, a relation from the
BusinessService to the Classifier or another one from the Classifier to
the BusinessService using the same Tool in the ToolBar.

So, in the gmfmap I declare two Link Mappings, one for each relation. Both
have the same value in the input "Tool". It doesn't do what I'm interested
in, because the two relations are displayed at the same time and I would
like to display only one of them, depending on the direction (from
Classifier to BusinessService or viceversa...).

I don't know if it's a good explanation. It's no easy to explain...
Anyway, if anybody could help me...thanks a lot on advanced!

Feliu
Re: How to display two relations at different time using the same Tool? [message #182720 is a reply to message #182679] Fri, 11 April 2008 18:52 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Feliu,

Well, you have to create constraint for each of these two link mappings and
this constraint should "hide" "second" link. The problem is how to derermine
which link is primary one. You can add some properties into your domain model
and set these properties on creating a link from the toolbar.
-----------------
Alex Shatalin
Previous Topic:The "Sample" menu invades the Eclipse Menubar
Next Topic:Set automatically the width when creating an element
Goto Forum:
  


Current Time: Sat Apr 27 00:32:31 GMT 2024

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

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

Back to the top