| Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/source/UriResolver.java
|
| ===================================================================
|
| --- editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/source/UriResolver.java (revision 16603)
|
| +++ editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/source/UriResolver.java (working copy)
|
| @@ -66,10 +66,10 @@
|
| * @return a {@link Source source} representing the URI to which given URI was resolved
|
| */
|
| protected Source resolveRelative(SourceFactory factory, Source containingSource, URI containedUri) {
|
| - if (containingSource instanceof SourceImpl) {
|
| + if (containingSource instanceof FileBasedSource) {
|
| try {
|
| - URI resolvedUri = ((SourceImpl) containingSource).getFile().toURI().resolve(containedUri).normalize();
|
| - return new SourceImpl(factory, new File(resolvedUri));
|
| + URI resolvedUri = ((FileBasedSource) containingSource).getFile().toURI().resolve(containedUri).normalize();
|
| + return new FileBasedSource(factory, new File(resolvedUri));
|
| } catch (Exception exception) {
|
| // Fall through to return null
|
| }
|
|
|