KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > preference > JFacePreferences


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jface.preference;
12
13 /**
14  *
15  * JFacePreferences is a class used to administer the preferences
16  * used by JFace objects.
17  */

18 public final class JFacePreferences {
19
20     /**
21      * Identifier for the Error Color
22      */

23     public static final String JavaDoc ERROR_COLOR = "ERROR_COLOR"; //$NON-NLS-1$
24

25     /**
26      * Identifier for the Hyperlink Color
27      */

28     public static final String JavaDoc HYPERLINK_COLOR = "HYPERLINK_COLOR"; //$NON-NLS-1$
29

30     /**
31      * Identifier for the Active Hyperlink Colour
32      */

33     public static final String JavaDoc ACTIVE_HYPERLINK_COLOR = "ACTIVE_HYPERLINK_COLOR"; //$NON-NLS-1$
34

35     private static IPreferenceStore preferenceStore;
36
37     /**
38      * Prevent construction.
39      */

40     private JFacePreferences() {
41     }
42
43     /**
44      * Return the preference store for the receiver.
45      * @return IPreferenceStore or null
46      */

47     public static IPreferenceStore getPreferenceStore() {
48         return preferenceStore;
49     }
50
51     /**
52      * Set the preference store for the receiver.
53      * @param store IPreferenceStore
54      */

55     public static void setPreferenceStore(IPreferenceStore store) {
56         preferenceStore = store;
57     }
58
59 }
60
Popular Tags