Skip to content

Commit

Permalink
use lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
Siedlerchr committed May 21, 2022
1 parent 8d82783 commit 3f3be40
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/main/java/org/jabref/gui/JabRefDialogService.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
import java.util.stream.Collectors;

import javafx.concurrent.Task;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Pos;
import javafx.print.PrinterJob;
import javafx.scene.Group;
Expand Down Expand Up @@ -350,12 +348,10 @@ public void notify(String message) {
.text(
"(" + Localization.lang("Check the event log to see all notifications") + ")"
+ "\n\n" + message)
.onAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent a) {
ErrorConsoleAction ec = new ErrorConsoleAction();
ec.execute();
}}))
.onAction((e)-> {
ErrorConsoleAction ec = new ErrorConsoleAction();
ec.execute();
}))
.hideCloseButton()
.show();
});
Expand Down

0 comments on commit 3f3be40

Please sign in to comment.