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/ResourceSearchDialog.java
/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.dialogs.AbstractSearchDialog#getDetailsLabelProvider()
	 */
	protected ILabelProvider getDetailsLabelProvider() {
		return new DecoratingLabelProvider(new CustomWorkbenchLabelProvider(),
				PlatformUI.getWorkbench().getDecoratorManager()
						.getLabelDecorator());
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.dialogs.AbstractSearchDialog#getListLabelProvider()
	 */
	protected ILabelProvider getListLabelProvider() {
		return new ResourceDecoratorLabelDecorator();
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.dialogs.AbstractSearchDialog#getListSelectionLabelDecorator()
	 */
	protected ILabelDecorator getListSelectionLabelDecorator() {
		return null;
	}
	/**
	 * Sets the derived flag on the SimpleSearchEngine instance
	 */
	private class ShowDerivedResourcesAction extends Action {