001: /*******************************************************************************
002: * Copyright (c) 2000, 2007 IBM Corporation and others.
003: * All rights reserved. This program and the accompanying materials
004: * are made available under the terms of the Eclipse Public License v1.0
005: * which accompanies this distribution, and is available at
006: * http://www.eclipse.org/legal/epl-v10.html
007: *
008: * Contributors:
009: * IBM Corporation - initial API and implementation
010: *******************************************************************************/package org.eclipse.ui.internal;
011:
012: /**
013: * The IPreferenceConstants are the internal constants used by the Workbench.
014: */
015: public interface IPreferenceConstants {
016:
017: //Do we show tabs up or down for views
018: public static final String VIEW_TAB_POSITION = "VIEW_TAB_POSITION"; //$NON-NLS-1$
019:
020: //Boolean: true = single click opens editor; false = double click opens
021: // it.
022: public static final String OPEN_ON_SINGLE_CLICK = "OPEN_ON_SINGLE_CLICK"; //$NON-NLS-1$
023:
024: //Boolean: true = select on hover;
025: public static final String SELECT_ON_HOVER = "SELECT_ON_HOVER"; //$NON-NLS-1$
026:
027: //Boolean: true = open after delay
028: public static final String OPEN_AFTER_DELAY = "OPEN_AFTER_DELAY"; //$NON-NLS-1$
029:
030: //Do we show color icons in toolbars?
031: public static final String COLOR_ICONS = "COLOR_ICONS"; //$NON-NLS-1$
032:
033: //Do we show tabs up or down for editors
034: public static final String EDITOR_TAB_POSITION = "EDITOR_TAB_POSITION"; //$NON-NLS-1$
035:
036: //mappings for type/extension to an editor
037: public final static String EDITORS = "editors"; //$NON-NLS-1$
038:
039: public final static String RESOURCES = "resourcetypes"; //$NON-NLS-1$
040:
041: //saving perspective layouts
042: public final static String PERSPECTIVES = "perspectives"; //$NON-NLS-1$
043:
044: // (int) If > 0, an editor will be reused once 'N' editors are opened.
045: public static final String REUSE_EDITORS = "REUSE_OPEN_EDITORS"; //$NON-NLS-1$
046:
047: //Boolean: true = replace dirty editor if no other editors to reuse
048: // (prompt for save);
049: // false = open a new editor if no other editors to resuse
050: public static final String REUSE_DIRTY_EDITORS = "REUSE_DIRTY_EDITORS"; //$NON-NLS-1$
051:
052: //On/Off option for the two preceding options.
053: public static final String REUSE_EDITORS_BOOLEAN = "REUSE_OPEN_EDITORS_BOOLEAN"; //$NON-NLS-1$
054:
055: // (int) N recently viewed files will be listed in the File->Open Recent
056: // menu.
057: public static final String RECENT_FILES = "RECENT_FILES"; //$NON-NLS-1$
058:
059: // (integer) Mode for opening a view.
060: public static final String OPEN_VIEW_MODE = "OPEN_VIEW_MODE"; //$NON-NLS-1$
061:
062: public static final int OVM_EMBED = 0;
063:
064: public static final int OVM_FAST = 1;
065:
066: public static final int OVM_FLOAT = 2;
067:
068: // (int) Mode for opening a new perspective
069: public static final String OPEN_PERSP_MODE = "OPEN_PERSPECTIVE_MODE"; //$NON-NLS-1$
070:
071: public static final int OPM_ACTIVE_PAGE = 0;
072:
073: //public static final int OPM_NEW_PAGE = 1;
074: public static final int OPM_NEW_WINDOW = 2;
075:
076: //Identifier for enabled decorators
077: public static final String ENABLED_DECORATORS = "ENABLED_DECORATORS"; //$NON-NLS-1$
078:
079: //Boolean: true = keep cycle part dialog open when keys released
080: public static final String STICKY_CYCLE = "STICKY_CYCLE"; //$NON-NLS-1$
081:
082: //List of plugins but that extends "startup" extension point but are
083: // overriden by the user.
084: //String of plugin unique ids separated by ";"
085: public static final String PLUGINS_NOT_ACTIVATED_ON_STARTUP = "PLUGINS_NOT_ACTIVATED_ON_STARTUP"; //$NON-NLS-1$
086:
087: //Separator for PLUGINS_NOT_ACTIVATED_ON_STARTUP
088: public static char SEPARATOR = ';';
089:
090: //Preference key for default editors
091: public final static String DEFAULT_EDITORS = "defaultEditors"; //$NON-NLS-1$
092:
093: //Preference key for default editors
094: public final static String DEFAULT_EDITORS_CACHE = "defaultEditorsCache"; //$NON-NLS-1$
095:
096: //Tab width = tab height * scalar value
097: public final static String EDITOR_TAB_WIDTH = "EDITOR_TAB_WIDTH"; //$NON-NLS-1$
098:
099: //Boolean: true = show Editors drop down button on CTabFolder
100: public static final String EDITORLIST_PULLDOWN_ACTIVE = "EDITORLIST_PULLDOWN_ACTIVE"; //$NON-NLS-1$
101:
102: // Selection scope for EditorList
103: public static final String EDITORLIST_SELECTION_SCOPE = "EDITORLIST_SELECTION_SCOPE"; //$NON-NLS-1$
104:
105: public static final int EDITORLIST_SET_WINDOW_SCOPE = 0;
106:
107: public static final int EDITORLIST_SET_PAGE_SCOPE = 1;
108:
109: public static final int EDITORLIST_SET_TAB_GROUP_SCOPE = 2;
110:
111: // Sort criteria for EditorList
112: public static final String EDITORLIST_SORT_CRITERIA = "EDITORLIST_SORT_CRITERIA"; //$NON-NLS-1$
113:
114: public static final int EDITORLIST_NAME_SORT = 0;
115:
116: public static final int EDITORLIST_MRU_SORT = 1;
117:
118: /**
119: * Boolean; true = EditorList displays full path
120: */
121: public static final String EDITORLIST_DISPLAY_FULL_NAME = "EDITORLIST_DISPLAY_FULL_NAME"; //$NON-NLS-1$
122:
123: /**
124: * Workbench preference id for determining whether the user has chosen to
125: * override some of the settings in the current presentation.
126: * <p>
127: * The default value for this preference is: <code>false</code> (prompt)
128: * </p>
129: *
130: * @since 3.2
131: */
132: public static final String OVERRIDE_PRESENTATION = "overridepresentation"; //$//$NON-NLS-1$
133:
134: /**
135: * <p>
136: * The key for the preference indicating which tab is selected in the keys
137: * preference page when last okay was pressed. This value should never
138: * really be directly edited by a user.
139: * </p>
140: * <p>
141: * This preference is an <code>int</code> value. The default value is
142: * <code>0</code>.
143: * </p>
144: *
145: * @since 3.1
146: */
147: public static final String KEYS_PREFERENCE_SELECTED_TAB = "KEYS_PREFERENCE_SELECTED_TAB"; //$NON-NLS-1$
148:
149: /**
150: * <p>
151: * The key for the preference indicating whether multi-stroke key sequences
152: * should provide assistance to the user. This means that if the user pauses
153: * after pressing the first key, a window will open showing the possible
154: * completions.
155: * </p>
156: * <p>
157: * This preference is a <code>boolean</code> value. The default value is
158: * <code>false</code>.
159: * </p>
160: *
161: * @since 3.0
162: */
163: public static final String MULTI_KEY_ASSIST = "MULTI_KEY_ASSIST"; //$NON-NLS-1$
164:
165: /**
166: * <p>
167: * The key for the preference indicating how long the assist window should
168: * wait before opening. This is a value in milliseconds -- from the time the
169: * first key in a multi-key is received by the system, to the time the
170: * assist window should appear.
171: * </p>
172: * <p>
173: * This preference is an <code>int</code> value. The default value is
174: * <code>1000</code>.
175: * </p>
176: *
177: * @since 3.0
178: */
179: public static final String MULTI_KEY_ASSIST_TIME = "MULTI_KEY_ASSIST_TIME"; //$NON-NLS-1$
180:
181: /**
182: * Workbench preference id for whether the workbench should show multiple
183: * editor tabs.
184: *
185: * Boolean-valued: <code>true</code> if editors should show mulitple
186: * editor tabs, and <code>false</code> if editors should show a single
187: * editor tab (3.0 style)
188: * <p>
189: * The default value for this preference is: <code>true</code>
190: * </p>
191: *
192: * @since 3.0
193: */
194: public static String SHOW_MULTIPLE_EDITOR_TABS = "SHOW_MULTIPLE_EDITOR_TABS"; //$NON-NLS-1$
195:
196: /**
197: * Workbench preference to use the new IPersistableEditor interface
198: * throughout the workbench new editor/open editor calls.
199: *
200: * @since 3.3
201: */
202: public static String USE_IPERSISTABLE_EDITORS = "USE_IPERSISTABLE_EDITORS"; //$NON-NLS-1$
203:
204: /**
205: * Preference to show user jobs in a dialog.
206: */
207: public static String RUN_IN_BACKGROUND = "RUN_IN_BACKGROUND"; //$NON-NLS-1$
208:
209: /**
210: * Workbench preference id for determining whether the user will be prompted
211: * for activity enablement. If this is false then activities are enabled
212: * automatically. If it is true, then the user is only prompted for
213: * activities that they have not already declared a disinterest in via the
214: * prompt dialog.
215: * <p>
216: * The default value for this preference is: <code>true</code> (prompt)
217: * </p>
218: *
219: * @since 3.0
220: */
221: public static final String SHOULD_PROMPT_FOR_ENABLEMENT = "shouldPromptForEnablement"; //$NON-NLS-1$
222:
223: }
|