KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > ide > IDEInternalPreferences


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
12 package org.eclipse.ui.internal.ide;
13
14 import org.eclipse.jface.dialogs.MessageDialogWithToggle;
15
16 /**
17  * The IDEInternalPreferences are the internal constants used by the Workbench.
18  */

19 public interface IDEInternalPreferences {
20     // (boolean) Save all dirty editors before running a full or incremental build
21
public static final String JavaDoc SAVE_ALL_BEFORE_BUILD = "SAVE_ALL_BEFORE_BUILD"; //$NON-NLS-1$
22

23     // (boolean) Refresh workspace on startup
24
public static final String JavaDoc REFRESH_WORKSPACE_ON_STARTUP = "REFRESH_WORKSPACE_ON_STARTUP"; //$NON-NLS-1$
25

26     // (int) Workspace save interval in minutes
27
// @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
28
public final static String JavaDoc SAVE_INTERVAL = "saveInterval"; //$NON-NLS-1$
29

30     public static final int MAX_SAVE_INTERVAL = 9999;
31
32     // (boolean) Show Problems view to users when build contains errors
33
//public static final String SHOW_TASKS_ON_BUILD = "SHOW_TASKS_ON_BUILD"; //$NON-NLS-1$
34

35     // (boolean) Prompt for exit confirmation when last window closed.
36
public static final String JavaDoc EXIT_PROMPT_ON_CLOSE_LAST_WINDOW = "EXIT_PROMPT_ON_CLOSE_LAST_WINDOW"; //$NON-NLS-1$
37

38     // (String) Whether to open the preferred perspective when creating a new project
39
public static final String JavaDoc PROJECT_SWITCH_PERSP_MODE = "SWITCH_PERSPECTIVE_ON_PROJECT_CREATION"; //$NON-NLS-1$
40

41     /**
42      * (String) Whether to open required projects when opening a project.
43      */

44     public static final String JavaDoc OPEN_REQUIRED_PROJECTS = "OPEN_REQUIRED_PROJECTS"; //$NON-NLS-1$
45

46     public static final String JavaDoc PSPM_PROMPT = MessageDialogWithToggle.PROMPT;
47
48     public static final String JavaDoc PSPM_ALWAYS = MessageDialogWithToggle.ALWAYS;
49
50     public static final String JavaDoc PSPM_NEVER = MessageDialogWithToggle.NEVER;
51
52     // (boolean) Whether or not to display the Welcome dialog on startup.
53
public static final String JavaDoc WELCOME_DIALOG = "WELCOME_DIALOG"; //$NON-NLS-1$
54

55     //Whether or not to limit problems
56
public static final String JavaDoc LIMIT_PROBLEMS = "LIMIT_PROBLEMS"; //$NON-NLS-1$
57

58     //The list of defined problems filters
59
public static final String JavaDoc PROBLEMS_FILTERS = "PROBLEMS_FILTERS"; //$NON-NLS-1$
60

61     //problem limits
62
public static final String JavaDoc PROBLEMS_LIMIT = "PROBLEMS_LIMIT"; //$NON-NLS-1$
63

64     //Whether or not to limit tasks
65
public static final String JavaDoc LIMIT_TASKS = "LIMIT_TASKS"; //$NON-NLS-1$
66

67     //tasks limits
68
public static final String JavaDoc TASKS_LIMIT = "TASKS_LIMIT"; //$NON-NLS-1$
69

70     //The list of defined tasks filters
71
public static final String JavaDoc TASKS_FILTERS = "TASKS_FILTERS"; //$NON-NLS-1$
72

73     //Whether or not to limit bookmarks
74
public static final String JavaDoc LIMIT_BOOKMARKS = "LIMIT_BOOKMARKS"; //$NON-NLS-1$
75

76     //bookmark limits
77
public static final String JavaDoc BOOKMARKS_LIMIT = "BOOKMARKS_LIMIT"; //$NON-NLS-1$
78

79 // The list of defined tasks filters
80
public static final String JavaDoc BOOKMARKS_FILTERS = "BOOKMARKS_FILTERS"; //$NON-NLS-1$
81
}
82
Popular Tags