Package org.jitterbit.application.ui

Examples of org.jitterbit.application.ui.LoggingExceptionHandler


                @Override
                public void run() {
                    openImpl();
                }
            };
            LoggingExceptionHandler errorHandler = new LoggingExceptionHandler(
                    OperationGraphManager.class, "An unexpected error occurred");
            UiUtils.runOnEventThreadAndWait(job, errorHandler);
        }
View Full Code Here


   
    private ExceptionHandler<? super Exception> getCacheUpdaterErrorHandler() {
        // Not much to do about this, other than to log a message. The only effect is
        // that the structures will be recreated the next time they are needed,
        // rather than read from the cache.
        return new LoggingExceptionHandler(LoadStructuresJob.class,
                "Failed to update the mapping structure cache for the transformation with ID = "
                + invoker.getTransformation().getID());
    }
View Full Code Here

                                final MappingTreeStructure struct,
                                final CacheWriter writer) {
        // Not much to do about errors, other than to log a message. The only effect is
        // that the structures will be recreated the next time they are needed,
        // rather than read from the cache.
        writer.setErrorHandler(new LoggingExceptionHandler(TransformationStructureRefresher.class,
                "Failed to update the mapping structure cache for the transformation with ID = " + tf.getID()));
        writer.addToCache(project.getTransformationMappingStructureCache(), tf.getID(), struct);
    }
View Full Code Here

    private void submitStopJobAndWait() throws InterruptedException {
        Runnable job = createStopJob();
        // Note that we cannot use this.callback as ExceptionHandler here, since the callback's
        // cancelled() method has already been called, so any error notification is likely to be
        // ignored by the callback at this point.
        Application.getWorker().submitForParallelAndWait(job, new LoggingExceptionHandler(
                DefaultDebugController.class, ErrorLevel.ATTENTION, "An unexpected error occurred"));
    }
View Full Code Here

    private ExceptionHandler<Throwable> getBlockingErrorHandler() {
        if (uncaughtExceptionHandler != null) {
            return uncaughtExceptionHandler;
        }
        return new LoggingExceptionHandler(UiJob.this.getClass(), "An unexpected error occurred");
    }
View Full Code Here

        text.setBorder(new BorderBuilder().line(new Color(25, 25, 25)).empty(2));
        return text;
    }

    private void populateTextAreaFromFile(final JTextComponent text, final File file, final String charset) {
        ExceptionHandler<? super Exception> errorHandler = new LoggingExceptionHandler(
                editor.getClass(), ErrorLevel.ATTENTION, "Failed to open the file " + file.getName());
        TextComponentUtils.loadFile(file, "UTF-8", text, null, errorHandler);
        // The loadFile() method installs a new document. We must therefore
        // (the undo listener was added to the previous document) reinstall
        // the undo/redo mechanism in case the editor was made editable before
View Full Code Here

                Action openConnectConsoleAction = Application.getBean(OpenJitterbitConnectConsoleAction.ID, Action.class);
                OpenGettingStartedPageAction action = new OpenGettingStartedPageAction(view, openConnectConsoleAction);
                action.actionPerformed(null);
            }
        };
        UiUtils.runOnEventThreadAndWait(job, new LoggingExceptionHandler(RestoreInitialPagesJob.class,
                        "Failed to open the Getting Started page."));
    }
View Full Code Here

            @Override
            public void run() {
                pageDisplayer.openPage(e);
            }
        };
        UiUtils.runOnEventThreadAndWait(job, new LoggingExceptionHandler(RestoreInitialPagesJob.class,
                        "Failed to open the page for " + e.getName()));
    }
View Full Code Here

                    return entityClass.cast(entity);
                }
                return null;
            }
        });
        supplier.setErrorHandler(new LoggingExceptionHandler(getClass(), "An unexpected error occurred"));
        return supplier.get();
    }
View Full Code Here

        }

        private PipelinePluginCacheUpdateCall createUpdateCall() {
            IntegrationServer server = IntegrationServer.getInstance();
            PipelinePluginInfoProvider provider = server.getServerCall(PipelinePluginInfoProvider.class);
            ExceptionHandler<Throwable> errorHandler = new LoggingExceptionHandler(ControllerImpl.class,
                            ErrorLevel.ATTENTION,
                            PluginUiResources.getString("PipelinePlugin.Error.UpdateAvailablePlugins"));
            PipelinePluginCacheUpdateCall call = new PipelinePluginCacheUpdateCall(serverCache, provider);
            call.setErrorHandler(errorHandler);
            return call;
View Full Code Here

TOP

Related Classes of org.jitterbit.application.ui.LoggingExceptionHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.