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.wikitext;
04:
05: import fitnesse.wiki.WikiPage;
06: import fitnesse.wikitext.widgets.*;
07:
08: public class MovedPageReferenceRenamingVisitor implements WidgetVisitor {
09: private WikiPage pageToBeMoved;
10:
11: private String newParentName;
12:
13: public MovedPageReferenceRenamingVisitor(WikiPage pageToBeMoved,
14: String newParentName) {
15: this .pageToBeMoved = pageToBeMoved;
16: this .newParentName = newParentName;
17: }
18:
19: public void visit(AliasLinkWidget widget) throws Exception {
20: }
21:
22: public void visit(WikiWidget widget) throws Exception {
23: }
24:
25: public void visit(WikiWordWidget widget) throws Exception {
26: widget
27: .renameMovedPageIfReferenced(pageToBeMoved,
28: newParentName);
29: }
30: }
|