Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/sdk/DirectoryBasedDartSdk.java

Issue 73603002: Warn user if DART_SDK does not match editor SDK (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/sdk/DirectoryBasedDartSdk.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/sdk/DirectoryBasedDartSdk.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/sdk/DirectoryBasedDartSdk.java
index efed04c2c104f9bda5de95462cd27ef116a74508..fe0b98c1f9ca0fea0be49268e8da4207361b8311 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/sdk/DirectoryBasedDartSdk.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/sdk/DirectoryBasedDartSdk.java
@@ -83,7 +83,7 @@ public class DirectoryBasedDartSdk implements DartSdk {
/**
* The name of the environment variable whose value is the path to the default Dart SDK directory.
*/
- private static final String DART_SDK_ENVIRONMENT_VARIABLE_NAME = "DART_SDK"; //$NON-NLS-1$
+ public static final String DART_SDK_ENVIRONMENT_VARIABLE_NAME = "DART_SDK"; //$NON-NLS-1$
/**
* The name of the file containing the Dartium executable on Linux.
@@ -173,22 +173,6 @@ public class DirectoryBasedDartSdk implements DartSdk {
}
/**
- * Return the default Dart SDK, or {@code null} if the directory containing the default SDK cannot
- * be determined (or does not exist).
- * <p>
- * Added in order to test AnalysisContextImpl2.
- *
- * @return the default Dart SDK
- */
- public static DirectoryBasedDartSdk getDefaultSdk2() {
- File sdkDirectory = getDefaultSdkDirectory();
- if (sdkDirectory == null) {
- return null;
- }
- return new DirectoryBasedDartSdk(sdkDirectory, true);
- }
-
- /**
* Return the default directory for the Dart SDK, or {@code null} if the directory cannot be
* determined (or does not exist). The default directory is provided by a {@link System} property
* named {@code com.google.dart.sdk}, or, if the property is not defined, an environment variable

Powered by Google App Engine
This is Rietveld 408576698