if (AUTHOR_HANDLER_ID.equals(id)) {
StringTokenizer tokenizer = new StringTokenizer(query);
while (tokenizer.hasMoreTokens()) {
String token = tokenizer.nextToken();
ISearchField field = fFactory.createSearchField(INews.AUTHOR, entity);
ISearchCondition condition = fFactory.createSearchCondition(field, SearchSpecifier.CONTAINS, token);
conditions.add(condition);
}
}
/* Search on Category */
else if (CATEGORY_HANDLER_ID.equals(id)) {
ISearchField field = fFactory.createSearchField(INews.CATEGORIES, entity);
ISearchCondition condition = fFactory.createSearchCondition(field, SearchSpecifier.IS, query);
conditions.add(condition);
}
/* Search on Label */
else if (LABEL_HANDLER_ID.equals(id)) {
ISearchField field = fFactory.createSearchField(INews.LABEL, entity);
ISearchCondition condition = fFactory.createSearchCondition(field, SearchSpecifier.IS, query);
conditions.add(condition);
}
/* Open Dialog and Search */
if (conditions.size() >= 1 && !fBrowser.getControl().isDisposed()) {