1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Fix for Bug 66933: [Selection Search] Working set name is {0} in search results

This commit is contained in:
Bogdan Gheorghe 2004-06-18 18:03:47 +00:00
parent 38230067bd
commit ada2d52b6c
3 changed files with 10 additions and 2 deletions

View file

@ -4,6 +4,12 @@
fixed other duplicate mnemonices in New Class wizard.
*org.eclipse.cdt.ui.wizards/NewWizardMessages.properties
2004-06-18 Bogdan Gheorghe
Fix for Bug 66933: [Selection Search] Working set name is {0} in search results
* src/org/eclipse/cdt/internal/ui/search/actions/FindDeclarationsInWorkingSetAction.java
* src/org/eclipse/cdt/internal/ui/search/actions/FindRefsInWorkingSetAction.java
2004-06-18 Bogdan Gheorghe
Part 2 of Fix for Bug 62668: [Search] Search results rely on case of file names in include statement
rather then the filesystem

View file

@ -62,7 +62,7 @@ public class FindDeclarationsInWorkingSetAction extends FindAction {
* @see org.eclipse.cdt.internal.ui.editor.selsearch.FindAction#getScopeDescription()
*/
protected String getScopeDescription() {
return CSearchMessages.getString("WorkingSetScope"); //$NON-NLS-1$
return CSearchMessages.getFormattedString("WorkingSetScope", CSearchUtil.toString(fWorkingSet)); //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.ui.editor.selsearch.FindAction#getScope()
@ -74,6 +74,7 @@ public class FindDeclarationsInWorkingSetAction extends FindAction {
workingSets= CSearchScopeFactory.getInstance().queryWorkingSets();
if (workingSets == null)
return null;
fWorkingSet = workingSets;
}
ICSearchScope scope= CSearchScopeFactory.getInstance().createCSearchScope(workingSets);
CSearchUtil.updateLRUWorkingSets(workingSets);

View file

@ -65,7 +65,7 @@ public class FindRefsInWorkingSetAction extends FindAction {
* @see org.eclipse.cdt.internal.ui.editor.selsearch.FindAction#getScopeDescription()
*/
protected String getScopeDescription() {
return CSearchMessages.getString("WorkingSetScope"); //$NON-NLS-1$
return CSearchMessages.getFormattedString("WorkingSetScope", CSearchUtil.toString(fWorkingSet)); //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.ui.editor.selsearch.FindAction#getScope()
@ -76,6 +76,7 @@ public class FindRefsInWorkingSetAction extends FindAction {
workingSets= CSearchScopeFactory.getInstance().queryWorkingSets();
if (workingSets == null)
return null;
fWorkingSet = workingSets;
}
ICSearchScope scope= CSearchScopeFactory.getInstance().createCSearchScope(workingSets);
CSearchUtil.updateLRUWorkingSets(workingSets);