Skip to main content

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 19:38
Volker Wegert is currently offline Volker WegertFriend
Messages: 176
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?


* Volker Wegert * *
Previous Topic:Avoiding editing domain ?
Next Topic:IGotoMarker and Editor Reopening
Goto Forum:

Current Time: Thu Nov 26 10:37:35 GMT 2020

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

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

Back to the top