|
|
|
@ -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")); |
|
|
|
|