From 93a5fcaa2a769c12f6ff805cf3cc53b8ecfab3bc Mon Sep 17 00:00:00 2001 From: Doug Schaefer Date: Thu, 23 Nov 2017 14:41:10 -0500 Subject: [PATCH] Bug 444054 - Always enable the build actions. If you select a non-CDT project then select a CDT one, the Build Project menu item wouldn't enable. If you select the CDT project again, it does. Big question is why isn't it enabled when selected. This fix just enables it all the time. Much easier for users to understand. Change-Id: I674740f2c6998686cade1f910a269a4e9d935d39 --- .../src/org/eclipse/cdt/internal/ui/cview/BuildGroup.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/BuildGroup.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/BuildGroup.java index 3eeaae4c288..3ab58ad43ed 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/BuildGroup.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/BuildGroup.java @@ -61,6 +61,12 @@ public class BuildGroup extends CViewActionGroup { public CDTBuildAction(IShellProvider shell, int kind) { super(shell, kind); } + + @Override + protected boolean updateSelection(IStructuredSelection s) { + return true; + } + @Override public void run() { // Ensure we correctly save files in all referenced projects before build