Skip to main content



      Home
Home » Eclipse Projects » GEF » ComboBox for changing the Grid Dimensions in GEF shapeEditor(ComboBox for changing the Grid Dimensions in GEF shapeEditor)
ComboBox for changing the Grid Dimensions in GEF shapeEditor [message #515100] Wed, 17 February 2010 12:43 Go to next message
Eclipse UserFriend
Hello All,

I am currently using GEF(3.2) ShapeEditor. I want to add a combo box (like zoom combo box) for changing the dimensions (grid size and spacing between them).

I am able to add a new combo with wanted values only .

I tried to look into the zoom Functionality, and they are using zoom manager for handling the zoom in or zoom out functionality.


But not sure how to implement the whole functionality in case of Grids.

Any help idea will be appreciated.

Thanks and Regards
Deepak Singla
Re: ComboBox for changing the Grid Dimensions in GEF shapeEditor [message #515192 is a reply to message #515100] Thu, 18 February 2010 00:18 Go to previous message
Eclipse UserFriend
On selection of the combo value do this..

getGraphicalViewer().setProperty(SnapToGrid.PROPERTY_GRID_SP ACING,
new Dimension(gridSize, gridSize));

and then offcoarce yoy have to repaint or refresh...
Previous Topic:Grab location on edit part
Next Topic:Strange Zoom problem in GEF
Goto Forum:
  


Current Time: Wed Jul 23 14:51:42 EDT 2025

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

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

Back to the top