Examples of UpdateJob


Examples of org.eclipse.update.ui.UpdateJob

    {
        BusyIndicator.showWhile( window.getShell().getDisplay(), new Runnable()
        {
            public void run()
            {
                UpdateJob job = new UpdateJob( Messages.getString( "UpdateAction.Searching_for_updates" ), false, false ); //$NON-NLS-1$
                UpdateManagerUI.openInstaller( window.getShell(), job );
            }
        } );
    }
View Full Code Here

Examples of org.eclipse.update.ui.UpdateJob

      UpdateSearchScope scope = new UpdateSearchScope();
      scope.addSearchSite("RSSOwl.org", new URL(UPDATE_SITE), null); //$NON-NLS-1$
      scope.setFeatureProvidedSitesEnabled(false);

      /* Run in Update Job */
      final UpdateJob job = new UpdateJob(Messages.FindUpdatesAction_UPDATE_SEARCH, true, false);
      job.getSearchRequest().setScope(scope);
      job.addJobChangeListener(new JobChangeAdapter() {
        @Override
        public void done(IJobChangeEvent event) {
          JobRunner.runInUIThread(fShell, new Runnable() {
            public void run() {
              if (Controller.getDefault().isShuttingDown() || (fShell != null && fShell.isDisposed()))
                return;

              if (job.getStatus().isOK())
                handleUpdates(job.getUpdates());
              else
                handleError(job.getStatus());
            }
          });
        }
      });

      if (fUserInitiated) {
        job.setUser(true);
        job.setPriority(Job.INTERACTIVE);
      } else {
        job.setUser(false);
        job.setSystem(true);
      }

      /* Schedule */
      job.schedule();
    } catch (MalformedURLException e) {
      Activator.safeLogError(e.getMessage(), e);
    }
  }
View Full Code Here

Examples of org.eclipse.update.ui.UpdateJob

   */
  @Override
  public void run() {
    BusyIndicator.showWhile(fShell.getDisplay(), new Runnable() {
      public void run() {
        UpdateJob job = new UpdateJob(Messages.FindExtensionsAction_SEARCHING_EXTENSIONS, getSearchRequest());
        job.setUser(true);
        job.setPriority(Job.INTERACTIVE);
        new InstallWizardOperation().run(fShell, job);
      }
    });
  }
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.