KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > IPreferenceConstants


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 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
12 package org.eclipse.ui.internal;
13
14 /**
15  * The IPreferenceConstants are the internal constants used by the Workbench.
16  */

17 public interface IPreferenceConstants {
18
19     //Do we show tabs up or down for views
20
public static final String JavaDoc VIEW_TAB_POSITION = "VIEW_TAB_POSITION"; //$NON-NLS-1$
21

22     //Boolean: true = single click opens editor; false = double click opens
23
// it.
24
public static final String JavaDoc OPEN_ON_SINGLE_CLICK = "OPEN_ON_SINGLE_CLICK"; //$NON-NLS-1$
25

26     //Boolean: true = select on hover;
27
public static final String JavaDoc SELECT_ON_HOVER = "SELECT_ON_HOVER"; //$NON-NLS-1$
28

29     //Boolean: true = open after delay
30
public static final String JavaDoc OPEN_AFTER_DELAY = "OPEN_AFTER_DELAY"; //$NON-NLS-1$
31

32     //Do we show color icons in toolbars?
33
public static final String JavaDoc COLOR_ICONS = "COLOR_ICONS"; //$NON-NLS-1$
34

35     //Do we show tabs up or down for editors
36
public static final String JavaDoc EDITOR_TAB_POSITION = "EDITOR_TAB_POSITION"; //$NON-NLS-1$
37

38     //mappings for type/extension to an editor
39
public final static String JavaDoc EDITORS = "editors"; //$NON-NLS-1$
40

41     public final static String JavaDoc RESOURCES = "resourcetypes"; //$NON-NLS-1$
42

43     //saving perspective layouts
44
public final static String JavaDoc PERSPECTIVES = "perspectives"; //$NON-NLS-1$
45

46     // (int) If > 0, an editor will be reused once 'N' editors are opened.
47
public static final String JavaDoc REUSE_EDITORS = "REUSE_OPEN_EDITORS"; //$NON-NLS-1$
48

49     //Boolean: true = replace dirty editor if no other editors to reuse
50
// (prompt for save);
51
// false = open a new editor if no other editors to resuse
52
public static final String JavaDoc REUSE_DIRTY_EDITORS = "REUSE_DIRTY_EDITORS"; //$NON-NLS-1$
53

54     //On/Off option for the two preceding options.
55
public static final String JavaDoc REUSE_EDITORS_BOOLEAN = "REUSE_OPEN_EDITORS_BOOLEAN"; //$NON-NLS-1$
56

57     // (int) N recently viewed files will be listed in the File->Open Recent
58
// menu.
59
public static final String JavaDoc RECENT_FILES = "RECENT_FILES"; //$NON-NLS-1$
60

61     // (integer) Mode for opening a view.
62
public static final String JavaDoc OPEN_VIEW_MODE = "OPEN_VIEW_MODE"; //$NON-NLS-1$
63

64     public static final int OVM_EMBED = 0;
65
66     public static final int OVM_FAST = 1;
67
68     public static final int OVM_FLOAT = 2;
69
70     // (int) Mode for opening a new perspective
71
public static final String JavaDoc OPEN_PERSP_MODE = "OPEN_PERSPECTIVE_MODE"; //$NON-NLS-1$
72

73     public static final int OPM_ACTIVE_PAGE = 0;
74
75     //public static final int OPM_NEW_PAGE = 1;
76
public static final int OPM_NEW_WINDOW = 2;
77
78     //Identifier for enabled decorators
79
public static final String JavaDoc ENABLED_DECORATORS = "ENABLED_DECORATORS"; //$NON-NLS-1$
80

81     //Boolean: true = keep cycle part dialog open when keys released
82
public static final String JavaDoc STICKY_CYCLE = "STICKY_CYCLE"; //$NON-NLS-1$
83

84     //List of plugins but that extends "startup" extension point but are
85
// overriden by the user.
86
//String of plugin unique ids separated by ";"
87
public static final String JavaDoc PLUGINS_NOT_ACTIVATED_ON_STARTUP = "PLUGINS_NOT_ACTIVATED_ON_STARTUP"; //$NON-NLS-1$
88

89     //Separator for PLUGINS_NOT_ACTIVATED_ON_STARTUP
90
public static char SEPARATOR = ';';
91
92     //Preference key for default editors
93
public final static String JavaDoc DEFAULT_EDITORS = "defaultEditors"; //$NON-NLS-1$
94

95     //Preference key for default editors
96
public final static String JavaDoc DEFAULT_EDITORS_CACHE = "defaultEditorsCache"; //$NON-NLS-1$
97

98     //Tab width = tab height * scalar value
99
public final static String JavaDoc EDITOR_TAB_WIDTH = "EDITOR_TAB_WIDTH"; //$NON-NLS-1$
100

101     //Boolean: true = show Editors drop down button on CTabFolder
102
public static final String JavaDoc EDITORLIST_PULLDOWN_ACTIVE = "EDITORLIST_PULLDOWN_ACTIVE"; //$NON-NLS-1$
103

104     // Selection scope for EditorList
105
public static final String JavaDoc EDITORLIST_SELECTION_SCOPE = "EDITORLIST_SELECTION_SCOPE"; //$NON-NLS-1$
106

107     public static final int EDITORLIST_SET_WINDOW_SCOPE = 0;
108
109     public static final int EDITORLIST_SET_PAGE_SCOPE = 1;
110
111     public static final int EDITORLIST_SET_TAB_GROUP_SCOPE = 2;
112
113     // Sort criteria for EditorList
114
public static final String JavaDoc EDITORLIST_SORT_CRITERIA = "EDITORLIST_SORT_CRITERIA"; //$NON-NLS-1$
115

116     public static final int EDITORLIST_NAME_SORT = 0;
117
118     public static final int EDITORLIST_MRU_SORT = 1;
119
120     /**
121      * Boolean; true = EditorList displays full path
122      */

123     public static final String JavaDoc EDITORLIST_DISPLAY_FULL_NAME = "EDITORLIST_DISPLAY_FULL_NAME"; //$NON-NLS-1$
124

125     
126     /**
127      * Workbench preference id for determining whether the user has chosen to
128      * override some of the settings in the current presentation.
129      * <p>
130      * The default value for this preference is: <code>false</code> (prompt)
131      * </p>
132      *
133      * @since 3.2
134      */

135     public static final String JavaDoc OVERRIDE_PRESENTATION = "overridepresentation"; //$//$NON-NLS-1$
136

137     /**
138      * <p>
139      * The key for the preference indicating which tab is selected in the keys
140      * preference page when last okay was pressed. This value should never
141      * really be directly edited by a user.
142      * </p>
143      * <p>
144      * This preference is an <code>int</code> value. The default value is
145      * <code>0</code>.
146      * </p>
147      *
148      * @since 3.1
149      */

150     public static final String JavaDoc KEYS_PREFERENCE_SELECTED_TAB = "KEYS_PREFERENCE_SELECTED_TAB"; //$NON-NLS-1$
151

152     /**
153      * <p>
154      * The key for the preference indicating whether multi-stroke key sequences
155      * should provide assistance to the user. This means that if the user pauses
156      * after pressing the first key, a window will open showing the possible
157      * completions.
158      * </p>
159      * <p>
160      * This preference is a <code>boolean</code> value. The default value is
161      * <code>false</code>.
162      * </p>
163      *
164      * @since 3.0
165      */

166     public static final String JavaDoc MULTI_KEY_ASSIST = "MULTI_KEY_ASSIST"; //$NON-NLS-1$
167

168     /**
169      * <p>
170      * The key for the preference indicating how long the assist window should
171      * wait before opening. This is a value in milliseconds -- from the time the
172      * first key in a multi-key is received by the system, to the time the
173      * assist window should appear.
174      * </p>
175      * <p>
176      * This preference is an <code>int</code> value. The default value is
177      * <code>1000</code>.
178      * </p>
179      *
180      * @since 3.0
181      */

182     public static final String JavaDoc MULTI_KEY_ASSIST_TIME = "MULTI_KEY_ASSIST_TIME"; //$NON-NLS-1$
183

184     /**
185      * Workbench preference id for whether the workbench should show multiple
186      * editor tabs.
187      *
188      * Boolean-valued: <code>true</code> if editors should show mulitple
189      * editor tabs, and <code>false</code> if editors should show a single
190      * editor tab (3.0 style)
191      * <p>
192      * The default value for this preference is: <code>true</code>
193      * </p>
194      *
195      * @since 3.0
196      */

197     public static String JavaDoc SHOW_MULTIPLE_EDITOR_TABS = "SHOW_MULTIPLE_EDITOR_TABS"; //$NON-NLS-1$
198

199     /**
200      * Workbench preference to use the new IPersistableEditor interface
201      * throughout the workbench new editor/open editor calls.
202      *
203      * @since 3.3
204      */

205     public static String JavaDoc USE_IPERSISTABLE_EDITORS = "USE_IPERSISTABLE_EDITORS"; //$NON-NLS-1$
206

207     /**
208      * Preference to show user jobs in a dialog.
209      */

210     public static String JavaDoc RUN_IN_BACKGROUND = "RUN_IN_BACKGROUND"; //$NON-NLS-1$
211

212     /**
213      * Workbench preference id for determining whether the user will be prompted
214      * for activity enablement. If this is false then activities are enabled
215      * automatically. If it is true, then the user is only prompted for
216      * activities that they have not already declared a disinterest in via the
217      * prompt dialog.
218      * <p>
219      * The default value for this preference is: <code>true</code> (prompt)
220      * </p>
221      *
222      * @since 3.0
223      */

224     public static final String JavaDoc SHOULD_PROMPT_FOR_ENABLEMENT = "shouldPromptForEnablement"; //$NON-NLS-1$
225

226 }
227
Popular Tags