Revision 238

View differences:

branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/structure/commande/explorer/BPMNBehaviorCommand.java
30 30
import org.modelio.api.modelio.model.ITransaction;
31 31
import org.modelio.api.module.IModule;
32 32
import org.modelio.api.module.command.DefaultModuleCommandHandler;
33
import org.modelio.metamodel.bpmn.bpmnDiagrams.BpmnProcessCollaborationDiagram;
33
import org.modelio.metamodel.bpmn.bpmnDiagrams.BpmnProcessDesignDiagram;
34 34
import org.modelio.metamodel.bpmn.processCollaboration.BpmnCollaboration;
35 35
import org.modelio.metamodel.bpmn.processCollaboration.BpmnProcess;
36 36
import org.modelio.metamodel.bpmn.rootElements.BpmnBehavior;
......
70 70
			BpmnProcess process = TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createBpmnProcess();
71 71
			process.setOwner(interaction);
72 72

  
73
			BpmnProcessCollaborationDiagram diag = TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createBpmnProcessCollaborationDiagram();
73
			BpmnProcessDesignDiagram diag = TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createBpmnProcessDesignDiagram();
74 74
			diag.setOrigin(process);
75 75

  
76 76
			TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getEditionService().openEditor(diag);

Also available in: Unified diff