/** * Shows the given tab. */ private void showTab(TabContents target) { if (target != null) { Composite tabComposite = (Composite) tabToComposite.get(target); if (tabComposite != null) { /** * the following method call order is important - do not * change it or the widgets might be drawn incorrectly */ tabComposite.moveAbove(null); target.aboutToBeShown(); tabComposite.setVisible(true); } } }
currentTab.aboutToBeShown(); currentTab.refresh();