use of com.helospark.lightdi.annotation.Order in project tactview by helospark.
the class CommonPropertyValueContextMenuItemConfiguration method resetDefaultsValues.
@Bean
@Order(30)
public PropertyValueContextMenuItem resetDefaultsValues(UiTimelineManager timelineManager, UiCommandInterpreterService commandInterpreter, EffectParametersRepository effectParametersRepository) {
return alwaysEnableContextMenu(request -> {
MenuItem resetDefaultsMenuItem = new MenuItem("Reset defaults");
resetDefaultsMenuItem.setOnAction(e -> {
commandInterpreter.sendWithResult(new ResetDefaultValuesCommand(effectParametersRepository, request.valueProvider.getId()));
});
return resetDefaultsMenuItem;
});
}
Aggregations