use of com.helospark.tactview.core.timeline.LinkClipRepository in project tactview by helospark.
the class LinkClipsChainItem method createMenu.
@Override
public MenuItem createMenu(ClipContextMenuChainItemRequest request) {
List<String> linkedClipIds = request.getAllClips().stream().map(clip -> clip.getId()).collect(Collectors.toList());
MenuItem linkClipsMenuItem = new MenuItem("Link");
linkClipsMenuItem.setOnAction(e -> {
LinkClipsCommand linkClipsCommand = new LinkClipsCommand(linkClipRepository, linkedClipIds);
commandInterpreter.sendWithResult(linkClipsCommand);
});
return linkClipsMenuItem;
}
Aggregations