use of com.google.security.zynamics.binnavi.Gui.GraphWindows.Searchers.Text.Model.CSearchResultComparator in project binnavi by google.
the class GraphSearcher method search.
/**
* Searches through a list of nodes and edges while considering the active search settings.
*
* @param nodes The nodes to search through.
* @param edges The edges to search through.
* @param searchString The string to search for.
*/
public void search(final List<NaviNode> nodes, final List<NaviEdge> edges, final String searchString) {
m_lastSearchString = searchString;
clearResults();
final List<NaviNode> filteredNodes = CResultFilter.filteredNodes(nodes, m_settings.isOnlySelected(), m_settings.isOnlyVisible());
final List<NaviEdge> filteredEdges = CResultFilter.filteredEdges(edges, m_settings.isOnlySelected(), m_settings.isOnlyVisible());
searchAll(filteredNodes, filteredEdges, searchString);
Collections.sort(m_results, new CSearchResultComparator());
m_cursor.setResults(m_results);
}
Aggregations