Skip to content

Commit cadab2e

Browse files
OAarneRedande
authored andcommitted
Fix exercise downloading and updating dialog
1 parent ce01d89 commit cadab2e

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

tmc-plugin/src/fi/helsinki/cs/tmc/actions/CheckForNewExercisesOrUpdates.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
import fi.helsinki.cs.tmc.core.events.TmcEventBus;
1313
import fi.helsinki.cs.tmc.model.CourseDb;
1414
import fi.helsinki.cs.tmc.model.LocalExerciseStatus;
15-
import fi.helsinki.cs.tmc.ui.DownloadOrUpdateExercisesDialog;
1615
import fi.helsinki.cs.tmc.ui.ConvenientDialogDisplayer;
16+
import fi.helsinki.cs.tmc.ui.DownloadOrUpdateExercisesDialog;
1717
import fi.helsinki.cs.tmc.ui.TmcNotificationDisplayer;
1818
import fi.helsinki.cs.tmc.utilities.BgTask;
1919
import fi.helsinki.cs.tmc.utilities.BgTaskListener;

tmc-plugin/src/fi/helsinki/cs/tmc/actions/DownloadCompletedExercises.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
@Messages("CTL_DownloadCompletedExercises=Download old completed exercises")
3333
public final class DownloadCompletedExercises implements ActionListener {
3434

35-
private CourseDb courseDb;
36-
private ConvenientDialogDisplayer dialogs;
37-
private TmcEventBus eventBus;
35+
private final CourseDb courseDb;
36+
private final ConvenientDialogDisplayer dialogs;
37+
private final TmcEventBus eventBus;
3838

3939
public DownloadCompletedExercises() {
4040
this.courseDb = CourseDb.getInstance();

tmc-plugin/src/fi/helsinki/cs/tmc/actions/SaveSettingsAction.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919

2020
public class SaveSettingsAction extends AbstractAction {
2121

22-
private CourseDb courseDb;
23-
private TmcEventBus eventBus;
24-
private TmcCore tmcCore;
22+
private final CourseDb courseDb;
23+
private final TmcEventBus eventBus;
24+
private final TmcCore tmcCore;
2525
private final FixUnoptimalSettings fixUnoptimalSettings;
26-
private SendDiagnostics sendDiagnostics;
27-
26+
private final SendDiagnostics sendDiagnostics;
27+
2828
public SaveSettingsAction() {
2929
this.courseDb = CourseDb.getInstance();
3030
this.eventBus = TmcEventBus.getDefault();

tmc-plugin/src/fi/helsinki/cs/tmc/model/LocalExerciseStatus.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ public static LocalExerciseStatus get(List<Exercise> allExercises) {
2424
}
2525

2626
private LocalExerciseStatus(CourseDb courseDb, ProjectMediator projectMediator, List<Exercise> allExercises) {
27-
open = new ArrayList<Exercise>();
28-
closed = new ArrayList<Exercise>();
29-
downloadableUncompleted = new ArrayList<Exercise>();
30-
downloadableCompleted = new ArrayList<Exercise>();
31-
updateable = new ArrayList<Exercise>();
32-
unlockable = new ArrayList<Exercise>();
27+
open = new ArrayList<>();
28+
closed = new ArrayList<>();
29+
downloadableUncompleted = new ArrayList<>();
30+
downloadableCompleted = new ArrayList<>();
31+
updateable = new ArrayList<>();
32+
unlockable = new ArrayList<>();
3333

3434
for (Exercise ex : allExercises) {
3535
if (!ex.hasDeadlinePassed()) {

0 commit comments

Comments
 (0)