if (files != null && files.length > 0) {
Job job = new Job("Generating DataDictionary") {
protected IStatus run(IProgressMonitor monitor) {
Arrays.sort(files);
ITransformer transformer = TransformServiceFactory.createTransformer();
boolean res = transformer.transform(dialog.getProjectName(), dialog.getModelName(), files, monitor, ITransformer.LOG_WARN);
return res ? Status.OK_STATUS : Status.CANCEL_STATUS;
}
};
job.setPriority(Job.SHORT);
job.schedule();