Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Set source.decoration in a link when navigability is BIDIRECTIONAL
Set source.decoration in a link when navigability is BIDIRECTIONAL [message #582135] Thu, 15 October 2009 20:20 Go to next message
marco  is currently offline marco Friend
Messages: 82
Registered: September 2009
Member
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.link(target.decoration="rhomb")
class SABinding extends Link {
}

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

how can I create source.decoration where the attribute navigability has the value 0 (bidirectional)

thanks
marco
Re: Set source.decoration in a link when navigability is BIDIRECTIONAL [message #582195 is a reply to message #582135] Thu, 15 October 2009 21:46 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Marco,

I believe that to update figures in response to changes to the
respective semantic elements, you need to modify the generated code.
Below is a link that appears to be relevant.

http://serdom.eu/ser/2009/01/21/eclipse-gmf-making-figures-s ensitive-to-attributes-of-semantic-elements

Not sure I can help any further with this one as it's clearly not a
EuGENia issue. If you need further help with this, I'd recommend posting
to the GMF forum.

Cheers,
Dimitris

marco wrote:
> 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.link(target.decoration="rhomb")
> class SABinding extends Link {
> }
>
> @gmf.link(target.decoration="arrow")
> class SAChannel extends Link {
> }
>
> how can I create source.decoration where the attribute navigability has
> the value 0 (bidirectional)
>
> thanks
> marco
Previous Topic:Node with 2 labels [GMF]
Next Topic:Cannot reproduce EVL-GMF tutorial
Goto Forum:
  


Current Time: Fri Apr 26 23:13:47 GMT 2024

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

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

Back to the top