Dialogs.showOutOfMemoryError("The image could not be exported."); /*I18N*/ } catch (Throwable e) { snapApp.handleError("The image could not be exported", e);
Dialogs.showOutOfMemoryError("The image could not be exported."); } catch (Throwable e) { snapApp.handleError("The image could not be exported.", e); //handleUnknownException(e);
@Override protected void done() { SnapApp.getDefault().getMainFrame().setCursor(Cursor.getDefaultCursor()); String errorMsg = "The RGB image view could not be created."; try { ProductSceneView productSceneView = new ProductSceneView(get()); openDocumentWindow(productSceneView); } catch (OutOfMemoryError e) { Dialogs.showOutOfMemoryError(errorMsg); return; } catch (Exception e) { SnapApp.getDefault().handleError(errorMsg, e); return; } SnapApp.getDefault().setStatusBarMessage(""); } };
@Override protected void done() { SnapApp.getDefault().getMainFrame().setCursor(Cursor.getDefaultCursor()); String errorMsg = "The HSV image view could not be created."; try { final ProductSceneView productSceneView = new ProductSceneView(get()); OpenRGBImageViewAction.openDocumentWindow(productSceneView); } catch (OutOfMemoryError e) { Dialogs.showOutOfMemoryError(errorMsg); return; } catch (Exception e) { SnapApp.getDefault().handleError(errorMsg, e); return; } SnapApp.getDefault().setStatusBarMessage(""); } };