use of com.helospark.tactview.ui.javafx.RemoveClipService in project tactview by helospark.
the class StandardClipContextMenuChainItemConfiguration method rippleDeleteMenuItem.
@Bean
@Order(109)
public ClipContextMenuChainItem rippleDeleteMenuItem(RemoveClipService removeClipService) {
return alwaysSupportedContextMenuItem(request -> {
MenuItem deleteClipMenuItem = new MenuItem("Ripple delete");
deleteClipMenuItem.setOnAction(e -> removeClipService.rippleDeleteClips(request.getAllClips().stream().map(a -> a.getId()).collect(Collectors.toList()), TimelineEditMode.ALL_CHANNEL_RIPPLE));
return deleteClipMenuItem;
});
}
Aggregations