mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Removed unused private methods and members.
This commit is contained in:
parent
928199b44e
commit
7c0622e66b
5 changed files with 8 additions and 57 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2003-04-08 Mikhail Khodjaiants
|
||||||
|
Removed unused private methods and members.
|
||||||
|
* CDebugEditor.java
|
||||||
|
* MemoryPresentation.java
|
||||||
|
* MemoryText.java
|
||||||
|
* MemoryViewer.java
|
||||||
|
|
||||||
2003-04-08 Mikhail Khodjaiants
|
2003-04-08 Mikhail Khodjaiants
|
||||||
Preserving the registers tree structure during the debug session.
|
Preserving the registers tree structure during the debug session.
|
||||||
* ViewerState.java: new
|
* ViewerState.java: new
|
||||||
|
|
|
@ -95,7 +95,7 @@ public class CDebugEditor extends CEditor
|
||||||
/** The attach source button */
|
/** The attach source button */
|
||||||
private Button fAttachButton = null;
|
private Button fAttachButton = null;
|
||||||
/** The preference change listener */
|
/** The preference change listener */
|
||||||
private IPropertyChangeListener fPropertyChangeListener;
|
// private IPropertyChangeListener fPropertyChangeListener;
|
||||||
|
|
||||||
private IEditorInput fInput = null;
|
private IEditorInput fInput = null;
|
||||||
|
|
||||||
|
|
|
@ -27,8 +27,6 @@ import org.eclipse.swt.widgets.Display;
|
||||||
*/
|
*/
|
||||||
public class MemoryPresentation
|
public class MemoryPresentation
|
||||||
{
|
{
|
||||||
static final private char NOT_AVAILABLE_CHAR = '?';
|
|
||||||
|
|
||||||
private static final int INTERVAL_BETWEEN_ADDRESS_AND_DATA = 2;
|
private static final int INTERVAL_BETWEEN_ADDRESS_AND_DATA = 2;
|
||||||
private static final int INTERVAL_BETWEEN_DATA_ITEMS = 1;
|
private static final int INTERVAL_BETWEEN_DATA_ITEMS = 1;
|
||||||
private static final int INTERVAL_BETWEEN_DATA_AND_ASCII = 1;
|
private static final int INTERVAL_BETWEEN_DATA_AND_ASCII = 1;
|
||||||
|
@ -163,14 +161,6 @@ public class MemoryPresentation
|
||||||
return result.toString();
|
return result.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private String resize( String item, char ch, int size )
|
|
||||||
{
|
|
||||||
char[] chars = new char[size - item.length()];
|
|
||||||
for ( int i = 0; i < chars.length; ++i )
|
|
||||||
chars[i] = ch;
|
|
||||||
return String.valueOf( chars ).concat( item );
|
|
||||||
}
|
|
||||||
|
|
||||||
private int getRowLength()
|
private int getRowLength()
|
||||||
{
|
{
|
||||||
return getAddressLength() +
|
return getAddressLength() +
|
||||||
|
@ -185,16 +175,6 @@ public class MemoryPresentation
|
||||||
return 10;
|
return 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isInAddressZone( int offset )
|
|
||||||
{
|
|
||||||
if ( getRowLength() != 0 )
|
|
||||||
{
|
|
||||||
int pos = offset % getRowLength();
|
|
||||||
return ( pos >= 0 && pos < getAddressLength() );
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean isInAsciiArea( int offset )
|
private boolean isInAsciiArea( int offset )
|
||||||
{
|
{
|
||||||
if ( displayASCII() && getRowLength() != 0 )
|
if ( displayASCII() && getRowLength() != 0 )
|
||||||
|
@ -259,13 +239,6 @@ public class MemoryPresentation
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private char getPaddingCharacter()
|
|
||||||
{
|
|
||||||
if ( getMemoryBlock() != null )
|
|
||||||
return getMemoryBlock().getPaddingCharacter();
|
|
||||||
return '.';
|
|
||||||
}
|
|
||||||
|
|
||||||
protected boolean displayASCII()
|
protected boolean displayASCII()
|
||||||
{
|
{
|
||||||
if ( canDisplayAscii() )
|
if ( canDisplayAscii() )
|
||||||
|
|
|
@ -126,24 +126,6 @@ public class MemoryText
|
||||||
fText.getCaret().setVisible( true );
|
fText.getCaret().setVisible( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
private void refresh( Point[] zones, String[] items )
|
|
||||||
{
|
|
||||||
int count = ( zones.length < items.length ) ? zones.length : items.length;
|
|
||||||
for ( int i = 0; i < count; ++i )
|
|
||||||
{
|
|
||||||
fText.replaceTextRange( zones[i].x,
|
|
||||||
zones[i].y - zones[i].x + 1,
|
|
||||||
items[i] );
|
|
||||||
/*
|
|
||||||
fText.setStyleRange( new StyleRange( zones[i].x,
|
|
||||||
zones[i].y - zones[i].x + 1,
|
|
||||||
getDirtyColor(),
|
|
||||||
getBackgroundColor() ) );
|
|
||||||
*/
|
|
||||||
fText.redrawRange( zones[i].x, zones[i].y - zones[i].x + 1, false );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void handleVerifyKey( VerifyEvent event )
|
protected void handleVerifyKey( VerifyEvent event )
|
||||||
{
|
{
|
||||||
if ( event.character == SWT.LF ||
|
if ( event.character == SWT.LF ||
|
||||||
|
@ -192,11 +174,6 @@ public class MemoryText
|
||||||
return CDebugUIPlugin.getPreferenceColor( ICDebugPreferenceConstants.MEMORY_CHANGED_RGB );
|
return CDebugUIPlugin.getPreferenceColor( ICDebugPreferenceConstants.MEMORY_CHANGED_RGB );
|
||||||
}
|
}
|
||||||
|
|
||||||
private Color getDirtyColor()
|
|
||||||
{
|
|
||||||
return CDebugUIPlugin.getPreferenceColor( ICDebugPreferenceConstants.MEMORY_DIRTY_RGB );
|
|
||||||
}
|
|
||||||
|
|
||||||
public void changeFont()
|
public void changeFont()
|
||||||
{
|
{
|
||||||
Font oldFont = fText.getFont();
|
Font oldFont = fText.getFont();
|
||||||
|
|
|
@ -161,12 +161,6 @@ public class MemoryViewer extends ContentViewer
|
||||||
return fTabFolder;
|
return fTabFolder;
|
||||||
}
|
}
|
||||||
|
|
||||||
private MemoryControlArea getMemoryControlArea( int index )
|
|
||||||
{
|
|
||||||
CTabItem item = fTabFolder.getItem( index );
|
|
||||||
return ( item != null ) ? (MemoryControlArea)item.getControl() : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
private MemoryControlArea getMemoryControlArea( IFormattedMemoryBlock block )
|
private MemoryControlArea getMemoryControlArea( IFormattedMemoryBlock block )
|
||||||
{
|
{
|
||||||
CTabItem[] tabItems = fTabFolder.getItems();
|
CTabItem[] tabItems = fTabFolder.getItems();
|
||||||
|
|
Loading…
Add table
Reference in a new issue