Browse Source

REPORT-80695 模板全局查找替换2期 增加替换tip

new-design
Destiny.Lin 2 years ago
parent
commit
f531098ff1
  1. 7
      designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceMainDialog.java

7
designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceMainDialog.java

@ -260,6 +260,10 @@ public class ITReplaceMainDialog extends UIDialog {
for (Info info : searchContentResultList) {
if (!info.getContent().isWrongful() && isSupportReplace(info)) {
info.setValue(info, searchStr, replaceStr, info.getContent().getOperatorArray());
contentReplaceCount++;
}
if (info.getContent().isWrongful()) {
contentReplaceFailedCount++;
}
if (info.getContent().isSelected()) {
info.getContent().setReplaced(true);
@ -318,13 +322,10 @@ public class ITReplaceMainDialog extends UIDialog {
for (Info info : searchContentResultList) {
if (isAllow2Replace(info)) {
if (!info.isLegalValid(HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(), searchStr, replaceStr)) {
contentReplaceFailedCount++;
checkValidList.add(info);
serialNumber.add(count);
info.getContent().setWrongful(true);
info.getContent().setReplaced(true);
} else {
contentReplaceCount++;
}
count++;
}

Loading…
Cancel
Save