Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » [Zest] using ZoomContributionViewItem in a view
[Zest] using ZoomContributionViewItem in a view [message #664393] Fri, 08 April 2011 15:53 Go to next message
Eclipse User is currently offline Eclipse UserFriend
Messages: 34
Registered: July 2010
Member
Hi,

I saw that it's possible to add a combo in the toolbar of a view to zoom a graph but the problem is that it's used with JFace and I just want to know if it's possible to work with this class of zest ( ZoomContributionViewItem ) only with SWT since I'm using a Graph and not a GraphViewer .

I'm a beginner with Zest and I don't really understand the difference between the two methods ( JFace and SWT with Zest ) so would you please first tell me if it's possible to make the zoom with a graph and not a graphviewer and second explain me the difference between these methods

Thank you so much for your help
Re: [Zest] using ZoomContributionViewItem in a view [message #664531 is a reply to message #664393] Sun, 10 April 2011 23:07 Go to previous message
Eclipse User is currently offline Eclipse UserFriend
Messages: 34
Registered: July 2010
Member
I found a solution it was simple Very Happy


GraphViewer viewer = new GraphViewer(parent, SWT.NONE);
Graph g = viewer.getGraphControl();


and then I continued working with the graph normally whithout using the viewer
Previous Topic:DND TransferType
Next Topic:problem building SWT JNI
Goto Forum:
  


Current Time: Thu Mar 28 23:17:12 GMT 2024

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

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

Back to the top