Why are my adapters being removed when I'm using diagram partitioning? ...and how to listen to the c [message #236238] |
Wed, 15 July 2009 18:45 |
Eclipse User |
|
|
|
Originally posted by: rene.boettge.gmx.net
Hi,
I'm still new on GMF :-)
I'm working with galileo...
I have a GMF editor and I'm using diagram partitioning(one model for
both editors).
After a double-click opens a new editor but all my adapters I added
before to the elements in der first editor are being removed (I get a
notification "REMOVING_ADAPTERS") ... but why are they being removed? I
need them to be adapted because I have a view which listens to them...
when I accepted that they obviously have to be removed I decided to
listen to the change of the active editor. So I can add my adapter again
when certain editor (the first one) is active again... but how can
listen to this change?
I need this because my next step is to avoid a dirty editor so I want to
save the content of an editor if another is getting active.
Thanks in advance for some hints to solve my problems.
René
|
|
|
|
Re: Why are my adapters being removed when I'm using diagram partitioning? ...and how to listen to t [message #236260 is a reply to message #236238] |
Thu, 16 July 2009 09:52 |
Eclipse User |
|
|
|
Originally posted by: janapureddy.gmail.com
Hi,
I have the same problem. This link could help you further...
https://bugs.eclipse.org/bugs/show_bug.cgi?id=249717
Ravi
René Böttge schrieb:
> Hi,
>
> I'm still new on GMF :-)
>
> I'm working with galileo...
>
> I have a GMF editor and I'm using diagram partitioning(one model for
> both editors).
> After a double-click opens a new editor but all my adapters I added
> before to the elements in der first editor are being removed (I get a
> notification "REMOVING_ADAPTERS") ... but why are they being removed? I
> need them to be adapted because I have a view which listens to them...
>
> when I accepted that they obviously have to be removed I decided to
> listen to the change of the active editor. So I can add my adapter again
> when certain editor (the first one) is active again... but how can
> listen to this change?
>
> I need this because my next step is to avoid a dirty editor so I want to
> save the content of an editor if another is getting active.
>
> Thanks in advance for some hints to solve my problems.
>
> René
|
|
|
Re: Why are my adapters being removed when I'm using diagram partitioning? ...and how to listen to t [message #236438 is a reply to message #236260] |
Sun, 19 July 2009 19:41 |
Eclipse User |
|
|
|
Originally posted by: rene.boettge.gmx.net
Thanks for the replies,
but this bug doesn't really cover my problem(or question) because I
don't have any problem with graphical elements...my added adapters are
being removed during opening my second editor
René
Ravi Jan schrieb:
> Hi,
>
> I have the same problem. This link could help you further...
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=249717
>
> Ravi
>
>
> René Böttge schrieb:
>> Hi,
>>
>> I'm still new on GMF :-)
>>
>> I'm working with galileo...
>>
>> I have a GMF editor and I'm using diagram partitioning(one model for
>> both editors).
>> After a double-click opens a new editor but all my adapters I added
>> before to the elements in der first editor are being removed (I get a
>> notification "REMOVING_ADAPTERS") ... but why are they being removed?
>> I need them to be adapted because I have a view which listens to them...
>>
>> when I accepted that they obviously have to be removed I decided to
>> listen to the change of the active editor. So I can add my adapter
>> again when certain editor (the first one) is active again... but how
>> can listen to this change?
>>
>> I need this because my next step is to avoid a dirty editor so I want
>> to save the content of an editor if another is getting active.
>>
>> Thanks in advance for some hints to solve my problems.
>>
>> René
|
|
|
|
Re: Why are my adapters being removed when I'm using diagram partitioning?...and how to listen to th [message #237154 is a reply to message #236512] |
Tue, 21 July 2009 18:20 |
Eclipse User |
|
|
|
Originally posted by: rene.boettge.gmx.net
Hi Alex,
I'm not sure if it is the best way to solve but I add the adapter in
handleEventNotification() of my ***CanonicalEditPolicy because this is
one possibility to notice when a new element was added... or is there a
better way?
Thanks in advance.
René
Alex Shatalin schrieb:
> Hello René,
>
> I think adapters were removed because of resetting editor input (model
> elements were reloaded from file again.. Where do you attach adapters to
> model elements?
>
> -----------------
> Alex Shatalin
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02557 seconds