[jbosstools-commits] JBoss Tools SVN: r24460 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Thu Aug 26 05:46:00 EDT 2010
Author: dgeraskov
Date: 2010-08-26 05:46:00 -0400 (Thu, 26 Aug 2010)
New Revision: 24460
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/DeleteConfigurationAction.java
Log:
https://jira.jboss.org/browse/JBIDE-6910
fix ClassCastException
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/DeleteConfigurationAction.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/DeleteConfigurationAction.java 2010-08-26 09:28:11 UTC (rev 24459)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/DeleteConfigurationAction.java 2010-08-26 09:46:00 UTC (rev 24460)
@@ -62,8 +62,11 @@
if( MessageDialog.openConfirm( null, title, question)) {
Iterator iter = selectedNonResources.iterator();
while (iter.hasNext() ) {
- ConsoleConfiguration element = (ConsoleConfiguration) iter.next();
- KnownConfigurations.getInstance().removeConfiguration(element, false);
+ Object selElement = iter.next();
+ if (selElement instanceof ConsoleConfiguration) {
+ ConsoleConfiguration element = (ConsoleConfiguration) selElement;
+ KnownConfigurations.getInstance().removeConfiguration(element, false);
+ }
}
part.refresh();
More information about the jbosstools-commits
mailing list