Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Multiple Connections between Objects
Multiple Connections between Objects [message #204499] Fri, 05 September 2008 07:47 Go to next message
Andreas  is currently offline Andreas Friend
Messages: 29
Registered: July 2009
Junior Member
Good morning everyone,

i want to create multiple connections between two figures. but when i try
this with an 0..* reference in my model i can just create one connection
between two objects. Does anyone know manage multiple connections between
objects?

thanks

andreas
Re: Multiple Connections between Objects [message #205047 is a reply to message #204499] Wed, 10 September 2008 12:36 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Andreas,

Can you create this multiplt connection using EMF-genersated tree editor?

-----------------
Alex Shatalin
Re: Multiple Connections between Objects [message #205063 is a reply to message #205047] Wed, 10 September 2008 12:46 Go to previous messageGo to next message
Andreas  is currently offline Andreas Friend
Messages: 29
Registered: July 2009
Junior Member
Hi,

thanks for you hint, but Christian (next Thread) told me, that i have to
create an distinct EClass. I future i have also put values or a value list
(in the property sheet) to this connection.
Re: Multiple Connections between Objects [message #205163 is a reply to message #205047] Thu, 11 September 2008 06:49 Go to previous messageGo to next message
Andreas  is currently offline Andreas Friend
Messages: 29
Registered: July 2009
Junior Member
Hi,

I just tried the hint out what you send to me, but it doesn't work. But
where do you mean to configurate this? in the .gmodel or the .ecore model?
Re: Multiple Connections between Objects [message #205264 is a reply to message #205163] Thu, 11 September 2008 11:30 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Andreas,

I meant, you can try openning new instance of your domain model using EMF-generated
tree editor and try to create corresponding connections (set reference values)
there. If it is working then the problem is in GMF definition of the connections.
If not - the reason is in EMF model...

-----------------
Alex Shatalin
Re: Multiple Connections between Objects [message #205300 is a reply to message #205264] Thu, 11 September 2008 11:45 Go to previous messageGo to next message
Andreas  is currently offline Andreas Friend
Messages: 29
Registered: July 2009
Junior Member
He,

thanks for your hint. but i have no clue what you mean. i'm totally new to
this and can you describe me how to do this?

thanks
Re: Multiple Connections between Objects [message #205313 is a reply to message #205300] Thu, 11 September 2008 11:49 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Andreas,

Well, using .ecore + .genmodel files you can generate .mode, .edit, .editor
plugins using EMF. These plugins allows you to create new instance of your
model using corresponding wizard + edit it using tree editor. I'm tryinto
to check if the model itself allows this kinf of connections.

-----------------
Alex Shatalin
Re: Multiple Connections between Objects [message #205323 is a reply to message #205313] Thu, 11 September 2008 11:54 Go to previous messageGo to next message
Andreas  is currently offline Andreas Friend
Messages: 29
Registered: July 2009
Junior Member
Thanks for your help. It would be great If you can find this out..

Thanks a lot for your help

andreas
Re: Multiple Connections between Objects [message #205359 is a reply to message #205323] Thu, 11 September 2008 13:22 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Andreas,

> Thanks for your help. It would be great If you can find this out..
I mean, I'm trying to check if the model itself allows this kind of connections
based on your input :-). So, can you create this kind of connections in EMF-generated
editor?

-----------------
Alex Shatalin
Re: Multiple Connections between Objects [message #205367 is a reply to message #205359] Thu, 11 September 2008 13:40 Go to previous message
Andreas  is currently offline Andreas Friend
Messages: 29
Registered: July 2009
Junior Member
He,

I tried this out. I looked in the editor code and parts of the following
function in the CommandObject

public boolean canExecute() {
if (source == null && target == null) {
return false;
}
return true;
}

But when I close the diagram an reopen it the second connection is missing.
Previous Topic:Link Constraints Problem
Next Topic:Removing Braces from a String Array
Goto Forum:
  


Current Time: Tue Apr 23 10:32:52 GMT 2024

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

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

Back to the top