X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.browsing.ui.graph.impl%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2Fgraph%2Fimpl%2FGraphFactoryStringModifier.java;h=99e053bdaa24dc2e227c5d3107dda632049c40c1;hp=6d0e43d176ca0ced2ccc7be8457a12ec42ccfcd3;hb=627664d06302d454ea3b3fe14d13bb5ab739d666;hpb=eae2657463e387cb764e7e5780d5c56f5311c0af diff --git a/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/GraphFactoryStringModifier.java b/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/GraphFactoryStringModifier.java index 6d0e43d17..99e053bda 100644 --- a/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/GraphFactoryStringModifier.java +++ b/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/GraphFactoryStringModifier.java @@ -16,7 +16,6 @@ import org.simantics.db.Resource; import org.simantics.db.WriteGraph; import org.simantics.db.common.request.WriteRequest; import org.simantics.db.exception.DatabaseException; -import org.simantics.utils.datastructures.Callback; import org.simantics.utils.ui.ErrorLogger; /** @@ -55,12 +54,9 @@ public class GraphFactoryStringModifier extends AbstractFactoryStringModifier { public void perform(WriteGraph graph) throws DatabaseException { doModifyWithFactory(graph, label); } - }, new Callback() { - @Override - public void run(DatabaseException parameter) { - if (parameter != null) - ErrorLogger.defaultLogError(parameter); - } + }, parameter -> { + if (parameter != null) + ErrorLogger.defaultLogError(parameter); }); }