Package org.intellij.vcs.mks.actions.api

Examples of org.intellij.vcs.mks.actions.api.RevertAPICommand


                addedFiles.add(change.getAfterRevision().getFile().getVirtualFile());
            }else {
                exceptions.add(new VcsException("only MODIFIED/ADDED (!= "+change.getFileStatus()+"files are currently supported" ));
            }
        }
        RevertAPICommand revertAPICommand = new RevertAPICommand();
        try {
            List<VirtualFile> filesToRevert = new ArrayList<VirtualFile>();
            filesToRevert.addAll(modifiedFiles);
            filesToRevert.addAll(addedFiles);
            revertAPICommand.executeCommand(mksVcs, exceptions, filesToRevert.toArray(new VirtualFile[filesToRevert.size()]));
        } catch (VcsException e) {
            //noinspection ThrowableInstanceNeverThrown
            exceptions.add(e);
        }
        for (Change change : changes) {
View Full Code Here


import org.jetbrains.annotations.NotNull;

public class RevertMembersAction extends MultipleTargetAction {

  public RevertMembersAction() {
    super(new RevertAPICommand());
  }
View Full Code Here

TOP

Related Classes of org.intellij.vcs.mks.actions.api.RevertAPICommand

Copyright © 2018 www.massapicom. 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.