Find Usage
i want to find the usages of current class in editor and determine the class
Names of the usages.
i am doing
ISolution solution = (ISolution) context.GetData(DataConstants.SOLUTION);
IClass currentClass = context.GetData(DataConstants.DECLARED_ELEMENT) as
IClass;
PsiManager manager = PsiManager.GetInstance(solution);
IReference[] references = manager.Finder.FindReferences(currentClass, currentClass.GetAccessibilityDomain(),
NullProgressIndicator.INSTANCE);
now how do i find the class name of reference
Thanks
Irfan
Please sign in to leave a comment.