File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
src/main/java/org/hydev/mcpm/client/list Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 6
6
import org .hydev .mcpm .client .database .inputs .CheckForUpdatesResult ;
7
7
import org .hydev .mcpm .client .database .model .PluginVersionState ;
8
8
import org .hydev .mcpm .client .models .PluginYml ;
9
- import org .hydev .mcpm .client .models .PluginTrackerModel ;
10
- import org .hydev .mcpm .client .database .model .PluginVersionId ;
11
- import org .hydev .mcpm .client .database .model .PluginModelId ;
12
- import org .hydev .mcpm .client .models .PluginModel ;
9
+ import org .hydev .mcpm .client .updater .CheckForUpdatesBoundary ;
13
10
14
11
import java .util .List ;
15
12
import java .util .ArrayList ;
22
19
* @author Kevin (https://github.com/kchprog)
23
20
* @since 2022-11-20
24
21
*/
25
- public class ListAllInteractor implements ListAllBoundary {
26
- SuperLocalPluginTracker localPluginTracker = new SuperLocalPluginTracker ();
27
-
22
+ public record ListAllInteractor (PluginTracker tracker ) implements ListAllBoundary {
28
23
/**
29
24
* listAllInteractor interacts with the LocalPluginTracker to get the list of
30
25
* plugins, according to a specified
@@ -38,7 +33,7 @@ public class ListAllInteractor implements ListAllBoundary {
38
33
* outdated.
39
34
*/
40
35
public List <PluginYml > listAll (String parameter , CheckForUpdatesBoundary checkForUpdatesBoundary ) {
41
- var installed = localPluginTracker .listInstalled ();
36
+ var installed = tracker .listInstalled ();
42
37
switch (parameter ) {
43
38
case "all" :
44
39
return installed ;
You can’t perform that action at this time.
0 commit comments