1 /*******************************************************************************
2 * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v0.5
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v05.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
27 * to invalid 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 resolved
49 * 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.
55 * Use <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
61 * supplied are not of a valid type for the operation to
63 * The element(s) can be retrieved using <code>getElements</code> on the status object.
65 public static final int INVALID_ELEMENT_TYPES = 967;
68 * Status constant indicating that no elements were
69 * provided to the operation for processing.
71 public static final int NO_ELEMENTS_TO_PROCESS = 968;
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.
78 * @see IJavaModelStatus#isDoesNotExist
80 public static final int ELEMENT_DOES_NOT_EXIST = 969;
83 * Status constant indicating that a <code>null</code> path was
84 * supplied to the operation.
86 public static final int NULL_PATH = 970;
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.
93 public static final int PATH_OUTSIDE_PROJECT = 971;
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
101 public static final int RELATIVE_PATH = 972;
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
109 public static final int DEVICE_PATH = 973;
112 * Status constant indicating that a string
113 * was supplied to the operation that was <code>null</code>.
115 public static final int NULL_STRING = 974;
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.
122 public static final int READ_ONLY = 976;
125 * Status constant indicating that a naming collision would occur
126 * if the operation proceeded.
128 public static final int NAME_COLLISION = 977;
131 * Status constant indicating that a destination provided for a copy/move/rename operation
133 * The destination element can be retrieved using <code>getElements</code> on the status object.
135 public static final int INVALID_DESTINATION = 978;
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
142 public static final int INVALID_PATH = 979;
145 * Status constant indicating the given source position is out of bounds.
147 public static final int INDEX_OUT_OF_BOUNDS = 980;
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
155 public static final int UPDATE_CONFLICT = 981;
158 * Status constant indicating that <code>null</code> was specified
159 * as a name argument.
161 public static final int NULL_NAME = 982;
164 * Status constant indicating that a name provided is not syntactically correct.
165 * The name can be retrieved from <code>getString</code>.
167 public static final int INVALID_NAME = 983;
170 * Status constant indicating that the specified contents
173 public static final int INVALID_CONTENTS = 984;
176 * Status constant indicating that an <code>java.io.IOException</code>
179 public static final int IO_EXCEPTION = 985;
182 * Status constant indicating that a <code>DOMException</code>
185 public static final int DOM_EXCEPTION = 986;
188 * Status constant indicating that a <code>TargetException</code>
191 public static final int TARGET_EXCEPTION = 987;
194 * Status constant indicating that the Java builder
195 * could not be initialized.
197 public static final int BUILDER_INITIALIZATION_ERROR = 990;
200 * Status constant indicating that the Java builder's last built state
201 * could not be serialized or deserialized.
203 public static final int BUILDER_SERIALIZATION_ERROR = 991;
206 * Status constant indicating that an error was encountered while
207 * trying to evaluate a code snippet, or other item.
209 public static final int EVALUATION_ERROR = 992;
212 * Status constant indicating that a sibling specified is not valid.
214 public static final int INVALID_SIBLING = 993;
217 * Status indicating that a Java element could not be created because
218 * the underlying resource is invalid.
221 public static final int INVALID_RESOURCE = 995;
224 * Status indicating that a Java element could not be created because
225 * the underlying resource is not of an appropriate type.
228 public static final int INVALID_RESOURCE_TYPE = 996;
231 * Status indicating that a Java element could not be created because
232 * the project owning underlying resource does not have the Java nature.
235 public static final int INVALID_PROJECT = 997;
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
244 public static final int INVALID_PACKAGE = 998;
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.
251 public static final int NO_LOCAL_CONTENTS = 999;