use of org.netbeans.lib.cvsclient.progress.sending.IRequestsProgressHandler in project intellij-community by JetBrains.
the class AdminCommand method execute.
public boolean execute(IRequestProcessor requestProcessor, IEventSender eventManager, ICvsListenerRegistry listenerRegistry, IClientEnvironment clientEnvironment, IProgressViewer progressViewer) throws CommandException, AuthenticationException {
BugLog.getInstance().assertTrue(isSetLock() || isResetLock(), "Nothing specified");
final ICvsFiles cvsFiles;
try {
cvsFiles = scanFileSystem(clientEnvironment);
} catch (IOException ex) {
throw new IOCommandException(ex);
}
final Requests requests = new Requests(CommandRequest.ADMIN, clientEnvironment);
requests.addArgumentRequest(isSetLock(), "-l");
requests.addArgumentRequest(isResetLock(), "-u");
addFileRequests(cvsFiles, requests, clientEnvironment);
requests.addLocalPathDirectoryRequest();
addArgumentRequests(requests);
final IRequestsProgressHandler requestsProgressHandler = FileStateRequestsProgressHandler.create(progressViewer, cvsFiles);
return requestProcessor.processRequests(requests, requestsProgressHandler);
}
Aggregations