void initialize(Task task) {
		if (tool == null) {
			return; // disposed
		}

		reset();
		showProgress(task.hasProgress());
		task.addTaskListener(this);
		setTaskName(task.getTaskTitle());
		setCancelEnabled(task.canCancel());
		SwingUtilities.invokeLater(addPanelRunnable);
	}
{@link SimpleCommand} provides a convenience command for wrapping a lambda function
into a foreground {@link Command} for execution by the task manager.

@param <T> {@link DomainObject} implementation class
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/mgr/ToolTaskManager.java