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$
	private static final String PREF_DEFAULT_SHORTCUTS_ENABLED = Activator.PLUGIN_ID + "." + PREF_KEY_SHORTCUTS_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();

		boolean enabledDefault = Boolean.parseBoolean(System.getProperty(PREF_DEFAULT_SHORTCUTS_ENABLED, "true")); //$NON-NLS-1$
		store.setDefault(PREF_KEY_SHORTCUTS_ENABLED, enabledDefault);
		store.setDefault(PREF_KEY_MOUSE_TRIGGER_ENABLED, false);
		store.setDefault(PREF_KEY_TIME_TO_CLOSE, 5000);
		store.setDefault(PREF_KEY_SHOW_DESCRIPTION, true);
	}

}

@@ -1322,17 +1322,17 @@
 _CLOSE, 
-5
+3
 000);%0A%09%09

Decrease the time to close to 3 seconds