[jbosstools-commits] JBoss Tools SVN: r42652 - in trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse: launch and 1 other directory.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Thu Jul 19 11:27:02 EDT 2012
Author: dgeraskov
Date: 2012-07-19 11:27:02 -0400 (Thu, 19 Jul 2012)
New Revision: 42652
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/BestGuessConsoleConfigurationVisitor.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationJavaClasspathTab.java
Log:
https://issues.jboss.org/browse/JBIDE-12348
Add validation to project state and ignore error for non java projects
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/BestGuessConsoleConfigurationVisitor.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/BestGuessConsoleConfigurationVisitor.java 2012-07-19 15:21:32 UTC (rev 42651)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/BestGuessConsoleConfigurationVisitor.java 2012-07-19 15:27:02 UTC (rev 42652)
@@ -82,7 +82,7 @@
return false;
}
} else if (proxy.getType() == IResource.FOLDER) {
- if (javaProject != null) {
+ if (javaProject != null && javaProject.exists()) {
if (javaProject.getOutputLocation().isPrefixOf(fullPath)) {
// classpath.add(fullPath);
return false; // skip output locations
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationJavaClasspathTab.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationJavaClasspathTab.java 2012-07-19 15:21:32 UTC (rev 42651)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationJavaClasspathTab.java 2012-07-19 15:27:02 UTC (rev 42652)
@@ -74,7 +74,8 @@
}
}
} catch (CoreException e) {
- HibernateConsolePlugin.getDefault().log( e );
+ //Ignore as the exception occurs if the selected project is not java project
+ //We'll show warning to the user later
}
if (!resUserClasses) {
setErrorMessage(HibernateConsoleMessages.ConsoleConfigurationTabGroup_classpath_must_be_set_or_restored_to_default);
More information about the jbosstools-commits
mailing list