01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal.ide;
11:
12: import org.eclipse.jface.dialogs.MessageDialogWithToggle;
13:
14: /**
15: * The IDEInternalPreferences are the internal constants used by the Workbench.
16: */
17: public interface IDEInternalPreferences {
18: // (boolean) Save all dirty editors before running a full or incremental build
19: public static final String SAVE_ALL_BEFORE_BUILD = "SAVE_ALL_BEFORE_BUILD"; //$NON-NLS-1$
20:
21: // (boolean) Refresh workspace on startup
22: public static final String REFRESH_WORKSPACE_ON_STARTUP = "REFRESH_WORKSPACE_ON_STARTUP"; //$NON-NLS-1$
23:
24: // (int) Workspace save interval in minutes
25: // @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
26: public final static String SAVE_INTERVAL = "saveInterval"; //$NON-NLS-1$
27:
28: public static final int MAX_SAVE_INTERVAL = 9999;
29:
30: // (boolean) Show Problems view to users when build contains errors
31: //public static final String SHOW_TASKS_ON_BUILD = "SHOW_TASKS_ON_BUILD"; //$NON-NLS-1$
32:
33: // (boolean) Prompt for exit confirmation when last window closed.
34: public static final String EXIT_PROMPT_ON_CLOSE_LAST_WINDOW = "EXIT_PROMPT_ON_CLOSE_LAST_WINDOW"; //$NON-NLS-1$
35:
36: // (String) Whether to open the preferred perspective when creating a new project
37: public static final String PROJECT_SWITCH_PERSP_MODE = "SWITCH_PERSPECTIVE_ON_PROJECT_CREATION"; //$NON-NLS-1$
38:
39: /**
40: * (String) Whether to open required projects when opening a project.
41: */
42: public static final String OPEN_REQUIRED_PROJECTS = "OPEN_REQUIRED_PROJECTS"; //$NON-NLS-1$
43:
44: public static final String PSPM_PROMPT = MessageDialogWithToggle.PROMPT;
45:
46: public static final String PSPM_ALWAYS = MessageDialogWithToggle.ALWAYS;
47:
48: public static final String PSPM_NEVER = MessageDialogWithToggle.NEVER;
49:
50: // (boolean) Whether or not to display the Welcome dialog on startup.
51: public static final String WELCOME_DIALOG = "WELCOME_DIALOG"; //$NON-NLS-1$
52:
53: //Whether or not to limit problems
54: public static final String LIMIT_PROBLEMS = "LIMIT_PROBLEMS"; //$NON-NLS-1$
55:
56: //The list of defined problems filters
57: public static final String PROBLEMS_FILTERS = "PROBLEMS_FILTERS"; //$NON-NLS-1$
58:
59: //problem limits
60: public static final String PROBLEMS_LIMIT = "PROBLEMS_LIMIT"; //$NON-NLS-1$
61:
62: //Whether or not to limit tasks
63: public static final String LIMIT_TASKS = "LIMIT_TASKS"; //$NON-NLS-1$
64:
65: //tasks limits
66: public static final String TASKS_LIMIT = "TASKS_LIMIT"; //$NON-NLS-1$
67:
68: //The list of defined tasks filters
69: public static final String TASKS_FILTERS = "TASKS_FILTERS"; //$NON-NLS-1$
70:
71: //Whether or not to limit bookmarks
72: public static final String LIMIT_BOOKMARKS = "LIMIT_BOOKMARKS"; //$NON-NLS-1$
73:
74: //bookmark limits
75: public static final String BOOKMARKS_LIMIT = "BOOKMARKS_LIMIT"; //$NON-NLS-1$
76:
77: // The list of defined tasks filters
78: public static final String BOOKMARKS_FILTERS = "BOOKMARKS_FILTERS"; //$NON-NLS-1$
79: }
|