Copyright (c) 2000, 2008 IBM Corporation and others. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-2.0/ SPDX-License-Identifier: EPL-2.0 Contributors: IBM Corporation - initial API and implementation
/******************************************************************************* * Copyright (c) 2000, 2008 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/
package org.eclipse.core.filebuffers; import java.nio.charset.UnmappableCharacterException;
This interface provides the list of status codes that are used by the file buffer plug-in when it throws CoreException.

Clients are not supposed to implement that interface.

Since:3.1
@noimplementThis interface is not intended to be implemented by clients.
@noextendThis interface is not intended to be extended by clients.
/** * This interface provides the list of status codes that are used by the file * buffer plug-in when it throws {@link org.eclipse.core.runtime.CoreException}. * <p> * Clients are not supposed to implement that interface. * </p> * * @since 3.1 * @noimplement This interface is not intended to be implemented by clients. * @noextend This interface is not intended to be extended by clients. */
public interface IFileBufferStatusCodes {
Changing the content of a file buffer failed.
/** * Changing the content of a file buffer failed. */
int CONTENT_CHANGE_FAILED= 1;
Creation of file buffer failed.
/** * Creation of file buffer failed. */
int CREATION_FAILED= 2;
File buffer status code indicating that an operation failed because a character could not be mapped using the given charset.

Value: 3

See Also:
Since:3.2
/** * File buffer status code indicating that an operation failed * because a character could not be mapped using the given * charset. * <p> * Value: {@value}</p> * * @see UnmappableCharacterException * @since 3.2 */
int CHARSET_MAPPING_FAILED= 3;
File buffer status code indicating that state validation failed.

Value: 4

See Also:
Since:3.3
/** * File buffer status code indicating that state * validation failed. * <p> * Value: {@value}</p> * * @see IFileBuffer#validateState(org.eclipse.core.runtime.IProgressMonitor, Object) * @since 3.3 */
int STATE_VALIDATION_FAILED= 4;
File buffer status code indicating that a resource is marked derived.

Value: 5

See Also:
Since:3.3
/** * File buffer status code indicating that * a resource is marked derived. * <p> * Value: {@value}</p> * * @see org.eclipse.core.resources.IResource#isDerived() * @since 3.3 */
int DERIVED_FILE= 5; }