private static IWorkbenchPage getPage(IWorkbenchWindow workbenchWindow) {
		IWorkbenchPage wbp = workbenchWindow.getActivePage();
		if (wbp != null) {
			return wbp;
		}
		IWorkbenchPage[] pages = workbenchWindow.getPages();
		for (IWorkbenchPage page : pages) {
			if (page != null) {
				return page;
			}
		}
		return null;
	}
Logs an error message with the responsible error included.

@param message The message to display.
@param t The responsible throwable.
GhidraBuild/EclipsePlugins/GhidraDev/GhidraDevPlugin/src/main/java/ghidradev/EclipseMessageUtils.java