@Override public void setupSdkPaths(Sdk sdk) { final SdkModificator modificator = sdk.getSdkModificator(); SdkAdditionalData data = sdk.getSdkAdditionalData(); if (data == null) { data = DartSdkUtil.testDartSdk(sdk.getHomePath()); modificator.setSdkAdditionalData(data); } DartSdkUtil.setupSdkPaths(sdk.getHomeDirectory(), modificator); modificator.commitChanges(); super.setupSdkPaths(sdk); }
@Override public boolean isValidSdkHome(String path) { return DartSdkUtil.testDartSdk(path) != null; }
@Override public String getVersionString(String sdkHome) { final DartSdkData dartSdkData = DartSdkUtil.testDartSdk(sdkHome); return dartSdkData != null ? dartSdkData.getVersion() : super.getVersionString(sdkHome); }