ISearchResult searchResult = textDocument.getSearchService().findAll(
searchDescriptor);
List<IArtefactPosition> positions = new ArrayList<IArtefactPosition>();
for (ITextRange textRange : searchResult.getTextRanges()) {
OOArtefactPosition position = new TextPosition(ooDocument,
textRange);
positions.add(position);
}
return positions;
}