重构状态上下文查看器

org.eclipse.ltk.ui.refactoring.statusContextViewers

3.0

此扩展点用来定义能够对用户显示重构状态上下文的特殊查看器。扩展点的阅读器提供以下预定义的变量,可以使用 <with variable="..."/> 标记在表达式求值时访问这些变量:

上下文
将在用户界面中显示的上下文对象,它由重构状态条目管理。

可以使用 <with variable="..." /> 表达式来访问变量。在表达式求值期间使用的缺省变量将绑定至上下文变量。

<!ELEMENT extension (statusContextViewer*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT statusContextViewer (enablement)>

<!ATTLIST statusContextViewer

id    CDATA #REQUIRED

class CDATA #REQUIRED>


以下示例为 FileStatusContext 对象添加状态上下文查看器。
   

<extension point=

"org.eclipse.ltk.ui.refactoring.statusContextViewers"

>

<statusContextViewer class=

"org.eclipse.ltk.internal.ui.refactoring.FileStatusContextViewer"

id=

"org.eclipse.ltk.internal.ui.refactoring.fileStatusContextViewer"

>

<enablement>

<instanceof value=

"org.eclipse.ltk.core.refactoring.FileStatusContext"

/>

</enablement>

</statusContextViewer>

</extension>

提供的类必须扩展 org.eclipse.ltk.ui.refactoring.IStatusContextViewer