Examples of OperationCanceledException


Examples of org.eclipse.core.runtime.OperationCanceledException

      if (cancelled[0]) {
        if (!status[0].isOK()) {
          CloudFoundryPlugin.logError("Failed to deploy application due to: " + status[0].getMessage(), //$NON-NLS-1$
              status[0].getException());
        }
        throw new OperationCanceledException();
      }
      else {
        if (status[0].isOK()) {
          status[0] = appModule.validateDeploymentInfo();
        }
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

            .getLog()
            .log(new Status(IStatus.ERROR, CloudFoundryServerUiPlugin.PLUGIN_ID, "Unexpected exception", e)); //$NON-NLS-1$
      }
    }
    catch (InterruptedException e) {
      throw new OperationCanceledException();
    }
  }
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

    // ignore
  }

  @Override
  public void getCredentials(CloudFoundryServer server) {
    throw new OperationCanceledException();
  }
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

  }

  private boolean query(IOverwriteQuery query, String message) {
    String response = query.queryOverwrite(message);
    if (IOverwriteQuery.CANCEL.equals(response)) {
      throw new OperationCanceledException();
    }
    if (IOverwriteQuery.YES.equals(response)) {
      return true;
    }
    return false;
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

          if (eventLatch.await(200, TimeUnit.MILLISECONDS)) {
            break;
          }
        }
        catch (InterruptedException e) {
          throw new OperationCanceledException();
        }
        if (monitor != null && monitor.isCanceled()) {
          throw new OperationCanceledException();
        }
      }
    }
    finally {
      server.removeServerListener(serverListener);
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

                return status;
            }
            catch (CoreException e)
            {
                SigilCore.warn("Failed to create move refactor conditions", e);
                throw new OperationCanceledException(e.getMessage());
            }
        }
        else
        {
            return new RefactoringStatus();
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

                {
                    finishPage(monitor);
                }
                catch (InterruptedException e)
                {
                    throw new OperationCanceledException(e.getMessage());
                }
            }
        };

        try
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

                    {
                        updateProject(monitor);
                    }
                    catch (InterruptedException e)
                    {
                        throw new OperationCanceledException(e.getMessage());
                    }
                }
            };

            try
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

                }
            }
            catch (CoreException e)
            {
                SigilCore.warn("Failed to create export package refactor", e);
                throw new OperationCanceledException(
                    "Failed to create export package refactor");
            }
        }
        return status;
    }
View Full Code Here

Examples of org.eclipse.core.runtime.OperationCanceledException

public abstract class ProgressUtils {

    public static void advance(IProgressMonitor monitor, int ticks) {
        monitor.worked(ticks);
        if (monitor.isCanceled()) {
            throw new OperationCanceledException();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.