1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 10:46:02 +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; data.width = 100;
fStartText.setLayoutData(data); 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 // file
Label fileLabel = new Label(composite, SWT.NONE); Label fileLabel = new Label(composite, SWT.NONE);
@ -239,10 +257,18 @@ public class SRecordImporter implements IMemoryImporter {
try try
{ {
boolean restoreToAddress = fComboRestoreToThisAddress.getSelection();
if ( restoreToAddress ) {
getStartAddress(); getStartAddress();
if(!getFile().exists()) }
boolean restoreToAddressFromFile = fComboRestoreToFileAddress.getSelection();
if ( restoreToAddressFromFile ) {
if(!getFile().exists()) {
isValid = false; isValid = false;
} }
}
}
catch(Exception e) catch(Exception e)
{ {
isValid = false; isValid = false;