调试模式上下文绑定

org.eclipse.debug.ui.debugModelContextBindings

3.0

此扩展点提供了一种机制来指定应该与给定的调试模式相关联的上下文。 “调试”视图使用这些绑定来自动启用上下文。当选择了“调试”视图(它为 IDebugModelProvider 适配器或堆栈帧架提供了指定的调试模式标识)中的一个元素时,将启用具有给定标识的上下文。

<!ELEMENT extension (modelContextBinding*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT modelContextBinding EMPTY>

<!ATTLIST modelContextBinding

debugModelId CDATA #REQUIRED

contextId    CDATA #REQUIRED>


以下是调试模式上下文绑定添加项的一个示例:

<extension point=

"org.eclipse.debug.ui.debugModelContextBindings"

>

<modelContextBinding contextId=

"com.example.myLanguage.debugging"

debugModelId=

"com.example.myLanguageDebugModel"

>

</modelContextBinding>

</extension>

在以上示例中,当选择了具有调试模式标识“com.example.myLanguageDebugModel”的堆栈帧架时,就会启用具有“com.example.myLanguage.debugging”标识的上下文。