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