import java.awt.Shape;
import java.awt.geom.Rectangle2D;
+import java.util.function.Consumer;
import org.simantics.db.Resource;
import org.simantics.g2d.element.ElementClass;
import org.simantics.scenegraph.Node;
import org.simantics.scenegraph.g2d.G2DParentNode;
import org.simantics.spreadsheet.Adaptable;
-import org.simantics.utils.datastructures.Callback;
import org.simantics.utils.datastructures.hints.IHintContext.Key;
import org.simantics.utils.datastructures.hints.IHintContext.KeyOf;
Adaptable serverInterface = e.getHint(KEY_SERVER_INTERFACE);
node.init(serverInterface);
- Callback<Node> callback = e.getHint(ElementHints.KEY_SG_CALLBACK);
+ Consumer<Node> callback = e.getHint(ElementHints.KEY_SG_CALLBACK);
if(callback != null)
- callback.run(node);
+ callback.accept(node);
System.out.println("SHEET PARENT NODE: " + parent);
node.setBounds(new Rectangle2D.Double(0, 0, 400, 200));