[jbosstools-commits] JBoss Tools SVN: r39525 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Thu Mar 15 03:45:31 EDT 2012
Author: dgeraskov
Date: 2012-03-15 03:45:30 -0400 (Thu, 15 Mar 2012)
New Revision: 39525
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/ProjectUtils.java
Log:
https://issues.jboss.org/browse/JBIDE-11103
return only opened java projects
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/ProjectUtils.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/ProjectUtils.java 2012-03-15 00:59:20 UTC (rev 39524)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/ProjectUtils.java 2012-03-15 07:45:30 UTC (rev 39525)
@@ -315,7 +315,7 @@
List<IJavaProject> res = new ArrayList<IJavaProject>();
for (int i = 0; i < projects.size(); i++) {
try {
- if (projects.get(i).hasNature(JavaCore.NATURE_ID)){
+ if (projects.get(i).isOpen() && projects.get(i).hasNature(JavaCore.NATURE_ID)){
res.add(JavaCore.create(projects.get(i)));
}
} catch (CoreException e) {
More information about the jbosstools-commits
mailing list