|
|
|
@ -6,14 +6,13 @@
@@ -6,14 +6,13 @@
|
|
|
|
|
// </file>
|
|
|
|
|
|
|
|
|
|
using System; |
|
|
|
|
using System.Diagnostics; |
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
using System.Drawing; |
|
|
|
|
using System.IO; |
|
|
|
|
using System.Windows.Forms; |
|
|
|
|
using ICSharpCode.SharpDevelop.Project.Commands; |
|
|
|
|
|
|
|
|
|
using ICSharpCode.Core; |
|
|
|
|
using ICSharpCode.SharpDevelop.Gui; |
|
|
|
|
using ICSharpCode.SharpDevelop.Project.Commands; |
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.SharpDevelop.Project |
|
|
|
|
{ |
|
|
|
@ -599,6 +598,13 @@ namespace ICSharpCode.SharpDevelop.Project
@@ -599,6 +598,13 @@ namespace ICSharpCode.SharpDevelop.Project
|
|
|
|
|
{ |
|
|
|
|
AddExistingItemsToProject.CopyDirectory(fileName, this, true); |
|
|
|
|
if (performMove) { |
|
|
|
|
foreach (IViewContent content in WorkbenchSingleton.Workbench.ViewContentCollection) { |
|
|
|
|
if (content.FileName != null && |
|
|
|
|
FileUtility.IsBaseDirectory(fileName, content.FileName)) |
|
|
|
|
{ |
|
|
|
|
content.FileName = FileUtility.RenameBaseDirectory(content.FileName, fileName, Path.Combine(this.directory, Path.GetFileName(fileName))); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
FileService.RemoveFile(fileName, true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -640,6 +646,14 @@ namespace ICSharpCode.SharpDevelop.Project
@@ -640,6 +646,14 @@ namespace ICSharpCode.SharpDevelop.Project
|
|
|
|
|
RecreateSubNodes(); |
|
|
|
|
} |
|
|
|
|
if (performMove) { |
|
|
|
|
foreach (IViewContent content in WorkbenchSingleton.Workbench.ViewContentCollection) { |
|
|
|
|
if (content.FileName != null && |
|
|
|
|
FileUtility.IsEqualFileName(content.FileName, fileName)) |
|
|
|
|
{ |
|
|
|
|
content.FileName = copiedFileName; |
|
|
|
|
content.TitleName = shortFileName; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
FileService.RemoveFile(fileName, false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|