Package org.eclipse.core.runtime

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


    // ignore
  }

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

  }

  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

          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

                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

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

        try
View Full Code Here

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

            try
View Full Code Here

                }
            }
            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

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

        try {
            monitor.beginTask("", 2000);
            projectHandle.create(description, new SubProgressMonitor(monitor,
                    1000));
            if (monitor.isCanceled()) {
                throw new OperationCanceledException();
            }
            projectHandle.open(IResource.BACKGROUND_REFRESH,
                new SubProgressMonitor(monitor, 1000));
        } finally {
            monitor.done();
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.OperationCanceledException

Copyright © 2018 www.massapicom. 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.