Bug 44285 Search does not like anonymous types [search]
20031007 smoke 1. Open AboutDialog.java 2. In the editor select the method 'actionPerformed' from the anonymous ActionListener. 3. Press CTRL + H 4. The search dialog shows: junit.awtui.AboutDialog.1..actionPerformed(ActionEvent) Looks weird.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchPage.java
layouter.setDefaultGridData(gd, 0);
		layouter.setDefaultGridData(gd, 1);
		layouter.setDefaultSpan();
		layouter.perform(createExpression(result));
		Control searchFor= createSearchFor(result);
		gd= new GridData(GridData.FILL_HORIZONTAL);
		gd.verticalAlignment= GridData.FILL;
		searchFor.setLayoutData(gd);
		Control limitTo= createLimitTo(result);
		gd= new GridData(GridData.FILL_HORIZONTAL);
		gd.verticalAlignment= GridData.FILL;
		limitTo.setLayoutData(gd);
		
		
		SelectionAdapter javaElementInitializer= new SelectionAdapter() {
			public void widgetSelected(SelectionEvent event) {
				if (getSearchFor() == fInitialData.getSearchFor())
					fJavaElement= fInitialData.getJavaElement();
				else
					fJavaElement= null;
				setLimitTo(getSearchFor());
				doPatternModified();
			}
		};
		fSearchFor[TYPE].addSelectionListener(javaElementInitializer);
		fSearchFor[METHOD].addSelectionListener(javaElementInitializer);
		fSearchFor[FIELD].addSelectionListener(javaElementInitializer);
		fSearchFor[CONSTRUCTOR].addSelectionListener(javaElementInitializer);
		fSearchFor[PACKAGE].addSelectionListener(javaElementInitializer);