Browse Source

REPORT-39772 提示控件/组件名称不能为空

feature/big-screen
pengda 4 years ago
parent
commit
f0ba8f9dac
  1. 1
      designer-form/src/main/java/com/fr/design/mainframe/widget/ui/FormWidgetCardPane.java

1
designer-form/src/main/java/com/fr/design/mainframe/widget/ui/FormWidgetCardPane.java

@ -220,6 +220,7 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane {
boolean exist = designer.getTarget().isNameExist(toSetWidgetName) && !ComparatorUtils.equals(toSetWidgetName, currentWidgetName);
if (toSetWidgetName.isEmpty()) {
widgetNameField.setText(currentWidgetName);
return;
} else if (exist) {
widgetNameField.setText(currentWidgetName);
JOptionPane.showMessageDialog(DesignerContext.getDesignerFrame(), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Rename_Failure"), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Joption_News"), JOptionPane.ERROR_MESSAGE, IOUtils.readIcon("com/fr/design/form/images/joption_failure.png"));

Loading…
Cancel
Save