public void valueChanged(PropertyEditor editor) {
failed = false;
try {
// System.err.println("ValueChanged - new value " + editor.getValue());
if (getInplaceEditor() != null) {
setEnteredValue(getProperty().getValue());
} else {
//Handle case where our parent PropertyPanel is no longer showing, but
//the custom editor we invoked still is. Issue 38004
PropertyModel mdl = (modelRef != null) ? modelRef.get() : null;
if (mdl != null) {
FeatureDescriptor fd = null;
if (mdl instanceof ExPropertyModel) {
fd = ((ExPropertyModel) mdl).getFeatureDescriptor();
}
String title = null;
if (fd != null) {
title = fd.getDisplayName();
}
failed = PropUtils.updateProp(mdl, editor, title); //XXX
}
}
} catch (Exception e) {
throw (IllegalStateException) new IllegalStateException("Problem setting entered value from custom editor").initCause(e);
}
}
EditablePropertyDisplayer.java 文件源码
java
阅读 40
收藏 0
点赞 0
评论 0
项目:incubator-netbeans
作者:
评论列表
文章目录