Skip to content

Commit

Permalink
remove dialogService parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Siedlerchr committed Apr 20, 2019
1 parent 2d0f4dd commit 8c302f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/jabref/JabRefGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private void openWindow(Stage mainStage) {
for (int i = 0; (i < bibDatabases.size()) && (i < mainFrame.getBasePanelCount()); i++) {
ParserResult pr = bibDatabases.get(i);
BasePanel panel = mainFrame.getBasePanelAt(i);
OpenDatabaseAction.performPostOpenActions(panel, pr, mainFrame.getDialogService());
OpenDatabaseAction.performPostOpenActions(panel, pr);
}

LOGGER.debug("Finished adding panels");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public OpenDatabaseAction(JabRefFrame frame) {
* @param result The result of the BIB file parse operation.
* @param dialogService
*/
public static void performPostOpenActions(BasePanel panel, ParserResult result, DialogService dialogService) {
public static void performPostOpenActions(BasePanel panel, ParserResult result) {
for (GUIPostOpenAction action : OpenDatabaseAction.POST_OPEN_ACTIONS) {
if (action.isActionNecessary(result)) {
action.performAction(panel, result);
Expand Down Expand Up @@ -191,7 +191,7 @@ private void openTheFile(Path file, boolean raisePanel) {
BackgroundTask.wrap(() -> loadDatabase(file))
.onSuccess(result -> {
BasePanel panel = addNewDatabase(result, file, raisePanel);
OpenDatabaseAction.performPostOpenActions(panel, result, dialogService);
OpenDatabaseAction.performPostOpenActions(panel, result);
})
.onFailure(ex -> dialogService.showErrorDialogAndWait(Localization.lang("Connection error"),
ex.getMessage() + "\n\n" + Localization.lang("A local copy will be opened.")))
Expand Down

0 comments on commit 8c302f5

Please sign in to comment.