public UnknownDocumentModel(Action <UMLDiagram, UMLDiagram> changedCallback, IConfiguration configuration, IIOService openDirectoryService, UMLUnknownDiagram model, UMLDocumentCollection diagrams, string fileName, string title, string content, AutoResetEvent messageCheckerTrigger ) : base(configuration, openDirectoryService, fileName, title, content, messageCheckerTrigger) { ChangedCallback = changedCallback; Diagram = model; Diagrams = diagrams; colorCodingProvider = new UMLColorCoding(); }
public static async Task <(UMLClassDiagram?cd, UMLSequenceDiagram?sd, UMLUnknownDiagram?ud)> TryCreateDiagram(UMLDocumentCollection documents, string text) { UMLUnknownDiagram? ud = null; UMLClassDiagram? cd = null; UMLSequenceDiagram?sd = await PlantUML.UMLSequenceDiagramParser.ReadString(text, documents.ClassDocuments, false); if (sd == null) { cd = await PlantUML.UMLClassDiagramParser.ReadString(text); } if (cd == null) { ud = new UMLUnknownDiagram("", ""); } return(cd, sd, ud); }