|
Eclipse Platform Release 3.2 |
|||||||||
| 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.internal.ui.views.memory.renderings.AbstractBaseTableRendering
org.eclipse.debug.ui.memory.AbstractTableRendering
org.eclipse.debug.ui.memory.AbstractTextRendering
public abstract class 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_ROW_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, decorateImage, decorateLabel, firePropertyChangedEvent, getImage, 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 |
| Methods inherited from interface org.eclipse.debug.ui.memory.IMemoryRendering |
|---|
activated, addPropertyChangeListener, deactivated, getImage, getMemoryBlock, getRenderingId, init, removePropertyChangeListener |
| Constructor Detail |
|---|
public AbstractTextRendering(String renderingId)
renderingId - memory rendering type identifier
public 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 CP1252public String getCodePage()
public String getString(String dataType,
BigInteger address,
MemoryByte[] data)
AbstractTableRendering
getString in class AbstractTableRenderingdataType - 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)
AbstractTableRenderingnull if the bytes cannot be formatted properly.
getBytes in class AbstractTableRenderingdataType - 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.2 |
|||||||||
| 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, 2006. All rights reserved.