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 package org.eclipse.core.filebuffers; 12 13 import java.nio.charset.UnmappableCharacterException; 14 15 /** 16 * This interface provides the list of status codes that are used by the file 17 * buffer plug-in when it throws {@link org.eclipse.core.runtime.CoreException}. 18 * <p> 19 * Clients are not supposed to implement that interface. 20 * </p> 21 * 22 * @since 3.1 23 */ 24 public interface IFileBufferStatusCodes { 25 26 /** 27 * Changing the content of a file buffer failed. 28 */ 29 int CONTENT_CHANGE_FAILED= 1; 30 31 /** 32 * Creation of file buffer failed. 33 */ 34 int CREATION_FAILED= 2; 35 36 /** 37 * File buffer status code indicating that an operation failed 38 * because a character could not be mapped using the given 39 * charset. 40 * <p> 41 * Value: {@value}</p> 42 * 43 * @see UnmappableCharacterException 44 * @since 3.2 45 */ 46 int CHARSET_MAPPING_FAILED= 3; 47 48 /** 49 * File buffer status code indicating that state 50 * validation failed. 51 * <p> 52 * Value: {@value}</p> 53 * 54 * @see IFileBuffer#validateState(org.eclipse.core.runtime.IProgressMonitor, Object) 55 * @since 3.3 56 */ 57 int STATE_VALIDATION_FAILED= 4; 58 59 /** 60 * File buffer status code indicating that 61 * a resource is marked derived. 62 * <p> 63 * Value: {@value}</p> 64 * 65 * @see org.eclipse.core.resources.IResource#isDerived() 66 * @since 3.3 67 */ 68 int DERIVED_FILE= 5; 69 70 } 71