IStatus s= new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IJavaStatusConstants.INTERNAL_ERROR, x.getMessage(), x);
String message= (x != null ? x.getMessage() : ""); IStatus s= new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IJavaStatusConstants.INTERNAL_ERROR, message, x);
	private TextBuffer createFromFile(IFile file) throws CoreException {		IDocument document;		// Fix for http://dev.eclipse.org/bugs/show_bug.cgi?id=19319		InputStream stream= file.getContents();		InputStreamReader in= null;		try {					document= new Document();			in= new InputStreamReader(new BufferedInputStream(stream), ResourcesPlugin.getEncoding());			StringBuffer buffer= new StringBuffer();			char[] readBuffer= new char[2048];			int n= in.read(readBuffer);			while (n > 0) {				buffer.append(readBuffer, 0, n);				n= in.read(readBuffer);			}			document.set(buffer.toString());			return new TextBuffer(document);		} catch (IOException x) {			IStatus s= new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IJavaStatusConstants.INTERNAL_ERROR, x.getMessage(), x);			throw new CoreException(s);		} finally {			IOCloser.perform(in, stream);		}	}