1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Remove the 'setWordSize' method from 'IFormattedMemoryBlock' and use 'reformat' instead.

This commit is contained in:
Mikhail Khodjaiants 2002-10-25 15:52:16 +00:00
parent 3a7a06e800
commit 60ea319f0a
3 changed files with 14 additions and 16 deletions

View file

@ -1,3 +1,8 @@
2002-10-25 Mikhail Khodjaiants
Remove the 'setWordSize' method from 'IFormattedMemoryBlock' and use 'reformat' instead.
* IFormattedMemoryBlock.java: removed the 'setWordSize' method.
* CFormattedMemoryBlock.java: removed the implementation of 'setWordSize' method.
2002-10-24 Mikhail Khodjaiants
Support of the "Memory Unit Size" action.
* IFormattedMemoryBlock.java: added the 'setWordsize' method.

View file

@ -58,13 +58,6 @@ public interface IFormattedMemoryBlock extends IMemoryBlock
*/
int getWordSize();
/**
* Sets the size of memory unit.
*
* @param size the size of memory unit
*/
void setWordSize( int size );
/**
* Returns the number of rows in the output table.
*

View file

@ -247,6 +247,10 @@ public class CFormattedMemoryBlock extends CDebugElement
int numberOfRows,
int numberOfColumns ) throws DebugException
{
resetRows();
fWordSize = wordSize;
fNumberOfRows = numberOfRows;
fNumberOfColumns = numberOfColumns;
}
/* (non-Javadoc)
@ -258,6 +262,11 @@ public class CFormattedMemoryBlock extends CDebugElement
int numberOfColumns,
char paddingChar ) throws DebugException
{
resetRows();
fWordSize = wordSize;
fNumberOfRows = numberOfRows;
fNumberOfColumns = numberOfColumns;
fPaddingChar = paddingChar;
}
/* (non-Javadoc)
@ -465,13 +474,4 @@ public class CFormattedMemoryBlock extends CDebugElement
{
getCDIMemoryBlock().setFrozen( frozen );
}
/**
* @see org.eclipse.cdt.debug.core.IFormattedMemoryBlock#setWordSize(int)
*/
public void setWordSize( int size )
{
resetRows();
fWordSize = size;
}
}