Package org.moltools.apps.probemaker.io

Examples of org.moltools.apps.probemaker.io.DefaultTargetInputFormat


        System.out.println("  Format is: " + format.getClass().getName()); //$NON-NLS-1$
        System.out.println("  Target type is: " + targetClass.getName()); //$NON-NLS-1$
        System.out.println("  Output format is: " + outputClass.getName()); //$NON-NLS-1$

        TargetInputFormat<? extends ProbeMakerTarget> tif = new DefaultTargetInputFormat("Input format",format,null,seqBuilder,ListSequenceDB.getDefaultBuilder()); //$NON-NLS-1$
       
        System.out.println("  Loading tag libs"); //$NON-NLS-1$

        int ti = 0;
        List<TagLibrary> libs = new ArrayList<TagLibrary>();
View Full Code Here


        //DBBuilder
        dbBuilder = (SequenceDBBuilder) platform.getUI().selectPlugIn(CoreMessages.getString("ProbeMakerPlugIn.MESSAGE_SELECT_DBBUILDER_HTML"),"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) {
View Full Code Here

        System.out.println("  Format is: " + format.getClass().getName()); //$NON-NLS-1$
        System.out.println("  Target type is: " + targetClass.getName()); //$NON-NLS-1$
        System.out.println("  Output format is: " + outputClass.getName()); //$NON-NLS-1$

        TargetInputFormat<? extends ProbeMakerTarget> tif = new DefaultTargetInputFormat("Input format",format,null,seqBuilder,ListSequenceDB.getDefaultBuilder()); //$NON-NLS-1$
       
       
       
        System.out.println("  Loading tag libs"); //$NON-NLS-1$
View Full Code Here

        //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) {
View Full Code Here

        //DBBuilder
        dbBuilder = (SequenceDBBuilder) platform.getUI().selectPlugIn(CoreMessages.getString("ProbeMakerPlugIn.MESSAGE_SELECT_DBBUILDER_HTML"),"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) {
View Full Code Here

        //DBBuilder
        dbBuilder = (SequenceDBBuilder) platform.getUI().selectPlugIn(CoreMessages.getString("ProbeMakerPlugIn.MESSAGE_SELECT_DBBUILDER_HTML"),"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) {
View Full Code Here

TOP

Related Classes of org.moltools.apps.probemaker.io.DefaultTargetInputFormat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.