Search in sources :

Example 1 with SiteMapPanel

use of org.parosproxy.paros.view.SiteMapPanel in project zaproxy by zaproxy.

the class ExtensionLoader method removeSiteMapListener.

private void removeSiteMapListener(ExtensionHook hook) {
    if (!hasView()) {
        return;
    }
    SiteMapPanel siteMapPanel = view.getSiteTreePanel();
    List<SiteMapListener> listenerList = hook.getSiteMapListenerList();
    for (SiteMapListener listener : listenerList) {
        try {
            if (listener != null) {
                siteMapPanel.removeSiteMapListener(listener);
            }
        } catch (Exception e) {
            logger.error(e.getMessage(), e);
        }
    }
}
Also used : SiteMapPanel(org.parosproxy.paros.view.SiteMapPanel) SiteMapListener(org.zaproxy.zap.view.SiteMapListener) InvocationTargetException(java.lang.reflect.InvocationTargetException) DatabaseException(org.parosproxy.paros.db.DatabaseException) DatabaseUnsupportedException(org.parosproxy.paros.db.DatabaseUnsupportedException)

Aggregations

InvocationTargetException (java.lang.reflect.InvocationTargetException)1 DatabaseException (org.parosproxy.paros.db.DatabaseException)1 DatabaseUnsupportedException (org.parosproxy.paros.db.DatabaseUnsupportedException)1 SiteMapPanel (org.parosproxy.paros.view.SiteMapPanel)1 SiteMapListener (org.zaproxy.zap.view.SiteMapListener)1