Examples of MethodExitsFinder


Examples of org.eclipse.jdt.internal.ui.search.MethodExitsFinder

      }
    }

    if ((matches == null)
        && (fMarkMethodExitPoints || fMarkTypeOccurrences)) {
      MethodExitsFinder finder = new MethodExitsFinder();
      String message = finder.initialize(astRoot, selectedNode);
      if (message == null) {
        matches = finder.getOccurrences();
        if (!fMarkMethodExitPoints && matches != null)
          matches = null;
      }
    }

    if ((matches == null)
        && (fMarkBreakContinueTargets || fMarkTypeOccurrences)) {
      BreakContinueTargetFinder finder = new BreakContinueTargetFinder();
      String message = finder.initialize(astRoot, selectedNode);
      if (message == null) {
        matches = finder.getOccurrences();
        if (!fMarkBreakContinueTargets && matches != null)
          matches = null;
      }
    }

    if ((matches == null) && (fMarkImplementors || fMarkTypeOccurrences)) {
      ImplementOccurrencesFinder finder = new ImplementOccurrencesFinder();
      String message = finder.initialize(astRoot, selectedNode);
      if (message == null) {
        matches = finder.getOccurrences();
        if (!fMarkImplementors && matches != null)
          matches = null;
      }
    }

    if (matches == null) {
      IBinding binding = null;
      if (selectedNode instanceof Name)
        binding = ((Name) selectedNode).resolveBinding();

      if (binding != null && markOccurrencesOfType(binding)) {
        // Find the matches && extract positions so we can forget the
        // AST
        OccurrencesFinder finder = new OccurrencesFinder();
        String message = finder.initialize(astRoot, selectedNode);
        if (message == null)
          matches = finder.getOccurrences();
      }
    }

    if (matches == null || matches.length == 0) {
      if (!fStickyOccurrenceAnnotations)
View Full Code Here

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

      resolveEnclosingElement = selection.resolveEnclosingElement();
      Program astRoot = ASTProvider.getASTProvider().getAST(
          (ISourceModule) resolveEnclosingElement,
          SharedASTProvider.WAIT_YES, null);
      setEnabled(astRoot != null
          && new MethodExitsFinder().initialize(astRoot, selection
              .getOffset(), selection.getLength()) == null);
    } catch (ModelException e) {
      PHPUiPlugin.log(e);
    }
  }
View Full Code Here

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

  public final void run(ITextSelection ts) {
    ISourceModule input = getEditorInput(fEditor);
    if (!ActionUtil.isProcessable(getShell(), input))
      return;
    FindOccurrencesEngine engine = FindOccurrencesEngine
        .create(new MethodExitsFinder());
    try {
      String result = engine.run(input, ts.getOffset(), ts.getLength());
      if (result != null)
        showMessage(getShell(), fEditor, result);
    } catch (ModelException e) {
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.