Package com.squareup.ideaplugin.dagger

Examples of com.squareup.ideaplugin.dagger.ShowUsagesAction


    }

    PsiMethod psiMethod = (PsiMethod) psiElement;
    PsiClass psiClass = PsiConsultantImpl.getReturnClassFromMethod(psiMethod);

    new ShowUsagesAction(new Decider.ProvidesMethodDecider(psiMethod)).startFindUsages(psiClass,
        new RelativePoint(mouseEvent), PsiUtilBase.findEditor(psiClass), MAX_USAGES);
  }
View Full Code Here


    }

    PsiField psiField = (PsiField) psiElement;
    PsiClass injectedClass = PsiConsultantImpl.checkForLazyOrProvider(psiField);

    new ShowUsagesAction(new Decider.FieldInjectDecider(psiField)).startFindUsages(injectedClass,
        new RelativePoint(mouseEvent), PsiUtilBase.findEditor(injectedClass), MAX_USAGES);
  }
View Full Code Here

          });
    }
  }

  private void showUsages(MouseEvent mouseEvent, PsiParameter psiParameter) {
    new ShowUsagesAction(new Decider.ConstructorParameterInjectDecider(psiParameter)).startFindUsages(
        PsiConsultantImpl.checkForLazyOrProvider(psiParameter), new RelativePoint(mouseEvent),
        PsiUtilBase.findEditor(psiParameter), MAX_USAGES);
  }
View Full Code Here

    }

    PsiMethod psiMethod = (PsiMethod) psiElement;
    PsiClass psiClass = PsiConsultantImpl.getClass(psiElement);

    new ShowUsagesAction(new Decider.ProvidesMethodDecider(psiMethod)).startFindUsages(psiClass,
        new RelativePoint(mouseEvent), PsiUtilBase.findEditor(psiClass), MAX_USAGES);
  }
View Full Code Here

TOP

Related Classes of com.squareup.ideaplugin.dagger.ShowUsagesAction

Copyright © 2015 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.