Home » Modeling » Epsilon » Visibility of link when i click group element in the diagram
| |
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 |
marco 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 |
Dimitrios Kolovos 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 #581761 is a reply to message #490189] |
Thu, 08 October 2009 17:09 |
marco 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 |
Dimitrios Kolovos 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
|
|
| | |
Goto Forum:
Current Time: Thu Apr 25 12:02:36 GMT 2024
Powered by FUDForum. Page generated in 0.03934 seconds
|