Author: dazarov
Date: 2010-12-13 04:01:14 -0500 (Mon, 13 Dec 2010)
New Revision: 27394
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/MakeMethodBusinessMarkerResolution.java
Log:
https://issues.jboss.org/browse/JBIDE-7672
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java 2010-12-13
08:13:01 UTC (rev 27393)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java 2010-12-13
09:01:14 UTC (rev 27394)
@@ -74,7 +74,9 @@
new MakeFieldStaticMarkerResolution(field, file)
};
}
- }else if (messageId ==
CDIValidationErrorManager.ILLEGAL_PRODUCER_METHOD_IN_SESSION_BEAN_ID) {
+ }else if (messageId ==
CDIValidationErrorManager.ILLEGAL_PRODUCER_METHOD_IN_SESSION_BEAN_ID ||
+ messageId == CDIValidationErrorManager.ILLEGAL_DISPOSER_IN_SESSION_BEAN_ID ||
+ messageId == CDIValidationErrorManager.ILLEGAL_OBSERVER_IN_SESSION_BEAN_ID) {
IMethod method = findMethod(file, start);
if(method != null){
List<IType> types = findLocalAnnotattedInterfaces(method);
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/MakeMethodBusinessMarkerResolution.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/MakeMethodBusinessMarkerResolution.java 2010-12-13
08:13:01 UTC (rev 27393)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/MakeMethodBusinessMarkerResolution.java 2010-12-13
09:01:14 UTC (rev 27394)
@@ -45,6 +45,7 @@
static final HashSet<String> primitives = new HashSet<String>();
static{
+ primitives.add("void"); //$NON-NLS-1$
primitives.add("int"); //$NON-NLS-1$
primitives.add("java.lang.Integer"); //$NON-NLS-1$
primitives.add("char"); //$NON-NLS-1$