package org.showshortcuts.internal;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

/**
 * Initializer for shortcut visualizer preferences
 *
 * @author d031150
 */
public class ShortcutPreferenceInitializer extends AbstractPreferenceInitializer {

	public static final String PREF_KEY_SHORTCUTS_ENABLED = "enabled"; //$NON-NLS-1$
	public static final String PREF_KEY_MOUSE_TRIGGER_ENABLED = "enabled_mouseTrigger"; //$NON-NLS-1$

	public static final String PREF_KEY_TIME_TO_CLOSE = "timeToClose"; //$NON-NLS-1$
	public static final String PREF_KEY_SHOW_DESCRIPTION = "showCommandDescription"; //$NON-NLS-1$

	static final String THEME_CATEGORY = Activator.PLUGIN_ID + ".theme"; //$NON-NLS-1$

	@Override
	public void initializeDefaultPreferences() {
		IPreferenceStore store = Activator.getDefault().getPreferenceStore();

		store.setDefault(PREF_KEY_SHORTCUTS_ENABLED, true);
		store.setDefault(PREF_KEY_MOUSE_TRIGGER_ENABLED, false);
		store.setDefault(PREF_KEY_TIME_TO_CLOSE, 5000);
		store.setDefault(PREF_KEY_SHOW_DESCRIPTION, true);
	}

}

@@ -399,32 +399,164 @@
 ; //$NON-NLS-1$%0A
+%09private static final String PREF_DEFAULT_SHORTCUTS_ENABLED = Activator.PLUGIN_ID + %22.%22 + PREF_KEY_SHORTCUTS_ENABLED; //$NON-NLS-1$%0A
 %09public static f
@@ -1033,16 +1033,139 @@
 ore();%0A%0A
+%09%09boolean enabledDefault = Boolean.parseBoolean(System.getProperty(PREF_DEFAULT_SHORTCUTS_ENABLED, %22true%22)); //$NON-NLS-1$%0A
 %09%09store.
@@ -1203,20 +1203,30 @@
 NABLED, 
-true
+enabledDefault
 );%0A%09%09sto

Add a property to set the default enablement