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

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


  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

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

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.