Subversion Repositories DevTools

Rev

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

Rev 2122 Rev 2124
Line 808... Line 808...
808
 
808
 
809
      private void processTestTraceability( EA.Element theElement, int recurse_level )
809
      private void processTestTraceability( EA.Element theElement, int recurse_level )
810
      {
810
      {
811
         if (classesNeedingUnitTests.Count > 0)
811
         if (classesNeedingUnitTests.Count > 0)
812
         {
812
         {
813
            if (theElement.Notes.Length > 0)
-
 
814
            {
-
 
815
               TextualContent.appendAndSelectText( theElement.Notes, EA_Constants.styleName_Body1);
813
            TextualContent.appendAndSelectText( theElement.Notes, EA_Constants.styleName_Body1);
816
            }
814
 
817
            int tableNum = TabularContent.Table_Create("Design Element to Unit Test Suite Traceability", true, 2, 2);
815
            int tableNum = TabularContent.Table_Create("Design Element to Unit Test Suite Traceability", true, 2, 2);
818
            utTraceabilityTable = WordDocument.Tables[tableNum];
816
            utTraceabilityTable = WordDocument.Tables[tableNum];
819
 
817
 
820
            TabularContent.Table_SetTableColumnTitle(utTraceabilityTable, "Design Element (class)", 1);
818
            TabularContent.Table_SetTableColumnTitle(utTraceabilityTable, "Design Element (class)", 1);
821
            TabularContent.Table_SetTableColumnTitle(utTraceabilityTable, "Test Suite", 2);
819
            TabularContent.Table_SetTableColumnTitle(utTraceabilityTable, "Test Suite", 2);
Line 875... Line 873...
875
            if (abortCreationThread)
873
            if (abortCreationThread)
876
               return;
874
               return;
877
 
875
 
878
            // Here we want to apply the special ERG template styles for each reference
876
            // Here we want to apply the special ERG template styles for each reference
879
            // item.
877
            // item.
880
            TextualContent.appendAndSelectText( theElement.Name.ToString(), EA_Constants.styleName_RefListNum );
878
            TextualContent.appendAndSelectText( theElement.Name, EA_Constants.styleName_RefListNum );
881
            TextualContent.appendAndSelectText( theElement.Notes.ToString(), EA_Constants.styleName_RefListText );
879
            TextualContent.appendAndSelectText( theElement.Notes, EA_Constants.styleName_RefListText );
882
         }
880
         }
883
      }
881
      }
884
 
882
 
885
 
883
 
886
      private void createTerminologySection(EA.Package thePackage, int recurse_level)
884
      private void createTerminologySection(EA.Package thePackage, int recurse_level)
Line 1002... Line 1000...
1002
               foreach(EA.Element theElement in infoItems)
1000
               foreach(EA.Element theElement in infoItems)
1003
               {
1001
               {
1004
                  if (abortCreationThread)
1002
                  if (abortCreationThread)
1005
                     return;
1003
                     return;
1006
 
1004
 
1007
                  table.Cell(row,1).Range.Text = theElement.Name.ToString();
1005
                  table.Cell(row,1).Range.Text = theElement.Name;
-
 
1006
                  if (theElement.Notes != null && theElement.Notes.Length > 0)
1008
                  table.Cell(row,2).Range.Text = theElement.Notes.ToString();
1007
                     table.Cell(row,2).Range.Text = theElement.Notes;
1009
                  row++;
1008
                  row++;
1010
               }
1009
               }
1011
            }
1010
            }
1012
         }
1011
         }
1013
      }
1012
      }
Line 1433... Line 1432...
1433
                        EA.AttributeConstraint theCons = (EA.AttributeConstraint)theAttr.Constraints.GetAt(i);
1432
                        EA.AttributeConstraint theCons = (EA.AttributeConstraint)theAttr.Constraints.GetAt(i);
1434
                        sb.Append( theCons.Type );
1433
                        sb.Append( theCons.Type );
1435
                        sb.Append( ": {" );
1434
                        sb.Append( ": {" );
1436
                        sb.Append( theCons.Name );
1435
                        sb.Append( theCons.Name );
1437
                        sb.Append( "}\n" );
1436
                        sb.Append( "}\n" );
-
 
