rem: dump("Table Editing:InitDialog()\n"); 
add:  try {  rowCount = editorShell.GetTableRowCount(globalTableElement); dialog.TableRowsInput.value = rowCount; colCount = editorShell.GetTableColumnCount(tableGlobatlElement); dialog.TableColumnsInput.value = colCount; } catch (ex) { dump("Failed to get table rows and/or columns count\n"); dialog.TableRowsInput.value = ""; dialog.TableColumnsInput.value = ""; }  dialog.TableHeightInput.value = InitPixelOrPercentCombobox(globalTableElement, "height", "TableHeightUnits"); dialog.TableWidthInput.value = InitPixelOrPercentCombobox(globalTableElement, "width", "TableWidthUnits"); dialog.BorderWidthInput.value = globalTableElement.border; dialog.SpacingInput.value = globalTableElement.cellSpacing; dialog.PaddingInput.value = globalTableElement.cellPadding;   var halign = globalTableElement.align.toLowerCase(); if (halign == centerStr) dialog.TableAlignSelect.selectedIndex = 1; else if (halign == bottomStr) dialog.TableAlignSelect.selectedIndex = 2; else dialog.TableAlignSelect.selectedIndex = 0;  captionElement = globalTableElement.caption; dump("Caption Element = "+captionElement+"\n"); var index = 0; if (captionElement) { if(captionElement.vAlign == "top") index = 1; else index = 2; } dialog.CaptionSelect.selectedIndex = index;  if (globalTableElement.background) dialog.TableImageInput.value = globalTableElement.background;  SetColor("tableBackgroundCW", globalTableElement.bgColor);   if (globalCellElement) {   dialog.CellHeightInput.value = InitPixelOrPercentCombobox(globalCellElement, "height", "CellHeightUnits"); dialog.CellWidthInput.value = InitPixelOrPercentCombobox(globalCellElement, "width", "CellWidthUnits");   dump("RowSpan="+globalCellElement.rowSpan+" ColSpan="+globalCellElement.colSpan+"\n");  dialog.RowSpanInput.value = globalCellElement.getAttribute("rowspan"); dialog.ColSpanInput.value = globalCellElement.getAttribute("colspan");  var valign = globalCellElement.vAlign.toLowerCase(); if (valign == topStr) dialog.CellVAlignSelect.selectedIndex = 0; else if (valign == bottomStr) dialog.CellVAlignSelect.selectedIndex = 2; else dialog.CellVAlignSelect.selectedIndex = 1;  var halign = globalCellElement.align.toLowerCase(); switch (halign) { case centerStr: dialog.CellHAlignSelect.selectedIndex = 1; break; case rightStr: dialog.CellHAlignSelect.selectedIndex = 2; break; case justifyStr: dialog.CellHAlignSelect.selectedIndex = 3; break; case charStr: var alignChar = globalCellElement.getAttribute(charStr); if (alignChar && alignChar.length == 1) { dialog.CellAlignCharInput.value = alignChar; dialog.CellHAlignSelect.selectedIndex = 4; } else {  dialog.CellHAlignSelect.selectedIndex = 0; } break; default: dialog.CellHAlignSelect.selectedIndex = 0; break; }  SelectCellHAlign();  CellIsHeader = (globalCellElement.nodeName == "TH"); dialog.HeaderCheck.checked = CellIsHeader; dialog.NoWrapCheck.checked = globalCellElement.noWrap;  SetColor("cellBackgroundCW", globalCellElement.bgColor);  if (globalCellElement.background) dialog.CellImageInput.value = globalCellElement.background; } 
context: function InitDialog(){  dump("Table Editing:InitDialog()\n");}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/2b34b49a022263caa641dc5083239be58bde91c8/EdTableProps.js/buggy/editor/ui/dialogs/content/EdTableProps.js