protected final void addTab(CodeStyleAbstractPanel tab){
  myTabs.add(tab);
  tab.setShouldUpdatePreview(true);
  addPanelToWatch(tab.getPanel());
  myTabbedPane.addTab(tab.getTabTitle(),tab.getPanel());
  if (myActiveTab == null) {
    myActiveTab=tab;
  }
}

protected final void addTab ( CodeStyleAbstractPanel tab ) { myTabs . add ( tab ) ; tab . setShouldUpdatePreview ( true ) ; addPanelToWatch ( tab . getPanel ( ) ) ; myTabbedPane . addTab ( tab . getTabTitle ( ) , tab . getPanel ( ) ) ; if ( myActiveTab == null ) { myActiveTab = tab ; } }
adds a tab with the given codestyleabstractpanel . tab title is taken from gettabtitle ( ) method .
