List of usage examples for org.springframework.ide.eclipse.boot.dash.cloudfoundry.ops Operation run
public T run(IProgressMonitor monitor) throws Exception, OperationCanceledException
From source file:org.springframework.ide.eclipse.boot.dash.cloudfoundry.CloudAppDashElement.java
public void pushAndDebug(CloudApplicationDeploymentProperties deploymentProperties, RunState runningOrDebugging, UserInteractions ui, CancelationToken cancelationToken, IProgressMonitor monitor) throws Exception { String opName = "Starting application '" + getName() + "' in " + (runningOrDebugging == RunState.DEBUGGING ? "DEBUG" : "RUN") + " mode"; DebugSupport debugSupport = getDebugSupport(); if (runningOrDebugging == RunState.DEBUGGING) { if (debugSupport != null && debugSupport.isSupported(this)) { Operation<?> debugOp = debugSupport.createOperation(this, opName, ui, cancelationToken); push(deploymentProperties, runningOrDebugging, debugSupport, cancelationToken, ui, monitor); debugOp.run(monitor); } else {/*from w w w.j a v a2 s . c o m*/ String title = "Debugging is not supported for '" + getName() + "'"; String msg = debugSupport.getNotSupportedMessage(this); if (msg == null) { msg = title; } ui.errorPopup(title, msg); throw ExceptionUtil.coreException(msg); } } else { push(deploymentProperties, runningOrDebugging, debugSupport, cancelationToken, ui, monitor); } }