Bug 124338 [Dialogs] ResourceSelectionDialog should allow to implement custom acceptance criteria
I suggest to refactor ResourceSelectionDialog so there will be methods to access checked items and enable OK button respectively. This should allow to implement custom strategy to accept selected elements.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceSearcher.java
* @param typeMask
	 *            to filter type of serached elements
	 */
	public ResourceSearcher(IContainer container, int typeMask) {
		this.container = container;
		this.typeMask = typeMask;
		this.model = new SearcherModel();
		this.history = ResourceHistory.getInstance();
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.dialogs.AbstractSearcher#getComparator()
	 */
	protected Comparator getComparator() {
		return new ResourceComparator();
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.dialogs.AbstractSearcher#getDetails(java.lang.Object)
	 */
	public Object getDetails(Object item) {
		return ((ResourceSearchItem) item).getResource().getParent();
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.dialogs.AbstractSearcher#getObjectToReturn(java.lang.Object)
	 */