public static GuiEnum fromUML( UmlEnum st ) { GuiEnum s = new GuiEnum(); s.name = st.UniqueName; s.st = st; s.Created(); return s; }
public static GuiEnum fromUML(UmlEnum st) { GuiEnum s = new GuiEnum(); s.name = st.UniqueName; s.st = st; s.Created(); return(s); }
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); } }