Examples of copy()


Examples of org.eclipse.core.resources.IFile.copy()

      HandleDelta _newDelta_1 = this.newDelta();
      HandleDelta _insertChanged = _newDelta_1.insertChanged(erlFile1, HandleDelta.F_CONTENT);
      ErlNotificationTest.assertEquality(_insertChanged, this.listener.delta);
      IFile _file_1 = erlFile1.getFile();
      Path _path = new Path("/Test002/test1.erl");
      _file_1.copy(_path, true, null);
      HandleDelta _newDelta_2 = this.newDelta();
      IErlSource _sourceFile = erlProject2.getSourceFile("test1.erl");
      HandleDelta _insertAdded_1 = _newDelta_2.insertAdded(_sourceFile);
      ErlNotificationTest.assertEquality(_insertAdded_1, this.listener.delta);
      IFile _file_2 = erlFile1.getFile();
View Full Code Here

Examples of org.eclipse.core.resources.IFolder.copy()

          }
         
          IPath oldPath = definitionFolder.getFullPath();
         
        IPath newPath = definitionFolder.getParent().getFolder(new Path(newName)).getFullPath();
        definitionFolder.copy(newPath, true, null);
        ProcessCache.processDefinitionWasDeleted(definitionFile);
        definitionFolder = ResourcesPlugin.getWorkspace().getRoot().getFolder(newPath);
              IFile newDefinitionFile = ProjectFinder.getProcessDefinitionFile(definitionFolder);
             
              definition.setName(newName);
View Full Code Here

Examples of org.eclipse.core.resources.IResource.copy()

                if (workspace.getRoot().exists(destinationPath)) {
                    destinationPath = getNewNameFor(destinationPath, workspace);
                }
                if (destinationPath != null) {
                    try {
                        source.copy(destinationPath, IResource.SHALLOW, new SubProgressMonitor(subMonitor, 0));
                    } catch (CoreException e) {
                        recordError(e); // log error
                        return false;
                    }
                }
View Full Code Here

Examples of org.eclipse.core.resources.mapping.IResourceChangeDescriptionFactory.copy()

        for (int i = 0; i < resources.length; i++) {
            IResource resource = resources[i];
            if (isMove()) {
                factory.move(resource, destinationPath.append(resource.getName()));
            } else {
                factory.copy(resource, destinationPath.append(resource.getName()));
            }
        }
        String title;
        String message;
        if (isMove()) {
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration.copy()

                    .generateUniqueLaunchConfigurationNameFrom(
                        "Run Hadoop Jar"));
      }

      ILaunchConfigurationWorkingCopy copy =
          launchConfig
              .copy("Run " + jar.getName() + " on " + this.getName());

      // COMMENTED(jz) - perform the jarring in the launch delegate now
      // copy.setAttribute("hadoop.jar",
      // jar.buildJar(monitor).toString());
View Full Code Here

Examples of org.eclipse.emf.ecore.util.EcoreUtil.Copier.copy()

      {
        protected void copyContainment(EReference eReference, EObject eObject, EObject copyEObject)
        {
        }
      };
    EObject result = copier.copy((EObject)dataObject);
    copier.copyReferences();
    return (DataObject)result;
  }

  public DataObject copy(DataObject dataObject)
View Full Code Here

Examples of org.eclipse.jdt.internal.core.TypeVector.copy()

* Returns whether all subtypes of the given type have been pruned.
*/
private boolean pruneDeadBranches(IType type) {
  TypeVector subtypes = (TypeVector)this.typeToSubtypes.get(type);
  if (subtypes == null) return true;
  pruneDeadBranches(subtypes.copy().elements());
  subtypes = (TypeVector)this.typeToSubtypes.get(type);
  return (subtypes == null || subtypes.size == 0);
}
private void pruneDeadBranches(IType[] types) {
  for (int i = 0, length = types.length; i < length; i++) {
View Full Code Here

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

    objectHeader(pack, Constants.OBJ_BLOB, base.length);
    deflate(pack, base);

    ByteArrayOutputStream tmp = new ByteArrayOutputStream();
    DeltaEncoder de = new DeltaEncoder(tmp, base.length, 3L << 30);
    de.copy(0, 1);
    byte[] delta = tmp.toByteArray();
    b.setOffset(pack.length());
    objectHeader(pack, Constants.OBJ_REF_DELTA, delta.length);
    idA.copyRawTo(pack);
    deflate(pack, delta);
View Full Code Here

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

      final Map<Change.Key, Change.Id> byKey = openChangesByKey(
          new Branch.NameKey(project.getNameKey(), cmd.getRefName()));
      final List<ReplaceRequest> toClose = new ArrayList<ReplaceRequest>();
      RevCommit c;
      while ((c = rw.next()) != null) {
        final Ref ref = byCommit.get(c.copy());
        if (ref != null) {
          rw.parseBody(c);
          closeChange(cmd, PatchSet.Id.fromRef(ref.getName()), c);
          closeProgress.update(1);
        }
View Full Code Here

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

      default:
        if (ref != null)
          throw new RevisionSyntaxException(revstr);
      }
    }
    return ref != null ? ref.copy() : resolveSimple(revstr);
  }

  private static boolean isHex(char c) {
    return ('0' <= c && c <= '9') //
        || ('a' <= c && c <= 'f') //
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.