PropertySourceTableSheetPage sp = (PropertySourceTableSheetPage)ps.getCurrentPage();
this.columns = (IConfigurableColumns)sp.getTableView();
} else {
ISection[] secs = null;
if (ps.getCurrentPage() instanceof TabFolderSupport2) {
TabFolderSupport2 tfs = (TabFolderSupport2)ps.getCurrentPage();
secs = ((TabContents)tfs.getCurrentTab()).getSections();
} else if (ps.getCurrentPage() instanceof TabbedPropertySheetPage) {
TabbedPropertySheetPage tabbedPage = (TabbedPropertySheetPage) ps.getCurrentPage();
secs = tabbedPage.getCurrentTab() == null ? null : tabbedPage.getCurrentTab().getSections();
}
if (secs != null) {