Package org.eclipse.sirius.ui.business.api.viewpoint

Examples of org.eclipse.sirius.ui.business.api.viewpoint.ViewpointSelectionCallback


    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,
                    new NullProgressMonitor());
              }
              selection.selectViewpoint(UmlViewpoints.fromViewpointRegistry().dashboard(),
                  session, new NullProgressMonitor());
              selection.selectViewpoint(UmlViewpoints.fromViewpointRegistry().capture(),
                  session, new NullProgressMonitor());
              selection.selectViewpoint(SysmlViewpoints.fromViewpointRegistry().sysml(),
                  session, new NullProgressMonitor());
            }
          });
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.sirius.ui.business.api.viewpoint.ViewpointSelectionCallback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.