protected void showDialog(boolean addToVersionControl, DomainFile file) {
		Runnable r = () -> {
			VersionControlDialog vcDialog = new VersionControlDialog(addToVersionControl);
			vcDialog.setCurrentFileName(file.getName());
			vcDialog.setMultiFiles(list.size() > 1);
			if (file.isLinkFile()) {
				vcDialog.setKeepCheckboxEnabled(false, false, "Link file may not be Checked Out");
			}
			else {
				checkFilesInUse();
				if (filesInUse) {
					vcDialog.setKeepCheckboxEnabled(false, true,
						"Must keep Checked Out because the file is in use");
				}
			}
			actionID = vcDialog.showDialog(tool, parent);
			keepCheckedOut = vcDialog.keepCheckedOut();
			createKeep = vcDialog.shouldCreateKeepFile();
			comments = vcDialog.getComments();
			if (comments.length() == 0) {
				comments = null;
			}

		};

		SystemUtilities.runSwingNow(r);
	}
Show the dialog.
@param addToVersionControl true if the dialog is for
adding files to version control, false for checking in files.
@param file the file currently to be added or checked-in to version control
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/VersionControlTask.java