Examples of WaitLock


Examples of org.jitterbit.ui.wait.WaitLock

    private void askServer(NumericOid[] oids,
                           LdapLocation ldapLoc,
                           GetLdapStructuresCallback callback,
                           WaitService waitSvc) {
        WaitLock lock = waitSvc.startWait();
        GetClassStructuresServerCallJob job = new GetClassStructuresServerCallJob(oids, ldapLoc, callback, lock);
        job.submit();
    }
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

            return null;
        }
    }

    private void startWait() {
        WaitLock previous = waitLock;
        waitLock = appWin.startWait();
        if (previous != null) {
            previous.release();
        }
    }
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

            }
        });
    }

    private void print() {
        WaitLock waitLock = page.getWaitService().startWait();
        TreeMapper treeMapper = page.getTreeMapper();
        Worker worker = new Worker(treeMapper, waitLock);
        worker.execute();
    }
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

    private final class LoadSourceDataWorkFlow {

        private volatile LoadSourceDataInput input;

        public void setInput(LoadSourceDataInput input) {
            WaitLock wait = page.getWaitService().startWait(50);
            try {
                if (input instanceof LoadSourceDataFileInput) {
                    // TODO: We should really add the file to the filestore only if the call succeeds.
                    // For now we just check that the file exists.
                    File file = ((LoadSourceDataFileInput) input).getFile();
                    if (file.isFile()) {
                        testFileStore.update(file);
                    }
                }
                this.input = input;
            } finally {
                wait.release();
            }
        }
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

    /**
     * Starts this wizard.
     */
    @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 WebServiceCall finishWizard() throws WizardPageException {
        WaitLock waitLock = getWindow().startWait();
        try {
            applyPageInformationOnWebServiceCall();
            hasWebServiceBeenSaved = true;
            updateProjectCache();
            return newWebServiceCall;
        } finally {
            waitLock.release();
        }
    }
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

    public void setWaitService(WaitService waitService) {
        this.waitService = waitService;
    }

    public void update() {
        WaitLock waitLock = waitService.startWait();
        Updater worker = new Updater(waitLock);
        worker.execute();
    }
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

                }
            });
        }

        private void startClean() {
            WaitLock waitLock = waitService.startWait();
            Cleaner cleaner = new Cleaner(waitLock);
            cleaner.execute();
        }
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

    }

    private void start() {
        try {
            TextStructure structure = page.getStructureRepresentation();
            WaitLock waitLock = page.getWaitService().startWait();
            Worker worker = new Worker(structure, waitLock);
            worker.execute();
        } catch (TextDocumentDefinitionException e) {
            ErrorLog.attention(getClass(), null, e);
        }
View Full Code Here

Examples of org.jitterbit.ui.wait.WaitLock

            });
            return close;
        }

        private void startUndo() {
            WaitLock wait = monitor.startWait();
            UndoWorker worker = new UndoWorker(memento, monitor, wait);
            worker.execute();
        }
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.