public void run() {
ISourceViewer viewer = editor.getViewer();
IDocument document = viewer.getDocument();
int offset = ((ITextSelection) editor.getSelectionProvider().getSelection()).getOffset();
LinkedPositionGroup group = new LinkedPositionGroup();
OccurrencesFinder finder = new OccurrencesFinder(editor, editor.getCFModel(), document, offset);
List positions = finder.perform();
if (positions == null) {
return;
}
addPositionsToGroup(offset, positions, document, group);