File tree 2 files changed +19
-0
lines changed
arduino-core/src/cc/arduino/contributions/packages 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,20 @@ public abstract class ContributedTool {
42
42
43
43
public abstract List <HostDependentDownloadableContribution > getSystems ();
44
44
45
+ private ContributedPackage contributedPackage ;
46
+
47
+ public ContributedPackage getPackage () {
48
+ return contributedPackage ;
49
+ }
50
+
51
+ public void setPackage (ContributedPackage pack ) {
52
+ contributedPackage = pack ;
53
+ }
54
+
55
+ public String getPackager () {
56
+ return contributedPackage .getName ();
57
+ }
58
+
45
59
public DownloadableContribution getDownloadableContribution (Platform platform ) {
46
60
for (HostDependentDownloadableContribution c : getSystems ()) {
47
61
if (c .isCompatible (platform ))
Original file line number Diff line number Diff line change @@ -104,6 +104,11 @@ public void parseIndex() throws Exception {
104
104
.collect (Collectors .toList ());
105
105
106
106
for (ContributedPackage pack : packages ) {
107
+ // Fill references to package in tools
108
+ for (ContributedTool tool : pack .getTools ()) {
109
+ tool .setPackage (pack );
110
+ }
111
+
107
112
for (ContributedPlatform platform : pack .getPlatforms ()) {
108
113
// Set a reference to parent packages
109
114
platform .setParentPackage (pack );
You can’t perform that action at this time.
0 commit comments