mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +02:00
Bugzilla 255550
This commit is contained in:
parent
e5cff7aaeb
commit
d80ad003f2
1 changed files with 16 additions and 1 deletions
|
@ -301,6 +301,22 @@ public class SRecordExporter implements IMemoryExporter
|
||||||
});
|
});
|
||||||
|
|
||||||
composite.pack();
|
composite.pack();
|
||||||
|
parent.pack();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* We need to perform a validation. If we do it immediately we will get an exception
|
||||||
|
* because things are not totally setup. So we schedule an immediate running of the
|
||||||
|
* validation. For a very brief time the view logically may show a state which does
|
||||||
|
* not reflect the true state of affairs. But the validate immediately corrects the
|
||||||
|
* info. In practice the user never sees the invalid state displayed, because of the
|
||||||
|
* speed of the draw of the dialog.
|
||||||
|
*/
|
||||||
|
Display.getDefault().asyncExec(new Runnable(){
|
||||||
|
public void run()
|
||||||
|
{
|
||||||
|
validate();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return composite;
|
return composite;
|
||||||
}
|
}
|
||||||
|
@ -364,7 +380,6 @@ public class SRecordExporter implements IMemoryExporter
|
||||||
}
|
}
|
||||||
|
|
||||||
fParentDialog.setValid(isValid);
|
fParentDialog.setValid(isValid);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue