public void run() {
        String[] args = new String[2];
        if (main.list.getSelectedValues().size() > 0) {
            if (main.list.getPictures().length != main.list.getSelectedValues().size()) {
                int response = JOptionPane.showConfirmDialog(main.list, main.mes.getString("Generator.23"), main.mes.getString("Generator.24"), JOptionPane.YES_NO_CANCEL_OPTION);
                switch (response)
                {
                    case JOptionPane.YES_OPTION:
                        Vector<File> vf = main.list.getSelectedValues();
                        files = new File[vf.size()];
                        for (int i = 0; i < files.length; i++) {
                            files[i] = vf.get(i);
                        }
                        break; // generate only the selected images
                    case JOptionPane.NO_OPTION:
                        files = main.list.getPictures();
                        break; // generate the whole directory
                    case JOptionPane.CANCEL_OPTION:
                        return; // do nothing
                    case JOptionPane.CLOSED_OPTION:
                        return; // do nothing
                }
            }
            args[0] = files[0].getPath();
            args[1] = Options.getInstance().getOutput_dir() + "\\" + files[0].getName();
            PluginUI.main(args);
        } else {
            JOptionPane.showMessageDialog(new JFrame(), "Bitte zuerst ein oder mehrere Bilder wählen");
        }
    }