字串變數呈現方式

org.eclipse.debug.ui.stringVariablePresentations

2.1

這個延伸點提供一種機制, 可用來提供字串替代變數(如:環境定義變數或值變數)的使用者介面/呈現方式。

<!ELEMENT extension (variablePresentation*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT variablePresentation EMPTY>

<!ATTLIST variablePresentation

variableName     CDATA #REQUIRED

argumentSelector CDATA #REQUIRED>


下列是變數呈現方式構成要素的範例:

<extension point=

"org.eclipse.debug.ui.stringVariablePresentations"

>

<variablePresentation variableName=

"example_variable"

argumentSelector=

"com.example.ExampleArgumentChooser"

>

</variablePresentation>

</extension>

在上述範例中,所提供的呈現方式供名為 "example_variable" 的變數使用。這時會指定一個引數選擇器,為這個變數配置一個合適的引數。

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