1 package fr.ifremer.tutti.ui.swing.update;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 import com.google.common.collect.ImmutableMap;
26 import fr.ifremer.tutti.persistence.ProgressionModel;
27 import fr.ifremer.tutti.ui.swing.util.actions.LongActionSupport;
28 import fr.ifremer.tutti.ui.swing.update.module.ModuleUpdaterSupport;
29 import fr.ifremer.tutti.ui.swing.update.module.ReportModuleUpdater;
30 import fr.ifremer.tutti.ui.swing.updater.UpdateModule;
31
32
33
34
35
36
37
38 public class TuttiReportUpdaterCallBack extends TuttiUpdaterCallBackSupport {
39
40 public TuttiReportUpdaterCallBack(String url, LongActionSupport action, ProgressionModel progressionModel) {
41 super(url,
42 ImmutableMap.<UpdateModule, ModuleUpdaterSupport>of(UpdateModule.report, new ReportModuleUpdater()),
43 action,
44 progressionModel);
45 super.setModulesToUpdate(UpdateModule.report);
46 }
47
48 @Override
49 public void setModulesToUpdate(UpdateModule... modulesToUpdate) {
50 throw new IllegalStateException("You are not allowed to use this method on " + this);
51 }
52
53 }