getSite().getPage().removeSelectionListener(this);
}
public void selectionChanged(IWorkbenchPart part, ISelection sel) {
if (sel instanceof IStructuredSelection) {
IvyClasspathContainer ivycp = IvyClasspathContainerHelper
.getContainer((IStructuredSelection) sel);
if (ivycp != null) {
browser.setText("<html></html>");
URL report = ivycp.getReportUrl();
if (report == null || !browser.setUrl(report.toExternalForm())) {
browser.setText("<html></html>");
IvyDEMessage.warn("Impossible to set report view url to " + report.toExternalForm());
}
}