Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » CrossReferenceAdapter
CrossReferenceAdapter [message #208849] Thu, 16 October 2008 12:02 Go to next message
Eclipse UserFriend
Originally posted by: ali.akar.geensys.com

Hi all,

Can you tell me if we need absolutly the CrossReferenceAdapter which is
installed on the resource set ?

I didn't understand his job ? if someone knows where can I find doc or
something else about it ??

thanks,
Re: CrossReferenceAdapter [message #208881 is a reply to message #208849] Thu, 16 October 2008 13:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Ali,

The DestroyElementCommand, at least, depends on the
CrossReferenceAdapter for finding references to the elebent that is
destroyed. There are, also, a variety of utilities in the EMFCoreUtil
class that do reference inversion using this adapter, so you might
search for references to those to see what would be the impact of
removing this adapter from the resource set.

I assume that your concern is the performance overhead?

Cheers,

Christian

Ali Akar wrote:
> Hi all,
>
> Can you tell me if we need absolutly the CrossReferenceAdapter which is
> installed on the resource set ?
>
> I didn't understand his job ? if someone knows where can I find doc or
> something else about it ??
>
> thanks,
Re: CrossReferenceAdapter [message #208886 is a reply to message #208881] Thu, 16 October 2008 13:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ali.akar.geensys.com

Thanks for your answer,

yes exactly, it's a performance problem, what I'm trying to do is to add
this adapter later, not when configuring the editing domain and the
resource set.

when working with huge models this slow four times the loading. And
since most developers don't use lazy loading, I suggest that the GMF
team change the way this adapter is added.


regard's,


Christian W. Damus a écrit :
> Hi, Ali,
>
> The DestroyElementCommand, at least, depends on the
> CrossReferenceAdapter for finding references to the elebent that is
> destroyed. There are, also, a variety of utilities in the EMFCoreUtil
> class that do reference inversion using this adapter, so you might
> search for references to those to see what would be the impact of
> removing this adapter from the resource set.
>
> I assume that your concern is the performance overhead?
>
> Cheers,
>
> Christian
>
> Ali Akar wrote:
>> Hi all,
>>
>> Can you tell me if we need absolutly the CrossReferenceAdapter which
>> is installed on the resource set ?
>>
>> I didn't understand his job ? if someone knows where can I find doc or
>> something else about it ??
>>
>> thanks,
Re: CrossReferenceAdapter [message #208902 is a reply to message #208886] Thu, 16 October 2008 17:17 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Ali,

In that case, you can create a custom editing-domain factory for your
diagram editor (subclassing the GMFEditingDomainFactory) either to not
attach the CrossReferenceAdapter or to remove it after the superclass
configure method has attached it. Then, you can attach the adapter later.

If you want the GMF run-time to change its behaviour, then you will need
to raise an enhancement request in Bugzilla.

HTH,

Christian

Ali Akar wrote:
> Thanks for your answer,
>
> yes exactly, it's a performance problem, what I'm trying to do is to add
> this adapter later, not when configuring the editing domain and the
> resource set.
>
> when working with huge models this slow four times the loading. And
> since most developers don't use lazy loading, I suggest that the GMF
> team change the way this adapter is added.
>
>
> regard's,
>
>
> Christian W. Damus a écrit :
>> Hi, Ali,
>>
>> The DestroyElementCommand, at least, depends on the
>> CrossReferenceAdapter for finding references to the elebent that is
>> destroyed. There are, also, a variety of utilities in the EMFCoreUtil
>> class that do reference inversion using this adapter, so you might
>> search for references to those to see what would be the impact of
>> removing this adapter from the resource set.
>>
>> I assume that your concern is the performance overhead?
>>
>> Cheers,
>>
>> Christian
>>
>> Ali Akar wrote:
>>> Hi all,
>>>
>>> Can you tell me if we need absolutly the CrossReferenceAdapter which
>>> is installed on the resource set ?
>>>
>>> I didn't understand his job ? if someone knows where can I find doc
>>> or something else about it ??
>>>
>>> thanks,
Previous Topic:How to remove Properties menu item from popup menu and Sort/Filter Compartment Items also?
Next Topic:how to add scroll bar to variable label
Goto Forum:
  


Current Time: Fri Mar 29 10:51:13 GMT 2024

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

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

Back to the top