public void Init() { xmiDocument= new XmlDocument(); modelDocumentInterpreter=new XmiModelDocumentInterpreter(); dIDocumentInterpreter=new PapyrusXmiDIDocumentInterpreter(MODEL_DOCUMENT_NAME); sequenceChartModelCreator=new SequenceChartModelCreator(modelDocumentInterpreter,dIDocumentInterpreter); namespaceManager=new XmlNamespaceManager(xmiDocument.NameTable); namespaceManager.AddNamespace(XmiElements.UML_NAMESPACE_PREFIX,XmiElements.UML_NAMESPACE_URI); namespaceManager.AddNamespace(XmiElements.XMI_NAMESPACE_PREFIX,XmiElements.XMI_NAMESPACE_URI); firstConsideredLifelineHorizontal= new Lifeline(POSITION_CONSIDERED_FIRST_ELEMENT_HORIZONTAL,EMPTY_STRING,null); secondConsideredLifelineHorizontal= new Lifeline(POSITION_CONSIDERED_SECOND_ELEMENT_HORIZONTAL,EMPTY_STRING,null); thirdConsideredLifelineHorizontal= new Lifeline(POSITION_CONSIDERED_THIRD_ELEMENT_HORIZONTAL,EMPTY_STRING,null); fourthConsideredLifelineHorizontal= new Lifeline(POSITION_CONSIDERED_FOURTH_ELEMENT_HORIZONTAL,EMPTY_STRING,null); fifthConsideredLifelineHorizontal= new Lifeline(POSITION_CONSIDERED_FIFTH_ELEMENT_HORIZONTAL,EMPTY_STRING,null); firstConsideredLifelineVertical= new Lifeline(POSITION_CONSIDERED_FIRST_ELEMENT_VERTICAL,EMPTY_STRING,null); secondConsideredLifelineVertical= new Lifeline(POSITION_CONSIDERED_SECOND_ELEMENT_VERTICAL,EMPTY_STRING,null); thirdConsideredLifelineVertical= new Lifeline(POSITION_CONSIDERED_THIRD_ELEMENT_VERTICAL,EMPTY_STRING,null); fourthConsideredLifelineVertical= new Lifeline(POSITION_CONSIDERED_FOURTH_ELEMENT_VERTICAL,EMPTY_STRING,null); fifthConsideredLifelineVertical= new Lifeline(POSITION_CONSIDERED_FIFTH_ELEMENT_VERTICAL,EMPTY_STRING,null); interactionElement=InteractionElementStub.CreateInteractionElementStub(xmiDocument); modelElement=ModelElementStub.CreateModelElementStub(xmiDocument); interaction= new Interaction(ZERO_POSITION,EMPTY_STRING,interactionElement); diagramElement =DiagramElementStub.CreateDiagramElementStub(xmiDocument); }
private void InitProperties(string modelName) { XmiModelDocumentInterpreter modelDocumentInterpreter=new XmiModelDocumentInterpreter(); XmiDIDocumentInterpreter diDocumentInterpreter=new PapyrusXmiDIDocumentInterpreter(modelName); SequenceChartModelInterpreter modelInterpreter=new SequenceChartModelInterpreter(); SequenceChartModelCreator modelCreator=new SequenceChartModelCreator(modelDocumentInterpreter,diDocumentInterpreter); this.ModelCreator=modelCreator; this.ModelInterpreter=modelInterpreter; this.modelElementInterpreter.InitNamespaceManager(this.loadedXmiModelDocument.NameTable); this.xmiElementInterpreter.InitNamespaceManager(this.loadedXmiModelDocument.NameTable); }