Search in sources :

Example 1 with CSearchResultComparator

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);
}
Also used : NaviNode(com.google.security.zynamics.binnavi.yfileswrap.zygraph.NaviNode) CSearchResultComparator(com.google.security.zynamics.binnavi.Gui.GraphWindows.Searchers.Text.Model.CSearchResultComparator) NaviEdge(com.google.security.zynamics.binnavi.yfileswrap.zygraph.NaviEdge)

Aggregations

CSearchResultComparator (com.google.security.zynamics.binnavi.Gui.GraphWindows.Searchers.Text.Model.CSearchResultComparator)1 NaviEdge (com.google.security.zynamics.binnavi.yfileswrap.zygraph.NaviEdge)1 NaviNode (com.google.security.zynamics.binnavi.yfileswrap.zygraph.NaviNode)1