|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|