Search in sources :

Example 1 with OverlayPreferenceStore

use of org.erlide.ui.util.OverlayPreferenceStore in project erlide_eclipse by erlang.

the class ColoringPreferencePage method init.

/**
 * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
 */
@Override
public void init(final IWorkbench workbench) {
    fColorManager = new ColorManager();
    fOverlayStore = new OverlayPreferenceStore(ErlideUIPlugin.getDefault().getPreferenceStore(), new OverlayPreferenceStore.OverlayKey[] {});
    fOverlayStore.addKeys(createOverlayStoreKeys());
    fOverlayStore.load();
    fOverlayStore.start();
    for (final TokenHighlight th : TokenHighlight.values()) {
        fColors.put(th, null);
    }
}
Also used : OverlayPreferenceStore(org.erlide.ui.util.OverlayPreferenceStore) IColorManager(org.erlide.ui.util.IColorManager) ColorManager(org.erlide.ui.util.ColorManager) TokenHighlight(org.erlide.ui.prefs.TokenHighlight)

Aggregations

TokenHighlight (org.erlide.ui.prefs.TokenHighlight)1 ColorManager (org.erlide.ui.util.ColorManager)1 IColorManager (org.erlide.ui.util.IColorManager)1 OverlayPreferenceStore (org.erlide.ui.util.OverlayPreferenceStore)1