Browse Source

REPORT-41333

【冒烟】全局参数添加两个参数p1p2,将p2重命名为p1,不会有参数名重复的提醒
final/10.0
Yyming 4 years ago
parent
commit
e1299d3362
  1. 5
      designer-base/src/main/java/com/fr/design/parameter/ParameterArrayPane.java

5
designer-base/src/main/java/com/fr/design/parameter/ParameterArrayPane.java

@ -21,7 +21,6 @@ public class ParameterArrayPane extends JListControlPane {
/** /**
* Constructor. * Constructor.
*/ */
/**/
public ParameterArrayPane() { public ParameterArrayPane() {
super(); super();
this.addModNameActionListener((index, oldName, newName) -> populateSelectedValue()); this.addModNameActionListener((index, oldName, newName) -> populateSelectedValue());
@ -33,7 +32,7 @@ public class ParameterArrayPane extends JListControlPane {
String tempName = getEditingName(); String tempName = getEditingName();
if (StringUtils.isEmpty(tempName)) { if (StringUtils.isEmpty(tempName)) {
nameableList.stopEditing(); nameableList.stopEditing();
FineJOptionPane.showMessageDialog(SwingUtilities.getWindowAncestor(ParameterArrayPane.this), Toolkit.i18nText("Fine-Design_Basic_Empty_Parameter_Name")); FineJOptionPane.showMessageDialog(SwingUtilities.getWindowAncestor(ParameterArrayPane.this), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Empty_Parameter_Name"));
setIllegalIndex(editingIndex); setIllegalIndex(editingIndex);
return; return;
} }
@ -85,7 +84,7 @@ public class ParameterArrayPane extends JListControlPane {
// Nameable[]居然不能强转成Parameter[],一定要这么写... // Nameable[]居然不能强转成Parameter[],一定要这么写...
Nameable[] res = this.update(); Nameable[] res = this.update();
Parameter[] res_array = new Parameter[res.length]; Parameter[] res_array = new Parameter[res.length];
java.util.Arrays.asList(res).toArray(res_array); Arrays.asList(res).toArray(res_array);
return res_array; return res_array;
} }

Loading…
Cancel
Save