1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix for 60772: NPE cancelling Selection Search in Working Set

This commit is contained in:
Bogdan Gheorghe 2004-06-07 14:30:19 +00:00
parent 66026fcc9e
commit 2dfa4fa8a1
2 changed files with 13 additions and 5 deletions

View file

@ -1,7 +1,7 @@
2004-06-07 Alain Magloire
2004-06-07 Bogdan Gheorghe
Fix for Bug 60772
Fix PR 64328
* src/org/eclipse/cdt/internal/ui/poreferences/PreferencesMessages.properties
* src/org/eclipse/cdt/internal/ui/search/actions/FindAction.java
2004-06-06 Bogdan Gheorghe
Changed MouseClickListener to use Parser KeywordSets

View file

@ -54,6 +54,10 @@ public abstract class FindAction extends SelectionParseAction {
protected CSearchQuery createSearchQuery(String pattern, SearchFor searchFor) {
CSearchQuery op = null;
ICSearchScope scope = getScope();
if (scope == null)
return null;
String scopeDescription = getScopeDescription();
//Create a case sensitive search operation - limited by the node
@ -159,6 +163,10 @@ public abstract class FindAction extends SelectionParseAction {
}
CSearchQuery job = createSearchQuery(node);
if (job == null)
return;
NewSearchUI.activateSearchResultView();
NewSearchUI.runQuery(job);