Examples of submitForParallel()


Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

        runEditor(editor, st);
    }
   
    private void runEditor(final TransformationEditor editor, final SourceTarget st) {
        ApplicationWorker worker = Application.getWorker();
        worker.submitForParallel(new ApplicationWorker.SafeRunnable() {

            @Override
            public void run() {
                if (st == SourceTarget.Source) {
                    editor.editInputStructure();
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

   
    private void retrieveInputStructure() throws InterruptedException {
        setMessage(TreeStrings.get("LoadStructures.Input"));
        inputCallback = new Callback(true);
        ApplicationWorker worker = Application.getWorker();
        Future<?> inputFuture = worker.submitForParallel(new Runnable() {

            @Override
            public void run() {
                // We do not care about the return-value here. Instead we let the input
                // callback set the input JTR. That way we ensure that the input JTR has
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

   
    private void retrieveOutputStructure() throws InterruptedException {
        setMessage(TreeStrings.get("LoadStructures.Output"));
        outputCallback = new Callback(false);
        ApplicationWorker worker = Application.getWorker();
        Future<?> outputFuture = worker.submitForParallel(new Runnable() {

            @Override
            public void run() {
                // See comment in thread for getting input JTR above.
                DataStructureToMappingTreeConverter converter = DataStructureToMappingTreeConverter.newOutputStructureConverter();
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

                    viewer.viewFile(tempFile);
                }
            }
        };
        ApplicationWorker w = Application.getWorker();
        w.submitForParallel(job);
    }

    private File createTempFile() {
        try {
            File temp = File.createTempFile("oplayout", ".xml");
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

    private class NewEntityCreator implements UiEntityFactory.Callback {

        public void start() {
            ApplicationWorker worker = Application.getWorker();
            worker.submitForParallel(new ApplicationWorker.SafeRunnable() {

                @Override
                public void run() {
                    entityFactory.createEntity(entityType, true, NewEntityCreator.this);
                }
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

            }
        };
        Runnable loader = new Loader(callback, waitLock);
        ApplicationWorker worker = Application.getWorker();
        SafeRunnable task = ApplicationWorker.GUARD.protect(loader);
        worker.submitForParallel(task);
    }
   
   
    private class Loader implements Runnable {
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

            final OperationLogEntry selected = getSelectedEntry();
            if (selected == null) {
                return;
            }
            ApplicationWorker worker = Application.getWorker();
            worker.submitForParallel(new ApplicationWorker.SafeRunnable() {

                @Override
                public void run() {
                    doSave(selected);
                }
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

                    stopWait(waitLock);
                }
            }
        };
        ApplicationWorker w = Application.getWorker();
        w.submitForParallel(task);
    }

    /**
     * Controls if the method {@link #finishWizard()} should be called on the event-dispatching
     * thread or from a background thread. The default value of this property is <code>true</code>.
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

                    stopWait(waitLock);
                }
            }
        };
        ApplicationWorker w = Application.getWorker();
        w.submitForParallel(task);
    }


    /**
     * Runnable that changes the displayed page when the previous page has been requested and the
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

                    EventQueue.invokeLater(saveJob);
                }
            }
        };
        ApplicationWorker w = Application.getWorker();
        w.submitForParallel(task);
    }

    /**
     * Requests to cancel this <tt>Wizard</tt>.
     *
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.