Package org.jitterbit.ui.wait

Examples of org.jitterbit.ui.wait.WaitLock


     */
    static DetachedEditorUi createAndShow(final Editor editor,
                                          final ApplicationWindow appWin,
                                          final Attacher attacher,
                                          final FocusListener focusListener) {
        final WaitLock waitLock = appWin.startWait();
        final DetachedEditorUi detachedEditor = new DetachedEditorUi(appWin, editor, attacher, focusListener);
        if (EventQueue.isDispatchThread()) {
            detachedEditor.createAndShowDialog(waitLock);
        } else {
            createDialogAndWait(waitLock, detachedEditor);
View Full Code Here


        dialog.setVisible(true);
        return dialog;
    }

    private void startDuplication(EnumSet<EntityType> destinationTypes) {
        WaitLock waitLock = startWait();
        Worker worker = new Worker(destinationTypes, waitLock);
        worker.execute();
    }
View Full Code Here

        @Override
        public void valueChanged(Preference<EditorServiceUiMode> pref,
                                 EditorServiceUiMode oldValue,
                                 EditorServiceUiMode newValue) {
            WaitLock wait = window.startWait();
            switchUi(wait);
        }
View Full Code Here

        String name = StringUtils.join(nameParts, " ");
        ProjectDirectory projectsRoot = view.getProjectManager().getProjectDirectory();
        File dir = new File(projectsRoot.getLocation(), name);
        String projectName = getNewProjectName(dir);
        ProjectLocation projectLoc = new ProjectLocation(projectName, dir);
        WaitLock waitLock = view.getWindow().startWait();
        NewProjectCreator creator = new NewProjectCreator(view.getProjectManager(), view.getWindow(), projectLoc, waitLock);
        Application.getWorker().submitForParallel(creator);
    }
View Full Code Here

        this.view = view;
    }

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

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

    }

    private void loadNewProject(ApplicationWindow appWin, NewProjectDialog dialog) {
        boolean ok = dialog.open();
        if (ok) {
            WaitLock waitLock = appWin.startWait();
            Application.getWorker().submitForParallel(
                            new NewProjectCreator(projectManager, appWin, dialog.getProjectLocation(), waitLock));
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.wait.WaitLock

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.