private UTF_UC.Diagram getDiagram() { UTF_EA.Model sourceModel = new UTF_EA.Model(this.repository); UML.Diagrams.Diagram sourceDiagram = sourceModel.selectedDiagram; UTF_UC.Model targetModel = UTF_UC.Model.getModel(); return(targetModel.cloneDiagram(sourceDiagram)); }
private void export() { UTF_UC.Model model = UTF_UC.Model.getModel(); UTF_UC.Diagram diagram = this.getDiagram(); SubmissionForm form = new SubmissionForm(); form.user = model.author; form.password = model.password; form.diagramID = diagram.diagramID; form.description = diagram.comment; if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { model.author = form.user; model.password = form.password; diagram.diagramID = form.diagramID; diagram.comment = form.description; String url = model.saveDiagram(diagram); System.Diagnostics.Process.Start(url); } }
public Operation( Model model, TSF.UmlCanvas.Operation operation) : base(model,operation) {}
public Parameter( Model model, Argument argument ) : base(model, argument) {}
public Dependency(Model model, TSF.UmlCanvas.Dependency dependency) : base(model, dependency) {}
public Comment(Model model, Note note) : base(model, note) {}
public RelationWrapper(Model model, TSF.UmlCanvas.Relation relation) : base(model, relation) {}
public Abstraction(Model model, Element owner) : base(model) { this._owner = owner; }
public PositionableWrapper(Model model, Positionable construct) : base(model, construct) {}
public Stereotype(Model model, Element owner, String name) : base(model) { this._owner = owner; this.name = name; }
public RoleWrapper(Model model, Role associationEnd ) : base(model, associationEnd) {}
public PrimitiveType(Model model, String name) : base(model) { this.name = name; }
public Attribute(Model model, TSF.UmlCanvas.Attribute attribute) : base(model, attribute) {}
internal DiagramElement(Model model, TSF.ADL.Construct construct) : base(model,construct) {}
public InterfaceRealization(Model model, Element owner) : base(model, owner) {}
public Association(Model model, TSF.UmlCanvas.Association association) : base(model, association) {}
internal Class(Model model, TSF.UmlCanvas.Class _class) : base(model,_class) {}
internal Interface(Model model, TSF.UmlCanvas.Interface _interface) : base(model,_interface) { this.wrappedInterface = _interface; }
public Generalization(Model model, Element owner) : base(model,owner) {}