Examples of prepare()


Examples of org.tmatesoft.hg.internal.MergeStateBuilder.prepare()

      final HgChangelog clog = repo.getChangelog();
      final Nodeid headCset1 = clog.getRevision(firstCset);
      dirstateBuilder.parents(headCset1, clog.getRevision(secondCset));
      //
      MergeStateBuilder mergeStateBuilder = new MergeStateBuilder(implRepo);
      mergeStateBuilder.prepare(headCset1);

      ManifestRevision m1, m2, ma;
      m1 = new ManifestRevision(cacheRevs, cacheFiles).init(repo, firstCset);
      m2 = new ManifestRevision(cacheRevs, cacheFiles).init(repo, secondCset);
      ma = new ManifestRevision(cacheRevs, cacheFiles).init(repo, ancestorCset);
View Full Code Here

Examples of org.tmatesoft.hg.internal.Transaction.prepare()

    assertFalse(f2.exists());
    assertFalse(f3.exists());
    //
    // transaction commit
    Transaction tr1 = f.create(ctx);
    File tf1 = tr1.prepare(f1);
    RepoUtils.modifyFileAppend(tf1, "2");
    tr1.done(tf1);
    File tf2 = tr1.prepare(f2);
    errorCollector.assertTrue(tf2.exists());
    RepoUtils.modifyFileAppend(tf2, "A");
View Full Code Here

Examples of org.tmatesoft.hg.internal.diff.BlameHelper.prepare()

      final int endRevIndex = clogRevIndexEnd.get(TIP);
      final CancelSupport cancel = getCancelSupport(insp, true);
      int fileRevIndex1 = fileRevIndex(df, startRevIndex);
      int fileRevIndex2 = fileRevIndex(df, endRevIndex);
      BlameHelper bh = new BlameHelper(insp);
      bh.prepare(df, startRevIndex, endRevIndex);
      progress.worked(1);
      cancel.checkCancelled();
      bh.diff(fileRevIndex1, startRevIndex, fileRevIndex2, endRevIndex);
      progress.worked(1);
      cancel.checkCancelled();
View Full Code Here

Examples of org.vfny.geoserver.wcs.responses.CoverageResponseDelegate.prepare()

            coveragesPart.setHeader("Content-Type", "text/xml");
            multipart.addBodyPart(coveragesPart);

            // the actual coverage
            BodyPart coveragePart = new MimeBodyPart();
            delegate.prepare(outputFormat, coverage);
            coveragePart.setDataHandler(new DataHandler(delegate, "geoserver/coverageDelegate"));
            coveragePart.setHeader("Content-ID", "<theCoverage>");
            coveragePart.setHeader("Content-Type", delegate.getContentType());
            coveragePart.setHeader("Content-Transfer-Encoding", "base64");
            multipart.addBodyPart(coveragePart);
View Full Code Here

Examples of org.vfny.geoserver.wfs.responses.GML2FeatureResponseDelegate.prepare()

            finfo = (FeatureTypeInfo) metas.get(i);
            getFeatureResults.addFeatures(finfo, fresults);
        }

        GML2FeatureResponseDelegate encoder = new GML2FeatureResponseDelegate();
        encoder.prepare("GML2", getFeatureResults);
        encoder.encode(out);
    }
}
View Full Code Here

Examples of org.zkoss.zk.ui.event.EventThreadInit.prepare()

    for (int j = 0; j < ary.length; ++j) {
      final Class klass = (Class)ary[j];
      try {
        final EventThreadInit init =
          (EventThreadInit)klass.newInstance();
        init.prepare(comp, evt);
        inits.add(init);
      } catch (Throwable ex) {
        throw UiException.Aide.wrap(ex);
        //Don't intercept; to prevent the event being processed
      }
View Full Code Here

Examples of pivot.wtk.effects.Decorator.prepare()

                // Prepare the decorators
                DecoratorSequence decorators = component.getDecorators();
                int n = decorators.getLength();
                for (int i = n - 1; i >= 0; i--) {
                    Decorator decorator = decorators.get(i);
                    decoratedGraphics = decorator.prepare(component, decoratedGraphics);
                }

                // Paint the component
                Graphics2D componentGraphics = (Graphics2D)decoratedGraphics.create();
                componentGraphics.clipRect(0, 0, componentBounds.width, componentBounds.height);
View Full Code Here

Examples of qat.parser.ParserInterface.prepare()

      parser = testFinder.getParser(new File(test.getTestSpecPath()));
      if (parser==null) {
        System.out.println("No test finder registered for "+test.getTestSpecPath());
      }
      else {
        parser.prepare(parent.getProjectResultsDirectory());
        parser.setStatusLabel(parent.getParserStatusLabel());
        test.clearTraceFiles(parent.getProjectResultsDirectory());
        test.setStatus(ProtocolConstants.RUNNING);
        parent.updateTest(test,inEvaluationMode());
        if (inEvaluationMode()) {
View Full Code Here

Examples of sun.awt.image.ImageRepresentation.prepare()

                              -1, -1, -1, -1);
            }
            return false;
        }
        ImageRepresentation ir = ximg.getImageRep();
        return ir.prepare(o);
    }

    static int checkScrImage(Image img, int w, int h, ImageObserver o) {
        if (!(img instanceof WImage)) {
            return ImageObserver.ALLBITS;
View Full Code Here

Examples of sun.net.idn.StringPrep.prepare()

        int i;
        for(i=0; i<TestData.conformanceTestCases.length;i++){
            TestData.ConformanceTestCase testCase = TestData.conformanceTestCases[i];
            try{
                UCharacterIterator iter = UCharacterIterator.getInstance(testCase.input);
                StringBuffer output = namePrep.prepare(iter, testCase.flags);
                if(testCase.output !=null && output!=null && !testCase.output.equals(output.toString())){
                    fail("Did not get the expected output. Expected: " + prettify(testCase.output)+
                            " Got: "+ prettify(output.toString()) );
                }
            } catch(ParseException ex) {
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.