提交 ff0c1288 编写于 作者: M Mathieu Bastian

Fix #1359

上级 e7fddb1f
......@@ -152,7 +152,7 @@ public class EditEdges extends AbstractNode {
PropertyEditor propEditor = PropertyEditorManager.findEditor(type);
if (ac.canChangeColumnData(column)) {
//Editable column, provide "set" method:
if (propEditor != null) {//The type can be edited by default:
if (propEditor != null && !type.isArray()) {//The type can be edited by default:
p = new PropertySupport.Reflection(wrap, type, "getValue" + type.getSimpleName(), "setValue" + type.getSimpleName());
} else {//Use the AttributeType as String:
p = new PropertySupport.Reflection(wrap, String.class, "getValueAsString", "setValueAsString");
......
......@@ -152,7 +152,7 @@ public class EditNodes extends AbstractNode {
PropertyEditor propEditor = PropertyEditorManager.findEditor(type);
if (ac.canChangeColumnData(column)) {
//Editable column, provide "set" method:
if (propEditor != null) {//The type can be edited by default:
if (propEditor != null && !type.isArray()) {//The type can be edited by default:
p = new PropertySupport.Reflection(wrap, type, "getValue" + type.getSimpleName(), "setValue" + type.getSimpleName());
} else {//Use the AttributeType as String:
p = new PropertySupport.Reflection(wrap, String.class, "getValueAsString", "setValueAsString");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册