addField(new BooleanFieldEditor(
PreferenceConstants.USE_FIRST_LINE_AS_HEADER,
"&Use the first line of the CSV file as the column headers",
getFieldEditorParent()));
StringFieldEditor customDelimiterField = new StringFieldEditor(
PreferenceConstants.CUSTOM_DELIMITER,
"Choose the delimiter to use:", 2, getFieldEditorParent());
customDelimiterField.setTextLimit(1);
customDelimiterField.setEmptyStringAllowed(false);
addField(customDelimiterField);
StringFieldEditor textQualifierChar = new StringFieldEditor(
PreferenceConstants.TEXT_QUALIFIER,
"Define the character used as a text qualifier of the data:", 2, getFieldEditorParent());
customDelimiterField.setTextLimit(1);
customDelimiterField.setEmptyStringAllowed(false);
addField(textQualifierChar);
addField(new BooleanFieldEditor(
PreferenceConstants.USE_QUALIFIER,
"For the text qualifier to be used for all fields",
getFieldEditorParent()));
StringFieldEditor commentChar = new StringFieldEditor(
PreferenceConstants.COMMENT_CHAR,
"Choose the character to use as a comment:", 2, getFieldEditorParent());
customDelimiterField.setTextLimit(1);
customDelimiterField.setEmptyStringAllowed(true);
addField(commentChar);