return filter;
}
private ISearch createSearch() {
IModelFactory factory = Owl.getModelFactory();
ISearch search = null;
ISearchCondition locationCondition = fLocationControl.toScopeCondition();
/* Only use Location Condition */
if (locationCondition != null && fMatchAllNewsRadio.getSelection()) {
search = factory.createSearch(null);
search.addSearchCondition(locationCondition);
}
/* Build Conditions from Location and List */
else if (!fMatchAllNewsRadio.getSelection()) {
List<ISearchCondition> conditions = fSearchConditionList.createConditions();
if (locationCondition != null)
conditions.add(locationCondition);
search = factory.createSearch(null);
search.setMatchAllConditions(fMatchAllRadio.getSelection());
for (ISearchCondition condition : conditions) {
search.addSearchCondition(condition);
}
}
return search;
}