Skip to main content



      Home
Home » Eclipse Projects » GEF » Snap in the logic and flow examples
Snap in the logic and flow examples [message #140356] Mon, 28 June 2004 04:33
Eclipse UserFriend
Originally posted by: raritzu.yahoo.co.uk

You will need to enable the snap-to-geometry in your editor. In the
LogicEditor class have a look at the loadProperties() method. The code that
enables it is :

// Snap to Geometry property


getGraphicalViewer().setProperty( SnapToGeometry.PROPERTY_SNAP_ENABLED, new
Boolean(getContents().getSnapToGeometry() ) );

I am not sure, but you might need to enable the grid (layer) too, and that
is on the following lines.

But I am not sure if this is what you really need, the PolylineConnection
seems to do a snap to node behaviour, so looking arround that area might
give you some ideas.

Hope it Helps,

Art.
Previous Topic:saving GEF diagram as PNG
Next Topic:Snap in the logic and flow examples
Goto Forum:
  


Current Time: Sun Nov 09 11:22:20 EST 2025

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

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

Back to the top