(String label, DBList fieldList)
| 189 | } |
| 190 | |
| 191 | private void examineItem(String label, DBList fieldList) |
| 192 | throws DBException, IOException |
| 193 | { |
| 194 | StringBuilder description = new StringBuilder(256); |
| 195 | |
| 196 | String string = fieldList.getString("DescIdentified"); |
| 197 | if (string.length() == 0) { |
| 198 | string = fieldList.getString("Description"); |
| 199 | } |
| 200 | if (string.length() != 0) { |
| 201 | description.append(string); |
| 202 | } |
| 203 | |
| 204 | int alchemyID = fieldList.getInteger("AlchIngredient"); |
| 205 | if (alchemyID > 0) { |
| 206 | AlchemyIngredient ingredient = (AlchemyIngredient)this.ingredientsMap.get(new Integer(alchemyID)); |
| 207 | if (ingredient != null) { |
| 208 | description.append("<br><ul>"); |
| 209 | List substances = ingredient.getSubstances(); |
| 210 | for (Object substance : substances) { |
| 211 | description.append("<li>"); |
| 212 | description.append((String)substance); |
| 213 | } |
| 214 | |
| 215 | description.append("</ul>"); |
| 216 | } |
| 217 | |
| 218 | } |
| 219 | |
| 220 | ExamineDialog.showDialog(Main.mainWindow, label, description.toString()); |
| 221 | } |
| 222 | |
| 223 | private void removeSelectedItem() |
| 224 | throws DBException |
no test coverage detected