Bug 209667 [Markers] Add a TODO filter
We should be able to just focus on the TODOs in the tasks list.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/provisional/views/markers/DescriptionConfigurationArea.java
import org.eclipse.ui.internal.provisional.views.markers.api.MarkerFieldFilter;
import org.eclipse.ui.views.markers.internal.MarkerMessages;
/**
 * DescriptionConfigurationArea is the configuration area for description configuration fields.
 * 
 */
public class DescriptionConfigurationArea extends FilterConfigurationArea {
	
	private Combo descriptionCombo;
	private Text descriptionText;
	/**
	 * Create new instance of the receiver.
	 */
	public DescriptionConfigurationArea() {
		super();
	}
	/* (non-Javadoc)
	 * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#apply(org.eclipse.ui.internal.provisional.views.markers.api.MarkerFieldFilter)
	 */
	public void apply(MarkerFieldFilter filter) {
		DescriptionFieldFilter desc = (DescriptionFieldFilter) filter;
		if (descriptionCombo.getSelectionIndex() == 0)
			desc.setContainsModifier(DescriptionFieldFilter.CONTAINS);
		else
			desc
					.setContainsModifier(DescriptionFieldFilter.DOES_NOT_CONTAIN);
		desc.setContainsText(descriptionText.getText());
	}
	/* (non-Javadoc)
	 * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#createContents(org.eclipse.swt.widgets.Composite)