Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion team/bundles/org.eclipse.compare/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.compare; singleton:=true
Bundle-Version: 3.11.600.qualifier
Bundle-Version: 3.11.700.qualifier
Bundle-Activator: org.eclipse.compare.internal.CompareUIPlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import org.eclipse.compare.CompareConfiguration;
import org.eclipse.compare.CompareEditorInput;
import org.eclipse.compare.CompareUI;
import org.eclipse.compare.IStreamContentAccessor;
import org.eclipse.compare.IEncodedStreamContentAccessor;
import org.eclipse.compare.ITypedElement;
import org.eclipse.compare.structuremergeviewer.DiffNode;
import org.eclipse.core.resources.IFile;
Expand Down Expand Up @@ -125,7 +125,7 @@ private void processComparison(IFile file, Shell parentShell) throws IOException
* @param parentShell The shell containing this window's controls
*/
private void showComparison(String source, String fileName, String clipboardContents, Shell parentShell) {
class ClipboardTypedElement implements ITypedElement, IStreamContentAccessor {
class ClipboardTypedElement implements ITypedElement, IEncodedStreamContentAccessor {
private final String name;
private final String content;

Expand All @@ -149,6 +149,11 @@ public String getType() {
return null;
}

@Override
public String getCharset() throws CoreException {
return "UTF-8"; //$NON-NLS-1$
}

@Override
public InputStream getContents() throws CoreException {
return new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8));
Expand Down
Loading