public DomainFile getDomainFile() {

		if (domainFile != null) {
			return domainFile;
		}

		if (cancelled) {
			return null;
		}

		if (treePanel != null) {
			domainFile = treePanel.getSelectedDomainFile();
		}
		return domainFile;
	}
Get the selected domain file.
@return null if there was no domain file selected
Ghidra/Features/Base/src/main/java/ghidra/framework/main/AbstractDataTreeDialog.java