From e7983783ff8c6848c11333d4c451912731fc2e65 Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Mon, 14 Jan 2019 12:20:46 +0100 Subject: [PATCH] compile session naming (IDEA-174920) --- .../impl/src/com/intellij/compiler/impl/CompileDriver.java | 7 ++++--- resources-en/src/messages/CompilerBundle.properties | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java b/java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java index d64ce3ca28ec..788fe4851e45 100644 --- a/java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java +++ b/java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java @@ -372,10 +372,11 @@ public class CompileDriver { final CompilerMessage message) { ApplicationManager.getApplication().assertIsDispatchThread(); - final String contentName = CompilerBundle.message(forceCompile ? "compiler.content.name.compile" : "compiler.content.name.make"); final boolean isUnitTestMode = ApplicationManager.getApplication().isUnitTestMode(); - final CompilerTask compileTask = new CompilerTask(myProject, contentName, isUnitTestMode, !withModalProgress, true, - isCompilationStartedAutomatically(scope), withModalProgress); + final String name = CompilerBundle.message(isRebuild ? "compiler.content.name.rebuild" : forceCompile ? "compiler.content.name.recompile" : "compiler.content.name.make"); + final CompilerTask compileTask = new CompilerTask( + myProject, name, isUnitTestMode, !withModalProgress, true, isCompilationStartedAutomatically(scope), withModalProgress + ); StatusBar.Info.set("", myProject, "Compiler"); // ensure the project model seen by build process is up-to-date diff --git a/resources-en/src/messages/CompilerBundle.properties b/resources-en/src/messages/CompilerBundle.properties index 995627d68890..8684cb42ecd6 100644 --- a/resources-en/src/messages/CompilerBundle.properties +++ b/resources-en/src/messages/CompilerBundle.properties @@ -54,7 +54,8 @@ status.compilation.aborted=Compilation aborted status.all.up.to.date=All files are up-to-date compiler.error.failed.to.delete=Failed to delete {0} progress.updating.caches=Updating caches... -compiler.content.name.compile=Rebuild +compiler.content.name.rebuild=Rebuild +compiler.content.name.recompile=Recompile compiler.content.name.make=Build status.compilation.completed.successfully.with.warnings=Build completed successfully with {0} {0,choice, 0#warnings|1#warning|2#warnings} status.compilation.completed.successfully=Build completed successfully