mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
- if filterPattern is null - means should match all patterns
This commit is contained in:
parent
01968f4ebd
commit
e6eda2a51d
1 changed files with 2 additions and 2 deletions
|
@ -303,7 +303,7 @@ public class TemplateEngine {
|
|||
if (toolChains[j].equals(toolChain)) {
|
||||
if ((usageFilter != null) && (filterPattern != null) && usageFilter.matches(filterPattern)) {
|
||||
matchedTemplateInfoList.add(templateInfo);
|
||||
} else if (usageFilter == null) {
|
||||
} else if (usageFilter == null || filterPattern==null) {
|
||||
matchedTemplateInfoList.add(templateInfo);
|
||||
}
|
||||
continue;
|
||||
|
@ -312,7 +312,7 @@ public class TemplateEngine {
|
|||
} else {
|
||||
if ((usageFilter != null) && (filterPattern != null) && usageFilter.matches(filterPattern)) {
|
||||
matchedTemplateInfoList.add(templateInfo);
|
||||
} else if (usageFilter == null) {
|
||||
} else if (usageFilter == null || filterPattern==null) {
|
||||
matchedTemplateInfoList.add(templateInfo);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue