pf.handleError(e.toString(),e);
return;
}
//DBBuilder
SequenceDBBuilder dbBuilder = (SequenceDBBuilder) pf.getUI().selectPlugIn(SwingUIMessages.getString("ProbeMaker.MESSAGE_SELECT_DBBUILDER_HTML"),MolToolsWorkbench.DB_BUILDERS); //$NON-NLS-1$
if (dbBuilder == null)
dbBuilder = ListSequenceDB.getDefaultBuilder();
List<Map<String,String>> maps = new ArrayList<Map<String,String>>();
for (Iterator<? extends NucleotideSequence> i = transferdb.iterator();i.hasNext();) {
Sequence s = i.next();
Map<String,String> m = new HashMap<String, String>();
m.put(SequenceBuilder.PROPERTY_NAME,s.getID());
m.put(SequenceBuilder.PROPERTY_SEQUENCE_DATA,s.seqString());
m.put(SequenceBuilder.PROPERTY_ID,s.getID());
maps.add(m);
}
database.addSequences(dbBuilder.buildDB(maps,seqBuilder));
}
catch (UnsupportedFlavorException e) {
pf.handleError(e.toString(),e);
}
catch (IOException e) {