Search in sources :

Example 26 with BundlePreferenceStore

use of org.jkiss.dbeaver.model.impl.preferences.BundlePreferenceStore in project dbeaver by dbeaver.

the class ModelPreferences method setMainBundle.

public static void setMainBundle(Bundle mainBundle) {
    ModelPreferences.mainBundle = mainBundle;
    ModelPreferences.preferences = new BundlePreferenceStore(mainBundle);
    initializeDefaultPreferences(ModelPreferences.preferences);
}
Also used : BundlePreferenceStore(org.jkiss.dbeaver.model.impl.preferences.BundlePreferenceStore)

Example 27 with BundlePreferenceStore

use of org.jkiss.dbeaver.model.impl.preferences.BundlePreferenceStore in project dbeaver by dbeaver.

the class UINavigatorActivator method start.

@Override
public void start(BundleContext context) throws Exception {
    super.start(context);
    plugin = this;
    preferences = new BundlePreferenceStore(getBundle());
}
Also used : BundlePreferenceStore(org.jkiss.dbeaver.model.impl.preferences.BundlePreferenceStore)

Example 28 with BundlePreferenceStore

use of org.jkiss.dbeaver.model.impl.preferences.BundlePreferenceStore in project dbeaver by dbeaver.

the class SQLModelActivator method start.

@Override
public void start(BundleContext context) throws Exception {
    super.start(context);
    instance = this;
    preferences = new BundlePreferenceStore(getBundle());
}
Also used : BundlePreferenceStore(org.jkiss.dbeaver.model.impl.preferences.BundlePreferenceStore)

Example 29 with BundlePreferenceStore

use of org.jkiss.dbeaver.model.impl.preferences.BundlePreferenceStore in project dbeaver by dbeaver.

the class UIChartsActivator method start.

@Override
public void start(BundleContext context) throws Exception {
    super.start(context);
    plugin = this;
    preferences = new BundlePreferenceStore(getBundle());
}
Also used : BundlePreferenceStore(org.jkiss.dbeaver.model.impl.preferences.BundlePreferenceStore)

Example 30 with BundlePreferenceStore

use of org.jkiss.dbeaver.model.impl.preferences.BundlePreferenceStore in project dbeaver by dbeaver.

the class UIDashboardActivator method start.

@Override
public void start(BundleContext context) throws Exception {
    super.start(context);
    plugin = this;
    preferences = new BundlePreferenceStore(getBundle());
    DashboardUpdateJob.startUpdating();
}
Also used : BundlePreferenceStore(org.jkiss.dbeaver.model.impl.preferences.BundlePreferenceStore)

Aggregations

BundlePreferenceStore (org.jkiss.dbeaver.model.impl.preferences.BundlePreferenceStore)32 DBPPreferenceStore (org.jkiss.dbeaver.model.preferences.DBPPreferenceStore)8 MissingResourceException (java.util.MissingResourceException)6 Bundle (org.osgi.framework.Bundle)4 ResourceBundle (java.util.ResourceBundle)2