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%2FSTSEditorInputFactory.java;fp=bundles%2Forg.simantics.tests.modelled.ui%2Fsrc%2Forg%2Fsimantics%2Ftests%2Fmodelled%2Fui%2FSTSEditorInputFactory.java;h=58d05b032f5408a51e7c88c81977e2a62409f019;hp=0000000000000000000000000000000000000000;hb=f03893d9b643eae3f03debf7a656edbfa5b9b501;hpb=51006ffec13cbf8e0d9c8b07212d69478e4bdd4e diff --git a/bundles/org.simantics.tests.modelled.ui/src/org/simantics/tests/modelled/ui/STSEditorInputFactory.java b/bundles/org.simantics.tests.modelled.ui/src/org/simantics/tests/modelled/ui/STSEditorInputFactory.java new file mode 100644 index 000000000..58d05b032 --- /dev/null +++ b/bundles/org.simantics.tests.modelled.ui/src/org/simantics/tests/modelled/ui/STSEditorInputFactory.java @@ -0,0 +1,14 @@ +package org.simantics.tests.modelled.ui; + +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.ui.IElementFactory; +import org.eclipse.ui.IMemento; + +public class STSEditorInputFactory implements IElementFactory { + + @Override + public IAdaptable createElement(IMemento memento) { + return new STSTestEditorInput(memento.getTextData()); + } + +}