/** Gets the short description of this feature. */
public String getShortDescription() {
if (noBeanInfo) return super.getShortDescription();
try {
InstanceCookie ic = ic();
if (ic == null) {
// it must be unrecognized instance
return getDataObject().getPrimaryFile().toString();
}
Class clazz = ic.instanceClass();
BeanDescriptor bd = Utilities.getBeanInfo(clazz).getBeanDescriptor();
String desc = bd.getShortDescription();
return (desc.equals(bd.getDisplayName()))? getDisplayName(): desc;
} catch (Exception ex) {
return super.getShortDescription();
}
}
SerialDataNode.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:incubator-netbeans
作者:
评论列表
文章目录