import org.simantics.db.layer0.request.PossibleModel;
import org.simantics.layer0.Layer0;
import org.simantics.utils.ObjectUtils;
-import org.simantics.utils.datastructures.Callback;
import org.simantics.utils.ui.ErrorLogger;
import org.simantics.utils.ui.ISelectionUtils;
CommentMetadata cm = graph.getMetadata(CommentMetadata.class);
graph.addMetadata(cm.add("Moved " + movedAnnotationItems.size() + " annotations to folder " + name + ", resource " + targetFolder));
}
- }, new Callback<DatabaseException>() {
-
- @Override
- public void run(DatabaseException e) {
- if (e!= null)
- ErrorLogger.defaultLogError(e);
-
- }
+ }, e -> {
+ if (e!= null)
+ ErrorLogger.defaultLogError(e);
});
}