Browse Source

Pull request #5018: REPORT-54580 修改一下新增参数的默认名称

Merge in DESIGN/design from ~YVAN/design:release/10.0 to release/10.0

* commit '558907d9fad4b9dec762edd4be0d1939025a48bf':
  REPORT-54580 修改一下新增参数的默认名称 【问题原因】rt 【改动思路】修改下ParameterArrayPane中的默认参数前缀
zheng-1641779399395
Yvan 3 years ago
parent
commit
9e02fa2879
  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

@ -18,6 +18,9 @@ import java.util.Arrays;
import java.util.List; import java.util.List;
public class ParameterArrayPane extends JListControlPane { public class ParameterArrayPane extends JListControlPane {
private static final String DEFAULT_PARAMETER_NAME_PREFIX = "para";
/** /**
* Constructor. * Constructor.
*/ */
@ -63,7 +66,7 @@ public class ParameterArrayPane extends JListControlPane {
new NameableSelfCreator(Toolkit.i18nText("Fine-Design_Basic_Engine_Parameter_Name"), Parameter.class, ParameterPane.class) { new NameableSelfCreator(Toolkit.i18nText("Fine-Design_Basic_Engine_Parameter_Name"), Parameter.class, ParameterPane.class) {
public Parameter createNameable(UnrepeatedNameHelper helper) { public Parameter createNameable(UnrepeatedNameHelper helper) {
// 返回参数设置面板. // 返回参数设置面板.
return new Parameter(helper.createUnrepeatedName("p")); return new Parameter(helper.createUnrepeatedName(DEFAULT_PARAMETER_NAME_PREFIX));
} }
@Override @Override

Loading…
Cancel
Save