nus-yam/ex-repair huggingface dataset:
Program: 78953
Project: 78953
Buggy source:
/** 
 * Gets all available themes .
 * @return A String array contains all available themes.
 */
public static String[] getThemes(){
  ArrayList list=new ArrayList();
  list.add(CHOICE_NONE);
  ModuleHandle handle=SessionHandleAdapter.getInstance().getReportDesignHandle();
  Iterator iterator=handle.getAllThemes().iterator();
  if (iterator != null) {
    while (iterator.hasNext()) {
      ReportElementHandle elementHandle=(ReportElementHandle)iterator.next();
      list.add(elementHandle.getQualifiedName());
    }
  }
  return (String[])list.toArray(new String[0]);
}

Fixed version (ground truth):
/** 
 * Gets all available themes .
 * @return A String array contains all available themes.
 */
public static String[] getThemes(){
  ArrayList list=new ArrayList();
  list.add(CHOICE_NONE);
  ModuleHandle handle=SessionHandleAdapter.getInstance().getReportDesignHandle();
  Iterator iterator=handle.getAllThemes().iterator();
  if (iterator != null) {
    while (iterator.hasNext()) {
      ReportElementHandle elementHandle=(ReportElementHandle)iterator.next();
      list.add(elementHandle.getName());
    }
  }
  return (String[])list.toArray(new String[0]);
}
Program: 78954
Project: 78954
Buggy source:
/** 
 * Indicates whether some other object is "equal to" this one.
 * @param obj the reference object with which to compare.
 */
public boolean equals(Object obj){
  if (obj == null || !(obj instanceof StringValue)) {
    return false;
  }
  StringValue v=(StringValue)obj;
  if (unitType != v.unitType) {
    return false;
  }
  return value.equals(v.value);
}

Fixed version (ground truth):
/** 
 * Indicates whether some other object is "equal to" this one.
 * @param obj the reference object with which to compare.
 */
public boolean equals(Object obj){
  if (obj == null || !(obj instanceof StringValue)) {
    return false;
  }
  StringValue v=(StringValue)obj;
  if (unitType != v.unitType) {
    return false;
  }
  if (value != null) {
    return value.equals(v.value);
  }
 else {
    if (v.value == null) {
      return true;
    }
  }
  return false;
}
Program: 78956
Project: 78956
Buggy source:
/** 
 * Converts the actual float value to the given unit type.
 */
