if (!isAcceptAllFileFilterUsed()) extensions = ((ExtensionFileFilter) getFileFilter()).getExtensions(); else extensions = null;
if (getSelectedFile() == null) return;
  protected void configureCurrentConverter(int dialogType) {    String[]	extensions;    String	filename;    File	currFile;        if (!isAcceptAllFileFilterUsed())      extensions = ((ExtensionFileFilter) getFileFilter()).getExtensions();    else      extensions = null;        filename = getSelectedFile().getAbsolutePath();    if (m_CurrentConverter == null) {      if (dialogType == LOADER_DIALOG)	m_CurrentConverter = ConverterUtils.getLoaderForFile(filename);      else if (dialogType == SAVER_DIALOG)	m_CurrentConverter = ConverterUtils.getSaverForFile(filename);      else	throw new IllegalStateException("Cannot determine loader/saver!");            // none found?      if (m_CurrentConverter == null)	return;    }        try {      if (m_CurrentConverter instanceof AbstractFileSaver) {	// add extension if necessary	if (!filename.endsWith(extensions[0]))	  filename += extensions[0];      }      currFile = ((FileSourcedConverter) m_CurrentConverter).retrieveFile();      if ((currFile == null) || (!currFile.getAbsolutePath().equals(filename)))	((FileSourcedConverter) m_CurrentConverter).setFile(new File(filename));    }    catch (Exception e) {      e.printStackTrace();    }  }