public void configureForImport(String protocolName, String currentDirectory) {
		lazyInstantiate();

		// adjust title
		setDialogTitle("Import: " + protocolName);
		
		// adjust approve button
		setApproveButtonToolTipText("Import selected file");

		// Set the Accessory state.
		setAccessory(importAccessory);

		// Set the Accessory GUI state.
		importEncodingComboBox.setSelectedItem(Preferences.getPreferenceString(Preferences.IMPORT_ENCODING).cur);
		importFormatComboBox.setSelectedItem(Preferences.getPreferenceString(Preferences.IMPORT_FORMAT).cur);

		// Set the current directory location and selected file.
		setCurrentDirectory(new File(currentDirectory));
		setSelectedFile(null);
		
		this.dialogType = JFileChooser.OPEN_DIALOG;
	}