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

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

		// adjust approve button
		setApproveButtonToolTipText("Open selected file");
		
		// Set the Accessory state.
		setAccessory(openAccessory);

		// Set the Accessory GUI state.
		openEncodingComboBox.setSelectedItem(Preferences.getPreferenceString(Preferences.OPEN_ENCODING).cur);
		openFormatComboBox.setSelectedItem(Preferences.getPreferenceString(Preferences.OPEN_FORMAT).cur);

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