Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2017-11-23 14:41:10 -0500
committerDoug Schaefer2017-11-23 14:41:10 -0500
commit93a5fcaa2a769c12f6ff805cf3cc53b8ecfab3bc (patch)
tree867586d3128a5baf224e89faed4f71b713d4ef3f
parentd9b8eb3fd0061cb8ee70ee458f2ad00a953452ef (diff)
downloadorg.eclipse.cdt-93a5fcaa2a769c12f6ff805cf3cc53b8ecfab3bc.tar.gz
org.eclipse.cdt-93a5fcaa2a769c12f6ff805cf3cc53b8ecfab3bc.tar.xz
org.eclipse.cdt-93a5fcaa2a769c12f6ff805cf3cc53b8ecfab3bc.zip
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
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/BuildGroup.java6
1 files changed, 6 insertions, 0 deletions
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 3eeaae4c28..3ab58ad43e 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

Back to the top