Author: dazarov
Date: 2011-10-13 20:55:17 -0400 (Thu, 13 Oct 2011)
New Revision: 35648
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/search/InjectionPointQueryParticipant.java
Log:
Updated CDI Query Participants in order to search in related projects and check search
scope
https://issues.jboss.org/browse/JBIDE-9801
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/search/InjectionPointQueryParticipant.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/search/InjectionPointQueryParticipant.java 2011-10-14
00:51:34 UTC (rev 35647)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/search/InjectionPointQueryParticipant.java 2011-10-14
00:55:17 UTC (rev 35648)
@@ -109,26 +109,12 @@
}
}
}
- Set<CDICoreNature> natures = cdiProject.getNature().getCDIProjects(true);
- for(CDICoreNature nature : natures){
- resolveObserverMethods(nature.getDelegate(), injectionPoint, requestor,
querySpecification);
- }
- CDICoreNature[] naturesArray = cdiProject.getNature().getAllDependentProjects();
- for(CDICoreNature nature : naturesArray){
- resolveObserverMethods(nature.getDelegate(), injectionPoint, requestor,
querySpecification);
- }
+ resolveObserverMethods(cdiProject, injectionPoint, requestor, querySpecification);
}
if(element instanceof IMethod){
IParameter param = findObserverParameter(beans, (IMethod)element);
if(param != null){
- Set<CDICoreNature> natures = cdiProject.getNature().getCDIProjects(true);
- for(CDICoreNature nature : natures){
- findObservedEvents(nature.getDelegate(), param, requestor, querySpecification);
- }
- CDICoreNature[] naturesArray = cdiProject.getNature().getAllDependentProjects();
- for(CDICoreNature nature : naturesArray){
- findObservedEvents(nature.getDelegate(), param, requestor, querySpecification);
- }
+ findObservedEvents(cdiProject, param, requestor, querySpecification);
}
}
}