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()); }
private VmResourceRef findVmResourceRefFromWorkspaceFile(IFile resource) throws CoreException { return sourceDirector.findVmResourceRef(resource); }