Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to get Snap to Grid working?
How to get Snap to Grid working? [message #215186] Thu, 27 April 2006 09:04 Go to next message
Eclipse UserFriend
Originally posted by: p.beauvoir.bolton.ac.uk

Hi,

I'd like to get a "snap to grid" mechanism working in my GEF Editor.
I've had a look at the Flow Logic example, and see that this is quite
complex. Is there a simpler way to achieve this? I have managed to
show the grid.

Thanks

PB
Re: How to get Snap to Grid working? [message #215194 is a reply to message #215186] Thu, 27 April 2006 09:31 Go to previous message
Eclipse UserFriend
Originally posted by: p.beauvoir.bolton.ac.uk

Phillip Beauvoir wrote:
> Hi,
>
> I'd like to get a "snap to grid" mechanism working in my GEF Editor.
> I've had a look at the Flow Logic example, and see that this is quite
> complex. Is there a simpler way to achieve this? I have managed to
> show the grid.
>
> Thanks
>
> PB

Never mind, I found the answer in a previous post from Steven Shaw:

"You need to add an adapter in your DiagramEditPart to the SnapToHelper
class.

@see LogicDiagramEditPart#getAdapter(...)"

PB
Previous Topic:about GEF design architecture
Next Topic:Which version to use with Eclipse 3.2RC1a
Goto Forum:
  


Current Time: Fri Apr 26 11:10:41 GMT 2024

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

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

Back to the top