}
@Override
protected JavascriptVmEmbedder attach(TabDebugEventListener tabDebugEventListener)
throws CoreException {
final WipBrowserTab browserTab;
try {
browserTab = getTabConnector().attach(tabDebugEventListener);
} catch (IOException e) {
throw newCoreException("Failed to connect to browser tab: " + e.getMessage(), e);
}
return new EmbedderBase() {
public JavascriptVm getJavascriptVm() {
return browserTab.getJavascriptVm();
}
public String getTargetName() {
return Messages.DebugTargetImpl_TargetName + " # " + backendId;
}
public String getThreadName() {
return browserTab.getUrl();
}
};
}