How to get Snap to Grid working? [message #215186] |
Thu, 27 April 2006 09:04 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03047 seconds