use of org.eclipse.sirius.tools.api.command.semantic.AddSemanticResourceCommand in project Palladio-Editors-Sirius by PalladioSimulator.
the class NewModelWizard method createResource.
private void createResource(final Session session, final IProgressMonitor monitor) {
final TransactionalEditingDomain domain = session.getTransactionalEditingDomain();
final CreateModelCommand createModelCommand = new CreateModelCommand(domain, this.modelURI, this.modelObject);
domain.getCommandStack().execute(createModelCommand);
domain.getCommandStack().execute(new AddSemanticResourceCommand(session, this.modelObject.eResource().getURI(), SubMonitor.convert(monitor)));
}
Aggregations