Refresh tab headers when showing an existing tab.
authorMathieu Baudier <mbaudier@argeo.org>
Fri, 9 Oct 2020 12:11:52 +0000 (14:11 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Fri, 9 Oct 2020 12:11:52 +0000 (14:11 +0200)
org.argeo.cms.ui/src/org/argeo/cms/ui/widgets/TabbedArea.java

index ba1e2f6f4daaf45279ceca92b30331576d3a1958..c85111ed5b0ba37498710ab6bc18784ecb22edb7 100644 (file)
@@ -22,6 +22,7 @@ import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.ToolBar;
 import org.eclipse.swt.widgets.ToolItem;
 
+/** Manages {@link Section} in a tab-like structure.*/
 public class TabbedArea extends Composite {
        private static final long serialVersionUID = 8659669229482033444L;
 
@@ -156,6 +157,7 @@ public class TabbedArea extends Composite {
        public void showTab(int index) {
                Section sectionToShow = sections.get(index);
                sectionToShow.moveAbove(null);
+               refreshTabHeaders();
                layout(true, true);
        }