From: Antti Villberg Date: Tue, 9 Jun 2020 10:33:15 +0000 (+0300) Subject: ignoreSTSTestAction has wrong signature X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=493ad14d923a70f20b8abd3f5c57e270ac477f55;p=simantics%2Fplatform.git ignoreSTSTestAction has wrong signature gitlab #552 Change-Id: I0463972dc0089f833e615f12991c4c28c6dee463 --- diff --git a/bundles/org.simantics.tests.modelled.ui/scl/Simantics/TestsUI.scl b/bundles/org.simantics.tests.modelled.ui/scl/Simantics/TestsUI.scl index 0b99fe784..169f37e2a 100644 --- a/bundles/org.simantics.tests.modelled.ui/scl/Simantics/TestsUI.scl +++ b/bundles/org.simantics.tests.modelled.ui/scl/Simantics/TestsUI.scl @@ -7,7 +7,7 @@ createSTSTestAction res = do importJava "org.simantics.tests.modelled.ui.TestsUIUtils" where runSTSTestAction :: Resource -> () - ignoreSTSTestAction :: [Resource] -> () + ignoreSTSTestAction :: Resource -> () createSTSSuiteAction :: Resource -> () createSTSSuiteAction res = do 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 b24f445e2..648d48969 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,7 +1,6 @@ package org.simantics.tests.modelled.ui; import java.io.IOException; -import java.util.List; import org.eclipse.e4.ui.model.application.ui.basic.MPart; import org.simantics.Simantics; @@ -27,15 +26,13 @@ public class TestsUIUtils { view.execute(); } - public static void ignoreSTSTestAction(List tests) throws DatabaseException { + public static void ignoreSTSTestAction(Resource test) throws DatabaseException { Simantics.getSession().syncRequest(new Write() { @Override public void perform(WriteGraph graph) throws DatabaseException { TestsResource TESTS = TestsResource.getInstance(graph); - for (Resource test : tests) { - graph.claimLiteral(test, TESTS.ignore, true, Bindings.BOOLEAN); - } + graph.claimLiteral(test, TESTS.ignore, true, Bindings.BOOLEAN); } }); }