code: private void truncateTabs() {
  
          for (int i = 0; i < m_tabbedPanel.getTabCount(); i++) {
              if (m_tabbedPanel.getWidget(i) instanceof I_CmsTruncable) {
                  I_CmsTruncable tab = (I_CmsTruncable)m_tabbedPanel.getWidget(i);
                  tab.truncate(TM_GALLERY_DIALOG, m_width - 50);
              }
          }
      }
docs: Truncates the gallery tabs to the available width.<p>