示例#1
0
  @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);
  }
示例#2
0
 @Override
 public boolean isValidSdkHome(String path) {
   return DartSdkUtil.testDartSdk(path) != null;
 }
示例#3
0
 @Override
 public String getVersionString(String sdkHome) {
   final DartSdkData dartSdkData = DartSdkUtil.testDartSdk(sdkHome);
   return dartSdkData != null ? dartSdkData.getVersion() : super.getVersionString(sdkHome);
 }