Examples of copy()


Examples of org.eclipse.jgit.revwalk.RevTree.copy()

        } else {
          tree = rw.parseTree(ref);
        }

        if (i == rev.length - 1)
          return tree.copy();

        TreeWalk tw = TreeWalk.forPath(rw.getObjectReader(),
            new String(rev, i + 1, rev.length - i - 1), tree);
        return tw != null ? tw.getObjectId(0) : null;
      }
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.DeltaEncoder.copy()

  private byte[] delta(byte[] base, byte[] dest) throws IOException {
    ByteArrayOutputStream tmp = new ByteArrayOutputStream();
    DeltaEncoder de = new DeltaEncoder(tmp, base.length, dest.length);
    de.insert(dest, 0, 1);
    de.copy(1, base.length - 1);
    return tmp.toByteArray();
  }

  private void packHeader(TemporaryBuffer.Heap pack, int cnt)
      throws IOException {
View Full Code Here

Examples of org.eclipse.jgit.transport.PackedObjectInfo.copy()

      if (sz < ctx.getStreamFileThreshold()) {
        byte[] data = inflate(obj, zpos, (int) sz);
        if (data != null)
          return new ObjectLoader.SmallObject(type, data);
      }
      return new StreamLoader(obj.copy(), type, sz, packKey, zpos);
    }

    private byte[] inflate(PackedObjectInfo obj, long zpos, int sz)
        throws IOException, CorruptObjectException {
      try {
View Full Code Here

Examples of org.eclipse.jgit.util.TemporaryBuffer.copy()

  }

  private static byte[] readFully(final InputStream is) throws IOException {
    final TemporaryBuffer b = new TemporaryBuffer.LocalFile();
    try {
      b.copy(is);
      b.close();
      return b.toByteArray();
    } finally {
      b.destroy();
    }
View Full Code Here

Examples of org.eclipse.sapphire.Element.copy()

                                final List<Element> newSelection = new ArrayList<Element>();
                               
                                for( final ElementData droppedElement : droppedElements )
                                {
                                    final Element insertedElement = list.insert( droppedElement.type(), position );
                                    insertedElement.copy( droppedElement );
                                   
                                    newSelection.add( insertedElement );
                                   
                                    position++;
                                }
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText.copy()

        MenuItem copy = new MenuItem(menu, SWT.PUSH);
        copy.setText(LayoutExample.getResourceString("Copy"));
        copy.setAccelerator(SWT.MOD1 + 'C');
        copy.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(SelectionEvent e) {
            text.copy();
          }
        });
        MenuItem exit = new MenuItem(menu, SWT.PUSH);
        exit.setText(LayoutExample.getResourceString("Exit"));
        exit.addSelectionListener(new SelectionAdapter() {
View Full Code Here

Examples of org.eclipse.swt.widgets.Text.copy()

      if (id.equals(ActionFactory.CUT.getId())) {
        text.cut();
        return true;
      }
      if (id.equals(ActionFactory.COPY.getId())) {
        text.copy();
        return true;
      }
      if (id.equals(ActionFactory.PASTE.getId())) {
        text.paste();
        return true;
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.INodeAdapterFactory.copy()

     
      Iterator iterator = fContributedFactories.iterator();
      clonedInstance.setContributedFactories(new ArrayList());
      while (iterator.hasNext()) {
        INodeAdapterFactory existingFactory = (INodeAdapterFactory) iterator.next();
        clonedInstance.addContributedFactories(existingFactory.copy());
      }
    }
    return clonedInstance;
  }
View Full Code Here

Examples of org.eigenbase.rel.JoinRelBase.copy()

      rChild = filterFactory.createFilter(rChild,
          RexUtil.composeConjunction(rB, preds.rightInferredPredicates, false));
      call.getPlanner().onCopy(curr, rChild);
    }

    RelNode newRel = join.copy(join.getTraitSet(), join.getCondition(),
        lChild, rChild, join.getJoinType(), join.isSemiJoinDone());
    call.getPlanner().onCopy(join, newRel);

    call.transformTo(newRel);
  }
View Full Code Here

Examples of org.eigenbase.rel.SortRel.copy()

    RelNode input = incomingSort.getChild();

    // if the Optiq sort rel includes a collation and a limit, we need to create a copy the sort rel that excludes the
    // limit information.
    if (!incomingSort.getCollation().getFieldCollations().isEmpty()) {
      input = incomingSort.copy(incomingTraits, input, incomingSort.getCollation(), null, null);
    }

    RelNode convertedInput = convert(input, input.getTraitSet().plus(DrillRel.DRILL_LOGICAL));
    call.transformTo(new DrillLimitRel(incomingSort.getCluster(), convertedInput.getTraitSet().plus(DrillRel.DRILL_LOGICAL), convertedInput, incomingSort.offset, incomingSort.fetch));
  }
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.