Merge "Omaha #4278 try/catch throwables in dialog components" into omaha_15.1.1
Former-commit-id: f5014617c8bc5ef694bc9ef808ce796e9a5d8706
This commit is contained in:
commit
3cba1097d1
2 changed files with 10 additions and 4 deletions
|
@ -420,7 +420,7 @@
|
|||
<site-type>ncep</site-type>
|
||||
<ini-substitutions>
|
||||
<max-memory>
|
||||
<value>2048M</value>
|
||||
<value>3072M</value>
|
||||
</max-memory>
|
||||
|
||||
<max-perm>
|
||||
|
|
|
@ -36,6 +36,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Oct 18, 2012 1229 rferrel Initial creation
|
||||
* Mar 23, 2015 4278 njensen Added try/catch throwable
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -43,11 +44,16 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialogBase;
|
|||
* @version 1.0
|
||||
*/
|
||||
|
||||
public abstract class AbstractCAVEDialogComponent extends AbstractAWIPSComponent {
|
||||
public abstract class AbstractCAVEDialogComponent extends
|
||||
AbstractAWIPSComponent {
|
||||
protected void blockUntilClosed(CaveSWTDialogBase dlg) {
|
||||
while (!dlg.isDisposed()) {
|
||||
if (!Display.getCurrent().readAndDispatch()) {
|
||||
Display.getCurrent().sleep();
|
||||
try {
|
||||
if (!Display.getCurrent().readAndDispatch()) {
|
||||
Display.getCurrent().sleep();
|
||||
}
|
||||
} catch (Throwable t) {
|
||||
statusHandler.error("Unhandled event loop exception", t);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue