Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 65614 - Classic Search title says Search twice
Summary: Classic Search title says Search twice
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 trivial (vote)
Target Milestone: 3.0 RC2   Edit
Assignee: Thomas M??der CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-03 15:48 EDT by Ed Burnette CLA
Modified: 2004-06-11 06:39 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Burnette CLA 2004-06-03 15:48:04 EDT
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
Comment 1 Michael Fraenkel CLA 2004-06-05 14:45:20 EDT
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
Comment 2 Thomas M??der CLA 2004-06-07 05:19:27 EDT
Released the patch
Comment 3 Markus Keller CLA 2004-06-11 06:39:42 EDT
Verified with PDE search that 'Classic Search' and 'Search' show correct titles
in normal and R21 presentation modes.