Skip to main content
summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAndrew Gvozdev2011-09-26 12:15:42 -0400
committerAndrew Gvozdev2011-09-26 12:15:42 -0400
commit14939e4ab605da5de185999111cd0d21ae9e45bd (patch)
tree49608b9f37e6d1d3680ae300f0282f8809c0437b /build
parentb30bb21b5357c96c378c742d8dad0934d1942275 (diff)
downloadorg.eclipse.cdt-14939e4ab605da5de185999111cd0d21ae9e45bd.tar.gz
org.eclipse.cdt-14939e4ab605da5de185999111cd0d21ae9e45bd.tar.xz
org.eclipse.cdt-14939e4ab605da5de185999111cd0d21ae9e45bd.zip
bug 355601: Make Targets Not Found In Nested Folders
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/views/FilterEmtpyFoldersAction.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/views/FilterEmtpyFoldersAction.java b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/views/FilterEmtpyFoldersAction.java
index 661c724468..d6fc6d5d84 100644
--- a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/views/FilterEmtpyFoldersAction.java
+++ b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/views/FilterEmtpyFoldersAction.java
@@ -75,17 +75,12 @@ public class FilterEmtpyFoldersAction extends Action {
if(haveTargets[0]) {
return false; //We found what we were looking for
}
+
if(proxy.getType() != IResource.FOLDER) {
return true; //We only look at folders for content
}
- IContainer folder = (IContainer) proxy.requestResource();
- if (CCorePlugin.showSourceRootsAtTopOfProject() && !(folder instanceof IProject)) {
- boolean isSourceEntry = MakeContentProvider.isSourceEntry(folder);
- if (isSourceEntry)
- return false;
- }
-
+ IContainer folder = (IContainer) proxy.requestResource();
IMakeTarget [] targets = MakeCorePlugin.getDefault().getTargetManager().getTargets(folder);
if(targets != null && targets.length > 0) {
haveTargets[0] = true;

Back to the top