Community
Participate
Working Groups
3.0RC1 With recent presentation UI changes, a plug-in I wrote that uses the old SearchUI API now produces an interesting title (using the R21 presentation) like this: Classic Search (Search ("test" - 62 Occurrences)) Of course it used to just say: Search ("test" - 62 Occurrences) I don't have the word "Search" in my code. Instead I'm using ISearchResultView.searchStarted() like this: // Start search rv.searchStarted(null, // actiongroupfactory "\"" + query + "\" - 1 Occurrence", // singular "\"" + query + "\" - {0} Occurrences", // plural null, // image descriptor "com.example.MySearchPage", // this page id new MyLabelProvider(), // label provider new MySearchResultAction(), // action new GroupByKeyComputer(), // groupbykeycomputer this); // runable used to repeat search
This should resolve this problem. Index: SearchMessages.properties =================================================================== RCS file: /home/eclipse/org.eclipse.search/search/org/eclipse/search/internal/ui/Se archMessages.properties,v retrieving revision 1.88 diff -u -r1.88 SearchMessages.properties --- SearchMessages.properties 3 Jun 2004 12:32:57 -0000 1.88 +++ SearchMessages.properties 5 Jun 2004 18:42:56 -0000 @@ -23,8 +23,8 @@ SearchManager.resourceDeleted= Some resources no longer exist. Corresponding matches have been removed from the search results. SearchManager.updating= Updating... -SearchResultView.title= Search -SearchResultView.titleWithDescription= Search ({0}) +SearchResultView.title= +SearchResultView.titleWithDescription= {0} SearchResultView.matches= matches SearchResultView.removed_resource= <removed resource> SearchResultView.removeAllResults.text= Remove &All Matches
Released the patch
Verified with PDE search that 'Classic Search' and 'Search' show correct titles in normal and R21 presentation modes.