Author: xcoulon
Date: 2012-10-18 05:55:36 -0400 (Thu, 18 Oct 2012)
New Revision: 44573
Modified:
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/builder/JavaElementDeltaFilter.java
Log:
Fixed - JBIDE-12887
JAX-RS should not analyse jars in the project's classpath
Applied patch2 (prevent NPE and fix javadoc)
Modified:
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/builder/JavaElementDeltaFilter.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/builder/JavaElementDeltaFilter.java 2012-10-18
09:33:48 UTC (rev 44572)
+++
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/builder/JavaElementDeltaFilter.java 2012-10-18
09:55:36 UTC (rev 44573)
@@ -105,21 +105,16 @@
return new RuleBuilder();
}
+
/**
- * Attempts to retrieve the CompilationUnitContext value matching the given
- * parameters.
- *
- * @param elementKind
- * the kind of Java element that changed.
- * @param deltaKind
- * the kind of change.
- * @param workingCopy
- * @return the scope defined by the rules, or PRIMARY_COPY if nothing was
- * set.
- * @see IJavaElementDelta, IJavaElementKind
+ * Applies the configured rules to see if the given JavaElementDelta needs to be
processed or should be ignored.
+ * @param event the Java Element Delta
+ * @return true if the event should be processed, false otherwise
*/
-
public boolean apply(JavaElementDelta event) {
+ if(event.getElement() == null) {
+ return false;
+ }
int elementKind = event.getElement().getElementType();
int deltaKind = event.getDeltaKind();
IJavaElement element = event.getElement();