Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 6135823e756f0a22d28b4ba9a11c4d1945b88c01 (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
72
73
74
75
76
77
78
79
/*******************************************************************************
 * Copyright (c) 2002 IBM Corporation and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Common Public License v0.5
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v05.html
 * 
 * Contributors:
 * IBM - Initial implementation
 ******************************************************************************/
package org.eclipse.team.internal.core.target;

import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.team.core.TeamException;
import org.eclipse.team.internal.core.Policy;
import org.eclipse.team.internal.core.TeamPlugin;

public interface ITeamStatusConstants {

	public static final IStatus OK_STATUS =
		new Status(IStatus.OK, TeamPlugin.ID, TeamException.OK, "OK", null);

	public static final IStatus NOT_CHECKED_OUT_STATUS =
		new Status(
			IStatus.ERROR,
			TeamPlugin.ID,
			TeamException.NOT_CHECKED_OUT,
			Policy.bind("teamStatus.notCheckedOut"),
			null);

	public static final IStatus NOT_CHECKED_IN_STATUS =
		new Status(
			IStatus.ERROR,
			TeamPlugin.ID,
			TeamException.NOT_CHECKED_IN,
			Policy.bind("teamStatus.notCheckedIn"),
			null);

	public static final IStatus NO_REMOTE_RESOURCE_STATUS =
		new Status(
			IStatus.ERROR,
			TeamPlugin.ID,
			TeamException.NO_REMOTE_RESOURCE,
			Policy.bind("teamStatus.noRemoteResource"),
			null);

	public static final IStatus IO_FAILED_STATUS =
		new Status(
			IStatus.ERROR,
			TeamPlugin.ID,
			TeamException.IO_FAILED,
			Policy.bind("teamStatus.ioFailed"),
			null);

	public static final IStatus CONFLICT_STATUS =
		new Status(
			IStatus.ERROR,
			TeamPlugin.ID,
			TeamException.CONFLICT,
			Policy.bind("teamStatus.conflict"),
			null);

	public static final IStatus REQUIRED_CONFIGURATION_MISSING =
		new Status(
			IStatus.ERROR,
			TeamPlugin.ID,
			-100,
			Policy.bind("provider.configuration.missing"),
			null);
			
	public static final IStatus INVALID_CONFIGURATION =
		new Status(
			IStatus.ERROR,
			TeamPlugin.ID,
			-101,
			Policy.bind("provider.configuration.invalid"),
			null);
}

Back to the top