Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Zoom handling in multi-page editors
Zoom handling in multi-page editors [message #664743] Mon, 11 April 2011 15:38
Volker Wegert is currently offline Volker Wegert
Messages: 169
Registered: July 2009
Senior Member
Hi all,

I've embedded a graphiti editor inside a multipage editor and wanted to
provide the zoom controls, especially the combo box. I've finally
succeeded in doing so, but it's rather awkward: The
ZoomComboContributionItem expects an IPartService and attaches itself as
a listener so that it gets notified if the part and/or its activation
status changes. While this is cool for a single editor, it's bad for a
multi-page editor that might contain multiple diagram editor pages. The
MultiPageEditPart already handles the IAdaptable switching, but the part
service listeners are not triggered when the editor pages are switched.
At the moment, I've solved this by creating and setting the zoom manager
myself when the page is activated. Is there a better solution?

Thanks
Volker

--
* Volker Wegert * http://www.volker-wegert.de/contact *
Previous Topic:Save as ... Image, without editor
Next Topic:IGotoMarker and Editor Reopening
Goto Forum:
  


Current Time: Sat Jul 26 05:27:35 EDT 2014

Powered by FUDForum. Page generated in 0.08819 seconds