環境定義視圖連結

org.eclipse.debug.ui.contextViewBindings

3.0

這個延伸點提供一種機制,可用來建立視圖與環境定義 ID 的關聯性。當「除錯」視圖啟動環境定義時,就會開啟、關閉或啟動相關聯的視圖(以及與母項環境定義相關聯的視圖)。提供者可以選擇是否置換自動開啟和關閉行為。

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

在上述範例中,當「除錯」視圖啟動指定 ID 的環境定義時,將會自動開啟給定的視圖。當連結不同除錯模型的環境定義啟動時,且除錯模型未關聯視圖,將不會自動關閉視圖。