mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-11 10:15:39 +02:00
bug 355601: Make Targets Not Found In Nested Folders
This commit is contained in:
parent
b30bb21b53
commit
14939e4ab6
1 changed files with 2 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue