Skip to main content
summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAndrew Gvozdev2010-05-28 17:07:51 -0400
committerAndrew Gvozdev2010-05-28 17:07:51 -0400
commit34d007c0b4b265b71e050dcb9594925c03a65c5d (patch)
treebe1f3de6bd3a500da1c195e51028e375adb600bb /build
parent0874a4a9731620c2f55b1afca11f1143fddb6d2d (diff)
downloadorg.eclipse.cdt-34d007c0b4b265b71e050dcb9594925c03a65c5d.tar.gz
org.eclipse.cdt-34d007c0b4b265b71e050dcb9594925c03a65c5d.tar.xz
org.eclipse.cdt-34d007c0b4b265b71e050dcb9594925c03a65c5d.zip
bug 270326: console window displays black
Workaround to get around bug 214215
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/TargetBuild.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/TargetBuild.java b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/TargetBuild.java
index e53aa256d6..f4a43a3f37 100644
--- a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/TargetBuild.java
+++ b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/TargetBuild.java
@@ -17,6 +17,7 @@ import java.util.List;
import org.eclipse.cdt.make.core.IMakeTarget;
import org.eclipse.cdt.make.internal.ui.MakeUIPlugin;
import org.eclipse.cdt.make.internal.ui.preferences.MakePreferencePage;
+import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspaceRunnable;
@@ -117,6 +118,8 @@ public class TargetBuild {
return ResourcesPlugin.FAMILY_MANUAL_BUILD == family;
}
};
+ // workaround for bug 270326, initialize CUIPlugin preference store to avoid race condition
+ CUIPlugin.getDefault().getPreferenceStore().getString("dummy"); //$NON-NLS-1$
targetJob.schedule();
if (!MakePreferencePage.isBuildTargetInBackground()) {

Back to the top