Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Zoom on gef shapes example
Zoom on gef shapes example [message #905419] Thu, 30 August 2012 10:59 Go to next message
Alexandre Pinheiro is currently offline Alexandre PinheiroFriend
Messages: 3
Registered: August 2012
Junior Member

I'm trying put zoom on GEF shapes example following this toturial:

I can zooming with scrool mouse, but i can't zooming with buttons on toolbar or on right-click menu..
i can see all the content appearing on the Menu, but i can't able to click on that Menu.

Someone help me?


[Updated on: Thu, 30 August 2012 11:01]

Report message to a moderator

Re: Zoom on gef shapes example [message #910780 is a reply to message #905419] Mon, 10 September 2012 11:38 Go to previous message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Hi, you have register the actions in your editor:
protected void configureGraphicalViewer() {
    ZoomManager zoomManager = ((ScalableFreeformRootEditPart) getGraphicalViewer().getRootEditPart()).getZoomManager();
    IAction zoomIn = new ZoomInAction(zoomManager);
    IAction zoomOut = new ZoomOutAction(zoomManager);

and in your ActionBarContributor, you have to add those actions to the menu:
public void contributeToToolBar(IToolBarManager toolBarManager) {

	String[] zoomStrings = new String[] {

	toolBarManager.add(new ZoomComboContributionItem(getPage(), zoomStrings));
Previous Topic:Blend Selection and Marquee
Next Topic:how can i chage connection rulles of gef logic example
Goto Forum:

Current Time: Sun May 20 21:41:42 GMT 2018

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

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

Back to the top