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:
parent
5780c5059b
commit
84d7b475d7
1 changed files with 29 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue