Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f47561225859e6711fdc40d1ebf9890fb69d2151 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package org.eclipse.papyrus.infra.core.sasheditor.internal.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.core.runtime.preferences.DefaultScope;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.papyrus.infra.core.sasheditor.Activator;
import org.eclipse.ui.preferences.ScopedPreferenceStore;

/**
 * Class used to initialize default preference values.
 */
public class TabTooltipPreferenceInitializer extends AbstractPreferenceInitializer {

	/**
	 * 
	 * 
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = createPreferenceStore();
		store.setDefault(ITabTooltipPreferences.isTooltipEnable, true);
		store.setDefault(ITabTooltipPreferences.isTooltipForCurrentTabShown, false);
		store.setDefault(ITabTooltipPreferences.scaledFactor, 50);
		store.setDefault(ITabTooltipPreferences.tooltipAutoCloseDelay, 5000);
		

	}

	/**
	 * Subclasses may implements this method in order to provide the requested preferenceStore.
	 * @return
	 */
	protected IPreferenceStore createPreferenceStore() {
		IPreferenceStore store = new ScopedPreferenceStore(DefaultScope.INSTANCE, Activator.getDefault().getBundle().getSymbolicName());
		
		return store;
	}
	
}

Back to the top