01: // Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
02: // Released under the terms of the GNU General Public License version 2 or later.
03: package fitnesse.responders.search;
04:
05: import fitnesse.components.WhereUsed;
06: import fitnesse.html.HtmlUtil;
07:
08: public class WhereUsedResponder extends ResultResponder {
09: protected String getPageFooterInfo(int hits) throws Exception {
10: return HtmlUtil.makeLink(getRenderedPath(), page.getName())
11: .html()
12: + " is used in " + hits + " page(s).";
13: }
14:
15: protected void startSearching() throws Exception {
16: new WhereUsed(root).searchForReferencingPages(page, this );
17: }
18:
19: protected String getTitle() throws Exception {
20: return "Where Used Results";
21: }
22:
23: }
|