Package org.eclipse.dltk.core.search

Examples of org.eclipse.dltk.core.search.SearchRequestor


        SearchPattern.R_FULL_MATCH | SearchPattern.R_ERASURE_MATCH,
        PHPLanguageToolkit.getDefault()
      ),
      new SearchParticipant[]{ SearchEngine.getDefaultSearchParticipant() },
      SearchEngine.createSearchScope(modelElement.getScriptProject()),
      new SearchRequestor() {
        @Override
        public void acceptSearchMatch(final SearchMatch match) throws CoreException {
          if (match instanceof TypeReferenceMatch && match.getElement() instanceof IModelElement) {
            final ISourceModule module = (ISourceModule) ((IModelElement) match.getElement()).getAncestor(IModelElement.SOURCE_MODULE);
            if (module != null && RefactoringAvailabilityTester.isRenameAvailable(module)) {
View Full Code Here


        SearchPattern.R_FULL_MATCH | SearchPattern.R_ERASURE_MATCH,
        PHPLanguageToolkit.getDefault()
      ),
      new SearchParticipant[]{ SearchEngine.getDefaultSearchParticipant() },
        SearchEngine.createSearchScope(modelElement.getScriptProject()),
        new SearchRequestor() {
          @Override
          public void acceptSearchMatch(final SearchMatch match) throws CoreException {
            if (match instanceof MethodReferenceMatch && ((MethodReferenceMatch) match).getNode() instanceof PHPCallExpression && match.getElement() instanceof IModelElement) {
              final ISourceModule module = (ISourceModule) ((IModelElement) match.getElement()).getAncestor(IModelElement.SOURCE_MODULE);
              if (module != null && RefactoringAvailabilityTester.isRenameAvailable(module)) {
View Full Code Here

     */
    new SearchEngine().search(
      createSearchPatternForReferences(),
      new SearchParticipant[]{ SearchEngine.getDefaultSearchParticipant() },
      SearchEngine.createSearchScope(modelElement.getScriptProject()),
      new SearchRequestor() {
        @Override
        public void acceptSearchMatch(SearchMatch match) throws CoreException {
          if (match instanceof FieldReferenceMatch && match.getElement() instanceof IModelElement) {
            ISourceModule module = (ISourceModule) ((IModelElement) match.getElement()).getAncestor(IModelElement.SOURCE_MODULE);
            if (module != null && RefactoringAvailabilityTester.isRenameAvailable(module)) {
View Full Code Here

  private SearchEngine searchEngine = new SearchEngine();

  public Map process(final IModelElement parent, IModelElement element, IDLTKSearchScope scope,
          IProgressMonitor monitor) {
    final Map elements = new HashMap();
    SearchRequestor requestor = new SearchRequestor() {

      @Override
      public void acceptSearchMatch(SearchMatch match) {
        if ((match.getAccuracy() != SearchMatch.A_ACCURATE)) {
          return;
View Full Code Here

  private SearchEngine searchEngine = new SearchEngine();

  public Map process(final IModelElement parent, IModelElement element, IDLTKSearchScope scope,
          IProgressMonitor monitor) {
    final Map elements = new HashMap();
    SearchRequestor requestor = new SearchRequestor() {

      @Override
      public void acceptSearchMatch(SearchMatch match) {
        if ((match.getAccuracy() != SearchMatch.A_ACCURATE)) {
          return;
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.core.search.SearchRequestor

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.