rem: dump("XXX CreateDBView(" + msgFolder + "," + viewType + "," + viewFlags + "," + sortType + "," + sortOrder + ")\n");  
context: function CreateBareDBView(msgFolder, viewType, viewFlags, sortType, sortOrder){  dump("XXX CreateDBView(" + msgFolder + "," + viewType + "," + viewFlags + "," + sortType + "," + sortOrder + ")\n");  var dbviewContractId = "@mozilla.org/messenger/msgdbview;1?type=";  switch (viewType) {      case nsMsgViewType.eShowThreadsWithUnread:          dbviewContractId += "threadswithunread";          break;      case nsMsgViewType.eShowWatchedThreadsWithUnread:          dbviewContractId += "watchedthreadswithunread";          break;      case nsMsgViewType.eShowAllThreads:      default:          dbviewContractId += "threaded";          break;  }  dump("XXX creating " + dbviewContractId + " with: " + viewType + "," + sortType + "," + sortOrder + "\n");  gDBView = Components.classes[dbviewContractId].createInstance(Components.interfaces.nsIMsgDBView);  var isNews = isNewsURI(msgFolder.URI);  if (!viewFlags) {    if (isNews) {      // news defaults to threaded mode      viewFlags = nsMsgViewFlagsType.kThreadedDisplay;    }    else {      viewFlags &= nsMsgViewFlagsType.kThreadedDisplay;    }  }  if (!sortType) {    if (isNews) {       // news defaults to threaded mode      sortType = nsMsgViewSortType.byThread;    }    else {      sortType = nsMsgViewSortType.byDate;    }  }  if (!sortOrder) {    sortOrder = nsMsgViewSortOrder.ascending;  }  gCurViewFlags = viewFlags;  var count = new Object;  if (!gThreadPaneCommandUpdater)    gThreadPaneCommandUpdater = new nsMsgDBViewCommandUpdater();  gDBView.init(messenger, msgWindow, gThreadPaneCommandUpdater);  gDBView.open(msgFolder, sortType, sortOrder, viewFlags, count);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/977b5ce7381ad6f7ce54870d36ed14c25f11bc37/commandglue.js/clean/mailnews/base/resources/content/commandglue.js