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
private IJavaSearchScope fScope;
	private int fElementKinds;
	
	/**
	 * Constructs an instance of <code>MultiTypeSelectionDialog</code>.
	 * @param parent  the parent shell.
	 * @param context the context.
	 * @param elementKinds IJavaSearchConstants.CLASS, IJavaSearchConstants.INTERFACE
	 * or IJavaSearchConstants.TYPE
	 * @param scope   the java search scope.
	 */
	public MultiTypeSelectionDialog(Shell parent, IRunnableContext context, int elementKinds, IJavaSearchScope scope)
	{
		super(parent, new TypeInfoLabelProvider(TypeInfoLabelProvider.SHOW_PACKAGE_POSTFIX)); 
			
		setMultipleSelection(true);
		Assert.isNotNull(context);
		Assert.isNotNull(scope);
		fRunnableContext= context;
		fScope= scope;
		fElementKinds= elementKinds;
	}
	/*
	 * @see Window#open()
	 */
	public int open() {
		
		final ArrayList typesFound= new ArrayList();
		IRunnableWithProgress runnable= new IRunnableWithProgress() {
			public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {