Author: scabanovich
Date: 2010-12-20 10:28:44 -0500 (Mon, 20 Dec 2010)
New Revision: 27616
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java
Log:
JBIDE-7948
https://issues.jboss.org/browse/JBIDE-7948
JBIDE-7950
https://issues.jboss.org/browse/JBIDE-7950
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java 2010-12-20
15:18:09 UTC (rev 27615)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java 2010-12-20
15:28:44 UTC (rev 27616)
@@ -26,6 +26,7 @@
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.jdt.core.Flags;
import org.eclipse.jdt.core.IAnnotation;
import org.eclipse.jdt.core.IMemberValuePair;
import org.eclipse.jdt.core.IMethod;
@@ -334,6 +335,16 @@
boolean delegateInjectionPoint = injectionPoint.isDelegate();
for (IBean b: beans) {
+ if(b instanceof ClassBean) {
+ IType bType = b.getBeanClass();
+ try {
+ if(bType != null && Flags.isAbstract(bType.getFlags())) {
+ continue;
+ }
+ } catch (JavaModelException e) {
+ CDICorePlugin.getDefault().logError(e);
+ }
+ }
if(isNew) {
//TODO improve
IType bType = b.getBeanClass();
@@ -1015,7 +1026,9 @@
CDICoreNature[] ps = n.getDependentProjects().toArray(new CDICoreNature[0]);
for (CDICoreNature p: ps) {
- p.getDelegate().update();
+ if(p.getProject() != null && p.getProject().isAccessible()) {
+ p.getDelegate().update();
+ }
}
}