KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > core > ITeamStatus


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 package org.eclipse.team.core;
12
13 import org.eclipse.core.resources.IResource;
14 import org.eclipse.core.runtime.IStatus;
15
16 /**
17  * Defines the status codes used in the status of exceptions and errors relating to Team.
18  *
19  * @since 3.0
20  */

21 public interface ITeamStatus extends IStatus {
22     
23     /**
24      * An error occurred trying to obtain the <code>SyncInfo</code> for a single resource.
25      * The error will be cleared when the set is reset or possibly when a sync info is added to
26      * the set for the resource for which the error occurred.
27      */

28     public static final int RESOURCE_SYNC_INFO_ERROR = 1;
29     
30     /**
31      * An error occurred that may effect several resources in a <code>SyncInfoSet</code>.
32      * The error will be cleared when the set is reset.
33      */

34     public static final int SYNC_INFO_SET_ERROR = 2;
35
36     /**
37      * The collection of sync info for a sync info set has been canceled so the
38      * contents do not reflect the state of the system.
39      * The error will be cleared when the set is reset.
40      */

41     public static final int SYNC_INFO_SET_CANCELLATION = 3;
42     
43     /** Status code constant (value 279) indicating that the
44      * file in the file system is marked as read-only and could
45      * not be made writable.
46      * @since 3.3
47      */

48     public static final int READ_ONLY_LOCAL = 279;
49     
50     /**
51      * Return the resource associated with this status.
52      * @return Returns the resource.
53      */

54     public IResource getResource();
55 }
56
Popular Tags