Author: xcoulon
Date: 2012-05-22 16:38:22 -0400 (Tue, 22 May 2012)
New Revision: 41260
Modified:
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/configuration/ProjectNatureUtils.java
Log:
Fixing error when project is closed: cannot read its description
Modified:
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/configuration/ProjectNatureUtils.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/configuration/ProjectNatureUtils.java 2012-05-22
19:48:29 UTC (rev 41259)
+++
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/configuration/ProjectNatureUtils.java 2012-05-22
20:38:22 UTC (rev 41260)
@@ -45,6 +45,9 @@
* in case of exception
*/
public static boolean isProjectNatureInstalled(final IProject project, final String
natureId) throws CoreException {
+ if(!project.isOpen()) {
+ return false;
+ }
String[] natures = project.getDescription().getNatureIds();
for (String nature : natures) {
if (nature.equals(natureId)) {
Show replies by date