Bug 44443 [Tasks] Problems View should 'filter' more efficiently
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionSelectAll.java
protected MarkerRegistry registry;
	/**
	 * @param provider
	 * @param text
	 */
	public ActionSelectAll(ISelectionProvider provider, MarkerRegistry registry) {
		super(provider, Messages.getString("selectAllAction.title")); 
		this.registry = registry;
		setEnabled(true);
	}
	
	/* (non-Javadoc)
	 * @see org.eclipse.jface.action.Action#run()
	 */
	public void run() {
		StructuredSelection newSelection = new StructuredSelection(registry.getElements());
		super.getSelectionProvider().setSelection(newSelection);
	}
	/* (non-Javadoc)
	 * @see org.eclipse.ui.actions.SelectionProviderAction#selectionChanged(org.eclipse.jface.viewers.IStructuredSelection)
	 */
	public void selectionChanged(IStructuredSelection selection) {
		setEnabled(!selection.isEmpty());
	}
}