Skip to content
Snippets Groups Projects
Commit dd6315ae authored by Ondřej Hrdlička's avatar Ondřej Hrdlička
Browse files

Fixed checkstyle after rebase

parent 29cb9da4
No related branches found
No related tags found
2 merge requests!52Final project MR,!47Localization
Pipeline #
......@@ -15,6 +15,7 @@ import java.util.function.Supplier;
public final class EditAction<T> extends AbstractAction<T> {
private static final cz.muni.fi.pv168.project.ui.i18n.I18N I18N = new I18N(EditAction.class);
public EditAction(ListHolder<T> listHolder, Icon icon, String description, @Nullable Supplier<Task> taskSupplier) {
super(listHolder, selectedRowsCount -> selectedRowsCount == 1, taskSupplier);
......
......@@ -78,8 +78,9 @@ public class TaskView implements Tab<Task> {
tabActions = TabActions.builder()
.addLeftSideAction(new AddAction<>(this, Icons.ADD_TASK_ICON, I18N.getString("addActionDesc")))
.addLeftSideAction(new EditAction<>(this, Icons.EDIT_TASK_ICON, I18N.getString("editActionDesc"), headerList::getSelectedValue)
.addUpdatable(taskPanel))
.addLeftSideAction(new EditAction<>(
this, Icons.EDIT_TASK_ICON, I18N.getString("editActionDesc"), headerList::getSelectedValue
).addUpdatable(taskPanel))
//TODO: needs refactor with a variable holding selectedCount of tasks to be deleted for a proper localisation
.addLeftSideAction(new DeleteAction<>(this, Icons.REMOVE_TASK_BIN_ICON, I18N.getFormattedMessage("deleteActionDesc"))
.addEnabledCondition(selectedCount -> daoHolder
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment