|
|
|
@ -21,7 +21,6 @@ public class ParameterArrayPane extends JListControlPane {
|
|
|
|
|
/** |
|
|
|
|
* Constructor. |
|
|
|
|
*/ |
|
|
|
|
/**/ |
|
|
|
|
public ParameterArrayPane() { |
|
|
|
|
super(); |
|
|
|
|
this.addModNameActionListener((index, oldName, newName) -> populateSelectedValue()); |
|
|
|
@ -33,7 +32,7 @@ public class ParameterArrayPane extends JListControlPane {
|
|
|
|
|
String tempName = getEditingName(); |
|
|
|
|
if (StringUtils.isEmpty(tempName)) { |
|
|
|
|
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); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
@ -85,7 +84,7 @@ public class ParameterArrayPane extends JListControlPane {
|
|
|
|
|
// Nameable[]居然不能强转成Parameter[],一定要这么写...
|
|
|
|
|
Nameable[] res = this.update(); |
|
|
|
|
Parameter[] res_array = new Parameter[res.length]; |
|
|
|
|
java.util.Arrays.asList(res).toArray(res_array); |
|
|
|
|
Arrays.asList(res).toArray(res_array); |
|
|
|
|
|
|
|
|
|
return res_array; |
|
|
|
|
} |
|
|
|
|