<!ELEMENT extension (renderingType* | renderingBindings*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT renderingType EMPTY>
<!ATTLIST renderingType
name CDATA #REQUIRED
id CDATA #REQUIRED
class CDATA #REQUIRED>
這個元素可定義呈現類型。
org.eclipse.debug.ui.memory.IMemoryRenderingTypeDelegate
的 Java 類別完整名稱<!ELEMENT renderingBindings (enablement*)>
<!ATTLIST renderingBindings
renderingIds CDATA #IMPLIED
primaryId CDATA #IMPLIED
class CDATA #IMPLIED
defaultIds CDATA #IMPLIED>
連結具有可用呈現的記憶體區塊。
class
,就不能指定它。class
,就不能指定它。用戶端必須注意,每一個記憶體區塊中只能指定一個主要呈現類型。org.eclipse.debug.ui.memory.IMemoryRenderingBindingsProvider
(以容許動態呈現連結)的 Java 類別的完整名稱。如果指定這個名稱,就不能指定 renderingIds
、defaultIds
和 primaryId
。class
,就不能指定它。
在上面的範例中,會定義一個叫做「範例呈現」的新呈現類型。類別<extension point=
"org.eclipse.debug.ui.memoryRenderings"
>
<renderingType name=
"範例呈現"
id=
"com.example.sampleRendering"
class=
"com.example.SampleRenderingTypeDelegate"
>
</renderingType>
<renderingBindings renderingIds=
"com.example.sampleRendering"
>
<enablement>
<instanceof value=
"com.example.SampleMemoryBlock"
/>
</enablement>
</renderingBindings>
</extension>
com.example.SampleRenderingTypeDelegate
會實作
org.eclipse.debug.ui.memory.IMemoryRenderingTypeDelegate
,並用於建立使用這個類型的新呈現。呈現會連結到 com.exmaple.SampleMemoryBlock
的實例。
除錯平台會提供下列呈現類型:
除錯平台提供了一個記憶體視圖來代管呈現。
Copyright (c) 2004, 2005 IBM Corporation and others.
All rights reserved.
本程式與隨附的資料依照 Elipse Public License 1.0 版此次發行所隨附的條款而提供,
可以在以下網址取得:http://www.eclipse.org/legal/epl-v10.html