VM 安裝類型 UI 頁面

org.eclipse.jdt.debug.ui.vmInstallTypePage

這個延伸點提供一種可提供 UI 的機制,它出現在啟動配置對話框的 JRE 標籤中。 只有在 JRE 標籤中勾選指定安裝類型的 VM 時,才會顯示這個 UI。

<!ELEMENT extension (vmInstallTypePage*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT vmInstallTypePage EMPTY>

<!ATTLIST vmInstallTypePage

id              CDATA #REQUIRED

vmInstallTypeID CDATA #REQUIRED

class           CDATA #REQUIRED>


下列範例說明 VM 安裝類型頁面延伸點:

 

<extension point=

"org.eclipse.jdt.debug.ui.vmInstallTypePage"

>

<vmInstallTypePage id=

"com.example.ExampleVMInstallTypePage"

vmInstallTypeID=

"com.example.ExampleVMInstallTypeIdentifier"

class=

"com.example.ExampleVMInstallTypePage"

>

</vmInstallTypePage>

</extension>

在上述範例中,只要目前所選 JRE 的 VM 安裝類型 ID 為 com.example.ExampleVMInstallTypeIdentifier, 則啟動配置對話框之 JRE 標籤中即會出現所提供的頁面。

class 屬性的值必須是實作 org.eclipse.debug.ui.ILaunchConfigurationTab 介面的完整 Java 類別名稱。