FilterDialog implements ToolDialog so it can be shown by ToolUiContext and return the selected parameters from the user.