Hi Sascha, no offense, I did not say it's a bug or irritating, just it was different than what I expected.
I expected that the activation and deactivation events are in pair. But since there can be only one active render window, it is not a big problem. I can fire a deactivation event for the deactivated render window part, when a new one is activated. I asked you only because if this was not the intended behaviour then my "workaround" might crash if you fix it. Otherwise, I am OK with that. Thanks, Miklos On Tue, May 29, 2012 at 6:02 PM, Sascha Zelzer <[email protected]> wrote: > Hi Miklos, > > I cannot rule out bugs in the logic for calling these methods, but the > methods in the IRenderWindowPartListener interface are not following the > same lifecycle notion as for normal workbench parts (as shortly stated in > the documentation of that class). > > If you would like to listen to the normal lifecycle events, register a usual > part listener. > > If you still find the behaviour irritating, please describe your use-case > excactly (i.e. layout of editors/views and user interaction). > > Thanks, > Sascha > > > On 05/28/2012 06:46 PM, Miklos Espak wrote: >> >> Hi, >> >> I would like to make my view listen to the render window activation >> events. The view is derived from QmitkAbstractView and >> IRenderWindowPartListener. >> >> As I observed, when I switch between editors, the >> RenderWindowPartActivated is called for the new editor. This is fine. >> However, the RenderWindowPartDeactivated is not called for the >> previous editor, only if it is closed. >> >> Is this the intended behaviour? >> >> Thanks, >> Miklos >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> mitk-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/mitk-users > > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
