@Override protected void done() { UIUtils.setRootFrameDefaultCursor(ImageInfoEditor2.this); } }
@Override public void run() { UIUtils.setRootFrameWaitCursor(app.getMainFrame()); try { openProductImpl(app, productFilepath); } finally { UIUtils.setRootFrameDefaultCursor(app.getMainFrame()); } } });
@Override public void done() { UIUtils.setRootFrameDefaultCursor(mainFrame); try { get(); visatApp.showInfoDialog(ATTACH_TITLE, "Pixel geo-coding has been attached.", null); } catch (Exception e) { Throwable cause = e; if (e instanceof ExecutionException) { cause = e.getCause(); } String msg = "An internal error occurred:\n" + e.getMessage(); if (cause instanceof IOException) { msg = "An I/O error occurred:\n" + e.getMessage(); } visatApp.showErrorDialog(ATTACH_TITLE,msg); } finally { visatApp.updateState(); } } };
/** * Called on the event dispatching thread (not on the worker thread) after the <code>construct</code> method * has returned. */ @Override public void done() { Exception exception = null; try { UIUtils.setRootFrameDefaultCursor(VisatApp.getApp().getMainFrame()); VisatApp.getApp().clearStatusBarMessage(); exception = get(); } catch (InterruptedException e) { exception = e; } catch (ExecutionException e) { exception = e; } finally { if (exception != null) { exception.printStackTrace(); app.showErrorDialog(DLG_TITLE, "Can not export geometry.\n" + exception.getMessage()); } } }
@Override public void done() { VisatApp visatApp = VisatApp.getApp(); UIUtils.setRootFrameDefaultCursor(visatApp.getMainFrame()); Throwable value; try { value = get(); } catch (Exception e) { value = e; } if (value != null) { visatApp.showErrorDialog(DETACH_TITLE, "An internal error occurred:\n" + value.getMessage()); } else { visatApp.showInfoDialog(DETACH_TITLE, "Pixel geo-coding has been detached.", null); } visatApp.updateState(); } };
@Override public void done() { // clear status bar VisatApp.getApp().clearStatusBarMessage(); // show default-cursor UIUtils.setRootFrameDefaultCursor(VisatApp.getApp().getMainFrame()); // On error, show error message Exception exception; try { exception = get(); } catch (Exception e) { exception = e; } if (exception != null) { VisatApp.getApp().showErrorDialog(DLG_TITLE, ERR_MSG_BASE + exception.getMessage()); } } };
disposeProduct(product); clearStatusBarMessage(); UIUtils.setRootFrameDefaultCursor(getMainFrame());
@Override public void done() { UIUtils.setRootFrameDefaultCursor(VisatApp.getApp().getMainFrame()); VisatApp.getApp().clearStatusBarMessage(); try { ProductSceneView view = new ProductSceneView(get()); openInternalFrame(view); } catch (OutOfMemoryError ignored) { VisatApp.getApp().showOutOfMemoryErrorDialog("Failed to open image view."); } catch (Exception e) { VisatApp.getApp().handleError( MessageFormat.format("Failed to open image view.\n\n{0}", e.getMessage()), e); } } };
/** * Called on the event dispatching thread (not on the worker thread) after the <code>construct</code> method * has returned. */ @Override public void done() { // clear status bar VisatApp.getApp().clearStatusBarMessage(); // show default-cursor UIUtils.setRootFrameDefaultCursor(VisatApp.getApp().getMainFrame()); // On error, show error message Exception exception; try { exception = get(); } catch (Exception e) { exception = e; } if (exception != null) { VisatApp.getApp().showErrorDialog(DLG_TITLE, ERR_MSG_BASE + exception.getMessage()); } }
/** * Called on the event dispatching thread (not on the worker thread) after the <code>construct</code> method * has returned. */ @Override public void done() { // clear status bar VisatApp.getApp().clearStatusBarMessage(); // show default-cursor UIUtils.setRootFrameDefaultCursor(VisatApp.getApp().getMainFrame()); // On error, show error message Exception exception; try { exception = get(); } catch (Exception e) { exception = e; } if (exception != null) { VisatApp.getApp().showErrorDialog(DLG_TITLE, ERR_MSG_BASE + exception.getMessage()); } } };
return; } finally { UIUtils.setRootFrameDefaultCursor(getEditorComponent());
handleUnknownException(e); } finally { UIUtils.setRootFrameDefaultCursor(getMainFrame()); clearStatusBarMessage();