File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tmc-plugin/src/fi/helsinki/cs/tmc/actions Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ public class DownloadExercisesAction {
36
36
private TmcCore tmcCore ;
37
37
private NBTmcSettings settings ;
38
38
39
+ /**
40
+ * Downloads all exercises of the list from TmcServer, unzips and opens them and
41
+ * saves the checksums of each Exercise to courseDb.
42
+ */
39
43
public DownloadExercisesAction (List <Exercise > exercisesToOpen ) {
40
44
this .projectMediator = ProjectMediator .getInstance ();
41
45
this .dialogs = ConvenientDialogDisplayer .getDefault ();
@@ -46,9 +50,6 @@ public DownloadExercisesAction(List<Exercise> exercisesToOpen) {
46
50
}
47
51
48
52
public void run () throws TmcCoreException {
49
- // final AggregatingBgTaskListener<TmcProjectInfo> aggregator
50
- // = new AggregatingBgTaskListener<TmcProjectInfo>(exercisesToDownload.size(), whenAllDownloadsFinished);
51
-
52
53
ProgressHandle exerciseDownload = ProgressHandleFactory .createSystemHandle (
53
54
"Downloading " + exercisesToDownload .size () + " exercises." );
54
55
exerciseDownload .start ();
@@ -105,7 +106,6 @@ public void onFailure(Throwable thrwbl) {
105
106
lastAction .finish ();
106
107
logger .log (Level .INFO , "Failed to download exercise file." , thrwbl );
107
108
dialogs .displayError ("Failed to download exercises.\n " + ServerErrorHelper .getServerExceptionMsg (thrwbl ));
108
-
109
109
}
110
110
}
111
111
}
You can’t perform that action at this time.
0 commit comments