/// <summary> /// To initialize an UMLTabItem instance from a .uml file (in xml format) /// </summary> /// <param name="text">the text string of the source .sn file</param> public override void SetText(string text) { //generate an SNModel instance from the .uml source code UMLModel uml = UMLModel.LoadUMLModelFromXML(text); if (uml.Assertion != null) { AssertionNode.Tag = uml.Assertion; } else { AssertionNode.Tag = " "; } DiagramsNode.Nodes.Clear(); foreach (var diagram in uml.Diagrams) { TreeNode node = DiagramsNode.Nodes.Add(diagram.Key); node.Tag = diagram.Value; node.Name = diagram.Key; } textEditorControl.Visible = true; InitTextEditor(); }