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
implements ILabelProviderListener {
		
		private ListenerList listeners = new ListenerList();
		
		
		
		private HashMap map = new HashMap();
		WorkbenchLabelProvider provider = new WorkbenchLabelProvider();
		ILabelDecorator decorator = PlatformUI.getWorkbench()
				.getDecoratorManager().getLabelDecorator();
		/**
		 * Creates a new instance of the class
		 */
		public ResourceDecoratorLabelDecorator() {
			super();
			provider.addListener(this);
			decorator.addListener(this);