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
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.core;
14 * Status codes used with Java model status objects.
16 * This interface declares constants only; it is not intended to be implemented
20 * @see IJavaModelStatus
21 * @see org.eclipse.core.runtime.IStatus#getCode()
23 public interface IJavaModelStatusConstants {
26 * Status constant indicating that a container path was resolved to invalid
27 * entries (null or container).
31 public static final int INVALID_CP_CONTAINER_ENTRY = 962;
34 * Status constant indicating that a container path was not resolvable
35 * indicating either the referred container is undefined, unbound.
39 public static final int CP_CONTAINER_PATH_UNBOUND = 963;
42 * Status constant indicating that a classpath entry was invalid
44 public static final int INVALID_CLASSPATH = 964;
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.
51 public static final int CP_VARIABLE_PATH_UNBOUND = 965;
54 * Status constant indicating a core exception occurred. Use
55 * <code>getException</code> to retrieve a <code>CoreException</code>.
57 public static final int CORE_EXCEPTION = 966;
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.
64 public static final int INVALID_ELEMENT_TYPES = 967;
67 * Status constant indicating that no elements were provided to the
68 * operation for processing.
70 public static final int NO_ELEMENTS_TO_PROCESS = 968;
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.
77 * @see IJavaModelStatus#isDoesNotExist
79 public static final int ELEMENT_DOES_NOT_EXIST = 969;
82 * Status constant indicating that a <code>null</code> path was supplied
85 public static final int NULL_PATH = 970;
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.
92 public static final int PATH_OUTSIDE_PROJECT = 971;
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.
99 public static final int RELATIVE_PATH = 972;
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.
106 public static final int DEVICE_PATH = 973;
109 * Status constant indicating that a string was supplied to the operation
110 * that was <code>null</code>.
112 public static final int NULL_STRING = 974;
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.
119 public static final int READ_ONLY = 976;
122 * Status constant indicating that a naming collision would occur if the
123 * operation proceeded.
125 public static final int NAME_COLLISION = 977;
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.
132 public static final int INVALID_DESTINATION = 978;
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
139 public static final int INVALID_PATH = 979;
142 * Status constant indicating the given source position is out of bounds.
144 public static final int INDEX_OUT_OF_BOUNDS = 980;
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.
151 public static final int UPDATE_CONFLICT = 981;
154 * Status constant indicating that <code>null</code> was specified as a
157 public static final int NULL_NAME = 982;
160 * Status constant indicating that a name provided is not syntactically
161 * correct. The name can be retrieved from <code>getString</code>.
163 public static final int INVALID_NAME = 983;
166 * Status constant indicating that the specified contents are not valid.
168 public static final int INVALID_CONTENTS = 984;
171 * Status constant indicating that an <code>java.io.IOException</code>
174 public static final int IO_EXCEPTION = 985;
177 * Status constant indicating that a <code>DOMException</code> occurred.
179 public static final int DOM_EXCEPTION = 986;
182 * Status constant indicating that a <code>TargetException</code>
185 public static final int TARGET_EXCEPTION = 987;
188 * Status constant indicating that the Java builder could not be
191 public static final int BUILDER_INITIALIZATION_ERROR = 990;
194 * Status constant indicating that the Java builder's last built state could
195 * not be serialized or deserialized.
197 public static final int BUILDER_SERIALIZATION_ERROR = 991;
200 * Status constant indicating that an error was encountered while trying to
201 * evaluate a code snippet, or other item.
203 public static final int EVALUATION_ERROR = 992;
206 * Status constant indicating that a sibling specified is not valid.
208 public static final int INVALID_SIBLING = 993;
211 * Status indicating that a Java element could not be created because the
212 * underlying resource is invalid.
216 public static final int INVALID_RESOURCE = 995;
219 * Status indicating that a Java element could not be created because the
220 * underlying resource is not of an appropriate type.
224 public static final int INVALID_RESOURCE_TYPE = 996;
227 * Status indicating that a Java element could not be created because the
228 * project owning underlying resource does not have the Java nature.
232 public static final int INVALID_PROJECT = 997;
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.
241 public static final int INVALID_PACKAGE = 998;
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.
248 public static final int NO_LOCAL_CONTENTS = 999;
251 * Status indicating that a .classpath file is ill-formed, and thus cannot
252 * be read/written successfully.
256 public static final int INVALID_CLASSPATH_FILE_FORMAT = 1000;
259 * Status indicating that a project is involved in a build path cycle.
263 public static final int CLASSPATH_CYCLE = 1001;
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.
270 * @see net.sourceforge.phpdt.core.IJavaProject#getOptions(boolean)
273 public static final int DISABLED_CP_EXCLUSION_PATTERNS = 1002;
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.
280 * @see net.sourceforge.phpdt.core.IJavaProject#getOptions(boolean)
283 public static final int DISABLED_CP_MULTIPLE_OUTPUT_LOCATIONS = 1003;
286 * Status constant indicating that a compiler failure occurred.
290 public static final int COMPILER_FAILURE = 1005;