Package org.jitterbit.ui.wait

Examples of org.jitterbit.ui.wait.WaitLock.release()


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

    private void stopWait() {
        if (waitLock != null) {
View Full Code Here


                        testFileStore.update(file);
                    }
                }
                this.input = input;
            } finally {
                wait.release();
            }
        }

        public void start(final CallbackResult callback) {
            Transformation tf = getTransformation();
View Full Code Here

            applyPageInformationOnWebServiceCall();
            hasWebServiceBeenSaved = true;
            updateProjectCache();
            return newWebServiceCall;
        } finally {
            waitLock.release();
        }
    }

    private void applyPageInformationOnWebServiceCall() throws WizardPageException {
        try {
View Full Code Here

                    }
                    if (externalAcceptor != null) {
                        externalAcceptor.accept(project);
                    }
                } finally {
                    waitLock.release();
                }
            }
        };
        Runnable loader = new Loader(callback, waitLock);
        ApplicationWorker worker = Application.getWorker();
View Full Code Here

            WaitLock waitLock = appWin.startWait();
            try {
                viewer = createViewer(file);
                viewer.show();
            } finally {
                waitLock.release();
            }
        } else {
            viewer.addFile(file);
            viewer.forceToFront();
        }
View Full Code Here

                    JOptionPane.showMessageDialog(MainWindow.this, e.getMessage(), "Save Failed",
                            JOptionPane.ERROR_MESSAGE);
                }
            }
        } finally {
            waitLock.release();
        }
    }

    void onExit(int exitCode) {
        openAndSaveManager.savePreferences();
View Full Code Here

                    } catch (Exception ex) {
                        KongaTextArea text = new KongaTextArea(ex.toString(), 5, 40);
                        String title = "Failed to open '" + file.getName() + "'";
                        JOptionPane.showMessageDialog(null, new JScrollPane(text), title, JOptionPane.ERROR_MESSAGE);
                    } finally {
                        waitLock.release();
                    }
                }
            }.execute();
        }
View Full Code Here

                    }
                    SwingUtilities.invokeLater(new Runnable() {

                        @Override
                        public void run() {
                            waitLock.release();
                            if (sbErr.length() > 0) {
                                JOptionPane.showMessageDialog(MainWindow.this, sbErr.toString(), "Save Failed",
                                                JOptionPane.ERROR_MESSAGE);
                            }
                        }
View Full Code Here

            if (waitLocks.isEmpty()) {
                return;
            }
            waitLock = waitLocks.pop();
        }
        waitLock.release();
    }

}
View Full Code Here

            e.printStackTrace();
        } catch (FileStoreException e) {
            // TODO: Report me.
            e.printStackTrace();
        } finally {
            waitLock.release();
            latch.countDown();
        }
    }

    private boolean doesFileAlreadyExistOnServer(ServerFileFolder[] serverFolders) {
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.