Bug 15906 MultiTypeSelectionDialog ignores "filter" setting
If you use JavaUI.createTypeDialog to create a type selection dialog and pass in a filter string, the MultiTypeSelectionDialog ignores this filter. The problem is in the open(), it does a: setFilter("A"); //$NON-NLS-1$ And this overrides any current setting. It needs to first check if the filter has not already been set, and if not, then set "A". Thanks.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/MultiTypeSelectionDialog.java
try {
					AllTypesCache.getTypes(fScope, fElementKinds, monitor, typesFound);
				} catch (JavaModelException e) {
					throw new InvocationTargetException(e);
				}
				if (monitor.isCanceled()) {
					throw new InterruptedException();
				}
			}
		};
		
		try {
			fRunnableContext.run(true, true, runnable);
		} catch (InvocationTargetException e) {
			ExceptionHandler.handle(e, JavaUIMessages.getString("MultiTypeSelectionDialog.error2Title"), JavaUIMessages.getString("MultiTypeSelectionDialog.error2Message")); 
		} catch (InterruptedException e) {
			
			return CANCEL;
		}
		
		setFilter("A"); 
		setElements(typesFound.toArray());
		
		return super.open();
	}
	
	/*
	 * @see SelectionStatusDialog#computeResult()
	 */
	protected void computeResult() {