Merge "Omaha #4278 try/catch throwables in dialog components" into omaha_15.1.1

Former-commit-id: f5014617c8bc5ef694bc9ef808ce796e9a5d8706
This commit is contained in:
Nate Jensen 2015-03-23 16:41:12 -05:00 committed by Gerrit Code Review
commit 3cba1097d1
2 changed files with 10 additions and 4 deletions

View file

@ -420,7 +420,7 @@
<site-type>ncep</site-type>
<ini-substitutions>
<max-memory>
<value>2048M</value>
<value>3072M</value>
</max-memory>
<max-perm>

View file

@ -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,12 +44,17 @@ 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()) {
try {
if (!Display.getCurrent().readAndDispatch()) {
Display.getCurrent().sleep();
}
} catch (Throwable t) {
statusHandler.error("Unhandled event loop exception", t);
}
}
}
}