Author: snjeza
Date: 2009-02-25 15:59:07 -0500 (Wed, 25 Feb 2009)
New Revision: 13805
Modified:
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/Category.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectModelElement.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/ProjectExamplesPatternFilter.java
Log:
JBIDE-3851 filter project does not always work
Modified:
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/Category.java
===================================================================
---
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/Category.java 2009-02-25
20:49:03 UTC (rev 13804)
+++
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/Category.java 2009-02-25
20:59:07 UTC (rev 13805)
@@ -75,4 +75,8 @@
return getName();
}
+ public String getShortDescription() {
+ return getName();
+ }
+
}
Modified:
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectModelElement.java
===================================================================
---
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectModelElement.java 2009-02-25
20:49:03 UTC (rev 13804)
+++
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectModelElement.java 2009-02-25
20:59:07 UTC (rev 13805)
@@ -18,4 +18,5 @@
public String getName();
public String getDescription();
+ public String getShortDescription();
}
Modified:
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/ProjectExamplesPatternFilter.java
===================================================================
---
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/ProjectExamplesPatternFilter.java 2009-02-25
20:49:03 UTC (rev 13804)
+++
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/ProjectExamplesPatternFilter.java 2009-02-25
20:59:07 UTC (rev 13805)
@@ -38,7 +38,7 @@
}
ProjectModelElement model = (ProjectModelElement) element;
- if (wordMatches(model.getName()) || wordMatches(model.getDescription())) {
+ if (wordMatches(model.getName()) || wordMatches(model.getDescription()) ||
wordMatches(model.getShortDescription())) {
return true;
}
return false;
Show replies by date