Bug 44443 [Tasks] Problems View should 'filter' more efficiently
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableSortDialog.java
separator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_CENTER));
	}
	
	private void restoreDefaults() {
		updateUI(sorter.getDefaultPriorities(), sorter.getDefaultDirections());
	}
	
	private void updateUIFromSorter() {
		updateUI(sorter.getPriorities(), sorter.getDirections());
	}
	
	private void updateUI(int[] priorities, int[] directions) {
		ArrayList availablePriorities = new ArrayList(Arrays.asList(propertyText));
		
		for (int i = 0; i < priorityCombos.length; i++) {
			priorityCombos[i].removeAll();
			for (int j = 0; j < availablePriorities.size(); j++)
				priorityCombos[i].add((String) availablePriorities.get(j));
			priorityCombos[i].select(priorityCombos[i].indexOf(propertyText[priorities[i]]));
			availablePriorities.remove(propertyText[priorities[i]]);
			ascendingButtons[i].setSelection(directions[priorities[i]] == TableSorter.ASCENDING);
			descendingButtons[i].setSelection(directions[priorities[i]] == TableSorter.DESCENDING);
		}
	}
	
	protected void okPressed() {
		if (isDirty()) {
			for (int i = priorityCombos.length - 1; i >= 0; i--) {
				String column = priorityCombos[i].getItem(priorityCombos[i].getSelectionIndex());
				int index = -1;