mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 03:45:35 +02:00
[158601] Copy To Clipboard in Memory window always shows 5 cells per row
This commit is contained in:
parent
6d1a5f77db
commit
26a457e6d6
1 changed files with 2 additions and 19 deletions
|
@ -1287,8 +1287,7 @@ class CopyAction extends Action
|
||||||
|
|
||||||
public void run()
|
public void run()
|
||||||
{
|
{
|
||||||
final int COLUMNS = 80; // FIXME user preference
|
final String PANE_SPACING = " "; //$NON-NLS-1$
|
||||||
final String PANE_SPACING = " "; // preference also ? //$NON-NLS-1$
|
|
||||||
|
|
||||||
Clipboard clip = null;
|
Clipboard clip = null;
|
||||||
try
|
try
|
||||||
|
@ -1329,23 +1328,7 @@ class CopyAction extends Action
|
||||||
+ (fRendering.getPaneVisible(Rendering.PANE_TEXT) ? asciiCellWidth
|
+ (fRendering.getPaneVisible(Rendering.PANE_TEXT) ? asciiCellWidth
|
||||||
: 0);
|
: 0);
|
||||||
|
|
||||||
int availableWidth = COLUMNS;
|
final int columns = fRendering.getColumnCount();
|
||||||
|
|
||||||
if(fRendering.getPaneVisible(Rendering.PANE_ADDRESS))
|
|
||||||
{
|
|
||||||
availableWidth -= addressWidth;
|
|
||||||
availableWidth -= PANE_SPACING.length(); // between address
|
|
||||||
// and next
|
|
||||||
}
|
|
||||||
|
|
||||||
if(fRendering.getPaneVisible(Rendering.PANE_BINARY)
|
|
||||||
&& fRendering.getPaneVisible(Rendering.PANE_TEXT))
|
|
||||||
{
|
|
||||||
availableWidth -= PANE_SPACING.length(); // between binary
|
|
||||||
// and text
|
|
||||||
}
|
|
||||||
|
|
||||||
final int columns = availableWidth / combindCellWidths;
|
|
||||||
|
|
||||||
BigInteger lengthToRead = end.subtract(start);
|
BigInteger lengthToRead = end.subtract(start);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue