use of com.intellij.cvsSupport2.cvsoperations.cvsWatch.WatchOperation 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);
}
use of com.intellij.cvsSupport2.cvsoperations.cvsWatch.WatchOperation in project intellij-community by JetBrains.
the class AbstractWatchOnOffAction method getCvsHandler.
protected CvsHandler getCvsHandler(CvsContext context) {
WatchOperation watchOperation = new WatchOperation(getMode());
VirtualFile[] files = context.getSelectedFiles();
for (VirtualFile file : files) {
watchOperation.addFile(file);
}
return new CommandCvsHandler(getTitle(context), watchOperation);
}
Aggregations