Search in sources :

Example 1 with WatcherDialog

use of com.intellij.cvsSupport2.cvsoperations.cvsWatch.ui.WatcherDialog in project intellij-community by JetBrains.

the class AbstractWatchAction method getCvsHandler.

protected CvsHandler getCvsHandler(CvsContext context) {
    CvsConfiguration configuration = CvsConfiguration.getInstance(context.getProject());
    WatcherDialog dialog = createDialog(configuration, context);
    if (!dialog.showAndGet()) {
        return CvsHandler.NULL;
    }
    Watch watch = dialog.getWatch();
    saveWatch(configuration, watch);
    WatchOperation watchOperation = new WatchOperation(getWatchOperation(), watch);
    VirtualFile[] files = context.getSelectedFiles();
    for (int i = 0; i < files.length; i++) {
        watchOperation.addFile(files[i]);
    }
    return new CommandCvsHandler(getTitle(context), watchOperation);
}
Also used : VirtualFile(com.intellij.openapi.vfs.VirtualFile) CvsConfiguration(com.intellij.cvsSupport2.config.CvsConfiguration) WatcherDialog(com.intellij.cvsSupport2.cvsoperations.cvsWatch.ui.WatcherDialog) Watch(org.netbeans.lib.cvsclient.command.Watch) CommandCvsHandler(com.intellij.cvsSupport2.cvshandlers.CommandCvsHandler) WatchOperation(com.intellij.cvsSupport2.cvsoperations.cvsWatch.WatchOperation)

Aggregations

CvsConfiguration (com.intellij.cvsSupport2.config.CvsConfiguration)1 CommandCvsHandler (com.intellij.cvsSupport2.cvshandlers.CommandCvsHandler)1 WatchOperation (com.intellij.cvsSupport2.cvsoperations.cvsWatch.WatchOperation)1 WatcherDialog (com.intellij.cvsSupport2.cvsoperations.cvsWatch.ui.WatcherDialog)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 Watch (org.netbeans.lib.cvsclient.command.Watch)1