Package org.eclipse.core.runtime.jobs

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


        }
        return status;
      }
    };

    job.addJobChangeListener(new JobChangeAdapter() {
      @Override
      public void done(final IJobChangeEvent event) {
        Display.getDefault().asyncExec(new Runnable() {

          public void run() {
View Full Code Here


              return Status.OK_STATUS;
            }
          };
         
          installDir.setText(selectedDirectory);
          jobListener = new JobChangeAdapter() {
            public void done(IJobChangeEvent event) {
              installRuntimeJob.removeJobChangeListener(this);
              installRuntimeJob = null;
              Display.getDefault().asyncExec(new Runnable() {
                public void 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

        }
        return Status.OK_STATUS;
      }
     
    };
    job.addJobChangeListener(new JobChangeAdapter(){

     
      public void done(IJobChangeEvent event) {
        action.setEnabled(true);
      }
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

             */
            private IWorkbenchAdapter getWorkbenchAdapter(Object element) {
                return (IWorkbenchAdapter) Util.getAdapter(element, IWorkbenchAdapter.class);
            }
        };
        job.addJobChangeListener(new JobChangeAdapter() {
            /*
             * (non-Javadoc)
             *
             * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#done(org.eclipse.core.runtime.jobs.IJobChangeEvent)
             */
 
View Full Code Here

     * Add a job change listeners that handles a done
     * event if the result was IStatus.OK.
     *
     */
    private void addDefaultJobChangeListener() {
        addJobChangeListener(new JobChangeAdapter() {
            /* (non-Javadoc)
             * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#done(org.eclipse.core.runtime.jobs.IJobChangeEvent)
             */
            public void done(IJobChangeEvent event) {

View Full Code Here

        }
        model.disableUI(parts, blockUntilSaved);
        // Add a listener for enabling the UI after the save job has
        // finished, and for displaying an error dialog if
        // necessary.
        saveJob.addJobChangeListener(new JobChangeAdapter() {
          public void done(final IJobChangeEvent event) {
            ((InternalSaveable) model).setBackgroundSaveJob(null);
            shellProvider.getShell().getDisplay().asyncExec(
                new Runnable() {
                  public void run() {
View Full Code Here

      searches.put(editor, new ArrayList<Search>());
    }
    searches.get(editor).add(search);
    // This listener ensures that only one search can be
    // performed at the same time for an editor
    search.addJobChangeListener(new JobChangeAdapter() {
      @Override
      public void done(IJobChangeEvent event) {
        if (event.getResult().isOK()) {
          logger.debug("Search completed successfully.");
          search.getSearchResult().notifyObservers(
View Full Code Here

      searches.put(editor, new ArrayList<Search>());
    }
    searches.get(editor).add(search);
    // This listener ensures that only one search can be
    // performed at the same time for an editor
    search.addJobChangeListener(new JobChangeAdapter() {
      @Override
      public void done(IJobChangeEvent event) {
        if (event.getResult().isOK()) {
          logger.debug("Search completed successfully.");
          search.getSearchResult().notifyObservers(
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.