Package org.jitterbit.application.ui

Examples of org.jitterbit.application.ui.DoNotShowAgainQuestion.ask()


        public boolean ask() {
            DoNotShowAgainQuestion q = new DoNotShowAgainQuestion(this, getString("Trashcan.DependenciesDetected"),
                            ReviveDependenciesWarningPreference.instance(), Option.CONTINUE_CANCEL,
                            Option.CONTINUE, Type.QUESTION);
            return q.ask(null);
        }

        @Override
        public void decorate(UiCanvas canvas) {
            BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 5);
View Full Code Here


    private boolean overrideReadVeto(ServerItem userOrGroup, KList<? extends IntegrationEntity> vetos) {
        BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 3);
        layout.northToSouth(getTopMessage(userOrGroup), new IntegrationEntityList(vetos), getBottomMessage(userOrGroup));
        DoNotShowAgainQuestion q = new DoNotShowAgainQuestion(layout, Strings.get("Permissions.Cache.Override.Title"),
                        AskBeforeOverridingReadVetoPreference.INSTANCE, Option.YES_NO, Option.YES, Type.WARNING);
        return q.ask(view.getWindow().getFrame());
    }

    private static String getTopMessage(ServerItem userOrGroup) {
        return Strings.format("Permissions.Cache.Override.Top", userOrGroup.getName());
    }
View Full Code Here

                        "Are you sure?",
                        DeleteSystemQueueWarningPreference.INSTANCE,
                        Option.YES_NO,
                        Option.YES,
                        Type.WARNING);
        return dlg.ask(null);
    }
   
   
    private static final class DeleteSystemQueueJob extends UiJob {
       
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.