public static float convertFloatValue(short unitType,FloatValue value){
switch (unitType) {
case CSSPrimitiveValue.CSS_NUMBER:
case CSSPrimitiveValue.CSS_PERCENTAGE:
case CSSPrimitiveValue.CSS_EMS:
case CSSPrimitiveValue.CSS_EXS:
case CSSPrimitiveValue.CSS_DIMENSION:
case CSSPrimitiveValue.CSS_PX:
    if (value.getPrimitiveType() == unitType) {
      return value.getFloatValue(unitType);
    }
  break;
case CSSPrimitiveValue.CSS_CM:
return toCentimeters(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_MM:
return toMillimeters(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_IN:
return toInches(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_PT:
return toPoints(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_PC:
return toPicas(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_DEG:
return toDegrees(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_RAD:
return toRadians(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_GRAD:
return toGradians(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_MS:
return toMilliseconds(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_S:
return toSeconds(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_HZ:
return toHertz(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_KHZ:
return tokHertz(unitType,value.getFloatValue());
}
throw new DOMException(DOMException.INVALID_ACCESS_ERR,"String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Converts the actual float value to the given unit type.
 */
public static float convertFloatValue(short unitType,FloatValue value){
switch (unitType) {
case CSSPrimitiveValue.CSS_NUMBER:
case CSSPrimitiveValue.CSS_PERCENTAGE:
case CSSPrimitiveValue.CSS_EMS:
case CSSPrimitiveValue.CSS_EXS:
case CSSPrimitiveValue.CSS_DIMENSION:
case CSSPrimitiveValue.CSS_PX:
    if (value.getPrimitiveType() == unitType) {
      return value.getFloatValue();
    }
  break;
case CSSPrimitiveValue.CSS_CM:
return toCentimeters(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_MM:
return toMillimeters(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_IN:
return toInches(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_PT:
return toPoints(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_PC:
return toPicas(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_DEG:
return toDegrees(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_RAD:
return toRadians(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_GRAD:
return toGradians(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_MS:
return toMilliseconds(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_S:
return toSeconds(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_HZ:
return toHertz(unitType,value.getFloatValue());
case CSSPrimitiveValue.CSS_KHZ:
return tokHertz(unitType,value.getFloatValue());
}
throw new DOMException(DOMException.INVALID_ACCESS_ERR,"String_Node_Str");
}
Program: 78957
Project: 78957
Buggy source:
/** 
 * Returns the property value which is related to container. It may be from the selector style which represents the slot or combination of container and slot.
 * @param module the module
 * @param prop the definition of property
 * @return the property value, or null if no value is set.
 */
protected Object getPropertyRelatedToContainer(Module module,ElementPropertyDefn prop){
  if (getContainer() == null)   return null;
  String selector=getContainer().getSelector(getContainerSlot());
  return getPropertyFromSelector(module,prop,selector);
}

Fixed version (ground truth):
/** 
 * Returns the property value which is related to container.
 * @param module the module
 * @param prop the definition of property
 * @return the property value, or null if no value is set.
 */
protected Object getPropertyRelatedToContainer(Module module,ElementPropertyDefn prop){
  return null;
}
Program: 78958
Project: 78958
Buggy source:
protected void accessHeader(ListingDesign list,IContentEmitter emitter){
  ITableContent tableContent=(ITableContent)context.getContent();
  TableBandDesign bandDesign=((TableItemDesign)list).getHeader();
  if (bandDesign != null) {
    ITableBandContent header=report.createTableHeader();
    context.pushContent(header);
    initializeContent(tableContent,bandDesign,header);
    if (emitter != null) {
      emitter.startTableHeader(header);
    }
    accessTableBand(bandDesign,emitter);
    if (emitter != null) {
      emitter.endTableHeader(header);
    }
    context.popContent();
  }
  ITableBandContent body=report.createTableBody();
  initializeContent(tableContent,null,body);
  context.pushContent(body);
  if (emitter != null) {
    emitter.startTableBody(body);
  }
}

Fixed version (ground truth):
protected void accessHeader(ListingDesign list,IContentEmitter emitter){
  ITableContent tableContent=(ITableContent)context.getContent();
  TableBandDesign bandDesign=((TableItemDesign)list).getHeader();
  if (bandDesign != null) {
    ITableBandContent header=report.createTableHeader();
    context.pushContent(header);
    initializeContent(tableContent,bandDesign,header);
    if (emitter != null) {
      emitter.startTableHeader(header);
    }
    accessTableBand(bandDesign,emitter,false);
    if (emitter != null) {
      emitter.endTableHeader(header);
    }
    context.popContent();
  }
  ITableBandContent body=report.createTableBody();
  initializeContent(tableContent,null,body);
  context.pushContent(body);
  if (emitter != null) {
    emitter.startTableBody(body);
  }
}
Program: 78959
Project: 78959
Buggy source:
protected void accessTableBand(TableBandDesign band,IContentEmitter emitter){
  if (band != null) {
    for (int i=0; i < band.getRowCount(); i++) {
      accessRow(band.getRow(i),emitter);
    }
  }
}

Fixed version (ground truth):
protected void accessTableBand(TableBandDesign band,IContentEmitter emitter,boolean runScript){
  if (band != null) {
    for (int i=0; i < band.getRowCount(); i++) {
      accessRow(band.getRow(i),emitter,runScript);
    }
  }
}
Program: 78960
Project: 78960
Buggy source:
protected void accessDetail(ListingDesign list,IContentEmitter emitter){
  accessTableBand(((TableItemDesign)list).getDetail(),emitter);
}

Fixed version (ground truth):
protected void accessDetail(ListingDesign list,IContentEmitter emitter){
  accessTableBand(((TableItemDesign)list).getDetail(),emitter,true);
}
Program: 78961
Project: 78961
Buggy source:
protected void accessFooter(ListingDesign list,IContentEmitter emitter){
  if (layoutEmitter != null) {
    layoutEmitter.flush();
    outputEmitter=layoutEmitter.emitter;
    emitter=outputEmitter;
    layoutEmitter=null;
  }
  ITableBandContent body=(ITableBandContent)context.getContent();
  if (emitter != null) {
    emitter.endTableBody(body);
  }
  context.popContent();
  TableBandDesign bandDesign=((TableItemDesign)list).getFooter();
  if (bandDesign != null) {
    ITableBandContent footer=report.createTableFooter();
    IContent parent=context.getContent();
    context.pushContent(footer);
    initializeContent(parent,bandDesign,footer);
    if (emitter != null) {
      emitter.startTableFooter(footer);
    }
    accessTableBand(bandDesign,emitter);
    if (emitter != null) {
      emitter.endTableFooter(footer);
    }
    context.popContent();
  }
}

Fixed version (ground truth):
protected void accessFooter(ListingDesign list,IContentEmitter emitter){
  if (layoutEmitter != null) {
    layoutEmitter.flush();
    outputEmitter=layoutEmitter.emitter;
    emitter=outputEmitter;
    layoutEmitter=null;
  }
  ITableBandContent body=(ITableBandContent)context.getContent();
  if (emitter != null) {
    emitter.endTableBody(body);
  }
  context.popContent();
  TableBandDesign bandDesign=((TableItemDesign)list).getFooter();
  if (bandDesign != null) {
    ITableBandContent footer=report.createTableFooter();
    IContent parent=context.getContent();
    context.pushContent(footer);
    initializeContent(parent,bandDesign,footer);
    if (emitter != null) {
      emitter.startTableFooter(footer);
    }
    accessTableBand(bandDesign,emitter,false);
    if (emitter != null) {
      emitter.endTableFooter(footer);
    }
    context.popContent();
  }
}
Program: 78963
Project: 78963
Buggy source:
protected void accessGroupHeader(ListingDesign list,int index,IContentEmitter emitter){
  groupIndex=index;
  TableGroupDesign group=((TableItemDesign)list).getGroup(index);
  if (group != null) {
    TableBandDesign band=group.getHeader();
    if (layoutEmitter == null && tableInfo.hasDropCells(index)) {
      layoutEmitter=new TableLayoutEmitter((TableItemDesign)list,emitter);
      outputEmitter=layoutEmitter;
    }
    accessTableBand(band,outputEmitter);
  }
}

Fixed version (ground truth):
protected void accessGroupHeader(ListingDesign list,int index,IContentEmitter emitter){
  groupIndex=index;
  TableGroupDesign group=((TableItemDesign)list).getGroup(index);
  if (group != null) {
    TableBandDesign band=group.getHeader();
    if (layoutEmitter == null && tableInfo.hasDropCells(index)) {
      layoutEmitter=new TableLayoutEmitter((TableItemDesign)list,emitter);
      outputEmitter=layoutEmitter;
    }
    accessTableBand(band,outputEmitter,false);
  }
}
Program: 78965
Project: 78965
Buggy source:
public float getBolderFontWeight(float f){
  return 0;
}

Fixed version (ground truth):
/** 
 * Returns a bolder font-weight.
 */
public float getBolderFontWeight(float f){
  int weight=((int)((f + 50) / 100)) * 100;
switch (weight) {
case 100:
    return 600;
case 200:
  return 600;
case 300:
return 600;
case 400:
return 600;
case 500:
return 600;
case 600:
return 700;
case 700:
return 800;
case 800:
return 900;
case 900:
return 900;
default :
throw new IllegalArgumentException("String_Node_Str" + f);
}
}
Program: 78966
Project: 78966
Buggy source:
public CSSValue getDefaultFontFamily(){
  return FontFamilyManager.DEFAULT_VALUE;
}

Fixed version (ground truth):
/** 
 * Returns the default font family.
 */
public CSSValue getDefaultFontFamily(){
  return FontFamilyManager.DEFAULT_VALUE;
}
Program: 78967
Project: 78967
Buggy source:
public float getLighterFontWeight(float f){
  return 0;
}

Fixed version (ground truth):
/** 
 * Returns a lighter font-weight.
 */
public float getLighterFontWeight(float f){
  int weight=((int)((f + 50) / 100)) * 100;
switch (weight) {
case 100:
    return 100;
case 200:
  return 100;
case 300:
return 200;
case 400:
return 300;
case 500:
return 400;
case 600:
return 400;
case 700:
return 400;
case 800:
return 400;
case 900:
return 400;
default :
throw new IllegalArgumentException("String_Node_Str" + f);
}
}
Program: 78968
Project: 78968
Buggy source:
public float getPixelUnitToMillimeter(){
  return 0;
}

Fixed version (ground truth):
/** 
 * Returns the size of a px CSS unit in millimeters.
 */
public float getPixelUnitToMillimeter(){
  return 0.26458333333333333333333333333333f;
}
Program: 78969
Project: 78969
Buggy source:
public float getMediumFontSize(){
  return 0;
}

Fixed version (ground truth):
/** 
 * Returns the  medium font size. 
 */
public float getMediumFontSize(){
  return 9f * 1000.0f;
}
Program: 78970
Project: 78970
Buggy source:
public void dragOver(DropTargetEvent event){
  super.dragOver(event);
  event.detail=DND.DROP_NONE;
}

Fixed version (ground truth):
public void dragOver(DropTargetEvent event){
  super.dragOver(event);
  if (getTargetEditPart() == null || getTargetEditPart().getModel() instanceof LibraryHandle) {
    event.detail=DND.DROP_NONE;
  }
}
Program: 78971
Project: 78971
Buggy source:
protected boolean handleMove(){
  if (isCreating || SessionHandleAdapter.getInstance().getReportDesignHandle() instanceof LibraryHandle) {
    return true;
  }
  boolean validateTrue=false;
  updateTargetUnderMouse();
  if (getTargetEditPart() != null) {
    validateTrue=handleValidatePalette(getFactory().getObjectType(),getTargetEditPart());
  }
  if (validateTrue) {
    updateTargetRequest();
    setCurrentCommand(getCommand());
    showTargetFeedback();
  }
 else {
    setCurrentCommand(null);
  }
  return validateTrue;
}

Fixed version (ground truth):
protected boolean handleMove(){
  boolean validateTrue=false;
  updateTargetUnderMouse();
  if (isCreating || getTargetEditPart().getModel() instanceof LibraryHandle) {
    return true;
  }
  if (getTargetEditPart() != null) {
    validateTrue=handleValidatePalette(getFactory().getObjectType(),getTargetEditPart());
  }
  if (validateTrue) {
    updateTargetRequest();
    setCurrentCommand(getCommand());
    showTargetFeedback();
  }
 else {
    setCurrentCommand(null);
  }
  return validateTrue;
}
Program: 78972
Project: 78972
Buggy source:
/** 
 * Returns the object can be deleted. If the parent can be deleted, the children will be skippedl
 * @param source single or multiple objects
 */
protected boolean canDrop(Object source){
  if (source == null) {
    return false;
  }
  if (source instanceof StructuredSelection) {
    return canDrop(((StructuredSelection)source).toArray());
  }
  if (source instanceof Object[]) {
    Object[] array=(Object[])source;
    if (array.length == 0) {
      return false;
    }
    for (int i=0; i < array.length; i++) {
      if (DNDUtil.checkContainerExists(array[i],array))       continue;
      if (canDrop(array[i]))       return true;
    }
    return false;
  }
  source=DNDUtil.unwrapToModel(source);
  if (source instanceof SlotHandle) {
    SlotHandle slot=(SlotHandle)source;
    DesignElementHandle handle=slot.getElementHandle();
    return slot.getContents().size() > 0 && (handle instanceof ListHandle || handle instanceof ListGroupHandle);
  }
  if (source instanceof EmbeddedImageHandle) {
    return true;
  }
  if (source instanceof CellHandle) {
    return ((CellHandle)source).getContent().getContents().size() > 0;
  }
  return source instanceof ReportElementHandle && !(source instanceof MasterPageHandle);
}

Fixed version (ground truth):
/** 
 * Returns the object can be deleted. If the parent can be deleted, the children will be skippedl
 * @param source single or multiple objects
 */
protected boolean canDrop(Object source){
  if (source == null) {
    return false;
  }
  if (source instanceof StructuredSelection) {
    return canDrop(((StructuredSelection)source).toArray());
  }
  if (source instanceof Object[]) {
    Object[] array=(Object[])source;
    if (array.length == 0) {
      return false;
    }
    for (int i=0; i < array.length; i++) {
      if (DNDUtil.checkContainerExists(array[i],array))       continue;
      if (canDrop(array[i]))       return true;
    }
    return false;
  }
  source=DNDUtil.unwrapToModel(source);
  if (source instanceof SlotHandle) {
    SlotHandle slot=(SlotHandle)source;
    DesignElementHandle handle=slot.getElementHandle();
    return slot.getContents().size() > 0 && (handle instanceof ListHandle || handle instanceof ListGroupHandle);
  }
  if (source instanceof EmbeddedImageHandle) {
    return true;
  }
  if (source instanceof CellHandle) {
    return ((CellHandle)source).getContent().getContents().size() > 0;
  }
  if (source instanceof MasterPageHandle) {
    return false;
  }
 else   if (source instanceof ReportElementHandle) {
    if (((ReportElementHandle)source).getRoot() instanceof LibraryHandle && SessionHandleAdapter.getInstance().getReportDesignHandle() instanceof ReportDesignHandle) {
      return false;
    }
    return true;
  }
 else   return false;
}
Program: 78973
Project: 78973
Buggy source:
/** 
 * Gets the name of this element. The returned element name will be the same as <CODE>getName()</CODE>, plus the namespace of the module that the elment is contained, if any. If the element is existed in the current module,this method and <CODE>getName()</CODE> will return identical results.
 * @return the qualified name of thie element.
 */
public String getQualifiedName(){
  if (getElement().getName() == null)   return null;
  if (module instanceof Library) {
    String namespace=((Library)module).getNamespace();
    return StringUtil.buildQualifiedReference(namespace,getElement().getName());
  }
  return getElement().getName();
}

Fixed version (ground truth):
/** 
 * Gets the name of this element. The returned element name will be the same as <CODE>getName()</CODE>, plus the namespace of the module that the elment is contained, if any. If the element is existed in the current module,this method and <CODE>getName()</CODE> will return identical results.
 * @return the qualified name of thie element.
 */
public String getQualifiedName(){
  if (getElement().getName() == null)   return null;
  Module rootElement=(Module)getRoot().getElement();
  if (rootElement instanceof Library) {
    String namespace=((Library)rootElement).getNamespace();
    return StringUtil.buildQualifiedReference(namespace,getElement().getName());
  }
  return getElement().getName();
}
Program: 78974
Project: 78974
Buggy source:
/** 
 * Checks whether this element is based on a template parameter definition or not. Call this method before calling method  {@link #revertToTemplate(String) } to assure that this element can bereverted to a template element. If this method returns false, method <code>revertToTemplate(String)</code> must fail too.
 * @return true if this element is based on a template parameter definition,otherwise false
 */
public boolean isTemplateParameterValue(){
  return getElement().getTemplateParameterElement(getModule()) != null;
}

Fixed version (ground truth):
/** 
 * Checks whether this element is based on a template parameter definition or not. Call this method before calling method  {@link #revertToTemplate(String) }to assure that this element can be reverted to a template element. If this method returns false, method <code>revertToTemplate(String)</code> must fail too.
 * @return true if this element is based on a template parameter definition,otherwise false
 */
public boolean isTemplateParameterValue(){
  return getElement().getTemplateParameterElement(getModule()) != null;
}
Program: 78976
Project: 78976
Buggy source:
/** 
 * execute the data item. <li> create the data content object <li> push it to the stack <li> open the data set, seek to the first record <li> intialize the content object <li> process the style, visiblitly, action and bookmark <li> evaluate the expression, and map it to a predefined value. <li> call the onCreate if necessary <li> pass it to emitter <li> close the data set if any <li> pop the stack.
 * @see org.eclipse.birt.report.engine.excutor.ReportItemExecutor#execute()
 */
public void execute(ReportItemDesign item,IContentEmitter emitter){
  DataItemDesign dataItem=(DataItemDesign)item;
  IDataContent dataObj=report.createDataContent();
  assert(dataObj instanceof DataContent);
  IContent parent=context.getContent();
  context.pushContent(dataObj);
  openResultSet(item);
  accessQuery(item,emitter);
  initializeContent(parent,item,dataObj);
  processAction(item,dataObj);
  processBookmark(item,dataObj);
  processStyle(item,dataObj);
  processVisibility(item,dataObj);
  Object value=context.evaluate(dataItem.getValue());
  value=getMappingValue(value,dataItem);
  dataObj.setValue(value);
  if (context.isInFactory()) {
    DataItemScriptExecutor.handleOnCreate((DataContent)dataObj,context);
  }
  if (emitter != null) {
    emitter.startData(dataObj);
  }
  closeResultSet();
  context.popContent();
}

Fixed version (ground truth):
/** 
 * execute the data item. <li> create the data content object <li> push it to the stack <li> open the data set, seek to the first record <li> intialize the content object <li> process the style, visiblitly, action and bookmark <li> evaluate the expression, and map it to a predefined value. <li> call the onCreate if necessary <li> pass it to emitter <li> close the data set if any <li> pop the stack.
 * @see org.eclipse.birt.report.engine.excutor.ReportItemExecutor#execute()
 */
public void execute(ReportItemDesign item,IContentEmitter emitter){
  DataItemDesign dataItem=(DataItemDesign)item;
  IDataContent dataObj=report.createDataContent();
  assert(dataObj instanceof DataContent);
  IContent parent=context.getContent();
  context.pushContent(dataObj);
  openResultSet(item);
  accessQuery(item,emitter);
  initializeContent(parent,item,dataObj);
  processAction(item,dataObj);
  processBookmark(item,dataObj);
  processStyle(item,dataObj);
  processVisibility(item,dataObj);
  Object value=context.evaluate(dataItem.getValue());
  value=getMappingValue(value,dataItem);
  dataObj.setValue(value);
  if (context.isInFactory()) {
    try {
      context.newScope(dataObj);
      DataItemScriptExecutor.handleOnCreate((DataContent)dataObj,context);
    }
  finally {
      context.exitScope();
    }
  }
  if (emitter != null) {
    emitter.startData(dataObj);
  }
  closeResultSet();
  context.popContent();
}
Program: 78977
Project: 78977
Buggy source:
/** 
 * execute a cell. the execution process is: <li> create a cell content <li> push the content into the stack <li> intialize the cell <li> process the action, bookmark, style, visibility <li> call onCreate if necessary <li> call emitter to start the cell <li> for each element in the cell, execute the element. <li> call emiter to close the cell <li> popup the cell.
 * @param rowContent row content
 * @param cell cell design
 * @param emitter output emitter
 */
private void executeCell(IRowContent rowContent,CellDesign cell,IContentEmitter emitter){
  ICellContent cellContent=report.createCellContent();
  assert(cellContent instanceof CellContent);
  context.pushContent(cellContent);
  initializeContent(rowContent,cell,cellContent);
  cellContent.setColumn(cell.getColumn());
  cellContent.setColSpan(cell.getColSpan());
  cellContent.setRowSpan(cell.getRowSpan());
  processAction(cell,cellContent);
  processBookmark(cell,cellContent);
  processStyle(cell,cellContent);
  processVisibility(cell,cellContent);
  if (context.isInFactory()) {
    CellScriptExecutor.handleOnCreate((CellContent)cellContent,null,context);
  }
  if (emitter != null) {
    emitter.startCell(cellContent);
  }
  for (int m=0; m < cell.getContentCount(); m++) {
    ReportItemDesign ri=cell.getContent(m);
    if (ri != null) {
      ri.accept(this.visitor,emitter);
    }
  }
  if (emitter != null) {
    emitter.endCell(cellContent);
  }
  context.popContent();
}

Fixed version (ground truth):
/** 
 * execute a cell. the execution process is: <li> create a cell content <li> push the content into the stack <li> intialize the cell <li> process the action, bookmark, style, visibility <li> call onCreate if necessary <li> call emitter to start the cell <li> for each element in the cell, execute the element. <li> call emiter to close the cell <li> popup the cell.
 * @param rowContent row content
 * @param cell cell design
 * @param emitter output emitter
 */
private void executeCell(IRowContent rowContent,CellDesign cell,IContentEmitter emitter){
  ICellContent cellContent=report.createCellContent();
  assert(cellContent instanceof CellContent);
  context.pushContent(cellContent);
  initializeContent(rowContent,cell,cellContent);
  cellContent.setColumn(cell.getColumn());
  cellContent.setColSpan(cell.getColSpan());
  cellContent.setRowSpan(cell.getRowSpan());
  processAction(cell,cellContent);
  processBookmark(cell,cellContent);
  processStyle(cell,cellContent);
  processVisibility(cell,cellContent);
  if (context.isInFactory()) {
    try {
      context.newScope(cellContent);
      CellScriptExecutor.handleOnCreate((CellContent)cellContent,null,context);
    }
  finally {
      context.exitScope();
    }
  }
  if (emitter != null) {
    emitter.startCell(cellContent);
  }
  for (int m=0; m < cell.getContentCount(); m++) {
    ReportItemDesign ri=cell.getContent(m);
    if (ri != null) {
      ri.accept(this.visitor,emitter);
    }
  }
  if (emitter != null) {
    emitter.endCell(cellContent);
  }
  context.popContent();
}
Program: 78978
Project: 78978
Buggy source:
/** 
 * execute the row. The execution process is: <li> create a row content <li> push it into the context <li> intialize the content. <li> process bookmark, action, style and visibility <li> call onCreate if necessary <li> call emitter to start the row <li> for each cell, execute the cell <li> call emitter to close the row <li> pop up the row.
 * @param rowId row id.
 * @param body table body.
 * @param row row design
 * @param emitter output emitter
 */
private void executeRow(int rowId,ITableBandContent body,RowDesign row,IContentEmitter emitter){
  IRowContent rowContent=report.createRowContent();
  assert(rowContent instanceof RowContent);
  context.pushContent(rowContent);
  initializeContent(body,row,rowContent);
  processAction(row,rowContent);
  processBookmark(row,rowContent);
  processStyle(row,rowContent);
  processVisibility(row,rowContent);
  if (context.isInFactory()) {
    DetailRowScriptExecutor.handleOnCreate((RowContent)rowContent,null,context);
  }
  if (emitter != null) {
    emitter.startRow(rowContent);
  }
  for (int j=0; j < row.getCellCount(); j++) {
    CellDesign cell=row.getCell(j);
    if (cell != null) {
      executeCell(rowContent,cell,emitter);
    }
  }
  if (emitter != null) {
    emitter.endRow(rowContent);
  }
  context.popContent();
}

Fixed version (ground truth):
/** 
 * execute the row. The execution process is: <li> create a row content <li> push it into the context <li> intialize the content. <li> process bookmark, action, style and visibility <li> call onCreate if necessary <li> call emitter to start the row <li> for each cell, execute the cell <li> call emitter to close the row <li> pop up the row.
 * @param rowId row id.
 * @param body table body.
 * @param row row design
 * @param emitter output emitter
 */
private void executeRow(int rowId,ITableBandContent body,RowDesign row,IContentEmitter emitter){
  IRowContent rowContent=report.createRowContent();
  assert(rowContent instanceof RowContent);
  context.pushContent(rowContent);
  initializeContent(body,row,rowContent);
  processAction(row,rowContent);
  processBookmark(row,rowContent);
  processStyle(row,rowContent);
  processVisibility(row,rowContent);
  if (context.isInFactory()) {
    try {
      context.newScope(rowContent);
      DetailRowScriptExecutor.handleOnCreate((RowContent)rowContent,null,context);
    }
  finally {
      context.exitScope();
    }
  }
  if (emitter != null) {
    emitter.startRow(rowContent);
  }
  for (int j=0; j < row.getCellCount(); j++) {
    CellDesign cell=row.getCell(j);
    if (cell != null) {
      executeCell(rowContent,cell,emitter);
    }
  }
  if (emitter != null) {
    emitter.endRow(rowContent);
  }
  context.popContent();
}
Program: 78980
Project: 78980
Buggy source:
/** 
 * execute a label and output an label item content. The execution process is: <li> create an label <li> push it into the stack <li> intialize the content <li> process the action, bookmark, style ,visibility. <li> execute the onCreate if necessary <li> call emitter to start the label <li> popup the label.
 * @see org.eclipse.birt.report.engine.executor.ReportItemExcutor#execute()
 */
public void execute(ReportItemDesign item,IContentEmitter emitter){
  ILabelContent labelObj=report.createLabelContent();
  assert(labelObj instanceof LabelContent);
  IContent parent=context.getContent();
  context.pushContent(labelObj);
  initializeContent(parent,item,labelObj);
  processAction(item,labelObj);
  processBookmark(item,labelObj);
  processStyle(item,labelObj);
  processVisibility(item,labelObj);
  if (context.isInFactory()) {
    LabelScriptExecutor.handleOnCreate((LabelContent)labelObj,context);
  }
  if (emitter != null) {
    emitter.startLabel(labelObj);
  }
  context.popContent();
}

Fixed version (ground truth):
/** 
 * execute a label and output an label item content. The execution process is: <li> create an label <li> push it into the stack <li> intialize the content <li> process the action, bookmark, style ,visibility. <li> execute the onCreate if necessary <li> call emitter to start the label <li> popup the label.
 * @see org.eclipse.birt.report.engine.executor.ReportItemExcutor#execute()
 */
public void execute(ReportItemDesign item,IContentEmitter emitter){
  ILabelContent labelObj=report.createLabelContent();
  assert(labelObj instanceof LabelContent);
  IContent parent=context.getContent();
  context.pushContent(labelObj);
  initializeContent(parent,item,labelObj);
  processAction(item,labelObj);
  processBookmark(item,labelObj);
  processStyle(item,labelObj);
  processVisibility(item,labelObj);
  if (context.isInFactory()) {
    try {
      context.newScope(labelObj);
      LabelScriptExecutor.handleOnCreate((LabelContent)labelObj,context);
    }
  finally {
      context.exitScope();
    }
  }
  if (emitter != null) {
    emitter.startLabel(labelObj);
  }
  context.popContent();
}
Program: 78984
Project: 78984
Buggy source:
/** 
 * execute the plain text.
 * @param design
 * @param emitter
 */
protected void executePlainText(TextItemDesign design,IContentEmitter emitter){
  ILabelContent content=report.createLabelContent();
  assert(content instanceof LabelContent);
  IContent parent=context.getContent();
  context.pushContent(content);
  initializeContent(parent,design,content);
  content.setLabelText(design.getText());
  content.setLabelKey(design.getTextKey());
  processAction(design,content);
  processBookmark(design,content);
  processStyle(design,content);
  processVisibility(design,content);
  if (context.isInFactory()) {
    if (context.isInFactory()) {
      TextItemScriptExecutor.handleOnCreate((LabelContent)content,context);
    }
  }
  if (emitter != null) {
    emitter.startLabel(content);
  }
  context.popContent();
}

Fixed version (ground truth):
/** 
 * execute the plain text.
 * @param design
 * @param emitter
 */
protected void executePlainText(TextItemDesign design,IContentEmitter emitter){
  ILabelContent content=report.createLabelContent();
  assert(content instanceof LabelContent);
  IContent parent=context.getContent();
  context.pushContent(content);
  initializeContent(parent,design,content);
  content.setLabelText(design.getText());
  content.setLabelKey(design.getTextKey());
  processAction(design,content);
  processBookmark(design,content);
  processStyle(design,content);
  processVisibility(design,content);
  if (context.isInFactory()) {
    try {
      context.newScope(content);
      TextItemScriptExecutor.handleOnCreate((LabelContent)content,context);
    }
  finally {
      context.exitScope();
    }
  }
  if (emitter != null) {
    emitter.startLabel(content);
  }
  context.popContent();
}
Program: 78985
Project: 78985
Buggy source:
/** 
 * Sets the theme to a report.
 * @param themeName the name of the theme
 * @throws SemanticException
 */
public void setThemeName(String themeName) throws SemanticException {
  ThemeCommand command=new ThemeCommand(getModule());
  command.setTheme(themeName);
}

Fixed version (ground truth):
/** 
 * Sets the theme to a report.
 * @param themeName the name of the theme
 * @throws SemanticException
 */
public void setThemeName(String themeName) throws SemanticException {
  ThemeCommand command=new ThemeCommand(getModule(),getElement());
  command.setTheme(themeName);
}
Program: 78986
Project: 78986
Buggy source:
/** 
 * Sets the theme to a report.
 * @param theme the theme instance
 * @throws SemanticException
 */
private void setThemeElement(Theme theme) throws SemanticException {
  ThemeCommand command=new ThemeCommand(getModule());
  command.setThemeElement(theme);
}

Fixed version (ground truth):
/** 
 * Sets the theme to a report.
 * @param theme the theme instance
 * @throws SemanticException
 */
private void setThemeElement(Theme theme) throws SemanticException {
  ThemeCommand command=new ThemeCommand(getModule(),getElement());
  command.setThemeElement(theme);
}
Program: 78987
Project: 78987
Buggy source:
/** 
 * Constructor.
 * @param module the module
 */
public ThemeCommand(Module module){
}

Fixed version (ground truth):
/** 
 * Constructor.
 * @param module the module
 * @param element the module to set the theme
 */
public ThemeCommand(Module module,DesignElement element){
}
Program: 78988
Project: 78988
Buggy source:
/** 
 * Sets the theme of an element.
 * @param name the name of the theme to set.
 * @throws SemanticException if the element can not have theme or the theme is not found.
 */
public void setTheme(String name) throws SemanticException {
  name=StringUtil.trimString(name);
  ReportDesign design=(ReportDesign)element;
  Theme theme=null;
  Theme oldTheme=design.getTheme();
  if (name != null) {
    theme=getModule().findTheme(name);
    if (theme == oldTheme)     return;
    if (theme == null)     throw new StyleException(element,name,StyleException.DESIGN_EXCEPTION_NOT_FOUND);
  }
 else {
    if (oldTheme == null)     return;
  }
  design.getActivityStack().startTrans();
  PropertyCommand propCommand=new PropertyCommand(module,module);
  propCommand.setProperty(IModuleModel.THEME_PROP,name);
  ThemeRecord themeEffects=new ThemeRecord(design,theme,oldTheme);
  design.getActivityStack().execute(themeEffects);
  design.getActivityStack().commit();
}

Fixed version (ground truth):
/** 
 * Sets the theme of an element.
 * @param name the name of the theme to set.
 * @throws SemanticException if the element can not have theme or the theme is not found.
 */
public void setTheme(String name) throws SemanticException {
  name=StringUtil.trimString(name);
  Module currentModule=(Module)element;
  Theme theme=null;
  Theme oldTheme=currentModule.getTheme();
  if (name != null) {
    theme=getModule().findTheme(name);
    if (theme == oldTheme)     return;
    if (theme == null)     throw new StyleException(element,name,StyleException.DESIGN_EXCEPTION_NOT_FOUND);
  }
 else {
    if (oldTheme == null)     return;
  }
  ThemeRecord themeRecord=new ThemeRecord(currentModule,theme);
  getModule().getActivityStack().execute(themeRecord);
}
Program: 78989
Project: 78989
Buggy source:
/** 
 * Unresolves references of styles of a theme.
 * @param theme the theme
 */
private void unresolveStyles(Theme theme){
}

Fixed version (ground truth):
/** 
 * Unresolves references of styles of a theme.
 * @param theme the theme
 */
private void unresolveStyles(Object theme){
}
Program: 78990
Project: 78990
Buggy source:
public DesignElement getTarget(){
  return newTheme;
}

Fixed version (ground truth):
public DesignElement getTarget(){
  return module;
}
Program: 78991
Project: 78991
Buggy source:
protected void perform(boolean undo){
  if (undo)   unresolveStyles(newTheme);
 else   unresolveStyles(oldTheme);
}

Fixed version (ground truth):
protected void perform(boolean undo){
  if (undo) {
    unresolveStyles(newTheme);
    if (oldTheme instanceof String)     module.setThemeName((String)oldTheme);
 else     module.setTheme((Theme)oldTheme);
  }
 else {
    unresolveStyles(oldTheme);
    module.setTheme(newTheme);
  }
}
Program: 78992
Project: 78992
Buggy source:
/** 
 * Constructs the library record.
 * @param module the module
 * @param library the library to add/drop
 * @param add whether the given library is for adding
 */
ThemeRecord(ReportDesign module,Theme newTheme,Theme oldTheme){
  this.module=module;
  this.newTheme=newTheme;
  this.oldTheme=oldTheme;
}

Fixed version (ground truth):
/** 
 * Constructs the library record.
 * @param module the module
 * @param newTheme the new theme
 * @param oldTheme the old theme
 */
ThemeRecord(Module module,Theme newTheme){
  this.module=module;
  this.newTheme=newTheme;
  if (module.getTheme() != null)   oldTheme=module.getTheme();
 else   oldTheme=module.getThemeName();
  label=ModelMessages.getMessage(MessageConstants.SET_THEME_MESSAGE);
}
Program: 78993
Project: 78993
Buggy source:
/** 
 * Creates a new library.
 * @return the created library.
 */
public Library createLibrary(){
  Library library=new Library(this);
  Theme theme=new Theme(ModelMessages.getMessage(Theme.DEFAULT_THEME_NAME));
  library.setProperty(Module.THEME_PROP,new ElementRefValue(null,theme));
  ModelUtil.insertCompatibleThemeToLibrary(library,theme);
  theme.setID(library.getNextID());
  library.addElementID(theme);
  library.setValid(true);
  libraries.add(library);
  return library;
}

Fixed version (ground truth):
/** 
 * Creates a new library.
 * @return the created library.
 */
public Library createLibrary(){
  Library library=new Library(this);
  Theme theme=new Theme(ModelMessages.getMessage(Theme.DEFAULT_THEME_NAME));
  library.setTheme(theme);
  ModelUtil.insertCompatibleThemeToLibrary(library,theme);
  theme.setID(library.getNextID());
  library.addElementID(theme);
  library.setValid(true);
  libraries.add(library);
  return library;
}
Program: 78994
Project: 78994
Buggy source:
public static Test suite(){
  TestSuite suite=new TestSuite("String_Node_Str" + "String_Node_Str");
  suite.addTestSuite(AverageTest.class);
  suite.addTestSuite(SumTest.class);
  suite.addTestSuite(ValueFormatterTest.class);
  suite.addTestSuite(DataSetProcessorImplTest.class);
  suite.addTestSuite(ResultSetDataSetTest.class);
  suite.addTestSuite(ResultSetWrapperTest.class);
  suite.addTestSuite(StockEntryTest.class);
  suite.addTest(ModelAttributeTest.suite());
  suite.addTestSuite(CDateTimeTest.class);
  suite.addTestSuite(ChartUtilTest.class);
  suite.addTestSuite(ClipTest.class);
  suite.addTestSuite(LiteralHelperTest.class);
  suite.addTestSuite(LowessTest.class);
  suite.addTestSuite(LUDecompositionTest.class);
  suite.addTestSuite(MatrixTest.class);
  suite.addTestSuite(NameSetTest.class);
  suite.addTestSuite(QRDecompositionTest.class);
  return suite;
}

Fixed version (ground truth):
public static Test suite(){
  TestSuite suite=new TestSuite("String_Node_Str" + "String_Node_Str");
  suite.addTestSuite(AverageTest.class);
  suite.addTestSuite(SumTest.class);
  suite.addTestSuite(ValueFormatterTest.class);
  suite.addTestSuite(VectorTest.class);
  suite.addTestSuite(BoundingBoxTest.class);
  suite.addTestSuite(DataSetProcessorImplTest.class);
  suite.addTestSuite(ResultSetDataSetTest.class);
  suite.addTestSuite(ResultSetWrapperTest.class);
  suite.addTestSuite(StockEntryTest.class);
  suite.addTest(ModelAttributeTest.suite());
  suite.addTestSuite(CDateTimeTest.class);
  suite.addTestSuite(ChartUtilTest.class);
  suite.addTestSuite(ClipTest.class);
  suite.addTestSuite(LiteralHelperTest.class);
  suite.addTestSuite(LowessTest.class);
  suite.addTestSuite(LUDecompositionTest.class);
  suite.addTestSuite(MatrixTest.class);
  suite.addTestSuite(NameSetTest.class);
  suite.addTestSuite(QRDecompositionTest.class);
  return suite;
}
Program: 78995
Project: 78995
Buggy source:
public void testGet(){
  assertEquals(ActionType.URL_REDIRECT_LITERAL,ActionType.get(ActionType.URL_REDIRECT));
  assertEquals(ActionType.SHOW_TOOLTIP_LITERAL,ActionType.get(ActionType.SHOW_TOOLTIP));
  assertEquals(ActionType.TOGGLE_VISIBILITY_LITERAL,ActionType.get(2));
  assertEquals(ActionType.INVOKE_SCRIPT_LITERAL,ActionType.get(3));
  assertEquals(ActionType.URL_REDIRECT_LITERAL,ActionType.get("String_Node_Str"));
  assertEquals(ActionType.SHOW_TOOLTIP_LITERAL,ActionType.get("String_Node_Str"));
  assertEquals(ActionType.TOGGLE_VISIBILITY_LITERAL,ActionType.get("String_Node_Str"));
  assertEquals(ActionType.INVOKE_SCRIPT_LITERAL,ActionType.get("String_Node_Str"));
  assertNull(ActionType.get("String_Node_Str"));
  assertNull(ActionType.get(10));
}

Fixed version (ground truth):
public void testGet(){
  assertEquals(ActionType.URL_REDIRECT_LITERAL,ActionType.get(ActionType.URL_REDIRECT));
  assertEquals(ActionType.SHOW_TOOLTIP_LITERAL,ActionType.get(ActionType.SHOW_TOOLTIP));
  assertEquals(ActionType.URL_REDIRECT_LITERAL,ActionType.get("String_Node_Str"));
  assertEquals(ActionType.SHOW_TOOLTIP_LITERAL,ActionType.get("String_Node_Str"));
  assertEquals(ActionType.TOGGLE_VISIBILITY_LITERAL,ActionType.get("String_Node_Str"));
  assertEquals(ActionType.INVOKE_SCRIPT_LITERAL,ActionType.get("String_Node_Str"));
  assertNull(ActionType.get("String_Node_Str"));
}
Program: 78996
Project: 78996
Buggy source:
public void testConstant(){
  assertEquals(ActionType.URL_REDIRECT,0);
  assertEquals(ActionType.SHOW_TOOLTIP,1);
  assertEquals(ActionType.TOGGLE_VISIBILITY,2);
  assertEquals(ActionType.INVOKE_SCRIPT,3);
}

Fixed version (ground truth):
public void testConstant(){
  assertEquals(ActionType.URL_REDIRECT,ActionType.URL_REDIRECT_LITERAL.getValue());
  assertEquals(ActionType.SHOW_TOOLTIP,ActionType.SHOW_TOOLTIP_LITERAL.getValue());
  assertEquals(ActionType.TOGGLE_VISIBILITY,ActionType.TOGGLE_VISIBILITY_LITERAL.getValue());
  assertEquals(ActionType.INVOKE_SCRIPT,ActionType.INVOKE_SCRIPT_LITERAL.getValue());
}
Program: 78997
Project: 78997
Buggy source:
/** 
 * Returns 1-based the column position with the given row index and the cell element.
 * @param rowId the row index
 * @param cell the cell to search
 * @return 1-based the column position
 */
protected int getColumnPos(int rowId,Cell cell){
  if (rowId < 0 || rowId > rows.size())   return 0;
  LayoutRow row=(LayoutRow)getLayoutRow(rowId);
  return row.findCellColumnPos(cell);
}

Fixed version (ground truth):
/** 
 * Returns 1-based the column position with the given row index and the cell element.
 * @param rowId the row index
 * @param cell the cell to search
 * @return 1-based the column position
 */
protected int getColumnPos(int rowId,Cell cell){
  if (rowId < 0 || rowId >= rows.size())   return 0;
  LayoutRow row=(LayoutRow)getLayoutRow(rowId);
  return row.findCellColumnPos(cell);
}
Program: 78998
Project: 78998
Buggy source:
/** 
 * Returns the level of this group within the list. The grouping level is cached for performance.
 * @return the 1-based grouping level of this group
 */
public int getGroupLevel(){
  if (groupLevel == LEVEL_NOT_SET) {
    ContainerSlot slot=container.getSlot(containerSlotID);
    groupLevel=slot.findPosn(this) + 1;
  }
  return groupLevel;
}

Fixed version (ground truth):
/** 
 * Returns the level of this group within the list. The grouping level is cached for performance.
 * @return the 1-based grouping level of this group
 */
public int getGroupLevel(){
  ContainerSlot slot=container.getSlot(containerSlotID);
  groupLevel=slot.findPosn(this) + 1;
  return groupLevel;
}
Program: 78999
Project: 78999
Buggy source:
/** 
 * Checks whether the input stream has a compatible encoding signature with BIRT. Currently, BIRT only supports UTF-8 encoding.
 * @param inputStream the input stream to check
 * @param fileName the design file name
 * @return the signature from the UTF files.
 * @throws IOException if errors occur during opening the design file
 * @throws SAXException if the stream has unexpected encoding signature
 */
protected String checkUTFSignature(InputStream inputStream,String fileName) throws IOException, SAXException {
  logger.log(Level.FINE,"String_Node_Str");
  String encoding=UnicodeUtil.checkUTFSignature(inputStream);
  if (encoding != null && !UnicodeUtil.SIGNATURE_UTF_8.equals(encoding)) {
    Exception cause=new DesignParserException(DesignParserException.DESIGN_EXCEPTION_UNSUPPORTED_ENCODING);
    Exception fileException=new DesignFileException(fileName,cause);
    throw new SAXException(fileException);
  }
  return encoding;
}

Fixed version (ground truth):
/** 
 * Checks whether the input stream has a compatible encoding signature with BIRT. Currently, BIRT only supports UTF-8 encoding.
 * @param inputStream the input stream to check
 * @param fileName the design file name
 * @return the signature from the UTF files.
 * @throws IOException if errors occur during opening the design file
 * @throws SAXException if the stream has unexpected encoding signature
 */
protected String checkUTFSignature(InputStream inputStream,String fileName) throws IOException, SAXException {
  String encoding=UnicodeUtil.checkUTFSignature(inputStream);
  if (encoding != null && !UnicodeUtil.SIGNATURE_UTF_8.equals(encoding)) {
    Exception cause=new DesignParserException(DesignParserException.DESIGN_EXCEPTION_UNSUPPORTED_ENCODING);
    Exception fileException=new DesignFileException(fileName,cause);
    throw new SAXException(fileException);
  }
  return encoding;
}
Program: 79000
Project: 79000
Buggy source:
public void setEnabled(boolean bState){
  boolean bEnableUI=true;
  if (this.bVisibilityEnabled) {
    cbVisible.setEnabled(bState);
    bEnableUI=cbVisible.getSelection();
  }
  if (this.bPositionEnabled) {
    lblPosition.setEnabled(bState & bEnableUI);
    cmbPosition.setEnabled(bState & bEnableUI);
  }
  lblFont.setEnabled(bState & bEnableUI);
  fdcFont.setEnabled(bState & bEnableUI);
  lblFill.setEnabled(bState & bEnableUI);
  fccBackground.setEnabled(bState & bEnableUI);
  if (this.bShadowEnabled) {
    lblShadow.setEnabled(bState & bEnableUI);
    fccShadow.setEnabled(bState & bEnableUI);
  }
  if (this.bInsetsEnabled) {
    icInsets.setEnabled(bState & bEnableUI);
  }
  liacOutline.setEnabled(bState & bEnableUI);
  grpOutline.setEnabled(bState & bEnableUI);
  this.bEnabled=bState;
}

Fixed version (ground truth):
public void setEnabled(boolean bState){
  boolean bEnableUI=true;
  if (this.bVisibilityEnabled) {
    bEnableUI=cbVisible.getSelection();
  }
  if (this.bPositionEnabled) {
    lblPosition.setEnabled(bState & bEnableUI);
    cmbPosition.setEnabled(bState & bEnableUI);
  }
  lblFont.setEnabled(bState & bEnableUI);
  fdcFont.setEnabled(bState & bEnableUI);
  lblFill.setEnabled(bState & bEnableUI);
  fccBackground.setEnabled(bState & bEnableUI);
  if (this.bShadowEnabled) {
    lblShadow.setEnabled(bState & bEnableUI);
    fccShadow.setEnabled(bState & bEnableUI);
  }
  if (this.bInsetsEnabled) {
    icInsets.setEnabled(bState & bEnableUI);
  }
  liacOutline.setEnabled(bState & bEnableUI);
  grpOutline.setEnabled(bState & bEnableUI);
  this.bEnabled=bState;
}