Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlena Laskavaia2008-11-05 19:10:15 +0000
committerAlena Laskavaia2008-11-05 19:10:15 +0000
commite6eda2a51d4c87bbcad71af560669056fafb7831 (patch)
tree0c5c64a8ce5cb733cd751c1546cd66441be412ae /core/org.eclipse.cdt.core/templateengine
parent01968f4ebd9656360e829210beb0cc2ea4c15b79 (diff)
downloadorg.eclipse.cdt-e6eda2a51d4c87bbcad71af560669056fafb7831.tar.gz
org.eclipse.cdt-e6eda2a51d4c87bbcad71af560669056fafb7831.tar.xz
org.eclipse.cdt-e6eda2a51d4c87bbcad71af560669056fafb7831.zip
- if filterPattern is null - means should match all patterns
Diffstat (limited to 'core/org.eclipse.cdt.core/templateengine')
-rw-r--r--core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/TemplateEngine.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/TemplateEngine.java b/core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/TemplateEngine.java
index 944bc7fd4ff..54b8589731f 100644
--- a/core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/TemplateEngine.java
+++ b/core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/TemplateEngine.java
@@ -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);
}
}

Back to the top