mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
[Bug 144232] Search results do not appear if not running in background
This commit is contained in:
parent
2372381692
commit
c21d7a81ec
4 changed files with 0 additions and 4 deletions
|
@ -36,7 +36,6 @@ public class PDOMSearchBindingQuery extends PDOMSearchQuery {
|
|||
|
||||
public IStatus run(IProgressMonitor monitor) throws OperationCanceledException {
|
||||
try {
|
||||
result.removeAll();
|
||||
createMatches(binding.getLinkage().getLanguage(), binding);
|
||||
return Status.OK_STATUS;
|
||||
} catch (CoreException e) {
|
||||
|
|
|
@ -40,7 +40,6 @@ public class PDOMSearchElementQuery extends PDOMSearchQuery {
|
|||
|
||||
public IStatus run(IProgressMonitor monitor) throws OperationCanceledException {
|
||||
try {
|
||||
result.removeAll();
|
||||
ISourceRange range = element.getSourceRange();
|
||||
ITranslationUnit tu = element.getTranslationUnit();
|
||||
ILanguage language = tu.getLanguage();
|
||||
|
|
|
@ -62,7 +62,6 @@ public class PDOMSearchPatternQuery extends PDOMSearchQuery {
|
|||
|
||||
public IStatus run(IProgressMonitor monitor) throws OperationCanceledException {
|
||||
try {
|
||||
result.removeAll();
|
||||
for (int i = 0; i < projects.length; ++i)
|
||||
searchProject(projects[i], monitor);
|
||||
return Status.OK_STATUS;
|
||||
|
|
|
@ -41,7 +41,6 @@ public class PDOMSearchTextSelectionQuery extends PDOMSearchQuery {
|
|||
|
||||
public IStatus run(IProgressMonitor monitor) throws OperationCanceledException {
|
||||
try {
|
||||
result.removeAll();
|
||||
ILanguage language = tu.getLanguage();
|
||||
IASTTranslationUnit ast = language.getASTTranslationUnit(tu, ILanguage.AST_SKIP_ALL_HEADERS | ILanguage.AST_USE_INDEX);
|
||||
IASTName[] names = language.getSelectedNames(ast, selection.getOffset(), selection.getLength());
|
||||
|
|
Loading…
Add table
Reference in a new issue