public override void Drop( ) { if (dropitem == null) { throw new ArgumentException("have nothing to drop"); } parent.AddObject(dropitem, UmlModel.GetUniversal(dropobj)); action = MouseAction.None; // insert Inheritance ArrayList l = new ArrayList(parent.active_objects); foreach (GuiObject a in l) { if (a is GuiClass) { GuiClass c = a as GuiClass; // TODO ????????? /*if( c.st.bases != null && c.st.bases.Contains( dropitem.st.fullname ) ) { * NewRelation( dropitem, c, UmlRelationType.Inheritance ); * } else if( dropitem.st.bases != null && dropitem.st.bases.Contains( c.st.fullname ) ) { * NewRelation( c, dropitem, UmlRelationType.Inheritance ); * }*/ } } dropitem = null; }
public static GuiMemo CreateMemo( StaticView parent, int x, int y ) { GuiMemo m = new GuiMemo(); m.X = x; m.Y = y; parent.AddObject( m, "memo" ); return m; }
public static GuiClass CreateClass( StaticView parent, int x, int y, UmlClass cl ) { GuiClass c = GuiClass.fromUML(cl); c.X = x; c.Y = y; parent.AddObject( c, UmlModel.GetUniversal(cl) ); return c; }
public static GuiMemo CreateMemo(StaticView parent, int x, int y) { GuiMemo m = new GuiMemo(); m.X = x; m.Y = y; parent.AddObject(m, "memo"); return(m); }
public static GuiClass CreateClass(StaticView parent, int x, int y, UmlClass cl) { GuiClass c = GuiClass.fromUML(cl); c.X = x; c.Y = y; parent.AddObject(c, UmlModel.GetUniversal(cl)); return(c); }
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); }