public void configureForExport(OutlinerDocument doc, String protocolName, String currentDirectory) {
		lazyInstantiate();

		// adjust title
		setDialogTitle("Export: " + protocolName);

		// adjust approve button
		setApproveButtonToolTipText("Export file as named");

		// Set the Accessory state
		setAccessory(exportAccessory);

		// Set the Accessory GUI state.
		exportLineEndComboBox.setSelectedItem(doc.settings.getLineEnd().cur);
		exportEncodingComboBox.setSelectedItem(doc.settings.getSaveEncoding().cur);
		exportFormatComboBox.setSelectedItem(doc.settings.getSaveFormat().cur);

		// Set the current directory location or selected file.
		String currentFileName = doc.getFileName();
		if (!currentFileName.equals("")) {
			setSelectedFile(new File(currentFileName));
		} else {
			setCurrentDirectory(new File(currentDirectory));
			setSelectedFile(null);
		}
		
		this.dialogType = JFileChooser.SAVE_DIALOG;
	}