public void execute() { int ok = Messages.showOkCancelDialog( myVcs.getProject(), (myChange.isMoved() ? SvnBundle.message( "confirmation.resolve.tree.conflict.merge.moved", myOldPresentation, myNewPresentation) : SvnBundle.message( "confirmation.resolve.tree.conflict.merge.renamed", myOldPresentation, myNewPresentation)), TreeConflictRefreshablePanel.TITLE, Messages.getQuestionIcon()); if (Messages.OK != ok) return; FileDocumentManager.getInstance().saveAllDocuments(); // final String name = "Merge changes from theirs for: " + myOldPresentation; final Continuation fragmented = Continuation.createFragmented(myVcs.getProject(), false); fragmented.addExceptionHandler( VcsException.class, new Consumer<VcsException>() { @Override public void consume(VcsException e) { myWarnings.add(e); if (e.isWarning()) { return; } AbstractVcsHelper.getInstance(myVcs.getProject()) .showErrors(myWarnings, TreeConflictRefreshablePanel.TITLE); } }); final List<TaskDescriptor> tasks = new SmartList<TaskDescriptor>(); tasks.add( myDescription.isDirectory() ? new PreloadChangesContentsForDir() : new PreloadChangesContentsForFile()); tasks.add(new ConvertTextPaths()); tasks.add(new PatchCreator()); tasks.add(new SelectPatchesInApplyPatchDialog()); tasks.add(new SelectBinaryFiles()); fragmented.run(tasks); }
@CalledInAwt public void execute() { FileDocumentManager.getInstance().saveAllDocuments(); final List<TaskDescriptor> tasks = new LinkedList<TaskDescriptor>(); tasks.add(new MyInitChecks()); tasks.add(new SourceUrlCorrection()); tasks.add(new CheckRepositorySupportsMergeinfo()); myContinuation.run(tasks); }
@AsynchronousExecution public void unshelveChangeList( final ShelvedChangeList changeList, @Nullable final List<ShelvedChange> changes, @Nullable final List<ShelvedBinaryFile> binaryFiles, @Nullable final LocalChangeList targetChangeList, boolean showSuccessNotification) { final Continuation continuation = Continuation.createForCurrentProgress(myProject, true, "Unshelve changes"); final GatheringContinuationContext initContext = new GatheringContinuationContext(); scheduleUnshelveChangeList( changeList, changes, binaryFiles, targetChangeList, showSuccessNotification, initContext, false); continuation.run(initContext.getList()); }
public QuickMerge( Project project, String sourceUrl, WCInfo wcInfo, final String branchName, final VirtualFile root) { myProject = project; myBranchName = branchName; myRoot = root; myVcs = SvnVcs.getInstance(project); mySourceUrl = sourceUrl; myWcInfo = wcInfo; myTitle = "Merge from " + myBranchName; myContinuation = Continuation.createFragmented(myProject, true); }