Package org.jitterbit.application.ui.job

Examples of org.jitterbit.application.ui.job.UiJob.submit()


            public void cancelled() {
                // Nothing to do
            }
        };
        UiJob job = new LoadStructuresJob(invoker, treeMapper.getTreeStructureCache(), true);
        job.submit();
    }


    private class TreePreparer implements Runnable {
View Full Code Here


    private class StructureLoader implements CallStructureRetriever {

        public synchronized void load() {
            WebServiceOperationInfo opInfo = getObject().getOperationInfo();
            UiJob job = new GetJtrJob(this, opInfo, getWaitService());
            job.submit();
        }

        @Override
        public void onJTRsRetrieved(WebServiceCallStructures structures) {
            cacheRequestStructure(structures.request());
View Full Code Here

        } catch (IllegalServerAddressException ex) {
            externalCallback.caught(ex);
            return;
        }
        UiJob job = new LoginJob(credentials, externalCallback);
        job.submit();
    }
   
    private void handleLoginCancelled(LoginCallback externalCallback) {
        serverManager.getLoginService().cancelled();
        externalCallback.cancelled();
View Full Code Here

    }

    private void startJob(OperationLogRequest request) {
        UiJob job = new GetLogJob(model, logApi, request);
        model.setTalkingToServer(true);
        job.submit();
    }

    /**
     * Downloads those log entries that match the defined filters and were logged after the
     * latest log entry currently in the model.
View Full Code Here

        // TODO: Notify callback if not runnable.
    }

    private void submitOperation(Operation operation, int timesToRun, Receiver<Long> callback) {
        UiJob job = new SubmitOperationJob(operation, timesToRun, callback);
        job.submit();
    }

    @Override
    public void runWithSourceData(final Operation operation, final Reader sourceData,
                    final Receiver<Long> callback) {
View Full Code Here

    }

    private void submitOperationWithSourceData(Operation operation, Reader sourceData,
                    Receiver<Long> callback) {
        UiJob job = new SubmitOperationJob(operation, sourceData, callback);
        job.submit();
    }
}
View Full Code Here

        EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                UiJob job = new GetEngineStatusJob(engine);
                job.submit(container, 125);
            }
        });
    }

}
View Full Code Here

            this.callback = (callback != null) ? callback : RefreshStructuresCallback.IGNORE;
        }

        public synchronized void load(boolean checkCacheFirst) {
            UiJob job = new LoadStructuresJob(this, m_structureCache, checkCacheFirst);
            job.submit();
            jobHasBeenInitialized();
            loadStructuresJob = job;
        }

        @Override
View Full Code Here

        EventQueue.invokeLater(task);
    }

    private void setInitiallyOpenedPages(ProjectUiState state, EditorService editorService, EntityPageDisplayer pageDisplayer) {
        UiJob job = new RestoreInitialPagesJob(view, pageDisplayer, editorService, state);
        job.submit();
    }

    private void setInitialTreeExpansionState(ProjectUiState state, ProjectContentViewer contentViewer) {
        List<IntegrationEntity> entities = state.getExpandedOnStartUp();
        if (entities == null || entities.isEmpty()) {
View Full Code Here

    private void start(Conversion conversion, ManagedProject currentProject) {
        UiJob job = new Processor(currentProject, conversion, new ProjectOpener(conversion, view,
                        refreshTransformationsAction, currentProject));
        job.setUseProgressDialog(0);
        job.submit();
    }


    private static final class Prompt implements UiProvider {
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.