Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Edit Part life cycle
Edit Part life cycle [message #245641] Tue, 23 September 2008 13:05 Go to next message
Dominic Hanlan is currently offline Dominic HanlanFriend
Messages: 98
Registered: July 2009
Member
I have a GEF project in which I want to use property change events in the model to drive the view. Nothing special. The problem is
that having added my controllers in the from of editParts I want to hook into the life cycle of the editPart to set the event
listeners in the activate / deactivate methods. I use this in another project with out any problem. But in this project the
methods are never called. The create figure method is called as normal, and everything else works just fine!!!

Any ideas on why this part of the life cycle is missing??

Regards
Re: Edit Part life cycle [message #245722 is a reply to message #245641] Fri, 03 October 2008 16:25 Go to previous message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi,

Your idea about activate and deactivate is correct. Activate is the place
where you install listeners, deactivate is where you remove them and
prepare the editpart for GC. The reason why activate/deactivate is not
being called for could be that you override #addChild(...),
#removeChild(...) or #refreshChildren(...) form GEF's AbstractEditPart and
never call activate/deactivate yourself.
Hope this helps.

Cheers,
Alex
Previous Topic:Help with edit policies
Next Topic:Zest & Commandstack
Goto Forum:
  


Current Time: Tue Mar 19 04:39:07 GMT 2024

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

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

Back to the top