group.addPosition(new LinkedPosition(viewer.getDocument(), position.getOffset(), position.getLength(), i));
model.addGroup(group);
}
model.forceInstall();
LinkedModeUI ui = new EditorLinkedModeUI(model, viewer);
ui.setExitPosition(viewer, getReplacementOffset() + getReplacementString().length(), 0, Integer.MAX_VALUE);
ui.setExitPolicy(new ExitPolicy(')', viewer.getDocument()));
ui.setCyclingMode(LinkedModeUI.CYCLE_WHEN_NO_PARENT);
ui.setDoContextInfo(true);
ui.enter();
fSelectedRegion = ui.getSelectedRegion();
}
}
catch (BadLocationException e) {
}