protected override void OnExecute()
        {
            var extension     = Path.GetExtension(_selectedFile);
            var clipboardFile = TempFileHelper.CreateTempFile("Clipboard" + extension, _clipboardText);

            DiffToolFactory.CreateDiffTool().Diff(clipboardFile, _selectedFile, (f, _) => TempFileHelper.RemoveTempFile(f));
        }
        protected override void OnExecute()
        {
            var extension = Path.GetExtension(ActiveDocument.Name);

            var selectionFile = TempFileHelper.CreateTempFile("Selection" + extension, _selectionText);
            var clipboardFile = TempFileHelper.CreateTempFile("Clipboard" + extension, _clipboardText);

            DiffToolFactory.CreateDiffTool().Diff(clipboardFile, selectionFile,
                                                  (file1, file2) =>
            {
                TempFileHelper.RemoveTempFile(file1);
                TempFileHelper.RemoveTempFile(file2);
            });
        }
Example #3
0
 protected override void OnExecute()
 {
     DiffToolFactory.CreateDiffTool().Diff(_file1, _file2, null);
 }