/* * (non-Javadoc) * @see org.eclipse.core.resources.IEncodedStorage#getCharset() */ public String getCharset() throws CoreException { InputStream contents = getContents(); try { String charSet = SVNUIPlugin.getCharset(getName(), contents); return charSet; } catch (IOException e) { throw new SVNException( new Status( IStatus.ERROR, SVNUIPlugin.ID, IResourceStatus.FAILED_DESCRIBING_CONTENTS, Policy.bind("RemoteAnnotationStorage.1", getFullPath().toString()), e)); //$NON-NLS-1$ } finally { try { contents.close(); } catch (IOException e1) { // Ignore } } }
/** @see org.tigris.subversion.subclipse.ui.actions.SVNAction#getErrorTitle() */ protected String getErrorTitle() { return Policy.bind("ShowHistoryAction.showHistory"); // $NON-NLS-1$ }