Commit 5fed7075 authored by balaskoa's avatar balaskoa
Browse files

small code refactoring after code review


Signed-off-by: default avatarbalaskoa <jeno.balasko@ericsson.com>
parent 9453e502
......@@ -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