void readEnv (FeatureDescriptor desc) {
if (desc instanceof Node.Property){
Node.Property prop = (Node.Property)desc;
editable = prop.canWrite();
//enh 29294 - support one-line editor & suppression of custom
//editor
instructions = (String) prop.getValue ("instructions"); //NOI18N
oneline = Boolean.TRUE.equals (prop.getValue ("oneline")); //NOI18N
customEd = !Boolean.TRUE.equals (prop.getValue
("suppressCustomEditor")); //NOI18N
}
Object obj = desc.getValue(ObjectEditor.PROP_NULL);
if (Boolean.TRUE.equals(obj)) {
nullValue = NbBundle.getMessage(StringEditor.class, "CTL_NullValue");
} else {
if (obj instanceof String) {
nullValue = (String)obj;
} else {
nullValue = null;
}
}
}
StringEditor.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:incubator-netbeans
作者:
评论列表
文章目录