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

Unified Diff: editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/chromejs/DartSourcePathComputerDelegate.java

Issue 10377181: add support for package: to the editor (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 7 months 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.tools.debug.core/src/com/google/dart/tools/debug/core/chromejs/DartSourcePathComputerDelegate.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/chromejs/DartSourcePathComputerDelegate.java (revision 7713)
+++ editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/chromejs/DartSourcePathComputerDelegate.java (working copy)
@@ -53,17 +53,17 @@
SystemLibraryManager libraryManager = SystemLibraryManagerProvider.getSystemLibraryManager();
- URI domUri = libraryManager.translateDartUri(URI.create("dart://dom/dart_dom.lib"));
+ URI domUri = libraryManager.resolveDartUri(URI.create("dart://dom/dart_dom.lib"));
IPath path = new Path(domUri.getPath()).removeLastSegments(1);
DirectorySourceContainer domContainer = new DirectorySourceContainer(path, true);
containers.add(domContainer);
- URI coreUri = libraryManager.translateDartUri(URI.create("dart://core/corelib.lib"));
+ URI coreUri = libraryManager.resolveDartUri(URI.create("dart://core/corelib.lib"));
IPath coreUriPath = new Path(coreUri.getPath()).removeLastSegments(1);
DirectorySourceContainer coreContainer = new DirectorySourceContainer(coreUriPath, true);
containers.add(coreContainer);
- URI coreImplUri = libraryManager.translateDartUri(URI.create("dart://core/corelib_impl.lib"));
+ URI coreImplUri = libraryManager.resolveDartUri(URI.create("dart://core/corelib_impl.lib"));
IPath coreImplPath = new Path(coreImplUri.getPath()).removeLastSegments(1);
DirectorySourceContainer coreImplContainer = new DirectorySourceContainer(coreImplPath, true);
containers.add(coreImplContainer);

Powered by Google App Engine
This is Rietveld 408576698