if (selectionPage instanceof Page) {
Page p = (Page) selectionPage;
Activator.getLogger().debug("Current page: "+ p + " has Site: " + p.getSite());
if (initSelectionPage) {
IViewSite viewSite = propertySheet.getViewSite();
p.init(new PageSite(viewSite));
}
}
}
if (selection != null) {
selectionPage.selectionChanged(part, selection);