]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.template2d.ui/src/org/simantics/modeling/template2d/ui/actions/NewFlagTypeVisual.java
Remove usage of deprecated SimanticsUI-methods
[simantics/platform.git] / bundles / org.simantics.modeling.template2d.ui / src / org / simantics / modeling / template2d / ui / actions / NewFlagTypeVisual.java
index 758a89da1fc001408fe240cc5a25a82fc40b8355..01eef8c348991e0e5497e8165b74941129efda36 100644 (file)
@@ -14,6 +14,7 @@ package org.simantics.modeling.template2d.ui.actions;
 import java.util.ArrayList;
 import java.util.Arrays;
 
+import org.simantics.Simantics;
 import org.simantics.databoard.Bindings;
 import org.simantics.db.Resource;
 import org.simantics.db.WriteGraph;
@@ -25,7 +26,6 @@ import org.simantics.db.layer0.adapter.ActionFactory;
 import org.simantics.layer0.Layer0;
 import org.simantics.modeling.template2d.ontology.Template2dResource;
 import org.simantics.scenegraph.ontology.ScenegraphResources;
-import org.simantics.ui.SimanticsUI;
 
 /**
  * @author Teemu Matasniemi
@@ -41,7 +41,7 @@ public class NewFlagTypeVisual implements ActionFactory {
         return new Runnable() {
             @Override
             public void run() {
-                SimanticsUI.getSession().asyncRequest(new WriteRequest() {
+                Simantics.getSession().asyncRequest(new WriteRequest() {
                     @Override
                     public void perform(WriteGraph g) throws DatabaseException {
                         g.markUndoPoint();