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