@Override public String getSourceLocationPath() { URI uri = URI.create(vmFrame.getLocation().getUrl()); // Resolve a package: reference. if (PackageLibraryManager.isPackageUri(uri) && DartCore.getPlugin().getPackageRootPref() != null) { uri = PackageLibraryManagerProvider.getPackageLibraryManager() .resolvePackageUri(vmFrame.getLocation().getUrl()); } if ("file".equals(uri.getScheme())) { return uri.getPath(); } else if (PackageLibraryManager.isDartUri(uri)) { return uri.toString(); } else { return "builtin:" + vmFrame.getLibraryId() + ":" + vmFrame.getLocation().getUrl(); } }
@Override public int getLineNumber() throws DebugException { return vmFrame.getLocation().getLineNumber(); }