Object[] objects = selectionConvertor.getElements(structuredModel, regions[i].getOffset(), regions[i].getLength());
for (int j = 0; j < objects.length; j++) {
blockObjects.add(objects[j]);
}
}
selection = new StructuredTextSelection(getDocument(), (ITextSelection) selection, blockObjects.toArray());
}
else {
int start = ((ITextSelection) selection).getOffset();
int end = start + ((ITextSelection) selection).getLength();
selection = new StructuredTextSelection(getDocument(), (ITextSelection) selection, selectionConvertor.getElements(structuredModel, start, end));