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%2FTestsUIUtils.java;fp=bundles%2Forg.simantics.tests.modelled.ui%2Fsrc%2Forg%2Fsimantics%2Ftests%2Fmodelled%2Fui%2FTestsUIUtils.java;h=651ee47df7282751f3e891b11dcce3e5588b2caa;hp=c6bd1c28708d1fed48d642147ebc85994e79c73e;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.tests.modelled.ui/src/org/simantics/tests/modelled/ui/TestsUIUtils.java b/bundles/org.simantics.tests.modelled.ui/src/org/simantics/tests/modelled/ui/TestsUIUtils.java index c6bd1c287..651ee47df 100644 --- a/bundles/org.simantics.tests.modelled.ui/src/org/simantics/tests/modelled/ui/TestsUIUtils.java +++ b/bundles/org.simantics.tests.modelled.ui/src/org/simantics/tests/modelled/ui/TestsUIUtils.java @@ -1,23 +1,23 @@ -package org.simantics.tests.modelled.ui; - -import java.io.IOException; - -import org.eclipse.e4.ui.model.application.ui.basic.MPart; -import org.simantics.db.Resource; -import org.simantics.db.exception.DatabaseException; -import org.simantics.ui.workbench.e4.E4WorkbenchUtils; - -public class TestsUIUtils { - - private TestsUIUtils() { - } - - public static void runSTSTestAction(Resource test) throws DatabaseException, IOException { - MPart part = E4WorkbenchUtils.getMPartById(STSTestRunnerView.ID); - E4WorkbenchUtils.openAndShowPart(part); - Object obj = part.getObject(); - STSTestRunnerView view = (STSTestRunnerView) obj; - view.currentTest(test); - view.execute(); - } -} +package org.simantics.tests.modelled.ui; + +import java.io.IOException; + +import org.eclipse.e4.ui.model.application.ui.basic.MPart; +import org.simantics.db.Resource; +import org.simantics.db.exception.DatabaseException; +import org.simantics.ui.workbench.e4.E4WorkbenchUtils; + +public class TestsUIUtils { + + private TestsUIUtils() { + } + + public static void runSTSTestAction(Resource test) throws DatabaseException, IOException { + MPart part = E4WorkbenchUtils.getMPartById(STSTestRunnerView.ID); + E4WorkbenchUtils.openAndShowPart(part); + Object obj = part.getObject(); + STSTestRunnerView view = (STSTestRunnerView) obj; + view.currentTest(test); + view.execute(); + } +}