KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > core > IJavaModelStatusConstants


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 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  * TODO missing 2.1 and subsequent contributions
12  * COMPILER_FAILURE
13  *******************************************************************************/

14 package org.eclipse.jdt.core;
15
16 /**
17  * Status codes used with Java model status objects.
18  * <p>
19  * This interface declares constants only; it is not intended to be implemented
20  * or extended.
21  * </p>
22  *
23  * @see IJavaModelStatus
24  * @see org.eclipse.core.runtime.IStatus#getCode()
25  */

26 public interface IJavaModelStatusConstants {
27
28     /**
29      * Status constant indicating that a container path was resolved
30      * to invalid entries (null or container).
31      *
32      * @since 2.0
33      */

34     public static final int INVALID_CP_CONTAINER_ENTRY = 962;
35
36     /**
37      * Status constant indicating that a container path was not resolvable
38      * indicating either the referred container is undefined, unbound.
39      *
40      * @since 2.0
41      */

42     public static final int CP_CONTAINER_PATH_UNBOUND = 963;
43
44     /**
45      * Status constant indicating that a classpath entry was invalid
46      */

47     public static final int INVALID_CLASSPATH = 964;
48
49     /**
50      * Status constant indicating that a variable path was not resolvable
51      * indicating either the referred variable is undefined, unbound or the resolved
52      * variable path does not correspond to an existing file or folder.
53      */

54     public static final int CP_VARIABLE_PATH_UNBOUND = 965;
55
56     /**
57      * Status constant indicating a core exception occurred.
58      * Use <code>getException</code> to retrieve a <code>CoreException</code>.
59      */

60     public static final int CORE_EXCEPTION = 966;
61     
62     /**
63      * Status constant indicating one or more of the elements
64      * supplied are not of a valid type for the operation to
65      * process.
66      * The element(s) can be retrieved using <code>getElements</code> on the status object.
67      */

68     public static final int INVALID_ELEMENT_TYPES = 967;
69
70     /**
71      * Status constant indicating that no elements were
72      * provided to the operation for processing.
73      */

74     public static final int NO_ELEMENTS_TO_PROCESS = 968;
75
76     /**
77      * Status constant indicating that one or more elements
78      * supplied do not exist.
79      * The element(s) can be retrieved using <code>getElements</code> on the status object.
80      *
81      * @see IJavaModelStatus#isDoesNotExist()
82      */

83     public static final int ELEMENT_DOES_NOT_EXIST = 969;
84
85     /**
86      * Status constant indicating that a <code>null</code> path was
87      * supplied to the operation.
88      */

89     public static final int NULL_PATH = 970;
90     
91     /**
92      * Status constant indicating that a path outside of the
93      * project was supplied to the operation. The path can be retrieved using
94      * <code>getPath</code> on the status object.
95      */

96     public static final int PATH_OUTSIDE_PROJECT = 971;
97     
98     /**
99      * Status constant indicating that a relative path
100      * was supplied to the operation when an absolute path is
101      * required. The path can be retrieved using <code>getPath</code> on the
102      * status object.
103      */

104     public static final int RELATIVE_PATH = 972;
105     
106     /**
107      * Status constant indicating that a path specifying a device
108      * was supplied to the operation when a path with no device is
109      * required. The path can be retrieved using <code>getPath</code> on the
110      * status object.
111      */

112     public static final int DEVICE_PATH = 973;
113     
114     /**
115      * Status constant indicating that a string
116      * was supplied to the operation that was <code>null</code>.
117      */

118     public static final int NULL_STRING = 974;
119     
120     /**
121      * Status constant indicating that the operation encountered
122      * a read-only element.
123      * The element(s) can be retrieved using <code>getElements</code> on the status object.
124      */

125     public static final int READ_ONLY = 976;
126     
127     /**
128      * Status constant indicating that a naming collision would occur
129      * if the operation proceeded.
130      */

131     public static final int NAME_COLLISION = 977;
132     
133     /**
134      * Status constant indicating that a destination provided for a copy/move/rename operation
135      * is invalid.
136      * The destination element can be retrieved using <code>getElements</code> on the status object.
137      */

138     public static final int INVALID_DESTINATION = 978;
139     
140     /**
141      * Status constant indicating that a path provided to an operation
142      * is invalid. The path can be retrieved using <code>getPath</code> on the
143      * status object.
144      */

145     public static final int INVALID_PATH = 979;
146     
147     /**
148      * Status constant indicating the given source position is out of bounds.
149      */

150     public static final int INDEX_OUT_OF_BOUNDS = 980;
151     
152     /**
153      * Status constant indicating there is an update conflict
154      * for a working copy. The compilation unit on which the
155      * working copy is based has changed since the working copy
156      * was created.
157      */

158     public static final int UPDATE_CONFLICT = 981;
159
160     /**
161      * Status constant indicating that <code>null</code> was specified
162      * as a name argument.
163      */

164     public static final int NULL_NAME = 982;
165
166     /**
167      * Status constant indicating that a name provided is not syntactically correct.
168      * The name can be retrieved from <code>getString</code>.
169      */

170     public static final int INVALID_NAME = 983;
171
172     /**
173      * Status constant indicating that the specified contents
174      * are not valid.
175      */

176     public static final int INVALID_CONTENTS = 984;
177
178     /**
179      * Status constant indicating that an <code>java.io.IOException</code>
180      * occurred.
181      */

182     public static final int IO_EXCEPTION = 985;
183
184     /**
185      * Status constant indicating that a <code>DOMException</code>
186      * occurred.
187      */

188     public static final int DOM_EXCEPTION = 986;
189
190     /**
191      * Status constant indicating that a <code>TargetException</code>
192      * occurred.
193      */

194     public static final int TARGET_EXCEPTION = 987;
195
196     /**
197      * Status constant indicating that the Java builder
198      * could not be initialized.
199      */

200     public static final int BUILDER_INITIALIZATION_ERROR = 990;
201
202     /**
203      * Status constant indicating that the Java builder's last built state
204      * could not be serialized or deserialized.
205      */

206     public static final int BUILDER_SERIALIZATION_ERROR = 991;
207
208     /**
209      * Status constant indicating that an error was encountered while
210      * trying to evaluate a code snippet, or other item.
211      */

212     public static final int EVALUATION_ERROR = 992;
213
214     /**
215      * Status constant indicating that a sibling specified is not valid.
216      */

217     public static final int INVALID_SIBLING = 993;
218
219     /**
220      * Status indicating that a Java element could not be created because
221      * the underlying resource is invalid.
222      * @see JavaCore
223      */

224      public static final int INVALID_RESOURCE = 995;
225
226     /**
227      * Status indicating that a Java element could not be created because
228      * the underlying resource is not of an appropriate type.
229      * @see JavaCore
230      */

231      public static final int INVALID_RESOURCE_TYPE = 996;
232
233     /**
234      * Status indicating that a Java element could not be created because
235      * the project owning underlying resource does not have the Java nature.
236      * @see JavaCore
237      */

238      public static final int INVALID_PROJECT = 997;
239
240     /**
241      * Status indicating that the package declaration in a <code>ICompilationUnit</code>
242      * does not correspond to the <code>IPackageFragment</code> it belongs to.
243      * The <code>getString</code> method of the associated status object
244      * gives the name of the package in which the <code>ICompilationUnit</code> is
245      * declared.
246      */

247      public static final int INVALID_PACKAGE = 998;
248
249     /**
250      * Status indicating that the corresponding resource has no local contents yet.
251      * This might happen when attempting to use a resource before its contents
252      * has been made locally available.
253      */

254      public static final int NO_LOCAL_CONTENTS = 999;
255      
256      /**
257       * Status indicating that a .classpath file is ill-formed, and thus cannot
258       * be read/written successfully.
259       * @since 2.1
260       */

261      public static final int INVALID_CLASSPATH_FILE_FORMAT = 1000;
262
263      /**
264       * Status indicating that a project is involved in a build path cycle.
265       * @since 2.1
266       */

267      public static final int CLASSPATH_CYCLE = 1001;
268      
269     /**
270      * Status constant indicating that an inclusion or an exclusion pattern got specified
271      * on a classpath source entry, though it was explicitely disabled
272      * according to its project preference settings.
273      * @see org.eclipse.jdt.core.IJavaProject#getOptions(boolean)
274      * @since 2.1
275      */

276     public static final int DISABLED_CP_EXCLUSION_PATTERNS = 1002;
277
278     /**
279      * Status constant indicating that a specific output location got associated
280      * with a source entry, though it was explicitely disabled according to its project
281      * preference settings.
282      * @see org.eclipse.jdt.core.IJavaProject#getOptions(boolean)
283      * @since 2.1
284      */

285     public static final int DISABLED_CP_MULTIPLE_OUTPUT_LOCATIONS = 1003;
286     
287     /**
288      * Status constant indicating that a project is prerequisiting some library for which the
289      * classfile JDK version level is more recent than the project JDK target level setting.
290      * This can indicate some binary incompatibility issues later on.
291      * @since 3.0
292      */

293     public static final int INCOMPATIBLE_JDK_LEVEL = 1004;
294     
295     /**
296      * Status constant indicating that a compiler failure occurred.
297      * @since 3.0
298      */

299     public static final int COMPILER_FAILURE = 1005;
300     /**
301      * Status constant indicating that an element is not on its project's claspath.
302      * @since 3.1
303      */

304     public static final int ELEMENT_NOT_ON_CLASSPATH = 1006;
305     /**
306      * Status constant indicating that a compiler option is invalid.
307      * @since 3.1
308      */

309 // public static final int INVALID_COMPILER_OPTION = 1007;
310
/**
311      * <p>Status constant indicating that the attached javadoc content cannot be retrieved due to multiple reasons:
312      * invalid url, timed-out,...</p>
313      *
314      * @since 3.2
315      */

316     public static final int CANNOT_RETRIEVE_ATTACHED_JAVADOC = 1008;
317     /**
318      * <p>Status constant indicating that the attached javadoc content format is unrecognized.</p>
319      *
320      * @since 3.2
321      */

322     public static final int UNKNOWN_JAVADOC_FORMAT = 1009;
323     /**
324      * <p>Status constant indicating that the variable is deprecated.</p>
325      *
326      * @since 3.3
327      */

328     public static final int DEPRECATED_VARIABLE = 1010;
329 }
330
Popular Tags