Examples of CloneCommand


Examples of com.aragost.javahg.commands.CloneCommand

    public final String getCommandName() {
        return "clone";
    }

    public static CloneCommand on(Repository repository) {
        return new CloneCommand(repository);
    }
View Full Code Here

Examples of com.aragost.javahg.commands.CloneCommand

    public final String getCommandName() {
        return "clone";
    }

    public static CloneCommand on(Repository repository) {
        return new CloneCommand(repository);
    }
View Full Code Here

Examples of com.aragost.javahg.commands.CloneCommand

    public final String getCommandName() {
        return "clone";
    }

    public static CloneCommand on(Repository repository) {
        return new CloneCommand(repository);
    }
View Full Code Here

Examples of com.aragost.javahg.commands.CloneCommand

    public final String getCommandName() {
        return "clone";
    }

    public static CloneCommand on(Repository repository) {
        return new CloneCommand(repository);
    }
View Full Code Here

Examples of com.onarandombox.MultiverseCore.commands.CloneCommand

        this.commandHandler.registerCommand(new HelpCommand(this));
        this.commandHandler.registerCommand(new VersionCommand(this));
        this.commandHandler.registerCommand(new ListCommand(this));
        this.commandHandler.registerCommand(new InfoCommand(this));
        this.commandHandler.registerCommand(new CreateCommand(this));
        this.commandHandler.registerCommand(new CloneCommand(this));
        this.commandHandler.registerCommand(new ImportCommand(this));
        this.commandHandler.registerCommand(new ReloadCommand(this));
        this.commandHandler.registerCommand(new SetSpawnCommand(this));
        this.commandHandler.registerCommand(new CoordCommand(this));
        this.commandHandler.registerCommand(new TeleportCommand(this));
View Full Code Here

Examples of info.textgrid.lab.noteeditor.commands.CloneCommand

* @return A command to perform the Clone.
*/
@Override
@SuppressWarnings("rawtypes")
protected Command getCloneCommand(ChangeBoundsRequest request) {
  CloneCommand clone = new CloneCommand()
  clone.setParent((MusicContainerForm)getHost().getModel())
  Iterator i = request.getEditParts().iterator();
  GraphicalEditPart currPart = null
  while (i.hasNext()) {
    currPart = (GraphicalEditPart)i.next();
    clone.addPart((BasicElement)currPart.getModel(),
        (Rectangle)getConstraintFor(request, currPart));
  }
 
  return clone;
}
View Full Code Here

Examples of org.eclipse.gef.examples.logicdesigner.model.commands.CloneCommand

* returned.
* @param request the Clone Request
* @return A command to perform the Clone.
*/
protected Command getCloneCommand(ChangeBoundsRequest request) {
  CloneCommand clone = new CloneCommand();
  clone.setParent((LogicDiagram)getHost().getModel());
 
  EditPart after = getInsertionReference(request);
  int index = getHost().getChildren().indexOf(after);
 
  Iterator i = request.getEditParts().iterator();
  GraphicalEditPart currPart = null;
 
  while (i.hasNext()) {
    currPart = (GraphicalEditPart)i.next();
    clone.addPart((LogicSubpart)currPart.getModel(), index++);
  }
 
  return clone;
}
View Full Code Here

Examples of org.eclipse.gef.examples.logicdesigner.model.commands.CloneCommand

* returned.
* @param request the Clone Request
* @return A command to perform the Clone.
*/
protected Command getCloneCommand(ChangeBoundsRequest request) {
  CloneCommand clone = new CloneCommand();
 
  clone.setParent((LogicDiagram)getHost().getModel());
 
  Iterator i = request.getEditParts().iterator();
  GraphicalEditPart currPart = null;
 
  while (i.hasNext()) {
    currPart = (GraphicalEditPart)i.next();
    clone.addPart((LogicSubpart)currPart.getModel(),
        (Rectangle)getConstraintForClone(currPart, request));
  }
 
  // Attach to horizontal guide, if one is given
  Integer guidePos = (Integer)request.getExtendedData()
      .get(SnapToGuides.KEY_HORIZONTAL_GUIDE);
  if (guidePos != null) {
    int hAlignment = ((Integer)request.getExtendedData()
        .get(SnapToGuides.KEY_HORIZONTAL_ANCHOR)).intValue();
    clone.setGuide(findGuideAt(guidePos.intValue(), true), hAlignment, true);
  }
 
  // Attach to vertical guide, if one is given
  guidePos = (Integer)request.getExtendedData()
      .get(SnapToGuides.KEY_VERTICAL_GUIDE);
  if (guidePos != null) {
    int vAlignment = ((Integer)request.getExtendedData()
        .get(SnapToGuides.KEY_VERTICAL_ANCHOR)).intValue();
    clone.setGuide(findGuideAt(guidePos.intValue(), false), vAlignment, false);
  }

  return clone;
}
View Full Code Here

Examples of org.eclipse.jgit.api.CloneCommand

  @Override
  public void execute() throws BuildException {
    log("Cloning repository " + uri);
   
    CloneCommand clone = Git.cloneRepository();
    try {
      clone.setURI(uri).setDirectory(destination).setBranch(branch).setBare(bare);
      clone.call().getRepository().close();
    } catch (Exception e) {
      log("Could not clone repository: " + e, e, Project.MSG_ERR);
      throw new BuildException("Could not clone repository: " + e.getMessage(), e);
    }
  }
View Full Code Here

Examples of org.eclipse.jgit.api.CloneCommand

*/
public abstract class GitUtils
{
   public static Git clone(final DirectoryResource dir, final String repoUri) throws GitAPIException
   {
      CloneCommand clone = Git.cloneRepository().setURI(repoUri)
               .setDirectory(dir.getUnderlyingResourceObject());
      Git git = clone.call();
      return git;
   }
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.