org.eclipse.search.ui.ISearchResult Java Examples
The following examples show how to use
org.eclipse.search.ui.ISearchResult.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ReferenceSearchViewPage.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
@Override public void setInput(ISearchResult newSearchResult, Object uiState) { synchronized (viewer) { if (this.searchResult != null) { this.searchResult.removeListener(labelUpdater); } this.searchResult = newSearchResult; if (searchResult != null) { searchResult.addListener(labelUpdater); viewer.setInput(newSearchResult); if (uiState instanceof ISelection) { viewer.setSelection((ISelection) uiState); } removeSelectedMatchesAction.setSearchResult(searchResult); } part.updateLabel(); } }
Example #2
Source File: CompositeSearchQuery.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public ISearchResult getSearchResult() { if(searchResult == null) { searchResult = new CompositeSearchResult(this); new SearchResultUpdater(searchResult); } return searchResult; }
Example #3
Source File: PySearchIndexQuery.java From Pydev with Eclipse Public License 1.0 | 5 votes |
@Override public ISearchResult getSearchResult() { if (fResult == null) { fResult = new PySearchResult(this); new SearchResultUpdater(fResult); } return fResult; }
Example #4
Source File: FindOccurrencesSearchQuery.java From Pydev with Eclipse Public License 1.0 | 5 votes |
@Override public ISearchResult getSearchResult() { if (findOccurrencesSearchResult == null) { findOccurrencesSearchResult = new FindOccurrencesSearchResult(this); } return findOccurrencesSearchResult; }
Example #5
Source File: AbstractPythonSearchQuery.java From Pydev with Eclipse Public License 1.0 | 5 votes |
@Override public ISearchResult getSearchResult() { if (fResult == null) { fResult = new PythonFileSearchResult(this); new SearchResultUpdater(fResult); } return fResult; }
Example #6
Source File: AbstractSearchIndexResultPage.java From Pydev with Eclipse Public License 1.0 | 5 votes |
@SuppressWarnings("unchecked") @Override public void setInput(ISearchResult newSearch, Object viewState) { String filter = ""; if (viewState instanceof Tuple) { Tuple<Object, Object> tuple = (Tuple<Object, Object>) viewState; filter = (String) tuple.o2; viewState = tuple.o1; } StructuredViewer viewer = getViewer(); Control control = viewer.getControl(); control.setRedraw(false); try { viewer.setFilters(new ViewerFilter[0]); //Reset the filter before setting the new selection try { super.setInput(newSearch, viewState); } catch (Exception e) { Log.log(e); super.setInput(newSearch, null); } filterText.setText(filter); textChanged(); } finally { control.setRedraw(true); } }
Example #7
Source File: JavaSearchQuery.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
public ISearchResult getSearchResult() { if (fResult == null) { JavaSearchResult result= new JavaSearchResult(this); new SearchResultUpdater(result); fResult= result; } return fResult; }
Example #8
Source File: TypeScriptSearchQuery.java From typescript.java with MIT License | 5 votes |
@Override public ISearchResult getSearchResult() { if (searchResult == null) { TypeScriptSearchResult result = new TypeScriptSearchResult(this); // new SearchResultUpdater(result); searchResult = result; } return searchResult; }
Example #9
Source File: CompositeSearchResult.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public Match[] getMatches(Object element) { List<Match> matches = newArrayList(); for(ISearchQuery child: query.getChildren()) { ISearchResult childResult = child.getSearchResult(); if(childResult instanceof AbstractTextSearchResult) { for(Match match: ((AbstractTextSearchResult) childResult).getMatches(element)) matches.add(match); } } return toArray(matches, Match.class); }
Example #10
Source File: CompositeSearchResult.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public int getMatchCount() { int count = 0; for(ISearchQuery child: query.getChildren()) { ISearchResult childResult = child.getSearchResult(); if(childResult instanceof AbstractTextSearchResult) count += ((AbstractTextSearchResult) childResult).getMatchCount(); } return count; }
Example #11
Source File: CompositeSearchResult.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public int getMatchCount(Object element) { int count = 0; for(ISearchQuery child: query.getChildren()) { ISearchResult childResult = child.getSearchResult(); if(childResult instanceof AbstractTextSearchResult) count += ((AbstractTextSearchResult) childResult).getMatchCount(element); } return count; }
Example #12
Source File: ImplementationsSearchQuery.java From corrosion with Eclipse Public License 2.0 | 4 votes |
@Override public ISearchResult getSearchResult() { if (result == null) { result = new FileSearchResult(this); } return result; }
Example #13
Source File: ModulaSearchQuery.java From xds-ide with Eclipse Public License 1.0 | 4 votes |
public ISearchResult getSearchResult() { if (fSearchResult == null) fSearchResult = new ModulaSearchResult(this); return fSearchResult; }
Example #14
Source File: ReferencesInBinaryStatusContextViewer.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
public ISearchResult getSearchResult() { return fResult; }
Example #15
Source File: NLSSearchQuery.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
public ISearchResult getSearchResult() { if (fResult == null) fResult= new NLSSearchResult(this); return fResult; }
Example #16
Source File: ReferenceSearchViewPageActions.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public void setSearchResult(ISearchResult searchResult) { this.searchResult = searchResult; }
Example #17
Source File: OccurrencesSearchQuery.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
public ISearchResult getSearchResult() { return fResult; }
Example #18
Source File: ReferenceQuery.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public ISearchResult getSearchResult() { return searchResult; }
Example #19
Source File: ReferenceSearchResultEvents.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Finish(ISearchResult result) { super(result); }
Example #20
Source File: ReferenceSearchResultEvents.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Removed(ISearchResult searchResult, IReferenceDescription[] removedDescriptions) { super(searchResult); this.removedDescriptions = removedDescriptions; }
Example #21
Source File: ReferenceSearchResultEvents.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Added(ISearchResult searchResult, IReferenceDescription referenceDescription) { super(searchResult); this.referenceDescription = referenceDescription; }