1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Bugzilla 257634 - checked in to 1.1.1 branch and now to HEAD.

This commit is contained in:
Randy Rohrbach 2008-12-18 16:14:39 +00:00
parent 5780c5059b
commit 84d7b475d7

View file

@ -115,6 +115,24 @@ public class SRecordImporter implements IMemoryImporter {
data.width = 100;
fStartText.setLayoutData(data);
fComboRestoreToFileAddress.addSelectionListener(new SelectionListener() {
public void widgetDefaultSelected(SelectionEvent e) {}
public void widgetSelected(SelectionEvent e) {
validate();
}
});
fComboRestoreToThisAddress.addSelectionListener(new SelectionListener() {
public void widgetDefaultSelected(SelectionEvent e) {}
public void widgetSelected(SelectionEvent e) {
validate();
}
});
// file
Label fileLabel = new Label(composite, SWT.NONE);
@ -239,9 +257,17 @@ public class SRecordImporter implements IMemoryImporter {
try
{
getStartAddress();
if(!getFile().exists())
isValid = false;
boolean restoreToAddress = fComboRestoreToThisAddress.getSelection();
if ( restoreToAddress ) {
getStartAddress();
}
boolean restoreToAddressFromFile = fComboRestoreToFileAddress.getSelection();
if ( restoreToAddressFromFile ) {
if(!getFile().exists()) {
isValid = false;
}
}
}
catch(Exception e)
{