use of org.eclipse.titan.designer.core.TITANJob in project titan.EclipsePlug-ins by eclipse.
the class CheckVersion method doCheckVersion.
/**
* do check the version of the compiler set.
*/
private void doCheckVersion() {
if (!TITANInstallationValidator.check(true)) {
return;
}
if (!LicenseValidator.check()) {
return;
}
processSelection();
final TITANJob titanJob = new TITANJob(JOB_TITLE, new HashMap<String, IFile>(), new File(DOT), project);
titanJob.setPriority(Job.DECORATE);
titanJob.setUser(true);
titanJob.setRule(project);
final boolean reportDebugInformation = Platform.getPreferencesService().getBoolean(ProductConstants.PRODUCT_ID_DESIGNER, PreferenceConstants.DISPLAYDEBUGINFORMATION, false, null);
final List<String> command = new ArrayList<String>();
command.add(PathConverter.convert(getCompilerPath().toOSString(), reportDebugInformation, TITANDebugConsole.getConsole()));
command.add('-' + VERSION_CHECK_FLAG);
titanJob.addCommand(command, JOB_TITLE);
titanJob.schedule();
}
Aggregations