Package fitnesse.wiki

Examples of fitnesse.wiki.WikiWordReference


  }

    public boolean visit(Symbol node) {
        try {
            if (node.isType(WikiWord.symbolType)) {
                new WikiWordReference(currentPage, node.getContent()).wikiWordRenamePageIfReferenced(node, subjectPage, newName);
            }
            else if (node.isType(Alias.symbolType)) {
                String aliasReference = node.childAt(1).childAt(0).getContent();
                if (PathParser.isWikiPath(aliasReference)) {
                   new WikiWordReference(currentPage, aliasReference).wikiWordRenamePageIfReferenced(node.childAt(1).childAt(0), subjectPage, newName);
                }
            }
        }
        catch (Exception e) {
            LOG.log(Level.WARNING, "Unable to rename moved page references", e);
View Full Code Here


  }

    public boolean visit(Symbol node) {
        try {
            if (node.isType(WikiWord.symbolType)) {
                new WikiWordReference(currentPage, node.getContent()).wikiWordRenameMovedPageIfReferenced(node, pageToBeMoved, newParentName);
            }
        }
        catch (Exception e) {
            LOG.log(Level.WARNING, "Unable to rename moved page references", e);
            throw new RuntimeException(e);
View Full Code Here

  }

    public boolean visit(Symbol node) {
      if (hits.contains(currentPage)) return true;
      if (node.isType(WikiWord.symbolType)) {
        WikiPage referencedPage = new WikiWordReference(currentPage, node.getContent()).getReferencedPage();
        if (referencedPage != null && referencedPage.equals(subjectPage)) {
          hits.add(currentPage);
          observer.process(currentPage);
        }
      }
      if (node.isType(Alias.symbolType)) {
        String linkText = node.childAt(1).childAt(0).getContent();
        if (linkText.contains("?")) {
          linkText = linkText.substring(0, linkText.indexOf('?'));
        }
        WikiPage referencedPage = new WikiWordReference(currentPage, linkText).getReferencedPage();
        if (referencedPage != null && referencedPage.equals(subjectPage)) {
          hits.add(currentPage);
          observer.process(currentPage);
        }
      }
View Full Code Here

TOP

Related Classes of fitnesse.wiki.WikiWordReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.