use of org.zaproxy.zap.extension.search.SearchableHttpPanelView in project zaproxy by zaproxy.
the class HttpPanelComponentViewsManager method findSearchableView.
private SearchableHttpPanelView findSearchableView() {
SearchableHttpPanelView searchableView = null;
Iterator<HttpPanelView> it = views.values().iterator();
while (it.hasNext()) {
HttpPanelView view = it.next();
if (view.isEnabled(message)) {
if (view instanceof SearchableHttpPanelView) {
searchableView = (SearchableHttpPanelView) view;
break;
}
}
}
return searchableView;
}
use of org.zaproxy.zap.extension.search.SearchableHttpPanelView in project zaproxy by zaproxy.
the class HttpPanelComponentViewsManager method highlight.
public void highlight(SearchMatch sm) {
if (currentView instanceof SearchableHttpPanelView) {
((SearchableHttpPanelView) currentView).highlight(sm);
} else {
SearchableHttpPanelView searchableView = findSearchableView();
if (currentView != null) {
switchView(((HttpPanelView) searchableView).getName());
searchableView.highlight(sm);
}
}
}
Aggregations