Author: rob.stryker(a)jboss.com
Date: 2011-02-18 16:05:08 -0500 (Fri, 18 Feb 2011)
New Revision: 29247
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/job/InstanceStateJob.java
Log:
JBIDE-8423 patch 2
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/job/InstanceStateJob.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/job/InstanceStateJob.java 2011-02-18
16:45:00 UTC (rev 29246)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/job/InstanceStateJob.java 2011-02-18
21:05:08 UTC (rev 29247)
@@ -32,6 +32,8 @@
protected IStatus doRun(IProgressMonitor monitor) throws Exception {
String id = getInstance().getId();
getCloud().waitForState(id, expectedState, monitor);
+ if( monitor.isCanceled())
+ return Status.CANCEL_STATUS;
return Status.OK_STATUS;
}
Show replies by date