mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
[244608] [memory] import dialog needs better validation
This commit is contained in:
parent
800c9730a2
commit
1a8fe00295
2 changed files with 19 additions and 0 deletions
|
@ -220,6 +220,13 @@ public class PlainTextImporter implements IMemoryImporter {
|
|||
composite.pack();
|
||||
parent.pack();
|
||||
|
||||
Display.getDefault().asyncExec(new Runnable(){
|
||||
public void run()
|
||||
{
|
||||
validate();
|
||||
}
|
||||
});
|
||||
|
||||
return composite;
|
||||
}
|
||||
|
||||
|
@ -230,6 +237,8 @@ public class PlainTextImporter implements IMemoryImporter {
|
|||
try
|
||||
{
|
||||
getStartAddress();
|
||||
if(!getFile().exists())
|
||||
isValid = false;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
|
|
|
@ -92,6 +92,7 @@ public class SRecordImporter implements IMemoryImporter {
|
|||
// restore to file address
|
||||
|
||||
fComboRestoreToFileAddress = new Button(composite, SWT.RADIO);
|
||||
fComboRestoreToFileAddress.setSelection(true);
|
||||
fComboRestoreToFileAddress.setText("Restore to address specified in the file");
|
||||
//comboRestoreToFileAddress.setLayoutData(data);
|
||||
|
||||
|
@ -217,6 +218,13 @@ public class SRecordImporter implements IMemoryImporter {
|
|||
composite.pack();
|
||||
parent.pack();
|
||||
|
||||
Display.getDefault().asyncExec(new Runnable(){
|
||||
public void run()
|
||||
{
|
||||
validate();
|
||||
}
|
||||
});
|
||||
|
||||
return composite;
|
||||
}
|
||||
|
||||
|
@ -227,6 +235,8 @@ public class SRecordImporter implements IMemoryImporter {
|
|||
try
|
||||
{
|
||||
getStartAddress();
|
||||
if(!getFile().exists())
|
||||
isValid = false;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue