Author: xcoulon
Date: 2011-11-24 17:26:43 -0500 (Thu, 24 Nov 2011)
New Revision: 36637
Modified:
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/builder/ElementChangedEventScanner.java
Log:
Prevent resource changes analysis if the enclosing project is closed (with proper/safe
check this time)
Modified:
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/builder/ElementChangedEventScanner.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/builder/ElementChangedEventScanner.java 2011-11-24
22:24:31 UTC (rev 36636)
+++
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/builder/ElementChangedEventScanner.java 2011-11-24
22:26:43 UTC (rev 36637)
@@ -147,7 +147,7 @@
private List<JavaElementChangedEvent> scanDelta(IJavaElementDelta delta) throws
CoreException {
final List<JavaElementChangedEvent> events = new
ArrayList<JavaElementChangedEvent>();
IJavaElement element = delta.getElement();
- if(element == null || !element.getJavaProject().getProject().isOpen()) {
+ if(element == null || (element.getJavaProject() != null &&
!element.getJavaProject().getProject().isOpen())) {
// skip as the project is closed
return Collections.emptyList();
}
Show replies by date