private boolean allowDelete(Project activeProject) {
		if (activeProject != null) {
			Msg.showWarn(getClass(), tool.getToolFrame(), "Cannot Delete Active Project",
				"You must close your project to delete it.");
			return false;
		}
		return true;
	}
menu listener for File | Save Project
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/FileActionManager.java