Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Visibility of link when i click group element in the diagram
icon9.gif  Visibility of link when i click group element in the diagram [message #490176] Wed, 07 October 2009 16:24 Go to next message
marco  is currently offline marco Friend
Messages: 82
Registered: September 2009
Member
@gmf.node(figure="ellipse",label = "name")
class group extends Element {
@gmf.link(source.decoration="rhomb",target.decoration="rhomb ")
ref Element[*] members;
}

Each element can be connected to a group.

Once you create a group, I see links to it colleges only when I click on the group.

I just deselect the group that the links were not more visible.

How do I make this?

thanks
marco
Re: Visibility of link when i click group element in the diagram [message #490189 is a reply to message #490176] Wed, 07 October 2009 17:46 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Marco,

This sounds strange. Could you please provide a minimal complete .emf
that demonstrates this?

Cheers,
Dimitris

marco wrote:
> @gmf.node(figure="ellipse",label = "name")
> class group extends Element {
> @gmf.link(source.decoration="rhomb",target.decoration="rhomb ")
> ref Element[*] members;
> }
>
> Each element can be connected to a group.
>
> Once you create a group, I see links to it colleges only when I click on
> the group.
>
> I just deselect the group that the links were not more visible.
>
> How do I make this?
>
> thanks
> marco


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Visibility of link when i click group element in the diagram [message #490452 is a reply to message #490189] Thu, 08 October 2009 17:09 Go to previous messageGo to next message
marco  is currently offline marco Friend
Messages: 82
Registered: September 2009
Member
@namespace(uri="http://dually/a0", prefix="A0")

@gmf(foo="bar")
package A0;

enum LinkNavigability {
bidirectional = 0;
unidirectional = 1;
}
@gmf.link(source="from",target="to")
abstract class Link extends Element{
attr LinkNavigability navigability;
ref InteractionPoint[1] from;
ref InteractionPoint[1] to;
ref Component fromContext;
ref Component toContext;
}

@gmf.node(figure="rectangle",label="name")
abstract class Component extends Element{
@gmf.compartment(foo="bar")
val InteractionPoint[*] points;
}


@gmf.node(figure="rectangle", size="20,20", label="name",
label.placement="external", label.icon="false")
class InteractionPoint extends Element{
}

class SAcomponent extends Component {
}

@gmf.node(figure="rounded",label="name")
class SAconnector extends Component {
@gmf.compartment(foo="bar", collapsible="false")
val SAcomponent subSAcomponent;
}

@gmf.link(target.decoration="rhomb",source.decoration="rhomb ")
class SABinding extends Link {
}

@gmf.link(target.decoration="arrow")
class SAChannel extends Link {
}

@gmf.node(figure="ellipse",label = "name")
class group extends Element {
@gmf.link(target.decoration="rhomb")
ref Element[*] members;
}
class Element {
attr String name;
attr String description;
}

@gmf.diagram (foo="bar")
class A0Spec extends Element {
val Element[*] elements;
}

I created a metamodel easier but with the same features as mine.

regards marco
Re: Visibility of link when i click group element in the diagram [message #490524 is a reply to message #490452] Thu, 08 October 2009 23:11 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Marco,

I can't reproduce this. I can create a Group and
SAComponents/SAConnectors, draw Members links between them and the links
are visible regardless of whether the Group is selected or not...

BTW, I had to remove an extra space from

@gmf.link(target.decoration="rhomb",source.decoration="rhomb ")

to make this work.

Cheers,
Dimitris

marco wrote:
> @namespace(uri="http://dually/a0", prefix="A0")
>
> @gmf(foo="bar")
> package A0;
>
> enum LinkNavigability {
> bidirectional = 0;
> unidirectional = 1;
> }
> @gmf.link(source="from",target="to")
> abstract class Link extends Element{
> attr LinkNavigability navigability;
> ref InteractionPoint[1] from;
> ref InteractionPoint[1] to;
> ref Component fromContext;
> ref Component toContext;
> }
>
> @gmf.node(figure="rectangle",label="name")
> abstract class Component extends Element{
> @gmf.compartment(foo="bar")
> val InteractionPoint[*] points;
> }
> @gmf.node(figure="rectangle", size="20,20", label="name",
> label.placement="external", label.icon="false")
> class InteractionPoint extends Element{
> }
>
> class SAcomponent extends Component {
> }
>
> @gmf.node(figure="rounded",label="name")
> class SAconnector extends Component {
> @gmf.compartment(foo="bar", collapsible="false")
> val SAcomponent subSAcomponent;
> }
>
> @gmf.link(target.decoration="rhomb",source.decoration="rhomb ")
> class SABinding extends Link {
> }
> @gmf.link(target.decoration="arrow")
> class SAChannel extends Link {
> }
> @gmf.node(figure="ellipse",label = "name")
> class group extends Element {
> @gmf.link(target.decoration="rhomb")
> ref Element[*] members;
> }
> class Element {
> attr String name;
> attr String description;
> }
>
> @gmf.diagram (foo="bar")
> class A0Spec extends Element {
> val Element[*] elements;
> }
>
> I created a metamodel easier but with the same features as mine.
>
> regards marco


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Visibility of link when i click group element in the diagram [message #490728 is a reply to message #490524] Fri, 09 October 2009 21:12 Go to previous messageGo to next message
marco  is currently offline marco Friend
Messages: 82
Registered: September 2009
Member
I'm sorry you saw after that was the extra space in that row.

I did not understand if you tell me that you can not realize what it takes me.

you can do what I need?

Click on a group and display the links with him and just make the issue disappear links.

I hope there's a way to solve this problem.

thanks
marco
Re: Visibility of link when i click group element in the diagram [message #490743 is a reply to message #490728] Sat, 10 October 2009 01:14 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Marco,

Could you possibly prepare a screencast (e.g. using www.srceenr.com)
that illustrates the problem? I'm still not convinced that we're talking
about the same problem so this might help...

Cheers,
Dimitris

marco wrote:
> I'm sorry you saw after that was the extra space in that row.
>
> I did not understand if you tell me that you can not realize what it
> takes me.
>
> you can do what I need?
>
> Click on a group and display the links with him and just make the issue
> disappear links.
>
> I hope there's a way to solve this problem.
>
> thanks
> marco


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Visibility of link when i click group element in the diagram [message #581598 is a reply to message #490176] Wed, 07 October 2009 17:46 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Marco,

This sounds strange. Could you please provide a minimal complete .emf
that demonstrates this?

Cheers,
Dimitris

marco wrote:
> @gmf.node(figure="ellipse",label = "name")
> class group extends Element {
> @gmf.link(source.decoration="rhomb",target.decoration="rhomb ")
> ref Element[*] members;
> }
>
> Each element can be connected to a group.
>
> Once you create a group, I see links to it colleges only when I click on
> the group.
>
> I just deselect the group that the links were not more visible.
>
> How do I make this?
>
> thanks
> marco


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Visibility of link when i click group element in the diagram [message #581761 is a reply to message #490189] Thu, 08 October 2009 17:09 Go to previous message
marco  is currently offline marco Friend
Messages: 82
Registered: September 2009
Member
@namespace(uri="http://dually/a0", prefix="A0")

@gmf(foo="bar")
package A0;

enum LinkNavigability {
bidirectional = 0;
unidirectional = 1;
}
@gmf.link(source="from",target="to")
abstract class Link extends Element{
attr LinkNavigability navigability;
ref InteractionPoint[1] from;
ref InteractionPoint[1] to;
ref Component fromContext;
ref Component toContext;
}

@gmf.node(figure="rectangle",label="name")
abstract class Component extends Element{
@gmf.compartment(foo="bar")
val InteractionPoint[*] points;
}


@gmf.node(figure="rectangle", size="20,20", label="name",
label.placement="external", label.icon="false")
class InteractionPoint extends Element{
}

class SAcomponent extends Component {
}

@gmf.node(figure="rounded",label="name")
class SAconnector extends Component {
@gmf.compartment(foo="bar", collapsible="false")
val SAcomponent subSAcomponent;
}

@gmf.link(target.decoration="rhomb",source.decoration="rhomb ")
class SABinding extends Link {
}

@gmf.link(target.decoration="arrow")
class SAChannel extends Link {
}

@gmf.node(figure="ellipse",label = "name")
class group extends Element {
@gmf.link(target.decoration="rhomb")
ref Element[*] members;
}
class Element {
attr String name;
attr String description;
}

@gmf.diagram (foo="bar")
class A0Spec extends Element {
val Element[*] elements;
}

I created a metamodel easier but with the same features as mine.

regards marco
Re: Visibility of link when i click group element in the diagram [message #581776 is a reply to message #581761] Thu, 08 October 2009 23:11 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Marco,

I can't reproduce this. I can create a Group and
SAComponents/SAConnectors, draw Members links between them and the links
are visible regardless of whether the Group is selected or not...

BTW, I had to remove an extra space from

@gmf.link(target.decoration="rhomb",source.decoration="rhomb ")

to make this work.

Cheers,
Dimitris

marco wrote:
> @namespace(uri="http://dually/a0", prefix="A0")
>
> @gmf(foo="bar")
> package A0;
>
> enum LinkNavigability {
> bidirectional = 0;
> unidirectional = 1;
> }
> @gmf.link(source="from",target="to")
> abstract class Link extends Element{
> attr LinkNavigability navigability;
> ref InteractionPoint[1] from;
> ref InteractionPoint[1] to;
> ref Component fromContext;
> ref Component toContext;
> }
>
> @gmf.node(figure="rectangle",label="name")
> abstract class Component extends Element{
> @gmf.compartment(foo="bar")
> val InteractionPoint[*] points;
> }
> @gmf.node(figure="rectangle", size="20,20", label="name",
> label.placement="external", label.icon="false")
> class InteractionPoint extends Element{
> }
>
> class SAcomponent extends Component {
> }
>
> @gmf.node(figure="rounded",label="name")
> class SAconnector extends Component {
> @gmf.compartment(foo="bar", collapsible="false")
> val SAcomponent subSAcomponent;
> }
>
> @gmf.link(target.decoration="rhomb",source.decoration="rhomb ")
> class SABinding extends Link {
> }
> @gmf.link(target.decoration="arrow")
> class SAChannel extends Link {
> }
> @gmf.node(figure="ellipse",label = "name")
> class group extends Element {
> @gmf.link(target.decoration="rhomb")
> ref Element[*] members;
> }
> class Element {
> attr String name;
> attr String description;
> }
>
> @gmf.diagram (foo="bar")
> class A0Spec extends Element {
> val Element[*] elements;
> }
>
> I created a metamodel easier but with the same features as mine.
>
> regards marco


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Visibility of link when i click group element in the diagram [message #581804 is a reply to message #490524] Fri, 09 October 2009 21:12 Go to previous message
marco  is currently offline marco Friend
Messages: 82
Registered: September 2009
Member
I'm sorry you saw after that was the extra space in that row.

I did not understand if you tell me that you can not realize what it takes me.

you can do what I need?

Click on a group and display the links with him and just make the issue disappear links.

I hope there's a way to solve this problem.

thanks
marco
Re: Visibility of link when i click group element in the diagram [message #581848 is a reply to message #490728] Sat, 10 October 2009 01:14 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Marco,

Could you possibly prepare a screencast (e.g. using www.srceenr.com)
that illustrates the problem? I'm still not convinced that we're talking
about the same problem so this might help...

Cheers,
Dimitris

marco wrote:
> I'm sorry you saw after that was the extra space in that row.
>
> I did not understand if you tell me that you can not realize what it
> takes me.
>
> you can do what I need?
>
> Click on a group and display the links with him and just make the issue
> disappear links.
>
> I hope there's a way to solve this problem.
>
> thanks
> marco


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Previous Topic:Null Pointer Exception when invoking .asOrderedSet in EOL query
Next Topic: Link property with 4 field...i don't set all [URGENT]
Goto Forum:
  


Current Time: Mon Nov 24 21:41:59 GMT 2014

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

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