[jbosstools-commits] JBoss Tools SVN: r43270 - trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Tue Aug 28 14:18:29 EDT 2012
Author: akazakov
Date: 2012-08-28 14:18:29 -0400 (Tue, 28 Aug 2012)
New Revision: 43270
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
Log:
https://issues.jboss.org/browse/JBIDE-12503 CDI Bean types are not updated
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2012-08-28 16:34:33 UTC (rev 43269)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2012-08-28 18:18:29 UTC (rev 43270)
@@ -829,6 +829,21 @@
return parametedType==null?null:parametedType.getType();
}
+// private void addLinkedBeanTypes(IBean bean) {
+// if(!isAsYouTypeValidation()) {
+// Collection<IParametedType> types = bean.getAllTypes();
+// for (IParametedType type : types) {
+// IType iType = type.getType();
+// if(iType!=null && !iType.isBinary()) {
+// IResource resource = iType.getResource();
+// if(resource!=null) {
+// getValidationContext().addLinkedCoreResource(SHORT_ID, beanPath, stereotype.getResource().getFullPath(), false);
+// }
+// }
+// }
+// }
+// }
+
private void addLinkedStereotypes(String beanPath, IStereotyped stereotyped) {
if(!isAsYouTypeValidation()) {
for (IStereotypeDeclaration stereotypeDeclaration : stereotyped.getStereotypeDeclarations()) {
@@ -1542,7 +1557,7 @@
return false;
}
- private void saveAllSuperTypesAsLinkedResources(IClassBean bean) {
+ private void saveAllSuperTypesAsLinkedResources(IBean bean) {
if(!isAsYouTypeValidation()) {
for (IParametedType type : bean.getAllTypes()) {
IType superType = type.getType();
@@ -2398,7 +2413,8 @@
*/
private void validateTyped(IBean bean) {
Collection<ITypeDeclaration> typedDeclarations = bean.getRestrictedTypeDeclaratios();
- if (!typedDeclarations.isEmpty()) {
+ if (!typedDeclarations.isEmpty()) {
+ saveAllSuperTypesAsLinkedResources(bean);
Set<String> allTypeNames = new HashSet<String>();
for (IParametedType type : bean.getAllTypes()) {
if(type.getType() != null) allTypeNames.add(type.getType().getFullyQualifiedName());
More information about the jbosstools-commits
mailing list