List of usage examples for org.springframework.ide.eclipse.boot.dash.cloudfoundry CloudAppDashElement cancelOperations
public void cancelOperations()
From source file:org.springframework.ide.eclipse.boot.dash.cloudfoundry.CloudAppDashElement.java
@Override public void delete(UserInteractions ui) { CloudFoundryBootDashModel model = getCloudModel(); CloudAppDashElement cloudElement = this; cloudElement.cancelOperations(); CancelationToken cancelToken = cloudElement.createCancelationToken(); CloudApplicationOperation operation = new CloudApplicationOperation("Deleting: " + cloudElement.getName(), model, cloudElement.getName(), cancelToken) { @Override//w w w . j a va 2s .com protected void doCloudOp(IProgressMonitor monitor) throws Exception, OperationCanceledException { // Delete from CF first. Do it outside of synch block to avoid // deadlock model.getRunTarget().getClient().deleteApplication(appName); model.getElementConsoleManager().terminateConsole(cloudElement.getName()); model.removeApplication(cloudElement.getName()); cloudElement.setProject(null); } }; // Allow deletions to occur concurrently with any other application // operation operation.setSchedulingRule(null); getCloudModel().runAsynch(operation, ui); }