|
Windchill 类型
|
IconDelegate
|
|---|---|
|
wt.part.WTPart
|
com.ptc.windchill.enterprise.part.commands.delegate.WTPartIconDelegate
|
|
wt.epm.EPMDocument
|
wt.epm.identity.EPMDocumentIconDelegate
|
|
wt.doc.WTDocument
|
wt.doc.DocumentIconDelegate
|
|
元素
|
类型
|
说明
|
|---|---|---|
|
<custom_IconDelegate>.java
|
java
|
您的 IcondDelegate
运行时位置:
<Windchill>\codebase\*
|
|
您的 xconf 文件
|
xconf
|
注册您的 IconDelegate
运行时位置:
<Windchill>\codebase\*
|
|
|
建议创建一个自定义 LogicalAttributesSite.xml 文件来配置自定义逻辑属性,并使用特性 com.ptc.core.meta.common.impl.LogicalIdentifierFactory.translatorSelectors 指定此自定义 LogicalAttributesSite.xml 文件的位置。通过设置此特性,管理员可以确保 Windchill 对逻辑属性使用正确的自定义配置。
|
|
API 签名
|
说明
|
|---|---|
|
public IconSelector getStandardIconSelector() throws WTException, IllegalAccessException, InvocationTargetException;
|
获取图标的标准选择器
|
|
public IconSelector getOpenIconSelector() throws WTException, IllegalAccessException, InvocationTargetException;
|
在打开对象时获取选择器 (例如,打开文件夹时)
|
|
API 签名
|
说明
|
|---|---|
|
public String getToolTip()
|
要与图标一起显示的工具提示。
|
|
API 签名
|
说明
|
|---|---|
|
protected Boolean inflateRequired()
|
如果 TypeInstance 没有计算图标/工具提示必需的属性,则需要进行扩展。
|
|
API 签名
|
说明
|
|---|---|
|
protected void initAttributes(Set<AttributeTypeIdentifier> attributes)
|
使用驱动确定图标/工具提示的属性更新 <AttributeTypeIdentifier>。
|