enable compression options
@@ -471,8 +471,9 @@ public class TextFileInputDialog extends BaseTransformDialog
* compression mode in the content tab depending on it*/
private void checkCompressedFile() {
if (wFilenameList.getItemCount() > 0) {
- String[] fileRecord = wFilenameList.getItem(0);
- String fileExtension = FilenameUtils.getExtension(fileRecord[0]);
+ for (int i = 0; i < wFilenameList.getItemCount(); i++) {
+ String[] fileRecord = wFilenameList.getItem(i);
+ String fileExtension = FilenameUtils.getExtension(fileRecord[i]);
Collection<ICompressionProvider> compProviders =
CompressionProviderFactory.getInstance().getCompressionProviders();
for (ICompressionProvider provider : compProviders) {
@@ -480,10 +481,10 @@ public class TextFileInputDialog extends BaseTransformDialog
&& provider.getDefaultExtension().equals(fileExtension)) {
int toBeSelected = ArrayUtils.indexOf(wCompression.getItems(), provider.getName());
wCompression.select(toBeSelected);
- wCompression.setEnabled(true);
return;
}
}
+ }
wCompression.select(
ArrayUtils.indexOf(
wCompression.getItems(),
@@ -1150,7 +1151,6 @@ public class TextFileInputDialog extends BaseTransformDialog
fdCompression.top = new FormAttachment(wNrLinesDocHeader, margin);
fdCompression.right = new FormAttachment(100, 0);
wCompression.setLayoutData(fdCompression);
- wCompression.setEnabled(false);
Label wlNoempty = new Label(wContentComp, SWT.RIGHT);
wlNoempty.setText(BaseMessages.getString(PKG, "TextFileInputDialog.NoEmpty.Label"));
