X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.tests.modelled.ui%2Fsrc%2Forg%2Fsimantics%2Ftests%2Fmodelled%2Fui%2FSTSTestEditorInput.java;h=02ded78809c37abd5b7e7b61dc06be20d3fc3960;hp=d057daccb45d42c18036da9c1d465899ae6d2196;hb=91682baa9a8252390f09b80fd724f47e5957b234;hpb=3826e289058a51d09310b7ba1251e959dc0ed3d0 diff --git a/bundles/org.simantics.tests.modelled.ui/src/org/simantics/tests/modelled/ui/STSTestEditorInput.java b/bundles/org.simantics.tests.modelled.ui/src/org/simantics/tests/modelled/ui/STSTestEditorInput.java index d057daccb..02ded7880 100644 --- a/bundles/org.simantics.tests.modelled.ui/src/org/simantics/tests/modelled/ui/STSTestEditorInput.java +++ b/bundles/org.simantics.tests.modelled.ui/src/org/simantics/tests/modelled/ui/STSTestEditorInput.java @@ -1,8 +1,6 @@ package org.simantics.tests.modelled.ui; import java.io.IOException; -import java.io.Reader; -import java.io.StringReader; import org.eclipse.ui.IPersistableElement; import org.simantics.Simantics; @@ -81,8 +79,8 @@ public class STSTestEditorInput extends StandardSCLModuleEditorInput { } @Override - protected Reader getSourceReader(UpdateListener listener) throws IOException { - return new StringReader(moduleText); + public String getSourceText(UpdateListener listener) throws IOException { + return moduleText; } }