public boolean isPanelsComment ( QueryQuestionComment comment , Panel panel ) { Panel queryPanel = resourceController . getResourcePanel ( comment . getQueryPage ( ) . getQuerySection ( ) . getQuery ( ) ) ; if ( queryPanel == null || panel == null ) { return false ; } return queryPanel . getId ( ) . equals ( panel . getId ( ) ) ; }
Returns whether comment belongs to given panel