myOptions.setTitled(false);
}
public void run(final File outputFile, final ExportFinalizationJob finalizationJob)
throws Exception {
final IJobManager jobManager = Platform.getJobManager();
final List resultFiles = new ArrayList();
final Job[] jobs = createJobs(outputFile, resultFiles);
final IProgressMonitor monitor = jobManager.createProgressGroup();
final IProgressMonitor familyMonitor = new IProgressMonitor() {
public void beginTask(String name, int totalWork) {
monitor.beginTask(name, totalWork);
}
public void done() {
monitor.done();
}
public void internalWorked(double work) {
monitor.internalWorked(work);
}
public boolean isCanceled() {
return monitor.isCanceled();
}
public void setCanceled(boolean value) {
monitor.setCanceled(value);
if (value) {
System.err.println("ExporterBase: canceling value="+EXPORT_JOB_FAMILY);
jobManager.cancel(EXPORT_JOB_FAMILY);
}
}
public void setTaskName(String name) {
monitor.setTaskName(name);
}