Package org.eclipse.core.runtime.jobs

Examples of org.eclipse.core.runtime.jobs.JobChangeAdapter


        };
        refreshJob.setSystem(true);
        refreshJob.setRule(ResourcesPlugin.getWorkspace().getRoot());
        if (runAfter != null)
        {
            refreshJob.addJobChangeListener(new JobChangeAdapter()
            {
                @Override
                public void done(final IJobChangeEvent event)
                {
                    runAfter.run();
View Full Code Here


            "Preparing Google Web Application Project",
            fJavaProject, Activator.getDefault().getBundle(),true);
        PlatformUI.getWorkbench().getProgressService().showInDialog(
            null, prepareGaeProject);
        prepareGaeProject.schedule();
        prepareGaeProject.addJobChangeListener(new JobChangeAdapter(){

         
          public void done(IJobChangeEvent event) {
            if (event.getResult().isOK()){
              Display.getDefault().asyncExec(new Runnable(){
View Full Code Here

          populateButton.setEnabled(true);
          return new Status(IStatus.OK, DestecsDebugPlugin.PLUGIN_ID, "Enabled populate button");
        }
      };

      populator.addJobChangeListener(new JobChangeAdapter()
      {
        public void done(IJobChangeEvent event)
        {
          changeButton.schedule();
View Full Code Here

        populateButton.setEnabled(true);
        return new Status(IStatus.OK, DestecsDebugPlugin.PLUGIN_ID, "Enabled populate button");
      }
    };

    populator.addJobChangeListener(new JobChangeAdapter()
    {
      public void done(IJobChangeEvent event)
      {
        changeButton.schedule();
View Full Code Here

     */
    public IJobChangeListener getJobChangeListener(final Job job,
            boolean useHalfBusyCursor) {
        if (listener == null) {
            updateJob.useWaitCursor = useHalfBusyCursor;
            listener = new JobChangeAdapter() {
                /*
                 * (non-Javadoc)
                 *
                 * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#aboutToRun(org.eclipse.core.runtime.jobs.IJobChangeEvent)
                 */
 
View Full Code Here

  /**
   * Create the IJobChangeListener registered with the Job manager.
   */
  private void createChangeListener() {
    changeListener = new JobChangeAdapter() {

      /*
       * (non-Javadoc)
       *
       * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#aboutToRun(org.eclipse.core.runtime.jobs.IJobChangeEvent)
View Full Code Here

   * Returns a listener that will close the dialog when the job completes.
   *
   * @return IJobChangeListener
   */
  private IJobChangeListener createCloseListener() {
    return new JobChangeAdapter() {
      /*
       * (non-Javadoc)
       *
       * @see org.eclipse.core.runtime.jobs.IJobChangeListener#done(org.eclipse.core.runtime.jobs.IJobChangeEvent)
       */
 
View Full Code Here

    public JobWatcher( final String jobName )
    {
        this.jobName = jobName;

        // register a job listener that checks if the job is finished
        listener = new JobChangeAdapter()
        {

            public void done( IJobChangeEvent event )
            {
                // if the done job has the expected name we are done
View Full Code Here

     * displaying a progress monitor.
     */
    @Override
    protected void work(final IWorkbenchPart part, IResource resource, final List<WorkItem> resources) {
        FindBugsJob clearMarkersJob = new ClearMarkersJob(resource, resources);
        clearMarkersJob.addJobChangeListener(new JobChangeAdapter() {
            @Override
            public void done(IJobChangeEvent event) {
                refreshViewer(part, resources);
            }
        });
View Full Code Here

            public void run() {
                if (MessageDialog.openConfirm(Display.getCurrent().getActiveShell(),
                    "Fix dependencies",
                    "Alter dependencies?\n\nAnything marked in green will be synchronized.")) {
                    Job job = new SyncIvyFilesJob(dependencies);
                    job.addJobChangeListener(new JobChangeAdapter() {
                        public void done(IJobChangeEvent arg0) {
                            refresh(true);
                        }
                    });
                    job.schedule();
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.jobs.JobChangeAdapter

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.