]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Added ModuleUpdateContext.getModuleType() 62/362/2
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 14 Mar 2017 09:22:47 +0000 (11:22 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 14 Mar 2017 09:23:09 +0000 (12:23 +0300)
refs #7087

Change-Id: I90355f8f28cbbd36168375734e3b8e3766edfb48

bundles/org.simantics.structural.synchronization.client/src/org/simantics/structural/synchronization/base/ModuleUpdateContext.java

index 027c88dc722d5232bd5229b29491e85b2bc355a5..1615aaf2ba35e8e4cd66c1cd009897e2005988fc 100644 (file)
@@ -80,7 +80,11 @@ public class ModuleUpdateContext<T extends ComponentBase<T>> {
     public <S> S getConcreteSolver() {
        return handler.solver.getConcreteSolver();
     }
-    
+
+    public String getModuleType() {
+        return updater != null ? updater.moduleType : null;
+    }
+
     public String getModuleName() {
         return component.solverComponentName;
     }