Package org.eclipse.php.internal.core.search

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


    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

    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

Related Classes of org.eclipse.php.internal.core.search.IOccurrencesFinder

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.