Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Zooming in and out
Zooming in and out [message #953959] Mon, 22 October 2012 13:22 Go to next message
Jonathan Jekeli is currently offline Jonathan Jekeli
Messages: 10
Registered: October 2012
Junior Member
I have implemented graphiti as a composite in an RCP plug-in. Because of this, the standard tool-bar that has the zoom in and zoom out buttons are no longer visible. Does graphiti have any way of accessing the methods that are handled by these zoom-out and zoom-in buttons and can i call them programmatically if I provide my own buttons?

Thanks!
Re: Zooming in and out [message #958965 is a reply to message #953959] Fri, 26 October 2012 06:50 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1571
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Jonathan,

the zooming buttons are handled by the GEF editor and graphical viewer
underneath the Graphiti editor. We simply reuse them for Graphiti. Maybe
that would be a good way for you as well?

Otherwise, the GEF ZoomManager (DiagramEditor.getAdapter(ZoomManager.class)
will return it) should offer what you are looking for.

Michael
Re: Zooming in and out [message #962882 is a reply to message #958965] Mon, 29 October 2012 07:59 Go to previous messageGo to next message
Jonathan Jekeli is currently offline Jonathan Jekeli
Messages: 10
Registered: October 2012
Junior Member
That works perfectly. Thanks!
Re: Zooming in and out [message #1042338 is a reply to message #953959] Tue, 16 April 2013 05:41 Go to previous messageGo to next message
Wok Show is currently offline Wok Show
Messages: 40
Registered: July 2009
Member
Hello Jonathan,

how did you import graphiti as a composite in your rcp?
It is very interesting to know how to do this.

Thanks a lot.

best regards

d.chau
Re: Zooming in and out [message #1042449 is a reply to message #1042338] Tue, 16 April 2013 09:03 Go to previous message
Jonathan Jekeli is currently offline Jonathan Jekeli
Messages: 10
Registered: October 2012
Junior Member
The latest build of graphiti should allow for this fairly easily. We were creating something for our company that we ended up sending to graphiti for incorporation into their api, and I believe they did so (check out Milestone 6: http://www.eclipse.org/graphiti/pages/whats-new.html).
Previous Topic:Moving Shape over Connection
Next Topic:Shared editing domains and dispose
Goto Forum:
  


Current Time: Wed Jul 23 22:24:40 EDT 2014

Powered by FUDForum. Page generated in 0.02041 seconds