Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Can we determine incoming connections from the impl?
Can we determine incoming connections from the impl? [message #199295] Mon, 28 July 2008 20:04 Go to next message
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
I'm trying to setup some validation rules, and want to ensure that every
node on my diagram has an incoming connection? Is there a way from the
impl to get the incoming connections if they exist?

This would also be useful in my future to make sure that certain nodes
have a particular type of node as a "parent" in the tree..., though the
parent can have * different types as children.

Thanks in advance
Brian Jakubik
Re: Can we determine incoming connections from the impl? [message #199303 is a reply to message #199295] Mon, 28 July 2008 20:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Brian,

The GMF runtime automatically adds a CrossReferenceAdapter to your
resource set. You can use the API that it defines (and that it
inherites from ECrossReferenceAdapter in EMF) to find objects that
reference some target object using a given EReference.

HTH,

Christian

Brian Jakubik wrote:
> I'm trying to setup some validation rules, and want to ensure that every
> node on my diagram has an incoming connection? Is there a way from the
> impl to get the incoming connections if they exist?
>
> This would also be useful in my future to make sure that certain nodes
> have a particular type of node as a "parent" in the tree..., though the
> parent can have * different types as children.
>
> Thanks in advance
> Brian Jakubik
Re: Can we determine incoming connections from the impl? [message #199311 is a reply to message #199303] Mon, 28 July 2008 23:06 Go to previous message
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
That's exactly what I needed, thanks again.

Brian

Christian W. Damus wrote:
> Hi, Brian,
>
> The GMF runtime automatically adds a CrossReferenceAdapter to your
> resource set. You can use the API that it defines (and that it
> inherites from ECrossReferenceAdapter in EMF) to find objects that
> reference some target object using a given EReference.
>
> HTH,
>
> Christian
>
> Brian Jakubik wrote:
>> I'm trying to setup some validation rules, and want to ensure that
>> every node on my diagram has an incoming connection? Is there a way
>> from the impl to get the incoming connections if they exist?
>>
>> This would also be useful in my future to make sure that certain nodes
>> have a particular type of node as a "parent" in the tree..., though
>> the parent can have * different types as children.
>>
>> Thanks in advance
>> Brian Jakubik
Previous Topic:Diagram configuration option
Next Topic:mindmap tutorial question
Goto Forum:
  


Current Time: Thu Apr 25 03:49:28 GMT 2024

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

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

Back to the top