/*
  * (non-Javadoc)
  *
  * @see org.eclipse.swt.widgets.Control#setVisible(boolean)
  */
 @Override
 public void setVisible(boolean visible) {
   super.setVisible(visible);
   if (super.isVisible()) {
     LdifFileConnection originalValueConnection = getOriginalValueConnection();
     if (originalValueConnection.getFilePath() != null
         && (!originalValueConnection.getFilePath().equals("")) // $NON-NLS-1$
         && new File(originalValueConnection.getFilePath()).exists()) {
       runShadowProcess();
     }
     if (isReadOnly() != readOnly) {
       adaptFormToReadOnly();
     }
   }
 }
  /**
   * create ProcessDescription and set it.
   *
   * <p>WARNING ::field FieldSeparator, RowSeparator, EscapeChar and TextEnclosure are surround by
   * double quote.
   *
   * @return processDescription
   */
  private ProcessDescription getProcessDescription(LdifFileConnection originalValueConnection) {

    ProcessDescription processDescription =
        ShadowProcessHelper.getProcessDescription(originalValueConnection);

    // adapt the limit to the extract sames rows of preview
    processDescription.setLimitRows(maximumRowsToPreview);
    if (originalValueConnection.isUseLimit()) {
      Integer i = originalValueConnection.getLimitEntry();
      if (i < maximumRowsToPreview) {
        processDescription.setLimitRows(i);
      }
    }
    return processDescription;
  }