Community
Participate
Working Groups
It seems changes to the open type dialog, are causing items passed in to the dialog as part of a search scope to not be shown. for example: if you have a package with 5 classes in it and each of those classes has a main method in it, and you then right-click on the package and select Run As -> Java Application, the dialog appears empty. This used to work, and would display all of the classes that contain main methods in them. This also affects the launch dialog on the main tab for Java applications, where you can no longer search for main methods within the associated project. In each case we are collecting the correct set of IJavaElements, passing them in to the dialog using the JavaUI.createTypeDialog(..) as an IJavaSearchScope, and nothing appears anymore.....
It seems that the search engine doesn't report any result. We switched to use the new API that uses a TypeNameMatchRequestor. - set a breakpoint in SearchEngine.searchAllTypeNames(char[], int, char[], int, int, IJavaSearchScope, TypeNameMatchRequestor, int, IProgressMonitor) and org.eclipse.jdt.internal.ui.dialogs.TypeInfoViewer.SearchRequestor.acceptTypeNameMatch(TypeNameMatch) - create project A and classes p.A, p.B, p.C that all have a 'main' method. - select package 'p' and invoke 'Run as Java Application' - first breakpoint is reached it the arguments seem correct to me, the scope is special (3 types), but used to work.
Created attachment 54067 [details] Proposed patch
Released for 3.3 M4 in HEAD stream.
Verified for 3.3M4 with I20061212-0010.
*** Bug 168125 has been marked as a duplicate of this bug. ***