Examples of PreferenceFactory


Examples of org.jitterbit.application.prefs.PreferenceFactory

    }
   
    private static EnumPreference<AutoCompletionMode> createPref() {
        String[] path = { "Edit", "Page" };
        String key = "AutoCompletionMode";
        PreferenceFactory factory = ApplicationConfiguration.getPreferenceFactory();
        EnumPreference<AutoCompletionMode> pref = factory.newEnumPreference(
                        path, key, AutoCompletionMode.AUTOMATIC, AutoCompletionMode.class);
        return pref;
    }
View Full Code Here

Examples of org.jitterbit.application.prefs.PreferenceFactory

    private static PreferenceFactory createPreferenceFactory() {
        String className = props.getString("Preference.Factory", null);
        if (className != null) {
            try {
                Class<?> clazz = Class.forName(className);
                return new PreferenceFactory(clazz);
            } catch (ClassNotFoundException ex) {
                ErrorLog.log(ApplicationConfiguration.class, "Invalid configuration: unknown preference factory class",
                                ex);
            }
        }
        return new PreferenceFactory(PreferenceFactory.class);
    }
View Full Code Here

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

Examples of org.jitterbit.application.prefs.PreferenceFactory

    }
   
    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

Examples of org.jitterbit.application.prefs.PreferenceFactory

    }
   
    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

Examples of org.jitterbit.application.prefs.PreferenceFactory

    }
   
    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

Examples of org.jitterbit.application.prefs.PreferenceFactory

    }
   
    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

Examples of org.jitterbit.application.prefs.PreferenceFactory

    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

Examples of org.jitterbit.application.prefs.PreferenceFactory

    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
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.