package au.gov.ga.earthsci.notification.popup.preferences;
import static au.gov.ga.earthsci.notification.popup.preferences.IPopupNotificationPreferences.*;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.core.runtime.preferences.DefaultScope;
import org.eclipse.jface.preference.IPreferenceStore;
import au.gov.ga.earthsci.core.preferences.ScopedPreferenceStore;
/**
* Initialises the popup notification preferences to default values
*
* @author James Navin (james.navin@ga.gov.au)
*/
public class PreferenceInitializer extends AbstractPreferenceInitializer
{
@Override
public void initializeDefaultPreferences()
{
IPreferenceStore store = new ScopedPreferenceStore(DefaultScope.INSTANCE, QUALIFIER_ID);
store.setDefault(ENABLE_POPUPS, true);
store.setDefault(SHOW_INFO_NOTIFICATIONS, true);
store.setDefault(SHOW_WARNING_NOTIFICATIONS, true);
store.setDefault(SHOW_ERROR_NOTIFICATIONS, true);
store.setDefault(POPUP_DURATION, 5000);
}
}