]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
ignoreSTSTestAction has wrong signature 02/4302/1
authorAntti Villberg <antti.villberg@semantum.fi>
Tue, 9 Jun 2020 10:33:15 +0000 (13:33 +0300)
committerAntti Villberg <antti.villberg@semantum.fi>
Tue, 9 Jun 2020 10:33:15 +0000 (13:33 +0300)
gitlab #552

Change-Id: I0463972dc0089f833e615f12991c4c28c6dee463

bundles/org.simantics.tests.modelled.ui/scl/Simantics/TestsUI.scl
bundles/org.simantics.tests.modelled.ui/src/org/simantics/tests/modelled/ui/TestsUIUtils.java

index 0b99fe784fa2239470ef3f93f80b59f5e2ae6bcf..169f37e2a369c6cc93eb086e210ed40cf79746d9 100644 (file)
@@ -7,7 +7,7 @@ createSTSTestAction res = do
 
 importJava "org.simantics.tests.modelled.ui.TestsUIUtils" where
     runSTSTestAction :: Resource -> <Proc> ()
-    ignoreSTSTestAction :: [Resource] -> <Proc> ()
+    ignoreSTSTestAction :: Resource -> <Proc> ()
     
 createSTSSuiteAction :: Resource -> <Proc> ()
 createSTSSuiteAction res = do
index b24f445e23c985e317f652f628e435a0135a3b53..648d48969456e2c74064255fc01bc6fd7daa954e 100644 (file)
@@ -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<Resource> 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);
             }
         });
     }