/* (non-Javadoc)
  * @see org.eclipse.jface.viewers.DialogCellEditor#updateContents(java.lang.Object)
  */
 protected void updateContents(Object value) {
   super.updateContents(value);
   if (getDefaultLabel() != null && value != null) {
     getDefaultLabel().setText(value.toString());
     getDefaultLabel().setToolTipText(value.toString());
   }
 }
    protected void updateContents(Object value) {
      DatabaseQuerySettingsStructure.DataMapping mapping =
          (DatabaseQuerySettingsStructure.DataMapping) value;

      if (mapping != null) {
        if (mapping.mappingType == -1) // not affected
        {
          this.getDefaultLabel().setText("No Change");
        } else if (mapping.mappingType == 0) // static value
        {
          this.getDefaultLabel().setText(mapping.mappingValue);
        } else // database column
        {
          this.getDefaultLabel().setText(mapping.mappingValue);
        }
      } else {
        super.updateContents(value);
      }
    }