Beispiel #1
0
 protected void initialize(global::EA.Package package)
 {
     base.initialize(Package.getElementForPackage(this.model, package));
     this.wrappedPackage = package;
     if (string.IsNullOrEmpty(this._uniqueID))
     {
         this._uniqueID = package.PackageGUID;
     }
 }
 private Package createPackage(global::EA.Package package)
 {
     if (package.ParentID == 0 ||
         Package.getElementForPackage((Model)this.model, package) == null)
     {
         return(new RootPackage(this.model as Model, package));
     }
     else
     {
         return(new Package(this.model as Model, package));
     }
 }
Beispiel #3
0
 public Package(Model model, global::EA.Package package) : base(model, Package.getElementForPackage(model, package))
 {
     this.initialize(package);
 }
Beispiel #4
0
 public Package(Model model, global::EA.Package package) : base(model, Package.getElementForPackage(model, package))
 {
     //when saving a package we don't want to save all its owned elements
     this.saveOwnedElements = false;
     this.initialize(package);
 }