@Override protected void done() { UIUtils.setRootFrameDefaultCursor(ImageInfoEditor2.this); } }
@Override public void done() { try { get(); Dialogs.showInformation(dialogTitle, "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(); } Dialogs.showError(dialogTitle, msg); } finally { UIUtils.setRootFrameDefaultCursor(mainFrame); } } };
/** * 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(SnapApp.getDefault().getMainFrame()); snapApp.setStatusBarMessage(""); exception = get(); } catch (InterruptedException | ExecutionException e) { exception = e; } finally { if (exception != null) { exception.printStackTrace(); Dialogs.showError(Bundle.CTL_ExportGeometryAction_DialogTitle(), "Can not export geometry.\n" + exception.getMessage()); } } }
@Override public void done() { UIUtils.setRootFrameDefaultCursor(snapApp.getMainFrame()); snapApp.setStatusBarMessage(""); try { ProductSceneImage sceneImage = get(); UndoRedo.Manager undoManager = SnapApp.getDefault().getUndoManager(sceneImage.getProduct()); ProductSceneView view = new ProductSceneView(sceneImage, undoManager); // get the preferences: SnapApp.getInstance().getPreferences() // add the view (as listener) to it openDocumentWindow(view); } catch (Exception e) { snapApp.handleError(MessageFormat.format("Failed to open image view.\n\n{0}", e.getMessage()), e); } }
UIUtils.setRootFrameDefaultCursor(mainFrame);
@Override public void done() { try { Throwable value; try { value = get(); } catch (Exception e) { value = e; } String dialogTitle = Bundle.CTL_DetachPixelGeoCodingDialogTitle(); if (value != null) { Dialogs.showError(dialogTitle, "An internal error occurred:\n" + value.getMessage()); } else { Dialogs.showInformation(dialogTitle, "Pixel geo-coding has been detached.", null); } } finally { UIUtils.setRootFrameDefaultCursor(SnapApp.getDefault().getMainFrame()); } } };
/** * Called on the event dispatching thread (not on the worker thread) after the {@code construct} method * has returned. */ @Override public void done() { // clear status bar SnapApp.getDefault().setStatusBarMessage(""); // show default-cursor UIUtils.setRootFrameDefaultCursor(SnapApp.getDefault().getMainFrame()); // On error, show error message Exception exception; try { exception = get(); } catch (Exception e) { exception = e; } if (exception != null) { Dialogs.showError(DLG_TITLE, ERR_MSG_BASE + exception.getMessage()); } } };
@Override public void done() { // clear status bar SnapApp.getDefault().setStatusBarMessage(""); // show default-cursor UIUtils.setRootFrameDefaultCursor(SnapApp.getDefault().getMainFrame()); // On error, show error message Exception exception; try { exception = get(); } catch (Exception e) { exception = e; } if (exception != null) { Dialogs.showError(Bundle.CTL_ExportMaskPixelsAction_DialogTitle(), ERR_MSG_BASE + exception.getMessage()); } }
@Override public void done() { // clear status bar SnapApp.getDefault().setStatusBarMessage(""); // show default-cursor UIUtils.setRootFrameDefaultCursor(SnapApp.getDefault().getMainFrame()); // On error, show error message Exception exception; try { exception = get(); } catch (Exception e) { exception = e; } if (exception != null) { Dialogs.showError(Bundle.CTL_ExportTransectPixelsAction_DialogTitle(), ERR_MSG_BASE + exception.getMessage()); } } };