Examples of WaitLock


Examples of org.jitterbit.ui.wait.WaitLock

        // automatically whenever a server is logged in to, we don't need to ask the server for a
        // list of drivers. The driver list UI will be updated automatically through the cache
        // listening mechanism (new in version 1.2).
        serverManager.logOff();
        serverManager.getLoginService().setNextServerToLoginTo(server.getName());
        WaitLock waitLock = waitService.startWait();
        LoginServiceUi loginUi = new LoginServiceUi(serverManager);
        LoginMonitor waitMonitor = new LoginMonitor(waitLock);
        loginUi.login(waitMonitor);
    }
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

            putValue(SHORT_DESCRIPTION, PackageResources.XmlPayload.WIZARD_TOOLTIP);
        }

        @Override
        public void actionPerformed(ActionEvent e) {
            final WaitLock waitLock = view.getWindow().startWait();
            EventQueue.invokeLater(new Runnable() {

                @Override
                public void run() {
                    executeImpl(waitLock);
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

        return newTransformation;
    }

    @Override
    public void start(final ApplicationWindow appWin) {
        final WaitLock wait = appWin.startWait();
        EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                startImpl(appWin, wait);
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

        }
    }

    @Override
    protected Transformation finishWizard() throws WizardPageException {
        WaitLock waitLock = getWindow().startWait();
        try {
            applyPageInformationOnTransformation();
            // This flag tells if the Transformation has been saved in memory,
            // not to disk. We need to set it here so that the display page
            // won't veto removal.
            transformationHasBeenSaved = true;
            return newTransformation;
        } finally {
            waitLock.release();
        }
    }
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

        private void showConflicts(KList<WebServiceCall> conflicted, WebServiceInfo wsInfo) {
            ConflictUi.show(conflicted, wsInfo);
        }

        private void uploadWsdl(WsdlFile wsdl) {
            WaitLock waitLock = waitService.startWait();
            if (wsdl.isRemote()) {
                WsdlUtils.uploadRemoteWsdl(wsdl.getLocator(), new UploadRemoteWsdlCallback(waitLock));
            } else {
                IntegrationServer server = IntegrationServer.getInstance();
                WsdlProvider serverInterface = server.getServerCall(WsdlProvider.class);
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

     * Opens the page for the requested entity synchronously.
     */
    public void open(IntegrationEntity entity) {
        ApplicationUiUtils.logIfNotOnEDT(getClass(), "open");
        logRequest(entity);
        WaitLock waitLock = view.getWindow().startWait();
        Job job = new Job(entity, waitLock);
        job.run();
    }
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

        private void switchType(ProjectContentViewerType newType) {
            assert newType != type;
            if (currentViewer == null) {
                return;
            }
            final WaitLock waitLock = appWin.startWait();
            EventQueue.invokeLater(new TypeSwitcher(waitLock));
        }
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

     * the project creation and the loading of the project into the UI can be done in one separate
     * thread, keeping the UI window in a wait-state until the loading is completed.
     */
    @Override
    public void launchProject(LaunchOption opt) {
        WaitLock waitLock = getWindow().startWait();
        launchListeners.call().actionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "on_ok"));
        ProjectLoader loader = new ProjectLoader(opt, waitLock);
        loader.start();
    }
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

            }
        });
    }

    private void openTestConnectionView() {
        WaitLock waitLock = appWin.startWait();
        IntegrationEntityLookup entityLookup = getProject().getItemLookup();
        WindowSectionContentProvider uiProvider = new TestAllConnectionsViewFactory(entityLookup, pageDisplayer);
        appWin.displayContent(uiProvider, SectionPosition.SOUTH, new ContentUpdater(), new Callback(waitLock));
    }
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

        enterTagAction.setEnabled(true);
        refreshAction.setEnabled(true);
    }

    private void startValidation() {
        final WaitLock waitLock = getWindow().startWait();
        final Runnable job = new Runnable() {

            @Override
            public void run() {
                final boolean isValid = validateImpl();
                EventQueue.invokeLater(new Runnable() {

                    @Override
                    public void run() {
                        handleValidationResult(isValid);
                        waitLock.release();
                    }
                });
            }
        };
        Application.getWorker().submitForParallel(job);
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.