public static GuiPackage fromUML( UmlNamespace st ) { GuiPackage s = new GuiPackage(); s.name = st.UniqueName; s.st = st; s.Created(); return s; }
public static GuiPackage fromUML(UmlNamespace st) { GuiPackage s = new GuiPackage(); s.name = st.UniqueName; s.st = st; s.Created(); return(s); }
public static GuiPackage CreatePackage( StaticView parent, int x, int y ) { GuiPackage m = new GuiPackage(); m.name = "Package1"; m.source_dependant = false; m.X = x; m.Y = y; m.Created(); parent.AddObject( m, "package" ); return m; }
public static GuiPackage CreatePackage(StaticView parent, int x, int y) { GuiPackage m = new GuiPackage(); m.name = "Package1"; m.source_dependant = false; m.X = x; m.Y = y; m.Created(); parent.AddObject(m, "package"); return(m); }
public static GuiItem CreateElement(UmlObject obj) { if (obj is UmlClass) { return(GuiClass.fromUML(obj as UmlClass)); } else if (obj is UmlEnum) { return(GuiEnum.fromUML(obj as UmlEnum)); } else if (obj is UmlNamespace) { return(GuiPackage.fromUML(obj as UmlNamespace)); } else { return(null); } }