Search in sources :

Example 1 with ExpandModulesRequest

use of org.netbeans.lib.cvsclient.request.ExpandModulesRequest in project intellij-community by JetBrains.

the class CheckoutCommand method expandModules.

// Utils ==================================================================
private boolean expandModules(ExpandedModules expandedModules, ICvsListenerRegistry listenerRegistry, IRequestProcessor requestProcessor, IClientEnvironment clientEnvironment) throws CommandException, AuthenticationException {
    final Requests requests = new Requests(new ExpandModulesRequest(), clientEnvironment);
    addModuleArguments(requests);
    requests.addLocalPathDirectoryRequest();
    expandedModules.registerListeners(listenerRegistry);
    try {
        return requestProcessor.processRequests(requests, new DummyRequestsProgressHandler());
    } finally {
        expandedModules.unregisterListeners(listenerRegistry);
    }
}
Also used : DummyRequestsProgressHandler(org.netbeans.lib.cvsclient.progress.sending.DummyRequestsProgressHandler) ExpandModulesRequest(org.netbeans.lib.cvsclient.request.ExpandModulesRequest) Requests(org.netbeans.lib.cvsclient.request.Requests)

Example 2 with ExpandModulesRequest

use of org.netbeans.lib.cvsclient.request.ExpandModulesRequest in project intellij-community by JetBrains.

the class ExportCommand method expandModules.

// Utils ==================================================================
private boolean expandModules(ExpandedModules expandedModules, ICvsListenerRegistry listenerRegistry, IRequestProcessor requestProcessor, IClientEnvironment clientEnvironment) throws CommandException, AuthenticationException {
    final Requests requests = new Requests(new ExpandModulesRequest(), clientEnvironment);
    addModuleArguments(requests);
    requests.addLocalPathDirectoryRequest();
    expandedModules.registerListeners(listenerRegistry);
    try {
        return requestProcessor.processRequests(requests, new DummyRequestsProgressHandler());
    } finally {
        expandedModules.unregisterListeners(listenerRegistry);
    }
}
Also used : DummyRequestsProgressHandler(org.netbeans.lib.cvsclient.progress.sending.DummyRequestsProgressHandler) ExpandModulesRequest(org.netbeans.lib.cvsclient.request.ExpandModulesRequest) Requests(org.netbeans.lib.cvsclient.request.Requests)

Aggregations

DummyRequestsProgressHandler (org.netbeans.lib.cvsclient.progress.sending.DummyRequestsProgressHandler)2 ExpandModulesRequest (org.netbeans.lib.cvsclient.request.ExpandModulesRequest)2 Requests (org.netbeans.lib.cvsclient.request.Requests)2