* if not we need some extra information on it.
*/
temporaryPlasmid = new Plasmid(e.getMessage());
if (plasmidList.isEmpty()) {
PlasmidDataInputDialog plasmidDataFrame = new PlasmidDataInputDialog(this, temporaryPlasmid);
temporaryPlasmid = plasmidDataFrame.getPlasmid();
plasmidList.add(temporaryPlasmid);
}
Iterator it = plasmidList.iterator();
while (it.hasNext()) {
Plasmid preExistingPlasmid = (Plasmid)it.next();
if (preExistingPlasmid.getName().equals(temporaryPlasmid.getName())) {
temporaryPlasmid = preExistingPlasmid;
break;
}
if (!it.hasNext()) {
PlasmidDataInputDialog plasmidDataFrame = new PlasmidDataInputDialog(this, temporaryPlasmid);
temporaryPlasmid = plasmidDataFrame.getPlasmid();
}
}
} finally {
plasmidList.add(temporaryPlasmid);
plasmids.add(temporaryPlasmid);