]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.charts/src/org/simantics/charts/ui/ChartGroupDropActionFactory.java
Use Consumer interface instead of deprecated Callback interface
[simantics/platform.git] / bundles / org.simantics.charts / src / org / simantics / charts / ui / ChartGroupDropActionFactory.java
index 285f2d13ee8680ba3e658f9ccd07868b3d74758e..6149d0611552db784e97c30a3c683e17a3e98648 100644 (file)
@@ -39,7 +39,6 @@ import org.simantics.db.layer0.util.SimanticsKeys;
 import org.simantics.graph.db.TransferableGraphs;
 import org.simantics.graph.representation.TransferableGraph1;
 import org.simantics.layer0.Layer0;
-import org.simantics.utils.datastructures.Callback;
 import org.simantics.utils.ui.ErrorLogger;
 import org.simantics.utils.ui.ISelectionUtils;
 import org.simantics.utils.ui.dialogs.ShowError;
@@ -120,12 +119,9 @@ public class ChartGroupDropActionFactory implements DropActionFactory {
                                                        throws DatabaseException {
                                graph.syncRequest(moveChartsRequest(chartGroup, chartsToMove));
                                        }
-                }, new Callback<DatabaseException>() {
-                    @Override
-                    public void run(DatabaseException e) {
-                        if (e != null)
-                            ErrorLogger.defaultLogError(e);
-                    }
+                }, e -> {
+                    if (e != null)
+                        ErrorLogger.defaultLogError(e);
                 });
             }
         };