Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsZoom handling in multi-page editors
https://www.eclipse.org/forums/index.php/mv/msg/207581/664743/#msg_664743
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?