initial revision of tests plugin
diff --git a/org.eclipse.wst.common.snippets/src/org/eclipse/wst/common/snippets/core/ISnippetsEntry.java b/org.eclipse.wst.common.snippets/src/org/eclipse/wst/common/snippets/core/ISnippetsEntry.java index 7e7448f..8d41409 100644 --- a/org.eclipse.wst.common.snippets/src/org/eclipse/wst/common/snippets/core/ISnippetsEntry.java +++ b/org.eclipse.wst.common.snippets/src/org/eclipse/wst/common/snippets/core/ISnippetsEntry.java
@@ -42,8 +42,8 @@ String getDescription(); /** - * @return the filters for which this entry will be shown (when filtering - * is enabled) + * @return the filters for which this entry will be shown when filtering + * is enabled */ String[] getFilters();
diff --git a/org.eclipse.wst.common.snippets/src/org/eclipse/wst/common/snippets/internal/SnippetDefinitions.java b/org.eclipse.wst.common.snippets/src/org/eclipse/wst/common/snippets/internal/SnippetDefinitions.java index aebf16e..c7f7318 100644 --- a/org.eclipse.wst.common.snippets/src/org/eclipse/wst/common/snippets/internal/SnippetDefinitions.java +++ b/org.eclipse.wst.common.snippets/src/org/eclipse/wst/common/snippets/internal/SnippetDefinitions.java
@@ -75,6 +75,15 @@ if (item.getId().equals(id)) return item; } + for (int i = 0; i < fCategories.size(); i++) { + ISnippetItem[] items = ((ISnippetCategory) fCategories.get(i)).getItems(); + for (int j = 0; j < items.length; j++) { + SnippetPaletteItem item = (SnippetPaletteItem) items[j]; + if (item.getId().equals(id)) { + return item; + } + } + } return null; }