1 11 12 package org.eclipse.debug.internal.ui.views.memory.renderings; 13 14 import java.math.BigInteger ; 15 16 import org.eclipse.debug.core.DebugException; 17 import org.eclipse.debug.core.model.MemoryByte; 18 import org.eclipse.debug.ui.memory.AbstractMemoryRendering; 19 import org.eclipse.debug.ui.memory.IRepositionableMemoryRendering; 20 21 27 public abstract class AbstractBaseTableRendering extends AbstractMemoryRendering implements IRepositionableMemoryRendering{ 28 29 public AbstractBaseTableRendering(String renderingId) { 30 super(renderingId); 31 } 32 33 40 abstract public boolean format(int bytesPerLine, int columnSize); 41 42 47 abstract public int getAddressableSize(); 48 49 52 abstract public void resizeColumnsToPreferredSize(); 53 54 59 abstract public int getAddressableUnitPerLine(); 60 61 66 abstract public int getAddressableUnitPerColumn(); 67 68 73 abstract public int getBytesPerColumn(); 74 75 80 abstract public int getBytesPerLine(); 81 82 85 abstract public void updateLabels(); 86 87 90 abstract public String getLabel(); 91 92 96 abstract public void refresh(); 97 98 105 abstract public void goToAddress(BigInteger address) throws DebugException; 106 107 112 abstract public BigInteger getSelectedAddress(); 113 114 119 abstract public String getSelectedAsString(); 120 121 127 abstract public MemoryByte[] getSelectedAsBytes(); 128 129 136 abstract public int getNumCharsPerByte(); 137 138 141 abstract public void resetRendering() throws DebugException; 142 143 155 abstract public String getString(String renderingTypeId, BigInteger address, 156 MemoryByte[] data); 157 158 172 abstract public byte[] getBytes(String renderingTypeId, BigInteger address, 173 MemoryByte[] currentValues, String newValue); 174 175 } 176 | Popular Tags |