diff options
author | Doug Schaefer | 2017-11-23 19:41:10 +0000 |
---|---|---|
committer | Doug Schaefer | 2017-11-23 19:41:10 +0000 |
commit | 93a5fcaa2a769c12f6ff805cf3cc53b8ecfab3bc (patch) | |
tree | 867586d3128a5baf224e89faed4f71b713d4ef3f /core | |
parent | d9b8eb3fd0061cb8ee70ee458f2ad00a953452ef (diff) | |
download | org.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
Diffstat (limited to 'core')
-rw-r--r-- | core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/BuildGroup.java | 6 |
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 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 |