コード例 #1
0
  @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();
    }
  }
コード例 #2
0
 @Override
 public int getLineNumber() throws DebugException {
   return vmFrame.getLocation().getLineNumber();
 }