// Actions
IAction showRulers = new ToggleRulerVisibilityAction(getGraphicalViewer());
getActionRegistry().registerAction(showRulers);
IAction snapAction = new ToggleSnapToGeometryAction(getGraphicalViewer());
getActionRegistry().registerAction(snapAction);
IAction showGrid = new ToggleGridAction(getGraphicalViewer());
getActionRegistry().registerAction(showGrid);