]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/property/ComponentTypePropertyTester.java
Remove usage of deprecated SimanticsUI-methods
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / property / ComponentTypePropertyTester.java
index 8185d7f6d7659caccbf8055a4476e2c3d820345d..bbb3ca369753ad995b6db35d0ec229a2f1be0c9a 100644 (file)
@@ -13,6 +13,7 @@ package org.simantics.modeling.ui.property;
 
 import org.eclipse.core.expressions.PropertyTester;
 import org.simantics.DatabaseJob;
+import org.simantics.Simantics;
 import org.simantics.db.ReadGraph;
 import org.simantics.db.Resource;
 import org.simantics.db.Session;
@@ -54,7 +55,7 @@ public class ComponentTypePropertyTester extends PropertyTester {
         if (resource == null)
             return false;
 
-        Session session = SimanticsUI.peekSession();
+        Session session = Simantics.peekSession();
         if (session == null)
             return false;