throw new CoreException(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IJavaStatusConstants.INTERNAL_ERROR, ex.getLocalizedMessage(), ex));
String message= (ex.getLocalizedMessage() != null ? ex.getLocalizedMessage() : ""); throw new CoreException(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IJavaStatusConstants.INTERNAL_ERROR, message, ex));
    public void close() throws CoreException {    	if (fOutputStream != null) {			try {				fOutputStream.close();			} catch (IOException ex) {				throw new CoreException(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IJavaStatusConstants.INTERNAL_ERROR, ex.getLocalizedMessage(), ex));			}    	}	}