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 #491786] 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 #491799 is a reply to message #491786] Thu, 15 October 2009 21:46 Go to previous messageGo to next 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
Re: Set source.decoration in a link when navigability is BIDIRECTIONAL [message #492067 is a reply to message #491799] Sat, 17 October 2009 22:58 Go to previous messageGo to next message
marco  is currently offline marco Friend
Messages: 82
Registered: September 2009
Member
Wanting to change the Java class that I redirect the link ... How can I do?

I tried to change the method that creates the arrow for the target element but I can not recall it to create the arrow for the target source.

tells me that can not be accessed from the scope where i am.

Another tip
How do I make a link invisible?

I also need to know that I have selected a given item.
what method does it?
Re: Set source.decoration in a link when navigability is BIDIRECTIONAL [message #492088 is a reply to message #492067] Sun, 18 October 2009 14:20 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Marco,

None of these questions appear to be related to EuGENia so I'd (once
again) suggest posting them to the GMF forum where you're more likely to
get any help.

Cheers,
Dimitris

marco wrote:
> Wanting to change the Java class that I redirect the link ... How can I do?
>
> I tried to change the method that creates the arrow for the target
> element but I can not recall it to create the arrow for the target source.
>
> tells me that can not be accessed from the scope where i am.
>
> Another tip
> How do I make a link invisible?
>
> I also need to know that I have selected a given item.
> what method does it?
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Set source.decoration in a link when navigability is BIDIRECTIONAL [message #492127 is a reply to message #492088] Sun, 18 October 2009 21:59 Go to previous message
marco  is currently offline marco Friend
Messages: 82
Registered: September 2009
Member
becose in the forum GMF i don't have ansewere...
Re: Set source.decoration in a link when navigability is BIDIRECTIONAL [message #582278 is a reply to message #491799] Sat, 17 October 2009 22:58 Go to previous message
marco  is currently offline marco Friend
Messages: 82
Registered: September 2009
Member
Wanting to change the Java class that I redirect the link ... How can I do?

I tried to change the method that creates the arrow for the target element but I can not recall it to create the arrow for the target source.

tells me that can not be accessed from the scope where i am.

Another tip
How do I make a link invisible?

I also need to know that I have selected a given item.
what method does it?
Re: Set source.decoration in a link when navigability is BIDIRECTIONAL [message #582296 is a reply to message #582278] Sun, 18 October 2009 14:53 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Marco,

None of these questions appear to be related to EuGENia so I'd (once
again) suggest posting them to the GMF forum where you're more likely to
get any help.

Cheers,
Dimitris

marco wrote:
> Wanting to change the Java class that I redirect the link ... How can I do?
>
> I tried to change the method that creates the arrow for the target
> element but I can not recall it to create the arrow for the target source.
>
> tells me that can not be accessed from the scope where i am.
>
> Another tip
> How do I make a link invisible?
>
> I also need to know that I have selected a given item.
> what method does it?
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Set source.decoration in a link when navigability is BIDIRECTIONAL [message #582314 is a reply to message #582296] Sun, 18 October 2009 21:59 Go to previous message
marco  is currently offline marco Friend
Messages: 82
Registered: September 2009
Member
becose in the forum GMF i don't have ansewere...
Previous Topic:Cannot reproduce EVL-GMF tutorial
Next Topic:[EVL] ConstraintTrace
Goto Forum:
  


Current Time: Fri Mar 29 15:57:56 GMT 2024

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

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

Back to the top