Subversion Repositories DevTools

Rev

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

Rev 2157 Rev 2159
Line 1117... Line 1117...
1117
            if (hasSubsystem)
1117
            if (hasSubsystem)
1118
            {
1118
            {
1119
               string s = EA_TaggedValues.Read(ea_req, Constants.TAG_SUBSYSTEM);
1119
               string s = EA_TaggedValues.Read(ea_req, Constants.TAG_SUBSYSTEM);
1120
               if (s != null && s.Length > 0)
1120
               if (s != null && s.Length > 0)
1121
               {
1121
               {
-
 
1122
                  // The tagged value may be a comma seperated list of subsystem names so break it up
-
 
1123
                  // and process each one found
-
 
1124
                  string[] sa = s.Split(",".ToCharArray());
-
 
1125
                  foreach (string sas in sa)
-
 
1126
                  {
-
 
1127
                     string trimmed_sas = sas.Trim();
-
 
1128
                     if (trimmed_sas.Length > 0)
-
 
1129
                     {
1122
                  setListItemAttrValue(rp_req, ea_req, "Subsystem", s, rp_req_tag);
1130
                        setListItemAttrValue(rp_req, ea_req, "Subsystem", trimmed_sas, rp_req_tag);
-
 
1131
                     }
-
 
1132
                  }
1123
               }
1133
               }
1124
            }
1134
            }
1125
            if (hasStability)
1135
            if (hasStability)
1126
            {
1136
            {
1127
               string s = EA_TaggedValues.Read(ea_req, Constants.TAG_STABILITY);
1137
               string s = EA_TaggedValues.Read(ea_req, Constants.TAG_STABILITY);
Line 1130... Line 1140...
1130
                  setListItemAttrValue(rp_req, ea_req, "Stability", s, rp_req_tag);
1140
                  setListItemAttrValue(rp_req, ea_req, "Stability", s, rp_req_tag);
1131
               }
1141
               }
1132
            }
1142
            }
1133
            if (hasType)
1143
            if (hasType)
1134
            {
1144
            {
1135
               if (ea_req.Stereotype != null && ea_req.Stereotype.Length > 0)
1145
               // The StereoTypeEx is a comma seperated list, and the first in the list is usually (always?)
1136
               {
-
 
1137
                  setListItemAttrValue(rp_req, ea_req, "Requirement Type", ea_req.Stereotype, rp_req_tag);
1146
               // the one displayed in EA's project browser, so try and export the first item in the list
1138
               }
1147
               bool done = false;
1139
               else if (ea_req.StereotypeEx != null && ea_req.StereotypeEx.Length > 0)
1148
               if (ea_req.StereotypeEx != null && ea_req.StereotypeEx.Length > 0)
1140
               {
1149
               {
1141
                  string[] s_arr = ea_req.StereotypeEx.Split(",".ToCharArray());
1150
                  string[] s_arr = ea_req.StereotypeEx.Split(",".ToCharArray());
1142
                  if (s_arr[0] != null && s_arr[0].Length > 0)
1151
                  if (s_arr[0] != null && s_arr[0].Length > 0)
1143
                  {
1152
                  {
1144
                     setListItemAttrValue(rp_req, ea_req, "Requirement Type", s_arr[0], rp_req_tag);
1153
                     setListItemAttrValue(rp_req, ea_req, "Requirement Type", s_arr[0], rp_req_tag);
-
 
1154
                     done = true;
1145
                  }
1155
                  }
1146
               }
1156
               }
-
 
1157
               // if we didnt get anything from StereoTypeEx, then try Stereotype
-
 
1158
               if (!done && ea_req.Stereotype != null && ea_req.Stereotype.Length > 0)
-
 
1159
               {
-
 
1160
                  setListItemAttrValue(rp_req, ea_req, "Requirement Type", ea_req.Stereotype, rp_req_tag);
-
 
1161
               }
1147
            }
1162
            }
1148
         }
1163
         }
1149
      }
1164
      }
1150
 
1165
 
1151
 
1166