除錯模型環境定義連結

org.eclipse.debug.ui.debugModelContextBindings

3.0

這個延伸點提供一種機制,指定應該關聯於給定除錯模型的環境定義。 「除錯」視圖使用這些連結來自動啟用環境定義。如果在「除錯」視圖中選取的元素提供 IDebugModelProvider 配接器,或提供具有指定除錯模型 ID 的堆疊框, 就會啟用給定 ID 的環境定義。

<!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>

在上述範例中,當選取除錯模型 ID 為 "com.example.myLanguageDebugModel" 的堆疊框時,將會啟用 ID 為 "com.example.myLanguage.debugging" 的環境定義。