return new SapphireDiagramGridLayer(diagramModel);
}
});
// configure the context menu provider
ContextMenuProvider cmProvider = new DiagramEditorContextMenuProvider(this);
viewer.setContextMenu(cmProvider);
// Configure grid and guide properties
boolean isGridVisibleInViewer = false;
if (viewer.getProperty(SnapToGrid.PROPERTY_GRID_VISIBLE) != null)