Search in sources :

Example 11 with AbstractFileObject

use of org.netbeans.lib.cvsclient.file.AbstractFileObject in project intellij-community by JetBrains.

the class RtagCommand method execute.

public final boolean execute(IRequestProcessor requestProcessor, IEventSender eventSender, ICvsListenerRegistry listenerRegistry, IClientEnvironment clientEnvironment, IProgressViewer progressViewer) throws CommandException, AuthenticationException {
    final Requests requests = new Requests(CommandRequest.RTAG, clientEnvironment);
    requests.addArgumentRequest(myOverrideExistings, "-F");
    requests.addArgumentRequest(true, myTagName);
    for (AbstractFileObject fileObject : getFileObjects()) {
        String path = fileObject.getPath();
        if (StringUtil.startsWithChar(path, '/'))
            path = path.substring(1);
        requests.addArgumentRequest(path);
    }
    return requestProcessor.processRequests(requests, new DummyRequestsProgressHandler());
}
Also used : DummyRequestsProgressHandler(org.netbeans.lib.cvsclient.progress.sending.DummyRequestsProgressHandler) AbstractFileObject(org.netbeans.lib.cvsclient.file.AbstractFileObject) Requests(org.netbeans.lib.cvsclient.request.Requests)

Aggregations

AbstractFileObject (org.netbeans.lib.cvsclient.file.AbstractFileObject)11 File (java.io.File)5 DirectoryObject (org.netbeans.lib.cvsclient.file.DirectoryObject)4 ICvsFileSystem (org.netbeans.lib.cvsclient.file.ICvsFileSystem)3 HashMap (com.intellij.util.containers.HashMap)2 Iterator (java.util.Iterator)2 FileObject (org.netbeans.lib.cvsclient.file.FileObject)2 DummyRequestsProgressHandler (org.netbeans.lib.cvsclient.progress.sending.DummyRequestsProgressHandler)2 Requests (org.netbeans.lib.cvsclient.request.Requests)2 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 HashSet (com.intellij.util.containers.HashSet)1 IOException (java.io.IOException)1 Map (java.util.Map)1 IOCommandException (org.netbeans.lib.cvsclient.command.IOCommandException)1 ICvsListener (org.netbeans.lib.cvsclient.event.ICvsListener)1 IIgnoreFileFilter (org.netbeans.lib.cvsclient.util.IIgnoreFileFilter)1