Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.SubMonitor.beginTask()


      /*
       * This should not be needed, but things don't work properly when it's not
       * called.
       */
      monitor.beginTask(monitorText, DEFRAG_TOTAL_WORK);
    } else {
      monitor = subMonitor.newChild(10);
      monitor.setWorkRemaining(100);
    }

View Full Code Here


   * @throws CoreException if error occurred while loading an existing
   * manifest file.
   */
  public DeploymentInfoWorkingCopy load(IProgressMonitor monitor) throws CoreException {
    SubMonitor subMonitor = SubMonitor.convert(monitor);
    subMonitor.beginTask("Parsing and loading application manifest file", 6); //$NON-NLS-1$
    DeploymentInfoWorkingCopy workingCopy;
    try {
      workingCopy = appModule.resolveDeploymentInfoWorkingCopy(subMonitor);

      Map<?, ?> application = getApplication(null);
View Full Code Here

  }

  public static CloudFoundryOperations createExternalClientLogin(final String location, String userName,
      String password, boolean selfSigned, IProgressMonitor monitor) throws CoreException {
    SubMonitor progress = SubMonitor.convert(monitor);
    progress.beginTask("Connecting", IProgressMonitor.UNKNOWN); //$NON-NLS-1$
    try {
      final CloudFoundryOperations client = createClient(location, userName, password, selfSigned);

      new ClientRequest<Void>(Messages.VALIDATING_CREDENTIALS) {
View Full Code Here

  }

  public static void register(String location, String userName, String password, boolean selfSigned,
      IProgressMonitor monitor) throws CoreException {
    SubMonitor progress = SubMonitor.convert(monitor);
    progress.beginTask("Connecting", IProgressMonitor.UNKNOWN); //$NON-NLS-1$
    try {
      CloudFoundryOperations client = createClient(location, userName, password, selfSigned);
      client.register(userName, password);
    }
    catch (RestClientException e) {
View Full Code Here

                    }
                    else
                    {
                        SubMonitor sub = SubMonitor.convert(monitor);
                       
                        sub.beginTask("Resolving package users", 200);
                       
                        Set<String> users = JavaHelper.findLocalPackageUsers(
                            sourceProject, packageName, sub.newChild(100));
                        Set<String> dependencies = JavaHelper.findLocalPackageDependencies(
                            sourceProject, packageName, sub.newChild(100));
View Full Code Here

                    final SubMonitor progress = SubMonitor.convert(monitor);

                    try {

                        progress.beginTask(Messages.SarosUI_permission_change,
                            IProgressMonitor.UNKNOWN);

                        sessionManager.getSarosSession()
                            .initiatePermissionChange(user, newPermission,
                                progress);
View Full Code Here

                    dialog.run(true, true, new IRunnableWithProgress() {
                        public void run(IProgressMonitor monitor)
                            throws InterruptedException {

                            SubMonitor progress = SubMonitor.convert(monitor);
                            progress
                                .beginTask(
                                    Messages.ConsistencyAction_progress_perform_recovery,
                                    100);
                            watchdogClient.runRecovery(progress.newChild(100));
                            monitor.done();
View Full Code Here

        }

        @Override
        protected IStatus run(IProgressMonitor ipmonitor) {
            SubMonitor monitor = SubMonitor.convert(ipmonitor);
            monitor.beginTask(Messages.SendFileAction_monitor_set_up_session_text, 101);

            setProperty(IProgressConstants.KEEP_PROPERTY, Boolean.TRUE);

            log.info("Asking " + user + " to accept our transfer."); //$NON-NLS-1$ //$NON-NLS-2$
            monitor.subTask(MessageFormat.format(Messages.SendFileAction_monitor_notifying_text,
View Full Code Here

                    return new Status(IStatus.ERROR, Saros.SAROS,
                        Messages.SendFileAction_status_cannot_receive_file_text);
                }
                setName(MessageFormat.format(Messages.SendFileAction_status_receiving_text,
                    fileDescription.name, getStreamSession().getRemoteJID()));
                monitor.beginTask(
                    Messages.SendFileAction_monitor_choose_location_text, 102);

                File file;
                try {
                    file = saveFile(fileDescription.name,
View Full Code Here

  public static void applyTo(IJavaProject javaProject, IProgressMonitor monitor) {
    IProject theProject = javaProject.getProject();
   
    SubMonitor sub = SubMonitor.convert(monitor, 5);
    sub.beginTask("Adding " + NATURE_ID + " nature to project.", 5);
   
    try {
      IProjectDescription description = theProject.getDescription();
      String[] natures = description.getNatureIds();
      sub.worked(1);
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.