Bug 64932 filter dialog: initial focus is on cancel, should be on top control or list [dialogs]
RC1 - Open the filter dialog for members view, package explorer etc. Expected: top control has focus Actual: Cancel button has focus This is annoying, because I first have to tab through. The default behaviour for dialogs should be to give focus to the first element that expects interaction. If the user just wants to cancel the dialog, he can always hit 'Esc'.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/filters/CustomFiltersDialog.java
private boolean fEnablePatterns;
	private String[] fPatterns;
	private String[] fEnabledFilterIds;
	private FilterDescriptor[] fBuiltInFilters;
	private CheckboxTableViewer fCheckBoxList;
	private Button fEnableUserDefinedPatterns;
	private Text fUserDefinedPatterns;
	private Stack fFilterDescriptorChangeHistory;
	
	/**
	 * Creates a dialog to customize Java element filters.
	 * 
	 * @param shell the parent shell
	 * @param viewId the id of the view
	 * @param enablePatterns <code>true</code> if pattern filters are enabled
	 * @param patterns the filter patterns
	 * @param enabledFilterIds the Ids of the enabled filters
	 */
	public CustomFiltersDialog(
			Shell shell,
			String viewId,
			boolean enablePatterns,
			String[] patterns,
			String[] enabledFilterIds) {
		super(shell);
		Assert.isNotNull(viewId);
		Assert.isNotNull(patterns);
		Assert.isNotNull(enabledFilterIds);
		fViewId= viewId;
		fPatterns= patterns;