Search in sources :

Example 6 with TITANJob

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();
}
Also used : IFile(org.eclipse.core.resources.IFile) TITANJob(org.eclipse.titan.designer.core.TITANJob) ArrayList(java.util.ArrayList) File(java.io.File) IFile(org.eclipse.core.resources.IFile)

Aggregations

ArrayList (java.util.ArrayList)6 TITANJob (org.eclipse.titan.designer.core.TITANJob)6 File (java.io.File)3 IFile (org.eclipse.core.resources.IFile)2 CoreException (org.eclipse.core.runtime.CoreException)1 Path (org.eclipse.core.runtime.Path)1 QualifiedName (org.eclipse.core.runtime.QualifiedName)1 IPreferencesService (org.eclipse.core.runtime.preferences.IPreferencesService)1 DirectoryDialog (org.eclipse.swt.widgets.DirectoryDialog)1 Shell (org.eclipse.swt.widgets.Shell)1