KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > resources > ICoreConstants


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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.core.internal.resources;
12
13 import org.eclipse.core.resources.*;
14 import org.eclipse.core.runtime.QualifiedName;
15
16 public interface ICoreConstants {
17
18     // Standard resource properties
19
/** map of builders to their last built state. */
20     public static final QualifiedName K_BUILD_LIST = new QualifiedName(ResourcesPlugin.PI_RESOURCES, "BuildMap"); //$NON-NLS-1$
21

22     /**
23      * Command line argument indicating a workspace refresh on startup is requested.
24      */

25     public static final String JavaDoc REFRESH_ON_STARTUP = "-refresh"; //$NON-NLS-1$
26

27     // resource info constants
28
static final long I_NULL_SYNC_INFO = -1;
29
30     // Useful flag masks for resource info states
31
static final int M_OPEN = 0x1;
32     static final int M_LOCAL_EXISTS = 0x2;
33     static final int M_PHANTOM = 0x8;
34     static final int M_USED = 0x10;
35     static final int M_TYPE = 0xF00;
36     static final int M_TYPE_START = 8;
37     static final int M_MARKERS_SNAP_DIRTY = 0x1000;
38     static final int M_SYNCINFO_SNAP_DIRTY = 0x2000;
39     /**
40      * Marks this resource as derived.
41      * @since 2.0
42      */

43     static final int M_DERIVED = 0x4000;
44     /**
45      * Marks this resource as a team-private member of its container.
46      * @since 2.0
47      */

48     static final int M_TEAM_PRIVATE_MEMBER = 0x8000;
49     /**
50      * Marks this resource as a linked resource.
51      * @since 2.1
52      */

53     static final int M_LINK = 0x10000;
54     /**
55      * The file has no content description.
56      * @since 3.0
57      */

58     static final int M_NO_CONTENT_DESCRIPTION = 0x20000;
59     /**
60      * The file has a default content description.
61      * @since 3.0
62      */

63     static final int M_DEFAULT_CONTENT_DESCRIPTION = 0x40000;
64
65     /**
66      * Marks this resource as having undiscovered children
67      * @since 3.1
68      */

69     static final int M_CHILDREN_UNKNOWN = 0x100000;
70
71     /**
72      * Set of flags that should be cleared when the contents for a file change.
73      * @since 3.0
74      */

75     static final int M_CONTENT_CACHE = M_NO_CONTENT_DESCRIPTION | M_DEFAULT_CONTENT_DESCRIPTION;
76     
77     static final int NULL_FLAG = -1;
78     
79     /**
80      * A private preference stored in a preference node to indicate the preference
81      * version that is used. This version identifier is used to handle preference
82      * migration when old preferences are loaded.
83      */

84     public static final String JavaDoc PREF_VERSION_KEY = "version"; //$NON-NLS-1$
85

86     /**
87      * A private preference stored in a preference node to indicate the preference
88      * version that is used. This version identifier is used to handle preference
89      * migration when old preferences are loaded.
90      */

91     public static final String JavaDoc PREF_VERSION = "1"; //$NON-NLS-1$
92

93     // Internal status codes
94
// Information Only [00-24]
95
// Warnings [25-74]
96
public static final int CRASH_DETECTED = 10035;
97     
98     // Errors [75-99]
99

100     public static final int PROJECT_SEGMENT_LENGTH = 1;
101     public static final int MINIMUM_FOLDER_SEGMENT_LENGTH = 2;
102     public static final int MINIMUM_FILE_SEGMENT_LENGTH = 2;
103
104     public static final int WORKSPACE_TREE_VERSION_1 = 67305985;
105     public static final int WORKSPACE_TREE_VERSION_2 = 67305986;
106
107     // helper constants for empty structures
108
public static final IProject[] EMPTY_PROJECT_ARRAY = new IProject[0];
109     public static final IResource[] EMPTY_RESOURCE_ARRAY = new IResource[0];
110     public static final IFileState[] EMPTY_FILE_STATES = new IFileState[0];
111 }
112
Popular Tags