[jboss-cvs] jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/nature ...
Max Rydahl Andersen
mandersen at jboss.com
Thu Jan 18 12:31:40 EST 2007
User: mandersen
Date: 07/01/18 12:31:40
Modified: hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/nature
HibernateNature.java
Log:
avoid logging error on non open projects when looking for nature
Revision Changes Path
1.10 +1 -1 jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/nature/HibernateNature.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: HibernateNature.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/nature/HibernateNature.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- HibernateNature.java 27 Nov 2006 15:29:08 -0000 1.9
+++ HibernateNature.java 18 Jan 2007 17:31:40 -0000 1.10
@@ -207,7 +207,7 @@
/** return HibernateNature or null for a project **/
public static HibernateNature getHibernateNature(IJavaProject project) {
try {
- if(project!=null && project.getProject().hasNature(HibernateNature.ID)) {
+ if(project!=null && project.getProject().isOpen() && project.getProject().hasNature(HibernateNature.ID)) {
final HibernateNature nature = (HibernateNature) project.getProject().getNature(HibernateNature.ID);
return nature;
}
More information about the jboss-cvs-commits
mailing list