Re: EMFCoreUtil.getReferencers returns empty set [message #45400] |
Mon, 11 September 2006 16:59  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------060404030108050302030904
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Vlad,
Since this class is org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil,
this is really a GMF question, and I don't know off hand what might be
wrong.
Vlad Ciubotariu wrote:
> I forgot to mention the two EReferences have the containment attribute
> sent to false.
>
>
> On Mon, 11 Sep 2006 15:47:05 -0400, Vlad Ciubotariu wrote:
>
>
>> I have the following gmf related code:
>>
>> protected ICommand getDestroyDependentsCommand(DestroyDependentsRequest request) {
>> Collection connections = EMFCoreUtil.getReferencers(
>> request.getElementToDestroy(),
>> new EReference[] { Bluenose2Package.eINSTANCE.getEnd_OutgoingConnections(),
>> Bluenose2Package.eINSTANCE.getEnd_IncomingConnections() });
>>
>>
>>
>>
>> return request.getDestroyDependentsCommand(connections);
>> }
>>
>> The problem is that connections is always empty, even though the element
>> to be deleted has connections (confirmed through a separate EMF view).
>>
>> I haven't done a lot of debugging of why this is happening, I'm hoping
>> there is a quick fix for this.
>>
>> thanks for looking
>> vlad
>>
>
>
--------------060404030108050302030904
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Vlad,<br>
<br>
Since this class is org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil,
this is really a GMF question, and I don't know off hand what might be
wrong.<br>
<br>
<br>
Vlad Ciubotariu wrote:
<blockquote cite="midpan.2006.09.11.20.07.18.328651@uwaterloo.ca"
type="cite">
<pre wrap="">I forgot to mention the two EReferences have the containment attribute
sent to false.
On Mon, 11 Sep 2006 15:47:05 -0400, Vlad Ciubotariu wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I have the following gmf related code:
protected ICommand getDestroyDependentsCommand(DestroyDependentsRequest request) {
Collection connections = EMFCoreUtil.getReferencers(
request.getElementToDestroy(),
new EReference[] { Bluenose2Package.eINSTANCE.getEnd_OutgoingConnections(),
Bluenose2Package.eINSTANCE.getEnd_IncomingConnections() });
return request.getDestroyDependentsCommand(connections);
}
The problem is that connections is always empty, even though the element
to be deleted has connections (confirmed through a separate EMF view).
I haven't done a lot of debugging of why this is happening, I'm hoping
there is a quick fix for this.
thanks for looking
vlad
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>
--------------060404030108050302030904--
|
|
|
Re: EMFCoreUtil.getReferencers returns empty set [message #46398 is a reply to message #45400] |
Tue, 12 September 2006 09:14  |
Eclipse User |
|
|
|
Originally posted by: vcciubot.uwaterloo.ca
Thanks a lot Ed!
I have a workaround for the problem. And sorry for my careless posting.
best regards
vlad
On Mon, 11 Sep 2006 16:59:43 -0400, Ed Merks wrote:
> Vlad,
>
> Since this class is org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil,
> this is really a GMF question, and I don't know off hand what might be
> wrong.
>
>
> Vlad Ciubotariu wrote:
>> I forgot to mention the two EReferences have the containment attribute
>> sent to false.
>>
>>
>> On Mon, 11 Sep 2006 15:47:05 -0400, Vlad Ciubotariu wrote:
>>
>>
>>> I have the following gmf related code:
>>>
>>> protected ICommand getDestroyDependentsCommand(DestroyDependentsRequest request) {
>>> Collection connections = EMFCoreUtil.getReferencers(
>>> request.getElementToDestroy(),
>>> new EReference[] { Bluenose2Package.eINSTANCE.getEnd_OutgoingConnections(),
>>> Bluenose2Package.eINSTANCE.getEnd_IncomingConnections() });
>>>
>>>
>>>
>>>
>>> return request.getDestroyDependentsCommand(connections);
>>> }
>>>
>>> The problem is that connections is always empty, even though the element
>>> to be deleted has connections (confirmed through a separate EMF view).
>>>
>>> I haven't done a lot of debugging of why this is happening, I'm hoping
>>> there is a quick fix for this.
>>>
>>> thanks for looking
>>> vlad
>>>
>>
>>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <meta content="text/html;charset=ISO-8859-15"
> http-equiv="Content-Type">
> </head>
> <body bgcolor="#ffffff" text="#000000">
> Vlad,<br>
> <br>
> Since this class is org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil,
> this is really a GMF question, and I don't know off hand what might be
> wrong.<br>
> <br>
> <br>
> Vlad Ciubotariu wrote:
> <blockquote cite="midpan.2006.09.11.20.07.18.328651@uwaterloo.ca"
> type="cite">
> <pre wrap="">I forgot to mention the two EReferences have the containment attribute
> sent to false.
>
>
> On Mon, 11 Sep 2006 15:47:05 -0400, Vlad Ciubotariu wrote:
>
> </pre>
> <blockquote type="cite">
> <pre wrap="">I have the following gmf related code:
>
> protected ICommand getDestroyDependentsCommand(DestroyDependentsRequest request) {
> Collection connections = EMFCoreUtil.getReferencers(
> request.getElementToDestroy(),
> new EReference[] { Bluenose2Package.eINSTANCE.getEnd_OutgoingConnections(),
> Bluenose2Package.eINSTANCE.getEnd_IncomingConnections() });
>
>
>
>
> return request.getDestroyDependentsCommand(connections);
> }
>
> The problem is that connections is always empty, even though the element
> to be deleted has connections (confirmed through a separate EMF view).
>
> I haven't done a lot of debugging of why this is happening, I'm hoping
> there is a quick fix for this.
>
> thanks for looking
> vlad
> </pre>
> </blockquote>
> <pre wrap=""><!---->
> </pre>
> </blockquote>
> <br>
> </body>
> </html>
|
|
|
Powered by
FUDForum. Page generated in 0.08108 seconds