Author: dgeraskov
Date: 2012-02-16 08:34:07 -0500 (Thu, 16 Feb 2012)
New Revision: 38821
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/BasicWorkbenchAdapter.java
Log:
https://issues.jboss.org/browse/JBIDE-10524
Do not add children if monitor is cancelled
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/BasicWorkbenchAdapter.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/BasicWorkbenchAdapter.java 2012-02-16
13:14:33 UTC (rev 38820)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/BasicWorkbenchAdapter.java 2012-02-16
13:34:07 UTC (rev 38821)
@@ -103,7 +103,10 @@
public void fetchDeferredChildren(Object object,
IElementCollector collector, IProgressMonitor monitor) {
try {
- collector.add(getChildren(object, monitor), monitor);
+ Object[] children = getChildren(object, monitor);
+ if (!monitor.isCanceled()){
+ collector.add(children, monitor);
+ }
collector.done();
} catch(Exception e) {
handleError(collector,object, e);