1437
                        //if (theCons.Notes != null && theCons.Notes.Length > 0)
-
 
1438
                        //{
1438
                        //sb.Append( theCons.Notes  );
1439
                        //   sb.Append( theCons.Notes  );
1439
                        //sb.Append( "\n" );
1440
                        //   sb.Append( "\n" );
-
 
1441
                        //}
1440
                     }
1442
                     }
1441
 
1443
 
1442
                     for(i=0; i<theAttr.TaggedValues.Count; i++)
1444
                     for(i=0; i<theAttr.TaggedValues.Count; i++)
1443
                     {
1445
                     {
1444
                        if (abortCreationThread)
1446
                        if (abortCreationThread)
Line 1448... Line 1450...
1448
                        sb.Append( "[" );
1450
                        sb.Append( "[" );
1449
                        sb.Append( theTag.Name );
1451
                        sb.Append( theTag.Name );
1450
                        sb.Append( "="  );
1452
                        sb.Append( "="  );
1451
                        sb.Append( theTag.Value );
1453
                        sb.Append( theTag.Value );
1452
                        sb.Append( "]\n" );
1454
                        sb.Append( "]\n" );
-
 
1455
                        //if (theTag.Notes != null && theTag.Notes.Length > 0)
1453
                        //sb.Append( theTag.Notes );
1456
                        //   sb.Append( theTag.Notes );
1454
                        //sb.Append( "\n" );
1457
                        //   sb.Append( "\n" );
-
 
1458
                        //}
1455
                     }
1459
                     }
1456
 
1460
 
1457
                     if (sb.Length > 0)
1461
                     if (sb.Length > 0)
1458
                     {
1462
                     {
1459
                        // remove the trailing "\n"
1463
                        // remove the trailing "\n"
Line 1562... Line 1566...
1562
                  return;
1566
                  return;
1563
 
1567
 
1564
               sb = new StringBuilder();
1568
               sb = new StringBuilder();
1565
               sb.Append( theReq.Name );
1569
               sb.Append( theReq.Name );
1566
               wr = TextualContent.appendAndSelectText(sb.ToString(), EA_Constants.styleName_Body1_Left_3_5cm);
1570
               wr = TextualContent.appendAndSelectText(sb.ToString(), EA_Constants.styleName_Body1_Left_3_5cm);
1567
               sb = new StringBuilder();
-
 
-
 
1571
 
1568
               sb.Append( theReq.Notes );
1572
               if (theReq.Notes != null && theReq.Notes.Length > 0)
1569
               if (sb.Length > 0)
-
 
1570
               {
1573
               {
-
 
1574
                  sb = new StringBuilder();
-
 
1575
                  sb.Append( theReq.Notes );
1571
                  wr = TextualContent.appendAndSelectText(sb.ToString(), EA_Constants.styleName_Body1_Left_4_5cm);
1576
                  wr = TextualContent.appendAndSelectText(sb.ToString(), EA_Constants.styleName_Body1_Left_4_5cm);
1572
               }
1577
               }
1573
            }
1578
            }
1574
         }
1579
         }
1575
      }
1580
      }
Line 1595... Line 1600...
1595
               sb.Append( theCons.Name );
1600
               sb.Append( theCons.Name );
1596
               sb.Append( "}" );
1601
               sb.Append( "}" );
1597
 
1602
 
1598
               wr = TextualContent.appendAndSelectText(sb.ToString(), EA_Constants.styleName_Body1_Left_3_5cm);
1603
               wr = TextualContent.appendAndSelectText(sb.ToString(), EA_Constants.styleName_Body1_Left_3_5cm);
1599
 
1604
 
1600
               if (theCons.Notes.Length > 0)
1605
               if (theCons.Notes != null && theCons.Notes.Length > 0)
1601
               {
1606
               {
1602
                  sb = new StringBuilder();
1607
                  sb = new StringBuilder();
1603
                  sb.Append( theCons.Notes );
1608
                  sb.Append( theCons.Notes );
1604
                  wr = TextualContent.appendAndSelectText(sb.ToString(), EA_Constants.styleName_Body1_Left_4_5cm);
1609
                  wr = TextualContent.appendAndSelectText(sb.ToString(), EA_Constants.styleName_Body1_Left_4_5cm);
1605
               }
1610
               }