use of com.intellij.cvsSupport2.cvshandlers.CvsHandler in project intellij-community by JetBrains.
the class CvsVcs2 method editFiles.
public void editFiles(final VirtualFile[] files) {
if (getEditOptions().getValue()) {
EditOptionsDialog editOptionsDialog = new EditOptionsDialog(myProject);
if (!editOptionsDialog.showAndGet()) {
return;
}
}
final CvsHandler editHandler = CommandCvsHandler.createEditHandler(files, CvsConfiguration.getInstance(myProject).RESERVED_EDIT);
new CvsOperationExecutor(true, myProject, ModalityState.current()).performActionSync(editHandler, CvsOperationExecutorCallback.EMPTY);
}
use of com.intellij.cvsSupport2.cvshandlers.CvsHandler 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.cvshandlers.CvsHandler 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);
}
use of com.intellij.cvsSupport2.cvshandlers.CvsHandler in project intellij-community by JetBrains.
the class CvsCheckinEnvironment method scheduleMissingFileForDeletion.
public List<VcsException> scheduleMissingFileForDeletion(List<FilePath> files) {
for (FilePath file : files) {
if (file.isDirectory()) {
VcsBalloonProblemNotifier.showOverChangesView(myProject, "Locally deleted directories cannot be removed from CVS. To remove a locally " + "deleted directory from CVS, first invoke Rollback and then use " + ApplicationNamesInfo.getInstance().getFullProductName() + "'s Delete.", MessageType.WARNING);
break;
}
}
final CvsHandler handler = RemoveLocallyFileOrDirectoryAction.getDefaultHandler(myProject, ChangesUtil.filePathsToFiles(files));
final CvsOperationExecutor executor = new CvsOperationExecutor(myProject);
executor.performActionSync(handler, CvsOperationExecutorCallback.EMPTY);
return Collections.emptyList();
}
use of com.intellij.cvsSupport2.cvshandlers.CvsHandler in project intellij-community by JetBrains.
the class CvsCheckinEnvironment method scheduleUnversionedFilesForAddition.
public List<VcsException> scheduleUnversionedFilesForAddition(List<VirtualFile> files) {
final CvsHandler handler = AddFileOrDirectoryAction.getDefaultHandler(myProject, VfsUtil.toVirtualFileArray(files));
final CvsOperationExecutor executor = new CvsOperationExecutor(myProject);
executor.performActionSync(handler, CvsOperationExecutorCallback.EMPTY);
return Collections.emptyList();
}
Aggregations