X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.spreadsheet.ui%2Fsrc%2Forg%2Fsimantics%2Fspreadsheet%2Fui%2FSheetFactory.java;h=4669fdf4da1d4078372665d510a0f35effd354da;hp=9c1fc296a1cfcf9aaead4974f352319a2879c5dc;hb=627664d06302d454ea3b3fe14d13bb5ab739d666;hpb=eae2657463e387cb764e7e5780d5c56f5311c0af diff --git a/bundles/org.simantics.spreadsheet.ui/src/org/simantics/spreadsheet/ui/SheetFactory.java b/bundles/org.simantics.spreadsheet.ui/src/org/simantics/spreadsheet/ui/SheetFactory.java index 9c1fc296a..4669fdf4d 100644 --- a/bundles/org.simantics.spreadsheet.ui/src/org/simantics/spreadsheet/ui/SheetFactory.java +++ b/bundles/org.simantics.spreadsheet.ui/src/org/simantics/spreadsheet/ui/SheetFactory.java @@ -11,6 +11,7 @@ package org.simantics.spreadsheet.ui; import java.awt.geom.AffineTransform; +import java.util.function.Consumer; import org.simantics.db.AsyncReadGraph; import org.simantics.db.ReadGraph; @@ -34,7 +35,6 @@ import org.simantics.operation.Layer0X; import org.simantics.scenegraph.INode; import org.simantics.spreadsheet.graph.GraphUI; import org.simantics.spreadsheet.resource.SpreadsheetResource; -import org.simantics.utils.datastructures.Callback; /** @@ -117,10 +117,10 @@ public class SheetFactory implements ElementFactory { element.setHint(SheetClass.KEY_SHEET, sheet); element.setHint(SheetClass.KEY_RVI, rvi); - element.setHint(ElementHints.KEY_SG_CALLBACK, new Callback() { + element.setHint(ElementHints.KEY_SG_CALLBACK, new Consumer() { @Override - public void run(INode _node) { + public void accept(INode _node) { final SheetNode node = (SheetNode)_node;