Package org.jitterbit.application.worker

Examples of org.jitterbit.application.worker.ApplicationWorker


     *            the file to import.
     */
    public void handlePotentialJitterpack(final File file) {
        startWait();
        if (EventQueue.isDispatchThread()) {
            ApplicationWorker worker = Application.getWorker();
            worker.submitForParallel(ApplicationWorker.GUARD.protect(new Runnable() {

                @Override
                public void run() {
                    handleImpl(file);
                }
View Full Code Here


     *            an <code>WebServiceOperationInfo</code> instance representing the operation.
     */
    public void displayDocumentation(WebServiceInfo wsInfo, WebServiceOperationInfo opInfo) {
        Runnable job = getExtractionJob(wsInfo, opInfo);
        if (EventQueue.isDispatchThread()) {
            ApplicationWorker worker = Application.getWorker();
            worker.submitForParallel(job);
        } else {
            job.run();
        }
    }
View Full Code Here

     *            the project into a <code>JitterPack</code>.
     * @param callback
     *            a callback that will be notified when the packing process has completed.
     */
    public void pack(ExportJitterPackUi exportUi, CallbackResult callback) {
        ApplicationWorker worker = Application.getWorker();
        worker.submitForParallel(new PackJob(exportUi, callback));
    }
View Full Code Here

            public void run() {
                unpackImpl(jitterpack, parameters, destinationFolder, callback);
            }
        };
        if (EventQueue.isDispatchThread()) {
            ApplicationWorker worker = Application.getWorker();
            worker.submitForParallel(task);
        } else {
            task.run();
        }
    }
View Full Code Here

    private void logUnpackCancelled() {
        ApplicationLog.getMainLogger().info("The user cancelled unpacking the jitterpak");
    }

    public void extractDescriptor(File file, ImportParameters params, ExtractDescriptorCallback callback) {
        ApplicationWorker worker = Application.getWorker();
        worker.submitForParallel(new DescriptorExtractor(file, params, callback));
    }
View Full Code Here

        this.recentFiles = new PreferencesFileStore(prefKey, 1);
    }

    @Override
    public void exportMappings(final Transformation tf) {
        ApplicationWorker worker = Application.getWorker();
        worker.submitForParallel(new ApplicationWorker.SafeRunnable() {

            @Override
            public void run() {
                exportMappingsImpl(tf);
            }
View Full Code Here

        });
    }

    @Override
    public void exportMultipleFolders(final Transformation tf) {
        ApplicationWorker worker = Application.getWorker();
        worker.submitForParallel(new ApplicationWorker.SafeRunnable() {

            @Override
            public void run() {
                exportMultipleFoldersImpl(tf);
            }
View Full Code Here

        }
    }

    @Override
    public void importMappings(final Transformation tf) {
        ApplicationWorker worker = Application.getWorker();
        worker.submitForParallel(new ApplicationWorker.SafeRunnable() {

            @Override
            public void run() {
                importMappingsImpl(tf);
            }
View Full Code Here

        });
    }

    @Override
    public void importMultipleFolders(final Transformation tf) {
        ApplicationWorker worker = Application.getWorker();
        worker.submitForParallel(new ApplicationWorker.SafeRunnable() {

            @Override
            public void run() {
                importMultipleFoldersImpl(tf);
            }
View Full Code Here

            }
        });
    }

    private void loadSource(final SourceDataService svc) {
        ApplicationWorker worker = Application.getWorker();
        Runnable task = new Runnable() {

            @Override
            public void run() {
                svc.loadSourceData(new CallbackResultAdapter() {/**/});
            }
        };
        worker.submitForParallel(ApplicationWorker.GUARD.protect(task));
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.application.worker.ApplicationWorker

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.