上下文视图绑定

org.eclipse.debug.ui.contextViewBindings

3.0

此扩展点提供了用于使视图与上下文标识相关联的机制。当“调试”视图激活了上下文时,就会打开、关闭或激活与该上下文相关联的视图(以及与任何父代上下文相关联的视图)。添加程序具有用来覆盖自动打开和关闭行为的选项。

<!ELEMENT extension (contextViewBinding*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT contextViewBinding EMPTY>

<!ATTLIST contextViewBinding

contextId CDATA #REQUIRED

viewId    CDATA #REQUIRED

autoOpen  (true | false)

autoClose (true | false) >


以下是上下文视图绑定添加项的一个示例:

<extension point=

"org.eclipse.debug.ui.contextViewBindings"

>

<contextViewBinding contextId=

"com.example.mydebugger.debugging"

viewId=

"com.example.view"

autoOpen=

"true"

autoClose=

"false"

>

</contextViewBinding>

</extension>

在以上示例中,当“调试”视图激活了带有指定标识的上下文时,给定的视图就会自动打开。当激活了绑定至另一个调试模式而未与视图相关联的上下文时,视图将不会自动关闭。