// Multiple replacements
if (!multiples.isEmpty()) {
if (multiples.size() == 1) {
error.addPossibleAction(new SimpleAction(
GT._("Replace each time with {0}", multiples.get(0)),
new MWPaneReplaceAllAction(group.getText(), multiples.get(0))));
} else {
List<Actionnable> actions = new ArrayList<Actionnable>();
for (String multiple : multiples) {
actions.add(new SimpleAction(multiple, new MWPaneReplaceAllAction(group.getText(), multiple)));
}
error.addPossibleAction(new CompositeAction(GT._("Replace each time with"), actions));
}
}
errors.add(error);