|View Menu: Grid and SnapToGeometry entries [message #1337261]
||Tue, 06 May 2014 19:58
| Hernan Gonzalez
Registered: October 2010
Location: Buenos Aires, Argentina
I'm trying to understand how is the "View" menu filled. Specifically, the Menu items "Grid" and "Snap to Geometry".|
I don't quite understand why they always appears (eg, in the tutorial), even greyed-out.
They seem to be some GEF thing, but browsing the GEF plugin I don't see any declarative addtion, only see that the entries correspond to the ToggleGridACtion and ToggleSnapToGeometryAction classes. This actions are (apparently) activated only programatically, and the Graphiti standard Editor does this with ToggleGridAction in DiagramBehaviour.initActionRegistry:
IAction showGrid = new ToggleGridAction(diagramContainer.getGraphicalViewer());
If I comment out those lines, the option appears disable in the menu (greyed out). But, why does it appear at all? Who adds it? Can't I remove it?
[Updated on: Tue, 06 May 2014 19:59]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01930 seconds