1) Moved net.sourceforge.phpeclipse.ui\src\net\sourceforge\phpdt back to net.sourcefo...
[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 to invalid
27          * 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
49          * resolved 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. Use
55          * <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 supplied are not
61          * of a valid type for the operation to process. The element(s) can be
62          * retrieved using <code>getElements</code> on the status object.
63          */
64         public static final int INVALID_ELEMENT_TYPES = 967;
65
66         /**
67          * Status constant indicating that no elements were provided to the
68          * operation for processing.
69          */
70         public static final int NO_ELEMENTS_TO_PROCESS = 968;
71
72         /**
73          * Status constant indicating that one or more elements supplied do not
74          * exist. The element(s) can be retrieved using <code>getElements</code>
75          * on the status object.
76          * 
77          * @see IJavaModelStatus#isDoesNotExist
78          */
79         public static final int ELEMENT_DOES_NOT_EXIST = 969;
80
81         /**
82          * Status constant indicating that a <code>null</code> path was supplied
83          * to the operation.
84          */
85         public static final int NULL_PATH = 970;
86
87         /**
88          * Status constant indicating that a path outside of the project was
89          * supplied to the operation. The path can be retrieved using
90          * <code>getPath</code> on the status object.
91          */
92         public static final int PATH_OUTSIDE_PROJECT = 971;
93
94         /**
95          * Status constant indicating that a relative path was supplied to the
96          * operation when an absolute path is required. The path can be retrieved
97          * using <code>getPath</code> on the status object.
98          */
99         public static final int RELATIVE_PATH = 972;
100
101         /**
102          * Status constant indicating that a path specifying a device was supplied
103          * to the operation when a path with no device is required. The path can be
104          * retrieved using <code>getPath</code> on the status object.
105          */
106         public static final int DEVICE_PATH = 973;
107
108         /**
109          * Status constant indicating that a string was supplied to the operation
110          * that was <code>null</code>.
111          */
112         public static final int NULL_STRING = 974;
113
114         /**
115          * Status constant indicating that the operation encountered a read-only
116          * element. The element(s) can be retrieved using <code>getElements</code>
117          * on the status object.
118          */
119         public static final int READ_ONLY = 976;
120
121         /**
122          * Status constant indicating that a naming collision would occur if the
123          * operation proceeded.
124          */
125         public static final int NAME_COLLISION = 977;
126
127         /**
128          * Status constant indicating that a destination provided for a
129          * copy/move/rename operation is invalid. The destination element can be
130          * retrieved using <code>getElements</code> on the status object.
131          */
132         public static final int INVALID_DESTINATION = 978;
133
134         /**
135          * Status constant indicating that a path provided to an operation is
136          * invalid. The path can be retrieved using <code>getPath</code> on the
137          * status object.
138          */
139         public static final int INVALID_PATH = 979;
140
141         /**
142          * Status constant indicating the given source position is out of bounds.
143          */
144         public static final int INDEX_OUT_OF_BOUNDS = 980;
145
146         /**
147          * Status constant indicating there is an update conflict for a working
148          * copy. The compilation unit on which the working copy is based has changed
149          * since the working copy was created.
150          */
151         public static final int UPDATE_CONFLICT = 981;
152
153         /**
154          * Status constant indicating that <code>null</code> was specified as a
155          * name argument.
156          */
157         public static final int NULL_NAME = 982;
158
159         /**
160          * Status constant indicating that a name provided is not syntactically
161          * correct. The name can be retrieved from <code>getString</code>.
162          */
163         public static final int INVALID_NAME = 983;
164
165         /**
166          * Status constant indicating that the specified contents are not valid.
167          */
168         public static final int INVALID_CONTENTS = 984;
169
170         /**
171          * Status constant indicating that an <code>java.io.IOException</code>
172          * occurred.
173          */
174         public static final int IO_EXCEPTION = 985;
175
176         /**
177          * Status constant indicating that a <code>DOMException</code> occurred.
178          */
179         public static final int DOM_EXCEPTION = 986;
180
181         /**
182          * Status constant indicating that a <code>TargetException</code>
183          * occurred.
184          */
185         public static final int TARGET_EXCEPTION = 987;
186
187         /**
188          * Status constant indicating that the Java builder could not be
189          * initialized.
190          */
191         public static final int BUILDER_INITIALIZATION_ERROR = 990;
192
193         /**
194          * Status constant indicating that the Java builder's last built state could
195          * not be serialized or deserialized.
196          */
197         public static final int BUILDER_SERIALIZATION_ERROR = 991;
198
199         /**
200          * Status constant indicating that an error was encountered while trying to
201          * evaluate a code snippet, or other item.
202          */
203         public static final int EVALUATION_ERROR = 992;
204
205         /**
206          * Status constant indicating that a sibling specified is not valid.
207          */
208         public static final int INVALID_SIBLING = 993;
209
210         /**
211          * Status indicating that a Java element could not be created because the
212          * underlying resource is invalid.
213          * 
214          * @see JavaCore
215          */
216         public static final int INVALID_RESOURCE = 995;
217
218         /**
219          * Status indicating that a Java element could not be created because the
220          * underlying resource is not of an appropriate type.
221          * 
222          * @see JavaCore
223          */
224         public static final int INVALID_RESOURCE_TYPE = 996;
225
226         /**
227          * Status indicating that a Java element could not be created because the
228          * project owning underlying resource does not have the Java nature.
229          * 
230          * @see JavaCore
231          */
232         public static final int INVALID_PROJECT = 997;
233
234         /**
235          * Status indicating that the package declaration in a
236          * <code>ICompilationUnit</code> does not correspond to the
237          * <code>IPackageFragment</code> it belongs to. The <code>getString</code>
238          * method of the associated status object gives the name of the package in
239          * which the <code>ICompilationUnit</code> is declared.
240          */
241         public static final int INVALID_PACKAGE = 998;
242
243         /**
244          * Status indicating that the corresponding resource has no local contents
245          * yet. This might happen when attempting to use a resource before its
246          * contents has been made locally available.
247          */
248         public static final int NO_LOCAL_CONTENTS = 999;
249
250         /**
251          * Status indicating that a .classpath file is ill-formed, and thus cannot
252          * be read/written successfully.
253          * 
254          * @since 2.1
255          */
256         public static final int INVALID_CLASSPATH_FILE_FORMAT = 1000;
257
258         /**
259          * Status indicating that a project is involved in a build path cycle.
260          * 
261          * @since 2.1
262          */
263         public static final int CLASSPATH_CYCLE = 1001;
264
265         /**
266          * Status constant indicating that an exclusion pattern got specified on a
267          * classpath source entry, though it was explicitely disabled according to
268          * its project preference settings.
269          * 
270          * @see net.sourceforge.phpdt.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
278          * project preference settings.
279          * 
280          * @see net.sourceforge.phpdt.core.IJavaProject#getOptions(boolean)
281          * @since 2.1
282          */
283         public static final int DISABLED_CP_MULTIPLE_OUTPUT_LOCATIONS = 1003;
284
285         /**
286          * Status constant indicating that a compiler failure occurred.
287          * 
288          * @since 3.0
289          */
290         public static final int COMPILER_FAILURE = 1005;
291 }