//DBBuilder
dbBuilder = (SequenceDBBuilder) platform.getUI().selectPlugIn(CoreMessages.getString("ProbeMakerPlugIn.MESSAGE_SELECT_DBBUILDER_HTML"),MolToolsWorkbench.DB_BUILDERS); //$NON-NLS-1$
//Create the custom target input format
tif = new DefaultTargetInputFormat("Custom",format,conv,seqBuilder,dbBuilder); //$NON-NLS-1$
}
else {
final String name = template.getName();
targetClass = Class.forName(template.getTargetClassName());
seqBuilder = (SequenceBuilder<? extends ProbeMakerTarget>) targetClass.getMethod("getSequenceBuilder",(Class[]) null).invoke(null,(Object[]) null); //$NON-NLS-1$
format = (SequenceDBDataReader) Class.forName(template.getFormatClassName()).newInstance();
try {
conv = (Transformer) Class.forName(template.getConverterClassName()).newInstance();
}
catch (final ClassNotFoundException c) {
//conv is null
}
try {
dbBuilder = (SequenceDBBuilder) Class.forName(template.getDbBuilderClassName()).newInstance();
}
catch (final ClassNotFoundException c) {
//dbbuilder is null
}
tif = new DefaultTargetInputFormat(name,format,conv,seqBuilder,dbBuilder);
}
}
catch (final IllegalAccessException e) {