提交 6f0bf44e 编写于 作者: S serge-rider

Hyperlink properties

上级 24cc4b1a
......@@ -106,6 +106,11 @@ public @interface Property
*/
boolean linkPossible() default false;
/**
* Hyperlink property
*/
boolean href() default false;
/**
* Makes sense only for lazy properties. If set to true then this property value can be read
* in non-lazy way with null progress monitor. In this case it will return "preview" value.
......
......@@ -169,6 +169,10 @@ public class ObjectPropertyDescriptor extends ObjectAttributeDescriptor implemen
return propInfo.linkPossible();
}
public boolean isHref() {
return propInfo.href();
}
public boolean supportsPreview()
{
return propInfo.supportsPreview();
......@@ -233,6 +237,7 @@ public class ObjectPropertyDescriptor extends ObjectAttributeDescriptor implemen
if (this.isExpensive()) features.add("expensive");
if (this.isEditPossible()) features.add("editPossible");
if (this.isLinkPossible()) features.add("linkPossible");
if (this.isHref()) features.add("href");
if (this.isViewable()) features.add("viewable");
if (this.isPassword()) features.add("password");
return features.toArray(new String[0]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册