Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 1c04de8d23c963c964281c4900bdf03c809db653 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.team.examples.pessimistic;

/**
 * Preference constants for the <code>PessimisticFilesystemProvider</code>.
 */
public interface IPessimisticFilesystemConstants {	
	/**
	 * Preference name's prefix
	 */
	String PREFIX = "org.eclipse.team.examples.pessimistic.";

	/**
	 * Preference name for when checked in files are saved.
	 */
	String PREF_CHECKED_IN_FILES_SAVED = PREFIX + "WhenCheckedInFilesAreSaved";
	/**
	 * Preference name for when checked in files are edited with a UI context.
	 */
	String PREF_CHECKED_IN_FILES_EDITED = PREFIX + "WhenCheckedInFilesAreEdited";
	/**
	 * Preference name for when checked in files are edited without a UI context.
	 */
	String PREF_CHECKED_IN_FILES_EDITED_NOPROMPT = PREFIX + "WhenCheckedInFilesAreEditedNoPrompt";
	/**
	 * Preference name for the option to always fail validate edit.
	 */
	String PREF_FAIL_VALIDATE_EDIT= PREFIX + "FailValidateEdit";
	/**
	 * Preference name for the option to touch files during validate edit calls
	 */
	String PREF_TOUCH_DURING_VALIDATE_EDIT= PREFIX + "ChangeFileContents";
	/**
	 * Preference name for the option to add files to the repository provider.
	 */
	String PREF_ADD_TO_CONTROL= PREFIX + "AddToControl";
	
	/**
	 * Preference option indicating that the user should be prompted.
	 */
	int OPTION_PROMPT = 1;
	/**
	 * Preference option indicating that the action should happen automatically.
	 */
	int OPTION_AUTOMATIC = 2;
	/**
	 * Preference option indicating that the action should not occur.
	 */
	int OPTION_DO_NOTHING = 4;

	/**
	 * Status flag indicating that resources are ready to be edited.
	 */
	int STATUS_OK_TO_EDIT = 1;
	/**
	 * Status flag indicating that resources need to be reloaded.
	 */
	int STATUS_PROMPT_FOR_RELOAD = 2;	
}

Back to the top