ZoomManager reference for Zest GraphViewerhttps://www.eclipse.org/forums/index.php/mv/msg/152892/481490/#msg_481490
I am using Zest for visualization.I have a scenario where I need to
have zoom capabilities from toolbar of a editorpart.I have created form in
EditorPart.In the form I have created a toolbar for which I need zoom
capabilities.

Zoom options are working fine for contextmenu operations, but if I
want to get zoom options through toolbar by passing contribution item,its
not possible.

I found zoomTo() method in GraphViewer, but it do not work.
Is there any way to get the ZoomManager reference?]]>sridhar gooni2009-08-21T09:15:48-00:00Re: ZoomManager reference for Zest GraphViewerhttps://www.eclipse.org/forums/index.php/mv/msg/152892/492284/#msg_492284
this format, some or all of this message may not be legible.

I ran into this exact same issue and fixed it in Zest. The contribution
item was not fetching the items from the zoom manager for managers other
than MenuManager, and also tool item control was not displaying correctly.
With this change, you won't need to get at the ZoomManager to make the
toolbar work.

> Hi,
> I am using Zest for visualization.I have a scenario where I need to
> have zoom capabilities from toolbar of a editorpart.I have created form in
> EditorPart.In the form I have created a toolbar for which I need zoom
> capabilities.
>
> Following is the code snippet:
>
> viewer=new GraphViewer(parent,SWT.NONE);
> viewer.setContentProvider(new MyContentProvider());
> viewer.setLabelProvider(new MyLabelProvider());
> viewer.setConnectionStyle(ZestStyles.CONNECTIONS_DIRECTED|Ze stStyles.CONNECTIO
> NS_SOLID);
> viewer.setLayoutAlgorithm(new
> SpringLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING)) ;
> viewer.setInput(new Object());
> toolbarZoomContributionViewItem = new ZoomContributionViewItem(this);
> ToolBarManager tbMgr = new ToolBarManager();
> tbMgr.add(toolbarZoomContributionViewItem );
>
>
> Zoom options are working fine for contextmenu operations, but if I
> want to get zoom options through toolbar by passing contribution item,its
> not possible.
>
> I found zoomTo() method in GraphViewer, but it do not work.
> Is there any way to get the ZoomManager reference?
>