Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » activate() not being called for outline view's tree
activate() not being called for outline view's tree [message #174486] Wed, 30 March 2005 14:01 Go to next message
Beth Tibbitts is currently offline Beth TibbittsFriend
Messages: 231
Registered: July 2009
Senior Member
I have a GEF application descended somewhat from Shapes.
I have the main editor and an outline view.
My root editpart of the GEF editor has activate() called
and thus registers to get events from the model.
However, since I changed the event handler mechanisms to match the
back-end model's event listener architecture a while back, the outline
view is empty.
I have determined that the (outline's) DiagramTreeEditPart.activate()
isn't being called, where my main DiagramEditPart.activate() is.

What causes activate() to be called? Somehow I'm not registering
the outline view's DiagramTreeEditPart correctly, to get activate()
called.
Re: activate() not being called for outline view's tree [message #174494 is a reply to message #174486] Wed, 30 March 2005 14:25 Go to previous messageGo to next message
Beth Tibbitts is currently offline Beth TibbittsFriend
Messages: 231
Registered: July 2009
Senior Member
More info:

The MyEditorOutlinePage is getting created,
and based on my main editor view, it seems like activate() should
be called at this point in the MyEditorOutlinePage.createControl() method:
getViewer().setContents(editor.getModel());
That line executes, but activate() isn't called...
Re: activate() not being called for outline view's tree [message #175164 is a reply to message #174486] Sun, 03 April 2005 23:30 Go to previous message
Beth Tibbitts is currently offline Beth TibbittsFriend
Messages: 231
Registered: July 2009
Senior Member
I found the problem.
MyTreeEditPartFactory.createEditPart()
wasn't doing what it should - when i got it straightened
out to return a proper editPart based on modelObject,
things start to appear in the Outline view.

....Beth
Previous Topic:Problems with an input connection
Next Topic:Figures as visual representation of TreeItems?
Goto Forum:
  


Current Time: Mon Sep 23 07:54:48 GMT 2024

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

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

Back to the top