Package org.eclipse.core.runtime.jobs

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


      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


            if (selectedFiles != null) {
                final AnalyseBundleResolutionJob tmp = new AnalyseBundleResolutionJob("importExportAnalysis", selectedFiles);
                tmp.setSystem(true);

                tmp.addJobChangeListener(new JobChangeAdapter() {
                    @Override
                    public void done(IJobChangeEvent event) {
                        IStatus result = tmp.getResult();
                        if (result != null && result.isOK()) {
                            if (display != null && !display.isDisposed())
View Full Code Here

     */
    public void stopRendering() {
        if (renderJob.cancel())
            return;
        final AtomicBoolean done = new AtomicBoolean(renderJob.cancel());
        IJobChangeListener listener = new JobChangeAdapter() {
            @Override
            public void done(IJobChangeEvent event) {
                done.set(true);
                synchronized (done) {
                    done.notify();
View Full Code Here

   */
  protected void createListener() {
    if (listener != null)
      return;
   
    listener = new JobChangeAdapter() {
      public void done(IJobChangeEvent event) {
        jobDone(event.getResult());
      }
    };
   
View Full Code Here

  private void makeActions() {
    action1 = new Action() {
      public void run() {
        Job job = new XMLJob(currentFile.getProject());
        job.addJobChangeListener(new JobChangeAdapter() {
          public void done(IJobChangeEvent event) {
            Display.getDefault().asyncExec(new Runnable() {
              public void run() {
                //viewer.refresh();
                //viewer.expandToLevel(2);
View Full Code Here

      if (debug) {
        final CheckLaunchJob checkLaunchJob = new CheckLaunchJob(
            "Checking server for "
                + javaGaeProject.getElementName(),
            javaGaeProject, shouldOpenBrowser());
        checkLaunchJob.addJobChangeListener(new JobChangeAdapter() {

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

  private void refreshLog(IJavaProject javaGaeProject) {
   
    final FetchLogsJob fetchLogsJob = new FetchLogsJob(javaGaeProject,
        "Fetch logs", days, LogSeverity.values()[STRINGS.length-1-minSeverityToFetch]);
    fetchLogsJob.addJobChangeListener(new JobChangeAdapter() {

      public void done(IJobChangeEvent event) {

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

    if (!com.onpositive.gae.tools.license.LicenseChecker.checkLicense(isDebug())){
      return;
    }
    final TakeSnapshot takeSnapshot = new TakeSnapshot(
        "Capturing current performance data",isDebug());
    takeSnapshot.addJobChangeListener(new JobChangeAdapter() {

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

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

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.