|
|
|
@ -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++; |
|
|
|
|
} |
|
|
|
|