_filenameField = new FilenameTextField(_userPreferences.getConfiguredFileDirectory(), openFileDialog);
if (extensions != null && extensions.length > 0) {
List<FileFilter> filters = new ArrayList<FileFilter>(extensions.length);
for (String extension : extensions) {
FileFilter filter = new ExtensionFilter(extension.toUpperCase() + " file", "." + extension);
filters.add(filter);
_filenameField.addChoosableFileFilter(filter);
}
if (filters.size() == 1) {
_filenameField.setSelectedFileFilter(filters.get(0));