|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.debug.ui.memory.AbstractMemoryRendering
org.eclipse.debug.ui.memory.AbstractTableRendering
org.eclipse.debug.ui.memory.AbstractTextRendering
Abstract implementation of a rendering that translates memory into text, displayed in a table.
Clients should subclass from this class if they wish to provide a table text rendering with a specific code page.
Field Summary |
---|
Fields inherited from class org.eclipse.debug.ui.memory.AbstractTableRendering |
---|
PROPERTY_COL_SIZE, PROPERTY_SELECTED_ADDRESS, PROPERTY_TOP_ADDRESS |
Constructor Summary | |
---|---|
AbstractTextRendering(String renderingId)
Constructs a text rendering of the specified type. |
|
AbstractTextRendering(String renderingId,
String codePage)
Constructs a text rendering of the specified type on the given code page. |
Method Summary | |
---|---|
byte[] |
getBytes(String dataType,
BigInteger address,
MemoryByte[] currentValues,
String data)
Returns bytes for the given text corresponding to bytes at the given address for the specified rendering type. |
String |
getCodePage()
Returns the current code page used by this rendering. |
String |
getString(String dataType,
BigInteger address,
MemoryByte[] data)
Returns text for the given memory bytes at the specified address for the specified rendering type. |
void |
setCodePage(String codePage)
Sets the code page for this rendering. |
Methods inherited from class org.eclipse.debug.ui.memory.AbstractMemoryRendering |
---|
activated, addPropertyChangeListener, createPopupMenu, deactivated, firePropertyChangedEvent, getImage, getLabel, getMemoryBlock, getMemoryRenderingContainer, getPopupMenuManager, getRenderingId, init, isVisible, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractTextRendering(String renderingId)
renderingId
- memory rendering type identifierpublic AbstractTextRendering(String renderingId, String codePage)
renderingId
- memory rendering type identifiercodePage
- the name of a supported
charset
, for
example CP1252
Method Detail |
public void setCodePage(String codePage)
codePage
- the name of a supported
charset
, for
example CP1252
public String getCodePage()
public String getString(String dataType, BigInteger address, MemoryByte[] data)
AbstractTableRendering
getString
in class AbstractTableRendering
dataType
- rendering type identifieraddress
- address where the bytes belong todata
- the bytes
null
.
Returns a string to pad the cell if the memory cannot be converted
successfully.public byte[] getBytes(String dataType, BigInteger address, MemoryByte[] currentValues, String data)
AbstractTableRendering
null
if the bytes cannot be formatted properly.
getBytes
in class AbstractTableRendering
dataType
- rendering type identifieraddress
- address the bytes begin atcurrentValues
- current values of the data in bytes formatdata
- the string to be converted to bytes
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.