]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.event/src/org/simantics/event/view/handler/Delete.java
Use Consumer interface instead of deprecated Callback interface
[simantics/platform.git] / bundles / org.simantics.event / src / org / simantics / event / view / handler / Delete.java
index 768c2834e819e31ba31542c208c4a32383cfc4f2..1b147abe18a35f5f76a5dc52c15be33b97ff28e0 100644 (file)
@@ -32,7 +32,6 @@ import org.simantics.db.layer0.SelectionHints;
 import org.simantics.db.service.VirtualGraphSupport;
 import org.simantics.event.ontology.EventResource;
 import org.simantics.layer0.Layer0;
-import org.simantics.utils.datastructures.Callback;
 import org.simantics.utils.ui.ISelectionUtils;
 
 
@@ -78,11 +77,8 @@ public class Delete extends AbstractHandler {
                            graph.syncRequest( new CorrectMilestoneLabelsAction(eventlog, vg) );
                }
             }
-        }, new Callback<DatabaseException>() {
-            @Override
-            public void run(DatabaseException e) {
-                if (e != null) Logger.defaultLogError(e);
-            }
+        }, e -> {
+            if (e != null) Logger.defaultLogError(e);
         });
         return null;
     }