1 /******************************************************************************* 2 * Copyright (c) 2000, 2018 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 * Dina Sayed, dsayed@eg.ibm.com, IBM - bug 269844 14 * Markus Schorn (Wind River Systems) - bug 284447 15 * Christian Georgi (SAP) - bug 432480 16 * Patrik Suzzi <psuzzi@gmail.com> - Bug 502050 17 *******************************************************************************/ 18 19 package org.eclipse.ui.internal.ide; 20 21 import org.eclipse.jface.dialogs.MessageDialogWithToggle; 22 23 /** 24 * The IDEInternalPreferences are the internal constants used by the Workbench. 25 */ 26 public interface IDEInternalPreferences { 27 // (boolean) Save all dirty editors before running a full or incremental build 28 String SAVE_ALL_BEFORE_BUILD = "SAVE_ALL_BEFORE_BUILD"; //$NON-NLS-1$ 29 30 // (boolean) Refresh workspace on startup 31 String REFRESH_WORKSPACE_ON_STARTUP = "REFRESH_WORKSPACE_ON_STARTUP"; //$NON-NLS-1$ 32 33 // (int) Workspace save interval in minutes 34 // @issue we should drop this and have clients refer to the core preference instead. its not even kept up-to-date if client uses core api directly 35 String SAVE_INTERVAL = "saveInterval"; //$NON-NLS-1$ 36 37 int MAX_SAVE_INTERVAL = 9999; 38 39 // (boolean) Show Problems view to users when build contains errors 40 // String SHOW_TASKS_ON_BUILD = "SHOW_TASKS_ON_BUILD"; //$NON-NLS-1$ 41 42 // (boolean) Prompt for exit confirmation when last window closed. 43 String EXIT_PROMPT_ON_CLOSE_LAST_WINDOW = "EXIT_PROMPT_ON_CLOSE_LAST_WINDOW"; //$NON-NLS-1$ 44 45 // (String) Whether to open the preferred perspective when creating a new project 46 String PROJECT_SWITCH_PERSP_MODE = "SWITCH_PERSPECTIVE_ON_PROJECT_CREATION"; //$NON-NLS-1$ 47 48 /** 49 * (String) Whether to open required projects when opening a project. 50 */ 51 String OPEN_REQUIRED_PROJECTS = "OPEN_REQUIRED_PROJECTS"; //$NON-NLS-1$ 52 53 /** 54 * (String) Whether to confirm closing unrelated projects. 55 */ 56 String CLOSE_UNRELATED_PROJECTS = "CLOSE_UNRELATED_PROJECTS"; //$NON-NLS-1$ 57 58 String PSPM_PROMPT = MessageDialogWithToggle.PROMPT; 59 60 String PSPM_ALWAYS = MessageDialogWithToggle.ALWAYS; 61 62 String PSPM_NEVER = MessageDialogWithToggle.NEVER; 63 64 // (boolean) Whether or not to display the Welcome dialog on startup. 65 String WELCOME_DIALOG = "WELCOME_DIALOG"; //$NON-NLS-1$ 66 67 //Whether or not to limit problems 68 String LIMIT_PROBLEMS = "LIMIT_PROBLEMS"; //$NON-NLS-1$ 69 70 //The list of defined problems filters 71 String PROBLEMS_FILTERS = "PROBLEMS_FILTERS"; //$NON-NLS-1$ 72 73 //problem limits 74 String PROBLEMS_LIMIT = "PROBLEMS_LIMIT"; //$NON-NLS-1$ 75 76 //The list of defined tasks filters 77 String TASKS_FILTERS = "TASKS_FILTERS"; //$NON-NLS-1$ 78 79 // The list of defined tasks filters 80 String BOOKMARKS_FILTERS = "BOOKMARKS_FILTERS"; //$NON-NLS-1$ 81 82 //Enablement of marker limits 83 String USE_MARKER_LIMITS = "USE_MARKER_LIMITS"; //$NON-NLS-1$ 84 85 //Value of marker limits 86 String MARKER_LIMITS_VALUE = "MARKER_LIMITS_VALUE"; //$NON-NLS-1$ 87 88 // Type of import 89 String IMPORT_FILES_AND_FOLDERS_TYPE = "IMPORT_FILES_AND_FOLDERS_TYPE"; //$NON-NLS-1$ 90 91 // (boolean) Using variable relative paths for the import file and folder dialog 92 String IMPORT_FILES_AND_FOLDERS_RELATIVE = "IMPORT_FILES_AND_FOLDERS_RELATIVE"; //$NON-NLS-1$ 93 94 // (string) Save all dirty editors before running a full or incremental build 95 String IMPORT_FILES_AND_FOLDERS_MODE = "IMPORT_FILES_AND_FOLDERS_MODE"; //$NON-NLS-1$ 96 97 // (string) Save all dirty editors before running a full or incremental build 98 String IMPORT_FILES_AND_FOLDERS_VIRTUAL_FOLDER_MODE = "IMPORT_FILES_AND_FOLDERS_VIRTUAL_FOLDER_MODE"; //$NON-NLS-1$ 99 100 String IMPORT_FILES_AND_FOLDERS_MODE_PROMPT = MessageDialogWithToggle.PROMPT; 101 102 String IMPORT_FILES_AND_FOLDERS_MODE_MOVE_COPY = "MOVE_COPY"; //$NON-NLS-1$ 103 104 String IMPORT_FILES_AND_FOLDERS_MODE_LINK = "LINK"; //$NON-NLS-1$ 105 106 String IMPORT_FILES_AND_FOLDERS_MODE_LINK_AND_VIRTUAL_FOLDER = "LINK_AND_VIRTUAL_FOLDER"; //$NON-NLS-1$ 107 108 // Always show this import window 109 String IMPORT_FILES_AND_FOLDERS_SHOW_DIALOG = "IMPORT_FILES_AND_FOLDERS_SHOW_DIALOG"; //$NON-NLS-1$ 110 111 /** 112 * Workspace name, will be displayed in the window title. 113 */ 114 String WORKSPACE_NAME = "WORKSPACE_NAME"; //$NON-NLS-1$ 115 116 /** 117 * Whether to show the (workspace) location in the window title. 118 */ 119 String SHOW_LOCATION = "SHOW_LOCATION"; //$NON-NLS-1$ 120 121 /** 122 * Whether to show the workspace name in the window title. 123 */ 124 String SHOW_LOCATION_NAME = "SHOW_LOCATION_NAME"; //$NON-NLS-1$ 125 126 /** 127 * Whether to show the perspective name in the window title. 128 */ 129 String SHOW_PERSPECTIVE_IN_TITLE = "SHOW_PERSPECTIVE_IN_TITLE"; //$NON-NLS-1$ 130 131 /** 132 * Whether to show the product name in the window title. 133 */ 134 String SHOW_PRODUCT_IN_TITLE = "SHOW_PRODUCT_IN_TITLE"; //$NON-NLS-1$ 135 136 /** 137 * System explore command, used to launch file manager showing selected 138 * resource. 139 */ 140 String WORKBENCH_SYSTEM_EXPLORER = "SYSTEM_EXPLORER"; //$NON-NLS-1$ 141 142 /** 143 * Warn the user that the workspace is going to be upgraded because the IDE is newer 144 */ 145 String WARN_ABOUT_WORKSPACE_INCOMPATIBILITY = "WARN_ABOUT_WORKSPACE_INCOMPATIBILITY"; //$NON-NLS-1$ 146 147 /** 148 * Show Problems view decorations on startup 149 */ 150 String SHOW_PROBLEMS_VIEW_DECORATIONS_ON_STARTUP = "SHOW_PROBLEMS_VIEW_DECORATIONS_ON_STARTUP"; //$NON-NLS-1$ 151 152 /** 153 * 154 */ 155 String MAX_SIMULTANEOUS_BUILD = "MAX_CONCURRENT_PROJECT_BUILDS"; //$NON-NLS-1$ 156 157 /** 158 * 159 */ 160 int MAX_MAX_SIMULTANEOUS_BUILD = 1000; 161 162 /** 163 * Key to allow products define initial default grouping for the Problems view 164 * family 165 */ 166 String INITIAL_DEFAULT_MARKER_GROUPING = "INITIAL_DEFAULT_MARKER_GROUPING"; //$NON-NLS-1$ 167 168 /** 169 * Key for preference whether the problem view does check if a help context is 170 * really available before annotating a marker icon with the question mark 171 * symbol. 172 * 173 * <p> 174 * See bug 545615 175 * </p> 176 * 177 * <p> 178 * The default is true. 179 * </p> 180 */ 181 String HELP_CONTEXT_AVAILABILITY_CHECK = "helpContextAvailabilityCheck"; //$NON-NLS-1$ 182 183 } 184