Subversion Repositories DevTools

Rev

Rev 2108 | Rev 2122 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2108 Rev 2114
Line 460... Line 460...
460
         }
460
         }
461
      }
461
      }
462
 
462
 
463
 
463
 
464
      /// <summary>
464
      /// <summary>
-
 
465
      /// Generate a package hierarchy that reflects the standard design views.
-
 
466
      /// </summary>
-
 
467
      public static void create_StandardView_Layout()
-
 
468
      {
-
 
469
         EA.ObjectType objType;
-
 
470
         object obj;
-
 
471
 
-
 
472
         objType = Main.EA_Repository.GetTreeSelectedItem( out obj );
-
 
473
         if (objType == EA.ObjectType.otPackage)
-
 
474
         {
-
 
475
            EA.Package parentPackage = ((EA.Package)obj);
-
 
476
 
-
 
477
            EA.Package newobj = null;
-
 
478
 
-
 
479
            newobj  = createPackage(parentPackage, "Component View", 1);
-
 
480
 
-
 
481
            newobj  = createPackage(parentPackage, "Deployment View", 2);
-
 
482
 
-
 
483
            newobj  = createPackage(parentPackage, "Document View", 3);
-
 
484
 
-
 
485
            newobj  = createPackage(parentPackage, "Logical View", 4);
-
 
486
 
-
 
487
            newobj = createPackage(parentPackage, "Dynamic View", 5);
-
 
488
 
-
 
489
            newobj = createPackage(parentPackage, "Requirement View",6);
-
 
490
 
-
 
491
            newobj = createPackage(parentPackage, "Use Case View", 7);
-
 
492
 
-
 
493
            parentPackage.Packages.Refresh();
-
 
494
 
-
 
495
            // refresh project browser view
-
 
496
            Main.EA_Repository.RefreshModelView(parentPackage.PackageID);
-
 
497
         }
-
 
498
         else
-
 
499
         {
-
 
500
            MessageBox.Show("You must select a package into which the layout will be inserted");
-
 
501
         }
-
 
502
      }
-
 
503
 
-
 
504
 
-
 
505
      /// <summary>
465
      /// This function works its way up the parental hierarchy to the root model, collecting the
506
      /// This function works its way up the parental hierarchy to the root model, collecting the
466
      /// strings names of each package and prepending them to a string accumulator with a view to
507
      /// strings names of each package and prepending them to a string accumulator with a view to
467
      /// obtaing the full path of an element,diagram, or package.
508
      /// obtaing the full path of an element,diagram, or package.
468
      /// </summary>
509
      /// </summary>
469
      /// <param name="parentId"></param>
510
      /// <param name="parentId"></param>