tags:

views:

44

answers:

2

hi, I am using RCP and ZEST to create an application to visualize graphs. My question is: is it possible to zoom a graph drawn on ZEST (any ZEST or RCP api or plug-in)?

Thanks in advance -rajit

+1  A: 

The simplest solution is to create a ZoomContributionViewItem. This item can be added to Menumanagers (in theory to toolbarmanagers also, but there is a nasty null-pointer exception related in Zest 1.1).

The constructor needs an IZoomableWorkbenchPart, where you need to provide a single method that returns the graph viewer.

If you need something more specific, look at the code of the Zest ZoomContributionViewItem code, how they had implemented it.

Zoltán Ujhelyi
A: 

Thanks.. your solution works..

br rajit

syeed