}
public static void enableSysMLViewpoints(final Session session) {
if (session != null) {
session.getTransactionalEditingDomain().getCommandStack()
.execute(new RecordingCommand(session.getTransactionalEditingDomain()) {
@Override
protected void doExecute() {
ViewpointSelectionCallback selection = new ViewpointSelectionCallback();
for (Viewpoint previouslySelected : session.getSelectedViewpoints(false)) {
selection.deselectViewpoint(previouslySelected, session,