Package presenter

Examples of presenter.SelecionaImportadorPresenter


    }

    @Override
    void doCommand() throws ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, Exception {

        SelecionaImportadorPresenter selecionaImportador = new SelecionaImportadorPresenter();

        JFileChooser chooser = new JFileChooser();
        //TODO Alterar na versão final (Setando para simplificar)
        chooser.setCurrentDirectory(new File("src//database"));
        chooser.showOpenDialog(null);
        File arquivo = chooser.getSelectedFile();

        Class classDefinition = Class.forName(selecionaImportador.getSelecionado());
        Constructor intArgsConstructor;
        Class[] intArgsClass = new Class[]{File.class, String.class};
        intArgsConstructor = classDefinition.getConstructor(intArgsClass);

        Object[] intArgs = new Object[]{arquivo, ";"};
View Full Code Here

TOP

Related Classes of presenter.SelecionaImportadorPresenter

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.