platform: restart build process on Java compiler settings modification
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Tue, 23 Dec 2014 12:03:03 +0000 (13:03 +0100)
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>
Tue, 23 Dec 2014 12:03:03 +0000 (13:03 +0100)
(support request #48593)

java/compiler/impl/src/com/intellij/compiler/options/JavaCompilersTab.java

index f54cae8988aba2e43ef683ab848c58b1d6061278..3f7222464296fe5cc97e5807a7ad0dcaa86b7f8c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2000-2012 JetBrains s.r.o.
+ * Copyright 2000-2014 JetBrains s.r.o.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -137,12 +137,14 @@ public class JavaCompilersTab implements SearchableConfigurable, Configurable.No
   public void apply() throws ConfigurationException {
     boolean modified = false;
     try {
+      modified = isModified();
       for (Configurable configurable : myConfigurables) {
         if (configurable.isModified()) {
           modified = true;
           configurable.apply();
         }
       }
+
       myCompilerConfiguration.setDefaultCompiler(mySelectedCompiler);
       myCompilerConfiguration.setProjectBytecodeTarget(myTargetLevelComponent.getProjectBytecodeTarget());
       myCompilerConfiguration.setModulesBytecodeTargetMap(myTargetLevelComponent.getModulesBytecodeTargetMap());