Author: scabanovich
Date: 2011-09-29 12:53:18 -0400 (Thu, 29 Sep 2011)
New Revision: 35162
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
Log:
JBIDE-9777
https://issues.jboss.org/browse/JBIDE-9777
Vetoing type definition in dependent projects is improved.
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2011-09-29
16:50:53 UTC (rev 35161)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2011-09-29
16:53:18 UTC (rev 35162)
@@ -209,6 +209,23 @@
return result;
}
+ /**
+ * Returns set of types that were to be marked as vetoed by CDI extensions, but
+ * for which it was impossible to set isVetoed=true on the type definition object,
+ * because type is declared in another project where it is not vetoed.
+ *
+ * @return
+ */
+ public Set<String> getAllVetoedTypes() {
+ Set<String> result = new HashSet<String>();
+ result.addAll(definitions.getVetoedTypes());
+ Set<CDICoreNature> ps = getCDIProjects(true);
+ for (CDICoreNature n: ps) {
+ result.addAll(n.getDefinitions().getVetoedTypes());
+ }
+ return result;
+ }
+
public Set<BeansXMLDefinition> getAllBeanXMLDefinitions() {
Set<CDICoreNature> ps = getCDIProjects(true);
if(ps == null || ps.isEmpty()) {