IWorkbenchPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActivePart();
if (part instanceof PropertySheet) {
PropertySheet ps = (PropertySheet)part;
if (ps.getCurrentPage() instanceof PropertySourceTableSheetPage) {
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();