Examples of done()


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

    /* Rename Defragmented DB to real DB */
    DBHelper.rename(defragmentedDatabase, database);

    /* Finished */
    monitor.done();
    Activator.safeLogInfo("Finished: Database Defragmentation"); //$NON-NLS-1$
  }

  /**
   * Internal method. Made public for testing. Creates a copy of the database
View Full Code Here

Examples of org.eclipse.core.runtime.SubProgressMonitor.done()

                sub.beginTask("Bytecode Outline: comparing...", 100); //$NON-NLS-1$

                return differencer.findDifferences(
                    false, sub, null, null, left, right);
            } finally {
                sub.done();
            }
        } catch (OperationCanceledException e) {
            throw new InterruptedException(e.getMessage());
        } finally {
            monitor.done();
View Full Code Here

Examples of org.eclipse.imp.pdb.facts.IListWriter.done()

        IListWriter w = vf.listWriter(tf.stringType());
        for(int i = 0; i < fd.length; i++){
          System.err.println("adding " + fd[i].getName());
          w.append(vf.string(fd[i].getName()));
        }
        res= w.done();
       
      }
     
    });
     return res;
View Full Code Here

Examples of org.eclipse.imp.pdb.facts.IMapWriter.done()

    for (IValue i : imports) {
      URI uri = URIUtil.createRascalModule(((IString) i).getValue());
      mw.put(i, VF.sourceLocation(uri));
    }
   
    eval.getStdErr().println("locations: " + mw.done());
   
    return (IConstructor) eval.call(monitor, "linkImportedModules", moduleParseTree, mw.done());
  }
 
  public synchronized IConstructor checkModule(IRascalMonitor monitor, IConstructor moduleParseTree) {
View Full Code Here

Examples of org.eclipse.imp.pdb.facts.ISetWriter.done()

        ISetWriter setRes = vf.setWriter(TF.stringType());
       
        for (String tableName : tables) {
          setRes.insert(vf.string(tableName));
        }
        return setRes.done();
      } else {
        throw RuntimeExceptionFactory.illegalArgument(connection, null, null, "Connection does not exist.");
      }
    } catch (SQLException sqle) {
      throw RuntimeExceptionFactory.illegalArgument(connection, null, null, addMessage("Could not close the given connection", sqle));
View Full Code Here

Examples of org.eclipse.imp.pdb.facts.IWriter.done()

   
    IWriter result = values.setWriter();
    for (IValue[] rec : records) {
      result.insert(createTuple(tupleType, rec));
    }
    return result.done();
  }
  private IValue createTuple(Type tupleType, IValue[] rec) {
    // do some fixing of empties and value => string
    for (int i = 0 ; i < rec.length; i++) {
      if (rec[i] == null) {
View Full Code Here

Examples of org.eclipse.orion.server.core.tasks.TaskInfo.done()

  /**
   * Helper method for creating a sample task for testing purposes.
   */
  public static TaskInfo createTestTask(String userId) {
    TaskInfo info = new TaskInfo(userId, "mytask", true);
    info.done(new Status(IStatus.ERROR, "pluginid", "status message"));
    return info;
  }

  public static void assertEqualTasks(TaskInfo expected, TaskInfo actual) {
    assertEquals(expected.getUserId(), actual.getUserId());
View Full Code Here

Examples of org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.done()

              window, confirm);
          if (monitor.isCanceled()) {
            break;
          }
        }
        monitorWrap.done();
      }
    };

    // Do the save.
    return runProgressMonitorOperation(WorkbenchMessages.Save, progressOp, window);
View Full Code Here

Examples of org.glassfish.internal.api.ConnectorClassFinder.done()

                        final ConnectorClassFinder ccf = new ConnectorClassFinder(parent, moduleName, librariesCL);
                        if (processEnv.getProcessType().isEmbedded()) {
                            events.register(new EventListener() {
                                public void event(Event event) {
                                    if (event.is(EventTypes.PREPARE_SHUTDOWN)) {
                                        ccf.done();
                                    }
                                }
                            });
                        }
                        return ccf;
View Full Code Here

Examples of org.gradle.api.publication.maven.internal.ant.EmptyMavenSettingsSupplier.done()

        postConfigure(deployTask, artifactRepository);
        addPomAndArtifacts(deployTask, publication);
        execute(deployTask);

        mavenSettingsSupplier.done();
    }

    abstract protected void postConfigure(T task, MavenArtifactRepository artifactRepository);

    abstract protected T createDeployTask();
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.