Package org.jitterbit.application.prefs

Examples of org.jitterbit.application.prefs.PreferenceFactory


    }

    private static BooleanPreference createPref() {
        String[] path = new String[] { WizardPreferencesPage.PATH };
        String key = "ConfirmCancel";
        PreferenceFactory factory = ApplicationConfiguration.getPreferenceFactory();
        BooleanPreference pref = factory.newBooleanPreference(path, key, Boolean.TRUE);
        return pref;
    }
View Full Code Here


    }
   
    private static BooleanPreference createPref() {
        String[] path = new String[] { "General", "UI" };
        String key = "UseAnimation";
        PreferenceFactory factory = ApplicationConfiguration.getPreferenceFactory();
        BooleanPreference pref = factory.newBooleanPreference(path, key, Boolean.TRUE);
        return pref;
    }
View Full Code Here

    }
   
    private static IntPreference create() {
        String[] path = new String[] { "Project" };
        String key = "DeployHistorySize";
        PreferenceFactory factory = ApplicationConfiguration.getPreferenceFactory();
        IntPreference pref = factory.newIntPreference(path, key, 1, Integer.MAX_VALUE, 100);
        return pref;
    }
View Full Code Here

    }
   
    private static IntPreference createPref() {
        String[] path = new String[] { "Project" };
        String key = "HistorySize";
        PreferenceFactory factory = ApplicationConfiguration.getPreferenceFactory();
        IntPreference pref = factory.newIntPreference(path, key, 1, 1000, 50);
        return pref;
    }
View Full Code Here

    }
   
    private static IntPreference create() {
        String[] path = new String[] { "Project" };
        String key = "TestHistoryAge";
        PreferenceFactory factory = ApplicationConfiguration.getPreferenceFactory();
        IntPreference pref = factory.newIntPreference(path, key, 0, Integer.MAX_VALUE, 30);
        return pref;
    }
View Full Code Here

    public static ProjectContentViewerType get() {
        return INSTANCE.get();
    }

    private static EnumPreference<ProjectContentViewerType> createPref() {
        PreferenceFactory factory = ApplicationConfiguration.getPreferenceFactory();
        String[] path = new String[] { GeneralProjectPreferencesPage.PATH };
        String key = "ProjectContentViewer";
        ProjectContentViewerType defaultValue = ProjectContentViewerType.MULTI_TREE;
        EnumPreference<ProjectContentViewerType> pref = factory.newEnumPreference(
                        path, key, defaultValue, ProjectContentViewerType.class);
        return pref;
    }
View Full Code Here

    public static BooleanPreference instance() {
        return INSTANCE;
    }

    private static BooleanPreference createPref() {
        PreferenceFactory factory = ApplicationConfiguration.getPreferenceFactory();
        BooleanPreference pref = factory.newBooleanPreference(
                        new String[] { "Project" }, "ConfirmDelete", Boolean.TRUE);
        return pref;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.application.prefs.PreferenceFactory

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.