b0895228ae493b0894cd4957cbd801b69d7e1e76
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / core / IJavaModelStatusConstants.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.core;
12
13 /**
14  * Status codes used with Java model status objects.
15  * <p>
16  * This interface declares constants only; it is not intended to be implemented
17  * or extended.
18  * </p>
19  *
20  * @see IJavaModelStatus
21  * @see org.eclipse.core.runtime.IStatus#getCode()
22  */
23 public interface IJavaModelStatusConstants {
24
25         /**
26          * Status constant indicating that a container path was resolved
27          * to invalid entries (null or container).
28          * 
29          * @since 2.0
30          */
31         public static final int INVALID_CP_CONTAINER_ENTRY = 962;
32
33         /**
34          * Status constant indicating that a container path was not resolvable
35          * indicating either the referred container is undefined, unbound.
36          * 
37          * @since 2.0
38          */
39         public static final int CP_CONTAINER_PATH_UNBOUND = 963;
40
41         /**
42          * Status constant indicating that a classpath entry was invalid
43          */
44         public static final int INVALID_CLASSPATH = 964;
45
46         /**
47          * Status constant indicating that a variable path was not resolvable
48          * indicating either the referred variable is undefined, unbound or the resolved
49          * variable path does not correspond to an existing file or folder.
50          */
51         public static final int CP_VARIABLE_PATH_UNBOUND = 965;
52
53         /**
54          * Status constant indicating a core exception occurred.
55          * Use <code>getException</code> to retrieve a <code>CoreException</code>.
56          */
57         public static final int CORE_EXCEPTION = 966;
58     
59         /**
60          * Status constant indicating one or more of the elements
61          * supplied are not of a valid type for the operation to
62          * process. 
63          * The element(s) can be retrieved using <code>getElements</code> on the status object.
64          */
65         public static final int INVALID_ELEMENT_TYPES = 967;
66
67         /**
68          * Status constant indicating that no elements were
69          * provided to the operation for processing.
70          */
71         public static final int NO_ELEMENTS_TO_PROCESS = 968;
72
73         /**
74          * Status constant indicating that one or more elements
75          * supplied do not exist. 
76          * The element(s) can be retrieved using <code>getElements</code> on the status object.
77          *
78          * @see IJavaModelStatus#isDoesNotExist
79          */
80         public static final int ELEMENT_DOES_NOT_EXIST = 969;
81
82         /**
83          * Status constant indicating that a <code>null</code> path was
84          * supplied to the operation.
85          */
86         public static final int NULL_PATH = 970;
87     
88         /**
89          * Status constant indicating that a path outside of the
90          * project was supplied to the operation. The path can be retrieved using 
91          * <code>getPath</code> on the status object.
92          */
93         public static final int PATH_OUTSIDE_PROJECT = 971;
94     
95         /**
96          * Status constant indicating that a relative path 
97          * was supplied to the operation when an absolute path is
98          * required. The path can be retrieved using <code>getPath</code> on the
99          * status object.
100          */
101         public static final int RELATIVE_PATH = 972;
102     
103         /**
104          * Status constant indicating that a path specifying a device
105          * was supplied to the operation when a path with no device is
106          * required. The path can be retrieved using <code>getPath</code> on the
107          * status object.
108          */
109         public static final int DEVICE_PATH = 973;
110     
111         /**
112          * Status constant indicating that a string
113          * was supplied to the operation that was <code>null</code>.
114          */
115         public static final int NULL_STRING = 974;
116     
117         /**
118          * Status constant indicating that the operation encountered
119          * a read-only element.
120          * The element(s) can be retrieved using <code>getElements</code> on the status object.
121          */
122         public static final int READ_ONLY = 976;
123     
124         /**
125          * Status constant indicating that a naming collision would occur
126          * if the operation proceeded.
127          */
128         public static final int NAME_COLLISION = 977;
129     
130         /**
131          * Status constant indicating that a destination provided for a copy/move/rename operation 
132          * is invalid. 
133          * The destination element can be retrieved using <code>getElements</code> on the status object.
134          */
135         public static final int INVALID_DESTINATION = 978;
136     
137         /**
138          * Status constant indicating that a path provided to an operation 
139          * is invalid. The path can be retrieved using <code>getPath</code> on the
140          * status object.
141          */
142         public static final int INVALID_PATH = 979;
143     
144         /**
145          * Status constant indicating the given source position is out of bounds.
146          */
147         public static final int INDEX_OUT_OF_BOUNDS = 980;
148     
149         /**
150          * Status constant indicating there is an update conflict
151          * for a working copy. The compilation unit on which the
152          * working copy is based has changed since the working copy
153          * was created.
154          */
155         public static final int UPDATE_CONFLICT = 981;
156
157         /**
158          * Status constant indicating that <code>null</code> was specified
159          * as a name argument.
160          */
161         public static final int NULL_NAME = 982;
162
163         /**
164          * Status constant indicating that a name provided is not syntactically correct.
165          * The name can be retrieved from <code>getString</code>.
166          */
167         public static final int INVALID_NAME = 983;
168
169         /**
170          * Status constant indicating that the specified contents
171          * are not valid.
172          */
173         public static final int INVALID_CONTENTS = 984;
174
175         /**
176          * Status constant indicating that an <code>java.io.IOException</code>
177          * occurred. 
178          */
179         public static final int IO_EXCEPTION = 985;
180
181         /**
182          * Status constant indicating that a <code>DOMException</code>
183          * occurred. 
184          */
185         public static final int DOM_EXCEPTION = 986;
186
187         /**
188          * Status constant indicating that a <code>TargetException</code>
189          * occurred. 
190          */
191         public static final int TARGET_EXCEPTION = 987;
192
193         /**
194          * Status constant indicating that the Java builder
195          * could not be initialized.
196          */
197         public static final int BUILDER_INITIALIZATION_ERROR = 990;
198
199         /**
200          * Status constant indicating that the Java builder's last built state
201          * could not be serialized or deserialized.
202          */
203         public static final int BUILDER_SERIALIZATION_ERROR = 991;
204
205         /**
206          * Status constant indicating that an error was encountered while
207          * trying to evaluate a code snippet, or other item.
208          */
209         public static final int EVALUATION_ERROR = 992;
210
211         /**
212          * Status constant indicating that a sibling specified is not valid.
213          */
214         public static final int INVALID_SIBLING = 993;
215
216         /**
217          * Status indicating that a Java element could not be created because
218          * the underlying resource is invalid.
219          * @see JavaCore
220          */
221          public static final int INVALID_RESOURCE = 995;
222
223         /**
224          * Status indicating that a Java element could not be created because
225          * the underlying resource is not of an appropriate type.
226          * @see JavaCore
227          */
228          public static final int INVALID_RESOURCE_TYPE = 996;
229
230         /**
231          * Status indicating that a Java element could not be created because
232          * the project owning underlying resource does not have the Java nature.
233          * @see JavaCore
234          */
235          public static final int INVALID_PROJECT = 997;
236
237         /**
238          * Status indicating that the package declaration in a <code>ICompilationUnit</code>
239          * does not correspond to the <code>IPackageFragment</code> it belongs to.
240          * The <code>getString</code> method of the associated status object
241          * gives the name of the package in which the <code>ICompilationUnit</code> is
242          * declared.
243          */
244          public static final int INVALID_PACKAGE = 998;
245
246         /**
247          * Status indicating that the corresponding resource has no local contents yet.
248          * This might happen when attempting to use a resource before its contents
249          * has been made locally available.
250          */
251          public static final int NO_LOCAL_CONTENTS = 999;
252          
253          /**
254           * Status indicating that a .classpath file is ill-formed, and thus cannot
255           * be read/written successfully.
256           * @since 2.1
257           */
258          public static final int INVALID_CLASSPATH_FILE_FORMAT = 1000;
259
260          /**
261           * Status indicating that a project is involved in a build path cycle.
262           * @since 2.1
263           */
264          public static final int CLASSPATH_CYCLE = 1001;
265          
266         /**
267          * Status constant indicating that an exclusion pattern got specified
268          * on a classpath source entry, though it was explicitely disabled 
269          * according to its project preference settings.
270          * @see org.eclipse.jdt.core.IJavaProject#getOptions(boolean)
271          * @since 2.1
272          */
273         public static final int DISABLED_CP_EXCLUSION_PATTERNS = 1002;
274
275         /**
276          * Status constant indicating that a specific output location got associated
277          * with a source entry, though it was explicitely disabled according to its project
278          * preference settings.
279          * @see org.eclipse.jdt.core.IJavaProject#getOptions(boolean)
280          * @since 2.1
281          */
282         public static final int DISABLED_CP_MULTIPLE_OUTPUT_LOCATIONS = 1003;
283         
284         /**
285          * Status constant indicating that a compiler failure occurred.
286          * @since 3.0
287          */
288         public static final int COMPILER_FAILURE        = 1005; 
289 }