Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 17:43 Go to next message
Deepak Singla is currently offline Deepak SinglaFriend
Messages: 27
Registered: December 2009
Junior Member
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 05:18 Go to previous message
Vijay RajFriend
Messages: 608
Registered: July 2009
Senior Member
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...


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Previous Topic:Grab location on edit part
Next Topic:Strange Zoom problem in GEF
Goto Forum:
  


Current Time: Fri Sep 20 09:39:01 GMT 2024

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

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

Back to the top