25
25
import io .sloeber .core .api .Json .packages .ArduinoPlatform ;
26
26
import io .sloeber .core .common .Common ;
27
27
import io .sloeber .core .common .ConfigurationPreferences ;
28
- import io .sloeber .core .managers .InternalPackageManager ;
29
28
import io .sloeber .core .tools .Helpers ;
30
29
import io .sloeber .core .tools .KeyValue ;
31
30
import io .sloeber .core .txt .BoardTxtFile ;
@@ -194,7 +193,7 @@ private void ParseSection() {
194
193
String refVendor = valueSplit [0 ];
195
194
String actualValue = valueSplit [1 ];
196
195
myBoardsCore = actualValue ;
197
- myReferencedCorePlatformPath = InternalPackageManager .getPlatformInstallPath (refVendor , architecture );
196
+ myReferencedCorePlatformPath = PackageManager .getPlatformInstallPath (refVendor , architecture );
198
197
if (this .myReferencedCorePlatformPath == null ) {
199
198
Common .log (new Status (IStatus .ERROR , CORE_PLUGIN_ID ,
200
199
Helpers_tool_reference_missing .replace (TOOL_TAG , core )
@@ -208,7 +207,7 @@ private void ParseSection() {
208
207
VersionNumber refVersion = new VersionNumber (valueSplit [2 ]);
209
208
String actualValue = valueSplit [3 ];
210
209
myBoardsCore = actualValue ;
211
- myReferencedCorePlatformPath = InternalPackageManager .getPlatformInstallPath (refVendor , refArchitecture ,
210
+ myReferencedCorePlatformPath = PackageManager .getPlatformInstallPath (refVendor , refArchitecture ,
212
211
refVersion );
213
212
if (this .myReferencedCorePlatformPath == null ) {
214
213
Common .log (new Status (IStatus .ERROR , CORE_PLUGIN_ID ,
@@ -227,7 +226,7 @@ private void ParseSection() {
227
226
String refVendor = valueSplit [0 ];
228
227
String actualValue = valueSplit [1 ];
229
228
this .myBoardsVariant = actualValue ;
230
- this .myReferencedBoardVariantPlatformPath = InternalPackageManager .getPlatformInstallPath (refVendor ,
229
+ this .myReferencedBoardVariantPlatformPath = PackageManager .getPlatformInstallPath (refVendor ,
231
230
architecture );
232
231
if (this .myReferencedBoardVariantPlatformPath == null ) {
233
232
Common .log (new Status (IStatus .ERROR , CORE_PLUGIN_ID ,
@@ -243,10 +242,10 @@ private void ParseSection() {
243
242
String actualValue = valueSplit [3 ];
244
243
this .myBoardsVariant = actualValue ;
245
244
if ("*" .equals (refVersion )) { //$NON-NLS-1$
246
- this .myReferencedBoardVariantPlatformPath = InternalPackageManager .getPlatformInstallPath (refVendor ,
245
+ this .myReferencedBoardVariantPlatformPath = PackageManager .getPlatformInstallPath (refVendor ,
247
246
refArchitecture );
248
247
} else {
249
- this .myReferencedBoardVariantPlatformPath = InternalPackageManager .getPlatformInstallPath (refVendor ,
248
+ this .myReferencedBoardVariantPlatformPath = PackageManager .getPlatformInstallPath (refVendor ,
250
249
refArchitecture , refVersion );
251
250
}
252
251
if (this .myReferencedBoardVariantPlatformPath == null ) {
@@ -266,7 +265,7 @@ private void ParseSection() {
266
265
String refVendor = valueSplit [0 ];
267
266
String actualValue = valueSplit [1 ];
268
267
this .myUploadTool = actualValue ;
269
- this .myReferencedUploadToolPlatformPath = InternalPackageManager .getPlatformInstallPath (refVendor ,
268
+ this .myReferencedUploadToolPlatformPath = PackageManager .getPlatformInstallPath (refVendor ,
270
269
architecture );
271
270
if (this .myReferencedUploadToolPlatformPath == null ) {
272
271
Common .log (new Status (IStatus .ERROR , CORE_PLUGIN_ID ,
@@ -281,7 +280,7 @@ private void ParseSection() {
281
280
VersionNumber refVersion = new VersionNumber (valueSplit [2 ]);
282
281
String actualValue = valueSplit [3 ];
283
282
this .myUploadTool = actualValue ;
284
- this .myReferencedUploadToolPlatformPath = InternalPackageManager .getPlatformInstallPath (refVendor ,
283
+ this .myReferencedUploadToolPlatformPath = PackageManager .getPlatformInstallPath (refVendor ,
285
284
refArchitecture , refVersion );
286
285
if (this .myReferencedUploadToolPlatformPath == null ) {
287
286
Common .log (new Status (IStatus .ERROR , CORE_PLUGIN_ID ,
@@ -669,7 +668,7 @@ public IPath getreferencedHardwarePath() {
669
668
*/
670
669
public IPath getArduinoPlatformPath () {
671
670
updateWhenDirty ();
672
- return InternalPackageManager .getPlatformInstallPath (VendorArduino , getArchitecture ());
671
+ return PackageManager .getPlatformInstallPath (VendorArduino , getArchitecture ());
673
672
}
674
673
675
674
/**
@@ -894,8 +893,8 @@ private Map<String, String> getEnVarPlatformInfo() {
894
893
return new HashMap <>();
895
894
}
896
895
897
- ArduinoPlatform referencingPlatform = InternalPackageManager .getPlatform (referencingPlatformPath );
898
- ArduinoPlatform referencedPlatform = InternalPackageManager .getPlatform (referencedPlatformPath );
896
+ ArduinoPlatform referencingPlatform = PackageManager .getPlatform (referencingPlatformPath );
897
+ ArduinoPlatform referencedPlatform = PackageManager .getPlatform (referencedPlatformPath );
899
898
900
899
boolean jsonBasedPlatformManagement = !Preferences .getUseArduinoToolSelection ();
901
900
if (jsonBasedPlatformManagement ) {
0 commit comments