protected internal void InterpretExecutionOccurrenceSpecification(ExecutionOccurrenceSpecification executionOccurrenceSpec,
		                                                                  SequenceChartElement nextOccurrenceSpec)
        {
            Lifeline coveredLifeline=executionOccurrenceSpec.CoveredLifeline;
            string coveredLifelineId = coveredLifeline.XmiId;
            string processEntryId=this.GetProcessEntryIdForLifelineId(coveredLifelineId);

            if(executionOccurrenceSpec.SpecificationKind== ExecutionOccurrenceSpecKind.START)
            {
                // >>>>>> Creates an RegionBegin-entry that represents only an Activation
                // >>>>>> there is no desicion for Coregions and Suspensions

                if(nextOccurrenceSpec is MessageEnd)
                {
                    this.entryCreator.CreateRegionBeginEditorEntryNoWordWrap(processEntryId,ACTIVATION);
                }
                else
                {
                    this.entryCreator.CreateRegionBeginEditorEntry(processEntryId,ACTIVATION);
                }
            }
            else if(executionOccurrenceSpec.SpecificationKind== ExecutionOccurrenceSpecKind.FINISH)
            {
                this.entryCreator.CreateRegionEndEditorEntry(processEntryId);
            }
        }
 private void AssertXmiId(SequenceChartElement modelElement,string assertId)
 {
     string actualId=modelElement.XmiId;
     Assert.AreEqual(assertId,actualId);
 }
 private void AssertIdOfXmiRepresentation(SequenceChartElement modelElement,string assertElementId)
 {
     XmlElement xmlElement=modelElement.XmlRepresentation;
     string actualElementId=xmlElement.GetAttribute(XmiElements.XMI_ID_ATTR_COMPLETE_NAME);
     Assert.AreEqual(assertElementId,actualElementId);
 }
 private void AssertPosition(SequenceChartElement modelElement,int assertX,int assertY )
 {
     int actualX=modelElement.Position.X;
     int actualY=modelElement.Position.Y;
     Assert.IsTrue(assertX==actualX);
     Assert.IsTrue(assertY==actualY);
 }
 private void AssertDimension(SequenceChartElement modelElement,int assertWidth,int assertHeight )
 {
     int actualHeight=modelElement.Dimension.Height;
     int actualWidth=modelElement.Dimension.Width;
     Assert.IsTrue(assertHeight==actualHeight);
     Assert.IsTrue(assertWidth==actualWidth);
 }