mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 397404 - Trying to export memory on a 64-bit address space does not
bring up the dialog.
This commit is contained in:
parent
2993ef8266
commit
2ea99a91b0
2 changed files with 41 additions and 8 deletions
|
@ -268,8 +268,10 @@ public class TraditionalRendering extends AbstractMemoryRendering implements IRe
|
||||||
* the model provider.
|
* the model provider.
|
||||||
*/
|
*/
|
||||||
fModel = factory.createModelProxy(block, context);
|
fModel = factory.createModelProxy(block, context);
|
||||||
|
if ( fModel != null ) {
|
||||||
fModel.installed(null);
|
fModel.installed(null);
|
||||||
fModel.addModelChangedListener(TraditionalRendering.this);
|
fModel.addModelChangedListener(TraditionalRendering.this);
|
||||||
|
}
|
||||||
|
|
||||||
}});
|
}});
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,9 +72,13 @@ public class SRecordExporter implements IMemoryExporter
|
||||||
fProperties.put(TRANSFER_START, fStartText.getText());
|
fProperties.put(TRANSFER_START, fStartText.getText());
|
||||||
fProperties.put(TRANSFER_END, fEndText.getText());
|
fProperties.put(TRANSFER_END, fEndText.getText());
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
fStartAddress = getStartAddress();
|
fStartAddress = getStartAddress();
|
||||||
fEndAddress = getEndAddress();
|
fEndAddress = getEndAddress();
|
||||||
fOutputFile = getFile();
|
fOutputFile = getFile();
|
||||||
|
}
|
||||||
|
catch(Exception e) {}
|
||||||
|
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
@ -158,10 +162,37 @@ public class SRecordExporter implements IMemoryExporter
|
||||||
textValue = fProperties.get(TRANSFER_START);
|
textValue = fProperties.get(TRANSFER_START);
|
||||||
fStartText.setText(textValue != null ? textValue : "0x0"); //$NON-NLS-1$
|
fStartText.setText(textValue != null ? textValue : "0x0"); //$NON-NLS-1$
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
getStartAddress();
|
||||||
|
}
|
||||||
|
catch(Exception e)
|
||||||
|
{
|
||||||
|
fStartText.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_RED));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
textValue = fProperties.get(TRANSFER_END);
|
textValue = fProperties.get(TRANSFER_END);
|
||||||
fEndText.setText(textValue != null ? textValue : "0x0"); //$NON-NLS-1$
|
fEndText.setText(textValue != null ? textValue : "0x0"); //$NON-NLS-1$
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
getEndAddress();
|
||||||
|
}
|
||||||
|
catch(Exception e)
|
||||||
|
{
|
||||||
|
fEndText.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_RED));
|
||||||
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
fLengthText.setText(getEndAddress().subtract(getStartAddress()).toString());
|
fLengthText.setText(getEndAddress().subtract(getStartAddress()).toString());
|
||||||
|
}
|
||||||
|
catch(Exception e)
|
||||||
|
{
|
||||||
|
fLengthText.setText("0");
|
||||||
|
fLengthText.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_RED));
|
||||||
|
}
|
||||||
|
|
||||||
fileButton.addSelectionListener(new SelectionListener() {
|
fileButton.addSelectionListener(new SelectionListener() {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue