Browse Source

REPORT-80695 修改魔法值

feature/x
Destiny.Lin 2 years ago
parent
commit
db42b4e512
  1. 4
      designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceMainDialog.java

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

@ -73,6 +73,8 @@ public class ITReplaceMainDialog extends UIDialog {
public static int contentReplaceFailedCount = 0;
public static int settingReplaceCount = 0;
public static int settingReplaceFailedCount = 0;
public static final String COMPONENT = Toolkit.i18nText("Fine-Design_Replace_Component");
public static final String WIDGET = Toolkit.i18nText("Fine-Design_Basic_Widget");
public ITReplaceMainDialog() {
@ -215,7 +217,7 @@ public class ITReplaceMainDialog extends UIDialog {
if (StringUtils.equals(getSearchStr(), searchStr)) {
String str = GeneralUtils.objectToString(northPane.getFindCombobox().getSelectedItem());
//如果是控件或组件才要进行合法性校验
if (StringUtils.equals(str, Toolkit.i18nText("Fine-Design_Replace_Component")) || StringUtils.equals(str, Toolkit.i18nText("Fine-Design_Basic_Widget"))) {
if (StringUtils.equals(str, COMPONENT) || StringUtils.equals(str, WIDGET)) {
checkLegalValiditySelector(searchStr, replaceStr);
} else {
replace(searchStr, replaceStr);

Loading…
Cancel
Save