Skip to content

Commit 241d299

Browse files
committed
Lint check for unopened exercises
1 parent afb52e7 commit 241d299

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ public class CheckForUnopenedExercises implements ActionListener {
1818
public static boolean shouldRunOnStartup() {
1919
return NbTmcSettings.getDefault().isCheckingForUnopenedAtStartup();
2020
}
21-
22-
private static final TmcNotificationDisplayer.SingletonToken notifierToken = TmcNotificationDisplayer.createSingletonToken();
23-
21+
22+
private static final TmcNotificationDisplayer.SingletonToken notifierToken =
23+
TmcNotificationDisplayer.createSingletonToken();
24+
2425
private ProjectMediator projects;
2526
private CourseDb courseDb;
2627
private TmcNotificationDisplayer notifier;
@@ -30,14 +31,13 @@ public CheckForUnopenedExercises() {
3031
this.courseDb = CourseDb.getInstance();
3132
this.notifier = TmcNotificationDisplayer.getDefault();
3233
}
33-
34+
3435
@Override
3536
public void actionPerformed(ActionEvent e) {
3637
run();
3738
}
38-
39+
3940
public void run() {
40-
// TODO(jamo): use bg task
4141
projects.callWhenProjectsCompletelyOpened(new Runnable() {
4242
@Override
4343
public void run() {
@@ -69,7 +69,7 @@ private void showNotification(List<Exercise> unopenedExercises) {
6969
}
7070
notifier.notify(notifierToken, msg, getNotificationIcon(), prompt, openAction(unopenedExercises), NotificationDisplayer.Priority.LOW);
7171
}
72-
72+
7373
private ActionListener openAction(final List<Exercise> exercises) {
7474
return new ActionListener() {
7575
@Override
@@ -83,8 +83,8 @@ public void actionPerformed(ActionEvent e) {
8383
}
8484
};
8585
}
86-
86+
8787
private Icon getNotificationIcon() {
8888
return ImageUtilities.loadImageIcon("fi/helsinki/cs/tmc/smile.gif", false);
8989
}
90-
}
90+
}

0 commit comments

Comments
 (0)