Package org.jitterbit.application.ui.ask

Examples of org.jitterbit.application.ui.ask.Answer


        doNotShowAgain = new KongaCheckBox(ApplicationResources.STRINGS.getString("DoNotShowAgain"));
    }

    public Answer ask() {
        if (shouldAsk()) {
            Answer answer =  Ask.continueOrCancel(getUi(), Strings.get("EditWsdl.SideEffects.Title"));
            if (answer.isContinue()) {
                updatePreference();
            }
            return answer;
        } else {
            return Answer.AFFIRMATIVE;
View Full Code Here


        if (orphans.isEmpty()) {
            orphansToDelete = Sets.newHashSet();
            return true;
        }
        Question q = new Question(orphans);
        Answer a = q.ask();
        if (a.isYes()) {
            orphansToDelete = orphans;
            return true;
        } else {
            orphansToDelete = Sets.newHashSet();
            return !a.isCancel();
        }
    }
View Full Code Here

    public boolean isGreenLighted() {
        if (dependencies.isEmpty()) {
            return true;
        }
        Question q = new Question();
        Answer a = q.ask();
        return a.isYes();
    }
View Full Code Here

    void showAsError() {
        Alert.message(null, createDisplay(), title, Type.ERROR);
    }

    boolean promptForWarning() {
        Answer answer = Ask.yesNoOrCancel(null, createDisplay(), title, Option.YES, Type.WARNING);
        return answer.isYes();
    }
View Full Code Here

    private boolean needsSourceData(Transformation tf) {
        return tf.isSourceDataUsedInMapping() && tf.getInputStructure().getStructureType().isSourceDataRequired();
    }

    private void promptForSourceData() {
        Answer answer = Ask.yesOrNo(
                        "You must load source data into the transformation.\n\nDo you want to continue?",
                        "Load source data?");
        if (answer.isYes()) {
            loadSourceData();
        }
    }
View Full Code Here

    private boolean isItOkToSaveInvalidFormula(String err) {
        if (applySilently) {
            return true;
        }
        Answer answer = Ask.yesOrNo(
                        SwingUtilities.getWindowAncestor(treeMapper),
                        err + "\n\nAre you sure you want to save your changes?",
                        "Invalid formula",
                        Option.NO,
                        Type.ERROR);
        return answer.isYes();
    }
View Full Code Here

    }
   
    private boolean askIfContinueWithoutDeplyingChanges(Collection<? extends IntegrationEntity> dirty) {
        ItemUi ui = new ItemUi(dirty, "The following items have changed, but this project is read-only so the " +
            "changes cannot be deployed.", "Do you want to continue without deploying?");
        Answer answer = Ask.yesOrNo(null, ui, "Changes Cannot Be Deployed", Option.YES, Type.WARNING);
        return answer.isYes();
    }
View Full Code Here

            return false;
        }

        private void askAboutPassword() {
            assert manualConnectionStringDefiner.isSelected() && manualConnectionStringDefiner.isPasswordDefined();
            Answer answer = Ask.yesOrNo(
                            getUi(),
                            "The connection string contains a password. It is safer to define the password in the " +
                            "password field.\n\nDo you want to move the password from the connection string to the " +
                            "password field?",
                            "Password Safety",
                            Option.YES,
                            Type.WARNING);
            if (answer.isYes()) {
                preference.putBoolean(preferenceKey, true);
                movePasswordToPasswordField();
            } else {
                preference.putBoolean(preferenceKey, false);
            }
View Full Code Here

        return askUser(conflicts);
    }
   
    private boolean askUser(List<ServerFile> conflicts) {
        UiProvider message = createMessage(conflicts);
        Answer a = Ask.continueOrCancel(owner, message, "Overwrite files", Option.CANCEL, Type.WARNING);
        return a.isContinue();
    }
View Full Code Here

            }
        }

        private void askUser(String message) throws ConnectionChangeVetoException {
            switchToEditor();
            Answer a = Ask.continueOrCancel(null, message, "Unsaved Changes", Option.CONTINUE, Type.WARNING);
            if (!a.isContinue()) {
                throw new ConnectionChangeVetoException(UserConsolePage.class.getName());
            }
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.application.ui.ask.Answer

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.