Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Eugenia] Repost: Strange Behavior of links in containers
[Eugenia] Repost: Strange Behavior of links in containers [message #550268] Thu, 29 July 2010 16:38 Go to next message
Toñi  Reina is currently offline Toñi ReinaFriend
Messages: 209
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020800020204090902040101
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi,

although I'm working with Eugenia, I've posted a message in the
eclipse.modeling.gmf newsgroup, because I think my question is more
retated to GMT than to Eugenia. But, as I have no answer until now, I'd
like to confirm that the problem is a GMF one and not an Eugenia one.

Below I have reposted the question I previously wrote in the gmt newsgroup.

Thanks in advance,
To
Re: [Eugenia] Repost: Strange Behavior of links in containers [message #550297 is a reply to message #550268] Thu, 29 July 2010 19:43 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Toni,

At a first glance it looks like a GMF issue but I'll have a closer look
and get back to you.

Cheers,
Dimitris

On 29/07/2010 19:38, Toñi Reina Quintero wrote:
> Hi,
>
> although I'm working with Eugenia, I've posted a message in the
> eclipse.modeling.gmf newsgroup, because I think my question is more
> retated to GMT than to Eugenia. But, as I have no answer until now, I'd
> like to confirm that the problem is a GMF one and not an Eugenia one.
>
> Below I have reposted the question I previously wrote in the gmt newsgroup.
>
> Thanks in advance,
> Toñi
>
> =newsgroup =================================
> Hi all,
>
> I'm generating a GMF editor with Eugenia, but I'm posting this question
> here, because I think it is a GMF problem, not an Eugenia one.
>
> In my editor, the main constructors are called Cotainers. A Container
> contains a set of Elements. Furthermore, a container also has a set of
> Ports, that has been specified as affixed.
>
> At the same time, Ports are containers and can also contain a set of
> elements.
>
> There are two kinds of connectors: link, whose purpose is to connect
> Ports, and Slots, which connect Elements.
>
> The problem arises when we try to connect two elements, one of them
> belonging to a container, and the other one belonging to a port of that
> container. I have attached a screenshot of my generated editor to
> explain better the problem.
>
> If you look at the screenshot, you'll see a two containers (Container1
> and Container2). Container1 has two ports (P1 and P2) and Container2 has
> one port (P3). Furthermore, Container1 contains two elements (E1 and
> E2), Container2 contains one element (E5). Ports also include elemnts,
> thus P1 contains E3, P2 contains E4 and P3 contains E6.
>
> As you can see there is a link connecting P2 and P3, and slots
> connecting E1 and E2, E2 and E5, E4 and E6.
>
> There are two different problems
> 1) When your try to connect with a slot E3 and E1 or E2 and E4 the line
> that connects them is not drawn on the screen. However, if you look at
> the model, the slot has been created, and the connection between the
> elements has been stored. It's seem the slot is drawn in the background.
>
> 2) Although the slot connecting E4 and E6 is depicted, if you close
> Eclipse and then open againg the diagram, this line disappears. But, as
> in the previous problem, the slot is still stored in the model.
>
> Finally, below I have included the emfatic metamodel with eugenia
> annotations that allow me to generate the editor.
>
> Best regards,
> Toñi
>
> ==CONNECTOR METAMODEL=====================================
>
> @namespace(uri="http://connector", prefix="connect")
> package connector;
>
> @gmf.diagram(foo="bar")
> class Diagram {
> val Container[+] container;
> val Link[+] links;
>
> }
>
> @gmf.node(label="name",border.color="0,0,0")
> class Container {
> attr String name;
> @gmf.affixed(foo="bar")
> val Port[2..*] ports;
>
> @gmf.compartment(layout="free",collapsible="true")
> val Element[+] elements;
>
> val Slot[2..*] slots;
> }
>
> @gmf.node(figure="rectangle", label="name",
> label.icon="false")
> class Port {
>
> attr String name;
> @gmf.compartment(layout="free",collapsible="true")
> val Element[+] element;
>
> }
>
> @gmf.node(label="name")
> class Element{
> attr String name;
> ref Slot[+]#source inputSlots;
> ref Slot[+]#target outputSlots;
> }
>
> @gmf.link(source="source", target="target", label="name",
> target.decoration="arrow", color="0,0,0", style="dash")
> class Slot{
> attr String name;
> ref Element#inputSlots source;
> ref Element#outputSlots target;
> }
>
> @gmf.link(source="source", target="target", label="name",
> target.decoration="arrow", color="0,0,0", width="2")
> class Link{
> ref Port source;
> ref Port target;
> }
>
>
>
Re: [Eugenia] Repost: Strange Behavior of links in containers [message #550323 is a reply to message #550297] Thu, 29 July 2010 22:31 Go to previous message
Toñi  Reina is currently offline Toñi ReinaFriend
Messages: 209
Registered: July 2009
Senior Member
Thx a lot
El 29/07/2010 21:43, Dimitris Kolovos escribió:
> Hi Toni,
>
> At a first glance it looks like a GMF issue but I'll have a closer look
> and get back to you.
>
> Cheers,
> Dimitris
>
> On 29/07/2010 19:38, Toñi Reina Quintero wrote:
>> Hi,
>>
>> although I'm working with Eugenia, I've posted a message in the
>> eclipse.modeling.gmf newsgroup, because I think my question is more
>> retated to GMT than to Eugenia. But, as I have no answer until now, I'd
>> like to confirm that the problem is a GMF one and not an Eugenia one.
>>
>> Below I have reposted the question I previously wrote in the gmt
>> newsgroup.
>>
>> Thanks in advance,
>> Toñi
>>
>> =newsgroup =================================
>> Hi all,
>>
>> I'm generating a GMF editor with Eugenia, but I'm posting this question
>> here, because I think it is a GMF problem, not an Eugenia one.
>>
>> In my editor, the main constructors are called Cotainers. A Container
>> contains a set of Elements. Furthermore, a container also has a set of
>> Ports, that has been specified as affixed.
>>
>> At the same time, Ports are containers and can also contain a set of
>> elements.
>>
>> There are two kinds of connectors: link, whose purpose is to connect
>> Ports, and Slots, which connect Elements.
>>
>> The problem arises when we try to connect two elements, one of them
>> belonging to a container, and the other one belonging to a port of that
>> container. I have attached a screenshot of my generated editor to
>> explain better the problem.
>>
>> If you look at the screenshot, you'll see a two containers (Container1
>> and Container2). Container1 has two ports (P1 and P2) and Container2 has
>> one port (P3). Furthermore, Container1 contains two elements (E1 and
>> E2), Container2 contains one element (E5). Ports also include elemnts,
>> thus P1 contains E3, P2 contains E4 and P3 contains E6.
>>
>> As you can see there is a link connecting P2 and P3, and slots
>> connecting E1 and E2, E2 and E5, E4 and E6.
>>
>> There are two different problems
>> 1) When your try to connect with a slot E3 and E1 or E2 and E4 the line
>> that connects them is not drawn on the screen. However, if you look at
>> the model, the slot has been created, and the connection between the
>> elements has been stored. It's seem the slot is drawn in the background.
>>
>> 2) Although the slot connecting E4 and E6 is depicted, if you close
>> Eclipse and then open againg the diagram, this line disappears. But, as
>> in the previous problem, the slot is still stored in the model.
>>
>> Finally, below I have included the emfatic metamodel with eugenia
>> annotations that allow me to generate the editor.
>>
>> Best regards,
>> Toñi
>>
>> ==CONNECTOR METAMODEL=====================================
>>
>> @namespace(uri="http://connector", prefix="connect")
>> package connector;
>>
>> @gmf.diagram(foo="bar")
>> class Diagram {
>> val Container[+] container;
>> val Link[+] links;
>>
>> }
>>
>> @gmf.node(label="name",border.color="0,0,0")
>> class Container {
>> attr String name;
>> @gmf.affixed(foo="bar")
>> val Port[2..*] ports;
>>
>> @gmf.compartment(layout="free",collapsible="true")
>> val Element[+] elements;
>>
>> val Slot[2..*] slots;
>> }
>>
>> @gmf.node(figure="rectangle", label="name",
>> label.icon="false")
>> class Port {
>>
>> attr String name;
>> @gmf.compartment(layout="free",collapsible="true")
>> val Element[+] element;
>>
>> }
>>
>> @gmf.node(label="name")
>> class Element{
>> attr String name;
>> ref Slot[+]#source inputSlots;
>> ref Slot[+]#target outputSlots;
>> }
>>
>> @gmf.link(source="source", target="target", label="name",
>> target.decoration="arrow", color="0,0,0", style="dash")
>> class Slot{
>> attr String name;
>> ref Element#inputSlots source;
>> ref Element#outputSlots target;
>> }
>>
>> @gmf.link(source="source", target="target", label="name",
>> target.decoration="arrow", color="0,0,0", width="2")
>> class Link{
>> ref Port source;
>> ref Port target;
>> }
>>
>>
>>
>
Re: [Eugenia] Repost: Strange Behavior of links in containers [message #591009 is a reply to message #550268] Thu, 29 July 2010 19:43 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Toni,

At a first glance it looks like a GMF issue but I'll have a closer look
and get back to you.

Cheers,
Dimitris

On 29/07/2010 19:38, Toñi Reina Quintero wrote:
> Hi,
>
> although I'm working with Eugenia, I've posted a message in the
> eclipse.modeling.gmf newsgroup, because I think my question is more
> retated to GMT than to Eugenia. But, as I have no answer until now, I'd
> like to confirm that the problem is a GMF one and not an Eugenia one.
>
> Below I have reposted the question I previously wrote in the gmt newsgroup.
>
> Thanks in advance,
> Toñi
>
> =newsgroup =================================
> Hi all,
>
> I'm generating a GMF editor with Eugenia, but I'm posting this question
> here, because I think it is a GMF problem, not an Eugenia one.
>
> In my editor, the main constructors are called Cotainers. A Container
> contains a set of Elements. Furthermore, a container also has a set of
> Ports, that has been specified as affixed.
>
> At the same time, Ports are containers and can also contain a set of
> elements.
>
> There are two kinds of connectors: link, whose purpose is to connect
> Ports, and Slots, which connect Elements.
>
> The problem arises when we try to connect two elements, one of them
> belonging to a container, and the other one belonging to a port of that
> container. I have attached a screenshot of my generated editor to
> explain better the problem.
>
> If you look at the screenshot, you'll see a two containers (Container1
> and Container2). Container1 has two ports (P1 and P2) and Container2 has
> one port (P3). Furthermore, Container1 contains two elements (E1 and
> E2), Container2 contains one element (E5). Ports also include elemnts,
> thus P1 contains E3, P2 contains E4 and P3 contains E6.
>
> As you can see there is a link connecting P2 and P3, and slots
> connecting E1 and E2, E2 and E5, E4 and E6.
>
> There are two different problems
> 1) When your try to connect with a slot E3 and E1 or E2 and E4 the line
> that connects them is not drawn on the screen. However, if you look at
> the model, the slot has been created, and the connection between the
> elements has been stored. It's seem the slot is drawn in the background.
>
> 2) Although the slot connecting E4 and E6 is depicted, if you close
> Eclipse and then open againg the diagram, this line disappears. But, as
> in the previous problem, the slot is still stored in the model.
>
> Finally, below I have included the emfatic metamodel with eugenia
> annotations that allow me to generate the editor.
>
> Best regards,
> Toñi
>
> ==CONNECTOR METAMODEL=====================================
>
> @namespace(uri="http://connector", prefix="connect")
> package connector;
>
> @gmf.diagram(foo="bar")
> class Diagram {
> val Container[+] container;
> val Link[+] links;
>
> }
>
> @gmf.node(label="name",border.color="0,0,0")
> class Container {
> attr String name;
> @gmf.affixed(foo="bar")
> val Port[2..*] ports;
>
> @gmf.compartment(layout="free",collapsible="true")
> val Element[+] elements;
>
> val Slot[2..*] slots;
> }
>
> @gmf.node(figure="rectangle", label="name",
> label.icon="false")
> class Port {
>
> attr String name;
> @gmf.compartment(layout="free",collapsible="true")
> val Element[+] element;
>
> }
>
> @gmf.node(label="name")
> class Element{
> attr String name;
> ref Slot[+]#source inputSlots;
> ref Slot[+]#target outputSlots;
> }
>
> @gmf.link(source="source", target="target", label="name",
> target.decoration="arrow", color="0,0,0", style="dash")
> class Slot{
> attr String name;
> ref Element#inputSlots source;
> ref Element#outputSlots target;
> }
>
> @gmf.link(source="source", target="target", label="name",
> target.decoration="arrow", color="0,0,0", width="2")
> class Link{
> ref Port source;
> ref Port target;
> }
>
>
>
Re: [Eugenia] Repost: Strange Behavior of links in containers [message #591020 is a reply to message #550297] Thu, 29 July 2010 22:31 Go to previous message
Toñi  Reina is currently offline Toñi ReinaFriend
Messages: 209
Registered: July 2009
Senior Member
Thx a lot
El 29/07/2010 21:43, Dimitris Kolovos escribió:
> Hi Toni,
>
> At a first glance it looks like a GMF issue but I'll have a closer look
> and get back to you.
>
> Cheers,
> Dimitris
>
> On 29/07/2010 19:38, Toñi Reina Quintero wrote:
>> Hi,
>>
>> although I'm working with Eugenia, I've posted a message in the
>> eclipse.modeling.gmf newsgroup, because I think my question is more
>> retated to GMT than to Eugenia. But, as I have no answer until now, I'd
>> like to confirm that the problem is a GMF one and not an Eugenia one.
>>
>> Below I have reposted the question I previously wrote in the gmt
>> newsgroup.
>>
>> Thanks in advance,
>> Toñi
>>
>> =newsgroup =================================
>> Hi all,
>>
>> I'm generating a GMF editor with Eugenia, but I'm posting this question
>> here, because I think it is a GMF problem, not an Eugenia one.
>>
>> In my editor, the main constructors are called Cotainers. A Container
>> contains a set of Elements. Furthermore, a container also has a set of
>> Ports, that has been specified as affixed.
>>
>> At the same time, Ports are containers and can also contain a set of
>> elements.
>>
>> There are two kinds of connectors: link, whose purpose is to connect
>> Ports, and Slots, which connect Elements.
>>
>> The problem arises when we try to connect two elements, one of them
>> belonging to a container, and the other one belonging to a port of that
>> container. I have attached a screenshot of my generated editor to
>> explain better the problem.
>>
>> If you look at the screenshot, you'll see a two containers (Container1
>> and Container2). Container1 has two ports (P1 and P2) and Container2 has
>> one port (P3). Furthermore, Container1 contains two elements (E1 and
>> E2), Container2 contains one element (E5). Ports also include elemnts,
>> thus P1 contains E3, P2 contains E4 and P3 contains E6.
>>
>> As you can see there is a link connecting P2 and P3, and slots
>> connecting E1 and E2, E2 and E5, E4 and E6.
>>
>> There are two different problems
>> 1) When your try to connect with a slot E3 and E1 or E2 and E4 the line
>> that connects them is not drawn on the screen. However, if you look at
>> the model, the slot has been created, and the connection between the
>> elements has been stored. It's seem the slot is drawn in the background.
>>
>> 2) Although the slot connecting E4 and E6 is depicted, if you close
>> Eclipse and then open againg the diagram, this line disappears. But, as
>> in the previous problem, the slot is still stored in the model.
>>
>> Finally, below I have included the emfatic metamodel with eugenia
>> annotations that allow me to generate the editor.
>>
>> Best regards,
>> Toñi
>>
>> ==CONNECTOR METAMODEL=====================================
>>
>> @namespace(uri="http://connector", prefix="connect")
>> package connector;
>>
>> @gmf.diagram(foo="bar")
>> class Diagram {
>> val Container[+] container;
>> val Link[+] links;
>>
>> }
>>
>> @gmf.node(label="name",border.color="0,0,0")
>> class Container {
>> attr String name;
>> @gmf.affixed(foo="bar")
>> val Port[2..*] ports;
>>
>> @gmf.compartment(layout="free",collapsible="true")
>> val Element[+] elements;
>>
>> val Slot[2..*] slots;
>> }
>>
>> @gmf.node(figure="rectangle", label="name",
>> label.icon="false")
>> class Port {
>>
>> attr String name;
>> @gmf.compartment(layout="free",collapsible="true")
>> val Element[+] element;
>>
>> }
>>
>> @gmf.node(label="name")
>> class Element{
>> attr String name;
>> ref Slot[+]#source inputSlots;
>> ref Slot[+]#target outputSlots;
>> }
>>
>> @gmf.link(source="source", target="target", label="name",
>> target.decoration="arrow", color="0,0,0", style="dash")
>> class Slot{
>> attr String name;
>> ref Element#inputSlots source;
>> ref Element#outputSlots target;
>> }
>>
>> @gmf.link(source="source", target="target", label="name",
>> target.decoration="arrow", color="0,0,0", width="2")
>> class Link{
>> ref Port source;
>> ref Port target;
>> }
>>
>>
>>
>
Previous Topic:[Eugenia] Repost: Strange Behavior of links in containers
Next Topic:metamodel EOL
Goto Forum:
  


Current Time: Fri Apr 19 13:31:21 GMT 2024

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

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

Back to the top