Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Weinand2004-02-10 04:56:39 -0500
committerAndre Weinand2004-02-10 04:56:39 -0500
commit5c205e059d2d0e67aa4d69ed74d0019f8333a327 (patch)
tree3146a532b4220f165a94a6f9d1691afff0bfcfb8 /examples
parent7f1321b76026463d61ff6378af53acaafb6861cb (diff)
downloadeclipse.platform.team-5c205e059d2d0e67aa4d69ed74d0019f8333a327.tar.gz
eclipse.platform.team-5c205e059d2d0e67aa4d69ed74d0019f8333a327.tar.xz
eclipse.platform.team-5c205e059d2d0e67aa4d69ed74d0019f8333a327.zip
Encoding support workv20040210a
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.compare.examples.xml/tests/org/eclipse/compare/examples/xml/TestXMLStructureCreator.java4
-rw-r--r--examples/org.eclipse.compare.examples/src/org/eclipse/compare/examples/structurecreator/Util.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/org.eclipse.compare.examples.xml/tests/org/eclipse/compare/examples/xml/TestXMLStructureCreator.java b/examples/org.eclipse.compare.examples.xml/tests/org/eclipse/compare/examples/xml/TestXMLStructureCreator.java
index 3baf14cb1..f8fb50b8e 100644
--- a/examples/org.eclipse.compare.examples.xml/tests/org/eclipse/compare/examples/xml/TestXMLStructureCreator.java
+++ b/examples/org.eclipse.compare.examples.xml/tests/org/eclipse/compare/examples/xml/TestXMLStructureCreator.java
@@ -17,7 +17,7 @@ import junit.framework.*;
import org.eclipse.jface.text.Document;
-import org.eclipse.compare.IStreamContentAccessorExtension2;
+import org.eclipse.compare.IEncodedStreamContentAccessor;
import org.eclipse.compare.examples.xml.XMLChildren;
import org.eclipse.compare.examples.xml.XMLNode;
import org.eclipse.compare.examples.xml.XMLStructureCreator;
@@ -28,7 +28,7 @@ public class TestXMLStructureCreator extends TestCase {
Document fdoc;
XMLStructureCreator fsc;
- public class TestStream implements IStreamContentAccessorExtension2 {
+ public class TestStream implements IEncodedStreamContentAccessor {
String fString;
public TestStream(String string) {
diff --git a/examples/org.eclipse.compare.examples/src/org/eclipse/compare/examples/structurecreator/Util.java b/examples/org.eclipse.compare.examples/src/org/eclipse/compare/examples/structurecreator/Util.java
index 13694220c..b828af862 100644
--- a/examples/org.eclipse.compare.examples/src/org/eclipse/compare/examples/structurecreator/Util.java
+++ b/examples/org.eclipse.compare.examples/src/org/eclipse/compare/examples/structurecreator/Util.java
@@ -14,7 +14,7 @@ import java.io.*;
import java.util.*;
import org.eclipse.compare.IStreamContentAccessor;
-import org.eclipse.compare.IStreamContentAccessorExtension2;
+import org.eclipse.compare.IEncodedStreamContentAccessor;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
@@ -70,8 +70,8 @@ public class Util {
static String readString(IStreamContentAccessor sa) throws CoreException {
InputStream is= sa.getContents();
String encoding= null;
- if (sa instanceof IStreamContentAccessorExtension2)
- encoding= ((IStreamContentAccessorExtension2)sa).getCharset();
+ if (sa instanceof IEncodedStreamContentAccessor)
+ encoding= ((IEncodedStreamContentAccessor)sa).getCharset();
if (encoding == null)
encoding= ResourcesPlugin.getEncoding();
return readString(is, encoding);

Back to the top