Exemplo n.º 1
0
 public static GuiPackage fromUML( UmlNamespace st )
 {
     GuiPackage s = new GuiPackage();
     s.name = st.UniqueName;
     s.st = st;
     s.Created();
     return s;
 }
Exemplo n.º 2
0
        public static GuiPackage fromUML(UmlNamespace st)
        {
            GuiPackage s = new GuiPackage();

            s.name = st.UniqueName;
            s.st   = st;
            s.Created();
            return(s);
        }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 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);
     }
 }