Can we determine incoming connections from the impl? [message #199295] |
Mon, 28 July 2008 16:04  |
Eclipse User |
|
|
|
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 19:06  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03358 seconds