Skip to content

Commit

Permalink
Merge with main
Browse files Browse the repository at this point in the history
  • Loading branch information
InAnYan committed Oct 6, 2024
1 parent afd3bb3 commit bcb0d34
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 16 deletions.
1 change: 0 additions & 1 deletion src/main/java/org/jabref/gui/frame/JabRefFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ public JabRefFrame(Stage mainStage,
this.sidePane = new SidePane(
this,
this.preferences,
aiService,
Injector.instantiateModelOrService(JournalAbbreviationRepository.class),
taskExecutor,
dialogService,
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/jabref/gui/sidepane/SidePane.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public class SidePane extends VBox {

public SidePane(LibraryTabContainer tabContainer,
GuiPreferences preferences,
AiService aiService,
JournalAbbreviationRepository abbreviationRepository,
TaskExecutor taskExecutor,
DialogService dialogService,
Expand All @@ -48,7 +47,6 @@ public SidePane(LibraryTabContainer tabContainer,
this.viewModel = new SidePaneViewModel(
tabContainer,
preferences,
aiService,
abbreviationRepository,
stateManager,
taskExecutor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
public class SidePaneContentFactory {
private final LibraryTabContainer tabContainer;
private final GuiPreferences preferences;
private final AiService aiService;
private final JournalAbbreviationRepository abbreviationRepository;
private final TaskExecutor taskExecutor;
private final DialogService dialogService;
Expand All @@ -35,7 +34,6 @@ public class SidePaneContentFactory {

public SidePaneContentFactory(LibraryTabContainer tabContainer,
GuiPreferences preferences,
AiService aiService,
JournalAbbreviationRepository abbreviationRepository,
TaskExecutor taskExecutor,
DialogService dialogService,
Expand All @@ -47,7 +45,6 @@ public SidePaneContentFactory(LibraryTabContainer tabContainer,
UndoManager undoManager) {
this.tabContainer = tabContainer;
this.preferences = preferences;
this.aiService = aiService;
this.abbreviationRepository = abbreviationRepository;
this.taskExecutor = taskExecutor;
this.dialogService = dialogService;
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/jabref/gui/sidepane/SidePaneViewModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public class SidePaneViewModel extends AbstractViewModel {

public SidePaneViewModel(LibraryTabContainer tabContainer,
GuiPreferences preferences,
AiService aiService,
JournalAbbreviationRepository abbreviationRepository,
StateManager stateManager,
TaskExecutor taskExecutor,
Expand All @@ -58,7 +57,6 @@ public SidePaneViewModel(LibraryTabContainer tabContainer,
this.sidePaneContentFactory = new SidePaneContentFactory(
tabContainer,
preferences,
aiService,
abbreviationRepository,
taskExecutor,
dialogService,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
package org.jabref.logic.ai.summarization;

import java.time.LocalDateTime;
import java.util.Comparator;
import java.util.Optional;
import java.util.TreeMap;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

import javafx.beans.property.BooleanProperty;
import javafx.beans.property.StringProperty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class SidePaneViewModelTest {

LibraryTabContainer tabContainer = mock(LibraryTabContainer.class);
GuiPreferences preferences = mock(GuiPreferences.class);
AiService aiService = mock(AiService.class);
JournalAbbreviationRepository abbreviationRepository = mock(JournalAbbreviationRepository.class);
StateManager stateManager = mock(StateManager.class);
TaskExecutor taskExecutor = mock(TaskExecutor.class);
Expand Down Expand Up @@ -68,7 +67,6 @@ void setUp() {
sidePaneViewModel = new SidePaneViewModel(
tabContainer,
preferences,
aiService,
abbreviationRepository,
stateManager,
taskExecutor,
Expand Down

0 comments on commit bcb0d34

Please sign in to comment.