}
}
}
private Browser createBrowser(CTabItem item, LocationListener listen) {
Browser browser = new Browser(tabFolder, SWT.NONE);
if(listen != null) {
browser.addLocationListener(listen);
listenerMap.put(browser, listen.getClass().getCanonicalName());
} else {
browser.addLocationListener(getListener());
listenerMap.put(browser, "DEFAULT"); //$NON-NLS-1$
}
// needed to keep the forward/back buttons up to date
browser.addLocationListener(getChangeListener());
browser.addVisibilityWindowListener(getChangeListener());
browser.addOpenWindowListener(getChangeListener());
browser.addTitleListener(getChangeListener());
item.setControl(browser);
tabMap.put(browser, item);
final IProgressMonitor monitor = getViewSite().getActionBars().getStatusLineManager().getProgressMonitor();
browser.addProgressListener(new BrowserProgressListener(monitor, item, tabFolder));
return browser;
}