}
CheckErrorResult errorResult = createCheckErrorResult(
analysis, link.getBeginIndex(), endIndex);
errorResult.addPossibleAction(
GT._("Add a description..."),
new AddTextActionProvider(
"[" + url + " ", "]" + suffix,
new TextProviderUrlTitle(url),
GT._("What description would you like to use for the external link ?"),
descriptionChecker));
if (refTag == null) {
errorResult.addReplacement(
"<ref>" + url + "</ref>",
GT._("Convert into <ref> tag"));
errorResult.addPossibleAction(
GT._("Add a description and convert into <ref> tag"),
new AddTextActionProvider(
"<ref>[" + url + " ", "]</ref>",
new TextProviderUrlTitle(url),
GT._("What description would you like to use for the external link ?"),
descriptionChecker));
} else {