blob: ef844c1128616ee99343ad60a9bc0c1e3b85ed1b [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2014, 2019 Stephan Wahlbrink and others.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
#
# Contributors:
# Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation
#=============================================================================*/
package org.eclipse.statet.ltk.ui;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.statet.ecommons.preferences.core.Preference.IntPref;
import org.eclipse.statet.ecommons.preferences.ui.RGBPref;
import org.eclipse.statet.ecommons.text.ui.settings.DecorationPreferences;
import org.eclipse.statet.internal.ltk.ui.LTKUIPlugin;
public class LTKUIPreferences {
public static IPreferenceStore getPreferenceStore() {
return LTKUIPlugin.getInstance().getPreferenceStore();
}
private static DecorationPreferences DECORATION_PREFERENCES= new DecorationPreferences(
LTKUIPlugin.BUNDLE_ID );
public static DecorationPreferences getEditorDecorationPreferences() {
return DECORATION_PREFERENCES;
}
public static final String ASSIST_GROUP_ID= "LTK/assist"; //$NON-NLS-1$
public static final String ASSIST_PREF_QUALIFIER= LTKUIPlugin.BUNDLE_ID + "/assist"; //$NON-NLS-1$
public static final String CONTENT_ASSIST_DELAY_PREF_KEY= "ContentAssist.AutoActivation.delay"; //$NON-NLS-1$
public static final IntPref CONTENT_ASSIST_DELAY_PREF= new IntPref(
ASSIST_PREF_QUALIFIER, CONTENT_ASSIST_DELAY_PREF_KEY);
public static final String CONTEXT_INFO_BACKGROUND_COLOR_PREF_KEY= "ContextInfo.Background.color"; //$NON-NLS-1$
public static final RGBPref CONTEXT_INFO_BACKGROUND_COLOR_PREF= new RGBPref(
ASSIST_PREF_QUALIFIER, CONTEXT_INFO_BACKGROUND_COLOR_PREF_KEY);
public static final String CONTEXT_INFO_FOREGROUND_COLOR_PREF_KEY= "ContextInfo.Foreground.color"; //$NON-NLS-1$
public static final RGBPref CONTEXT_INFO_FOREGROUND_COLOR_PREF= new RGBPref(
ASSIST_PREF_QUALIFIER, CONTEXT_INFO_FOREGROUND_COLOR_PREF_KEY);
}