- Pair<Collection<Resource>, Collection<Resource>> refs = Simantics.getSession().syncRequest(new FindFixable(target));
- String dialogTitle = "Fix References";
- String dialogMessage = "Fix " + refs.first.size() + " old references and " + refs.second.size() + " removed references?";
- String dialogButtonLabels[] = new String[]{"Ok","Cancel"};
+ Pair<Collection<Resource>, Collection<Resource>> refs = Simantics.getSession()
+ .syncRequest(new FindFixable(target));
+ String dialogTitle = Messages.FixAllReferencesAction_FixReferences;
+ String dialogMessage = NLS.bind(Messages.FixAllReferencesAction_FixOldReferences,
+ new Object[] { refs.first.size(), refs.second.size() });
+ String dialogButtonLabels[] = new String[] { IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL };