예제 #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);
 }