Commit 2aaccc6c authored by Elemer Lelik's avatar Elemer Lelik
Browse files

Merge pull request #19 from balaskoa/master

small code refactoring after code review
parents 9453e502 5fed7075
......@@ -355,8 +355,6 @@ public final class TITANBuilder extends IncrementalProjectBuilder {
}
processedProjects.add(project);
String needsMakefile = null;
IPath workingDir = ProjectBasedBuilder.getProjectBasedBuilder(project).getWorkingDirectoryPath(true);
if (workingDir == null || !workingDir.toFile().exists()) {
return true;
......@@ -1092,11 +1090,7 @@ public final class TITANBuilder extends IncrementalProjectBuilder {
IStatus status = buildJob.runInWorkspace(new SubProgressMonitor(internalMonitor, 3));
try {
if (status.isOK()) {
project.setSessionProperty(GeneralConstants.PROJECT_UP_TO_DATE, true);
} else {
project.setSessionProperty(GeneralConstants.PROJECT_UP_TO_DATE, false);
}
project.setSessionProperty(GeneralConstants.PROJECT_UP_TO_DATE, status.isOK());
TITANDecorator.refreshSelectively(project);
} catch (CoreException e) {
ErrorReporter.logExceptionStackTrace("While setting project `" + project.getName() + "' up-to-date", e);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment