public void closeAllTabs(boolean animate,boolean uponExit,boolean canUndo){
  ArrayList<Integer> closedTabs=new ArrayList<Integer>();
  while (getCount() > 0) {
    Tab tab=getTabAt(0);
    closedTabs.add(tab.getId());
    closeTab(tab,animate,uponExit,canUndo,false);
  }
  if (!uponExit && canUndo && supportsPendingClosures()) {
    for (    TabModelObserver obs : mObservers)     obs.allTabsPendingClosure(closedTabs);
  }
}

public void closeAllTabs ( boolean animate , boolean uponExit , boolean canUndo ) { ArrayList < Integer > closedTabs = new ArrayList < Integer > ( ) ; while ( getCount ( ) > 0 ) { Tab tab = getTabAt ( 0 ) ; closedTabs . add ( tab . getId ( ) ) ; closeTab ( tab , animate , uponExit , canUndo , false ) ; } if ( ! uponExit && canUndo && supportsPendingClosures ( ) ) { for ( TabModelObserver obs : mObservers ) obs . allTabsPendingClosure ( closedTabs ) ; } }
close all tabs on this model without notifying observers about pending tab closures .
