コード例 #1
0
  public VProjectWorkspaceBridge(
      String projectName, ConnectedTargetData connectedTargetData, JavascriptVm javascriptVm) {
    this.connectedTargetData = connectedTargetData;
    this.javascriptVm = javascriptVm;
    this.debugProject = ChromiumDebugPluginUtil.createEmptyProject(projectName);
    this.resourceManager = new ResourceManager(debugProject);

    ILaunch launch = connectedTargetData.getDebugTarget().getLaunch();

    sourceDirector = (ChromiumSourceDirector) launch.getSourceLocator();
    sourceDirector.initializeVProjectContainers(
        debugProject, resourceManager, connectedTargetData.getJavascriptEmbedder());
  }
コード例 #2
0
 private VmResourceRef findVmResourceRefFromWorkspaceFile(IFile resource) throws CoreException {
   return sourceDirector.findVmResourceRef(resource);
 }