.addItem("Show Rulers", new ViewActions.ShowRulers(context))
.addItem("Show Page List", new ViewActions.ShowPageList(context))
;
if(context instanceof VectorDocContext) {
VectorDocContext vdc = (VectorDocContext) context;
viewMenu
.addItem(getString("menus.showDocumentBounds"), new ViewActions.ShowDocumentBounds(vdc))
.addItem(getString("menus.showGrid"), new ViewActions.ShowGridAction(vdc))
.addItem(getString("menus.snapGrid"), new ViewActions.SnapGridAction(vdc))
.addItem(getString("menus.snapDocEdges"), new ViewActions.SnapDocBoundsAction(vdc))
.addItem(getString("menus.snapNodeEdges"), new ViewActions.SnapNodeBoundsAction(vdc))
.separator();
viewMenu.addItem(getString("menus.viewSidebar"), new ViewActions.ViewSidebarAction(vdc));
for(SAction a : vdc.getSidebarPanelViewActions()) {
viewMenu.addItem(a.getDisplayName(), a);
}
}
//view menu