worker.setOutputPNGFile(fileName); //$NON-NLS-1$
worker.addExportMode(PluginsCMDWorker.EXPORT_PNG);
} else {
fileName += ".csv"; //$NON-NLS-1$
worker.setOutputCSVFile(fileName); //$NON-NLS-1$
worker.addExportMode(PluginsCMDWorker.EXPORT_CSV);
}
worker.setPluginType(pluginType);
int status = worker.doJob();
if (status == 0) {
log.info("Successful generation of file " + fileName + " by plugin:" + pluginType);