view dwtx/jface/preference/JFacePreferences.d @ 70:46a6e0e6ccd4

Merge with d-fied sources of 3.4M7
author Frank Benoit <benoit@tionex.de>
date Thu, 22 May 2008 01:36:46 +0200
parents 6c14e54dfc11
children
line wrap: on
line source

/*******************************************************************************
 * Copyright (c) 2000, 2008 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 * Port to the D programming language:
 *     Frank Benoit <benoit@tionex.de>
 *******************************************************************************/
module dwtx.jface.preference.JFacePreferences;

import dwtx.jface.preference.IPreferenceStore;

import dwt.dwthelper.utils;

/**
 *
 * JFacePreferences is a class used to administer the preferences used by JFace
 * objects.
 */
public final class JFacePreferences {

    /**
     * Identifier for the Error Color
     */
    public static const String ERROR_COLOR = "ERROR_COLOR"; //$NON-NLS-1$

    /**
     * Identifier for the Hyperlink Color
     */
    public static const String HYPERLINK_COLOR = "HYPERLINK_COLOR"; //$NON-NLS-1$

    /**
     * Identifier for the Active Hyperlink Colour
     */
    public static const String ACTIVE_HYPERLINK_COLOR = "ACTIVE_HYPERLINK_COLOR"; //$NON-NLS-1$

    /**
     * Identifier for the color used to show extra informations in labels, as a
     * qualified name. For example in 'Foo.txt - myproject/bar', the qualifier
     * is '- myproject/bar'.
     * 
     * @since 3.4
     */
    public static final String QUALIFIER_COLOR = "QUALIFIER_COLOR"; //$NON-NLS-1$

    /**
     * Identifier for the color used to show label decorations For example in
     * 'Foo.txt [1.16]', the decoration is '[1.16]'.
     * 
     * @since 3.4
     */
    public static final String DECORATIONS_COLOR = "DECORATIONS_COLOR"; //$NON-NLS-1$

    /**
     * Identifier for the color used to counter informations For example in
     * 'Foo.txt (2 matches)', the counter information is '(2 matches)'.
     * 
     * @since 3.4
     */
    public static final String COUNTER_COLOR = "COUNTER_COLOR"; //$NON-NLS-1$

    
    /**
     * Identifier for the color used for the background of content assist
     * popup dialogs.
     * 
     * @since 3.4
     */
    public static final String CONTENT_ASSIST_BACKGROUND_COLOR = "CONTENT_ASSIST_BACKGROUND_COLOR"; //$NON-NLS-1$

    /**
     * Identifier for the color used for the foreground of content assist
     * popup dialogs.
     * 
     * @since 3.4
     */
    public static final String CONTENT_ASSIST_FOREGROUND_COLOR = "CONTENT_ASSIST_FOREGROUND_COLOR"; //$NON-NLS-1$



    private static IPreferenceStore preferenceStore;

    /**
     * Prevent construction.
     */
    private this() {
    }

    /**
     * Return the preference store for the receiver.
     * 
     * @return IPreferenceStore or null
     */
    public static IPreferenceStore getPreferenceStore() {
        return preferenceStore;
    }

    /**
     * Set the preference store for the receiver.
     * 
     * @param store
     *            IPreferenceStore
     */
    public static void setPreferenceStore(IPreferenceStore store) {
        preferenceStore = store;
    }

}