Examples of IOccurrencesFinder


Examples of com.dubture.twig.core.search.IOccurrencesFinder

        ASTNode selectedNode = NodeFinder.perform(astRoot,
                selection.getOffset(), selection.getLength());

        if (locations == null) {
            IOccurrencesFinder finder = new VariableFinder();
            if (finder.initialize(astRoot, selectedNode) == null) {
                locations = finder.getOccurrences();
            }
        }

        if (locations == null || locations.length == 0) {
            IOccurrencesFinder finder = new CallFinder();
            if (finder.initialize(astRoot, selectedNode) == null) {
                locations = finder.getOccurrences();
            }
        }

        if (locations == null || locations.length == 0) {
            IOccurrencesFinder finder = new StringFinder();
            if (finder.initialize(astRoot, selectedNode) == null) {
                locations = finder.getOccurrences();
            }
        }

        if (locations == null) {
            return;
View Full Code Here

Examples of org.eclipse.php.internal.core.search.IOccurrencesFinder

      // locations= finder.getOccurrences();
      // }
    }

    if (locations == null && fMarkMethodExitPoints) {
      IOccurrencesFinder finder = OccurrencesFinderFactory
          .createMethodExitsFinder();
      if (finder.initialize(astRoot, selectedNode) == null) {
        locations = finder.getOccurrences();
      }
    }

    if (locations == null && fMarkImplementors) {
      IOccurrencesFinder finder = OccurrencesFinderFactory
          .createIncludeFinder();
      if (finder.initialize(astRoot, selectedNode) == null) {
        locations = finder.getOccurrences();
      }
    }

    if (locations == null && fMarkBreakContinueTargets) {
      IOccurrencesFinder finder = OccurrencesFinderFactory
          .createBreakContinueTargetFinder();
      if (finder.initialize(astRoot, selectedNode) == null) {
        locations = finder.getOccurrences();
      }
    }

    if (locations == null && fMarkImplementors) {
      IOccurrencesFinder finder = OccurrencesFinderFactory
          .createImplementorsOccurrencesFinder();
      if (finder.initialize(astRoot, selectedNode) == null) {
        locations = finder.getOccurrences();
      }
    }

    if (selectedNode != null && selectedNode.getType() == ASTNode.VARIABLE) {
      final Expression name = ((Variable) selectedNode).getName();
      if (name instanceof Identifier) {
        selectedNode = name;
      }
    }

    if (locations == null
        && selectedNode != null
        && (selectedNode instanceof Identifier || (isScalarButNotInString(selectedNode)))) {
      int type = PhpElementConciliator.concile(selectedNode);
      if (markOccurrencesOfType(type)) {
        IOccurrencesFinder finder = OccurrencesFinderFactory
            .getOccurrencesFinder(type);
        if (finder != null) {
          if (finder.initialize(astRoot, selectedNode) == null) {
            locations = finder.getOccurrences();
          }
        }
      }
    }
View Full Code Here

Examples of org.eclipse.php.internal.core.search.IOccurrencesFinder

    ASTNode selectedNode = NodeFinder.perform(astRoot, offset, 0);
    if (selectedNode != null
        && (selectedNode instanceof Identifier || (isScalarButNotInString(selectedNode)))) {
      int type = PhpElementConciliator.concile(selectedNode);
      if (markOccurrencesOfType(type)) {
        final IOccurrencesFinder finder = OccurrencesFinderFactory
            .getOccurrencesFinder(type);
        if (finder != null) {
          if (finder.initialize(astRoot, selectedNode) == null) {
            perfMonitor.execute(
                "PerformanceTests.testMarkOccurrence" + "_"
                    + fileName, new Operation() {
                  public void run() throws Exception {
                    finder.getOccurrences();
                  }
                }, 1, 10);
          }
        }
      }
View Full Code Here

Examples of org.eclipse.php.internal.core.search.IOccurrencesFinder

    OccurrenceLocation[] locations = null;
    if (selectedNode != null
        && (selectedNode instanceof Identifier || (isScalarButNotInString(selectedNode)))) {
      int type = PhpElementConciliator.concile(selectedNode);
      if (markOccurrencesOfType(type)) {
        IOccurrencesFinder finder = OccurrencesFinderFactory
            .getOccurrencesFinder(type);
        if (finder != null) {
          if (finder.initialize(astRoot, selectedNode) == null) {
            locations = finder.getOccurrences();
          }
        }
      }
    }
    compareProposals(locations, newStarts);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.