Package org.jitterbit.application.ui.ask

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


            cards.show("empty");
            return true;
        }

        private boolean promptCancelableSave(Editor editor) {
            Answer a = Ask.yesNoOrCancel("Do you want to save the changes made to \"" + editor.getTitle() + "\"?",
                            "Save?");
            if (a.isYes()) {
                return save(editor);
            }
            boolean forceClose = a.isNo();
            return forceClose;
        }
View Full Code Here


            boolean forceClose = a.isNo();
            return forceClose;
        }

        private void promptNonCancelableSave(Editor editor) {
            Answer a = Ask.yesOrNo("Do you want to save the changes made to \"" + editor.getTitle() + "\"?", "Save?");
            if (a.isYes()) {
                save(editor);
            }
        }
View Full Code Here

    private boolean isPermissionGranted(String projectName) {
        String msg = "The project \"" + projectName + "\" was saved in an earlier " + "version of the "
                        + ProductNames.CLIENT + ". In order to open it with the "
                        + "current version, some of the project data must be updated.\n\n"
                        + "Do you want to update the project?";
        Answer answer = Ask.yesOrNo(msg, "Upgrade project?");
        return answer.isYes();
    }
View Full Code Here

        return answer.isYes();
    }

    private Instruction askAboutBackup() {
        String msg = "Do you want to create a Jitterpak backup of the project " + "before upgrading it?";
        Answer answer = Ask.yesNoOrCancel(msg, "Create backup?");
        if (answer.isYes()) {
            return Instruction.BACKUP_AND_UPGRADE;
        } else if (answer.isNo()) {
            return Instruction.UPGRADE;
        } else {
            return Instruction.CANCEL;
        }
    }
View Full Code Here

        return new ProjectLocation(getProjectName(), getLocationOnDisk());
    }

    private boolean approveOverwrite(File rootDir) {
        String msg = PackageResources.NewProject.getLocationExistsMessage(rootDir.getAbsolutePath());
        Answer answer = Ask.yesOrNo(dialog, msg, PackageResources.NewProject.LOCATION_EXISTS_TITLE, Option.NO, Type.WARNING);
        return answer.isYes();
    }
View Full Code Here

        });
    }

    private void askUserToGreenlight() {
        Prompt prompt = new Prompt();
        Answer answer = Ask.continueOrCancel(view.getWindow().getFrame(), prompt,
                        "Convert DB Schemas", Option.CONTINUE, Type.WARNING);
        if (answer.isContinue()) {
            Conversion conversion = prompt.getSelectedConversion();
            closeProjectAndStart(conversion);
        }
    }
View Full Code Here

*
*/
public final class DeleteConfirmer {
   
    public static boolean confirm() {
        Answer answer = Ask.yesOrNo(PackageResources.DeleteConfirmer.MESSAGE, PackageResources.DeleteConfirmer.TITLE);
        return answer.isYes();
    }
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.