Subversion Repositories DevTools

Rev

Rev 2141 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2141 Rev 2145
Line 90... Line 90...
90
         }
90
         }
91
         return result;
91
         return result;
92
      }
92
      }
93
 
93
 
94
 
94
 
-
 
95
      public EA.Package get_selected_package()
-
 
96
      {
-
 
97
         object o;
-
 
98
         EA.ObjectType type;
-
 
99
 
-
 
100
         type = EA_Repository.GetTreeSelectedItem(out o);
-
 
101
         if (type == EA.ObjectType.otElement)
-
 
102
         {
-
 
103
            return EA_Repository.GetPackageByID( ((EA.Element)o).PackageID );
-
 
104
         }
-
 
105
         else if (type == EA.ObjectType.otPackage)
-
 
106
         {
-
 
107
            return (EA.Package)o;
-
 
108
         }
-
 
109
         return null;
-
 
110
      }
-
 
111
 
95
      /// <summary>
112
      /// <summary>
96
      /// Creates a package under the specified parent package. the package is given a tree position
113
      /// Creates a package under the specified parent package. the package is given a tree position
97
      /// as specified in order for it to be ordered in the model as the caller requires.
114
      /// as specified in order for it to be ordered in the model as the caller requires.
98
      /// </summary>
115
      /// </summary>
99
      /// <param name="parentPackage"></param>
116
      /// <param name="parentPackage"></param>