Author: lluis
Date: 2006-12-17 12:32:24 -0500 (Sun, 17 Dec 2006)
New Revision: 69609

Removed:
   
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/DefaultFileService.cs
   
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/FileEventArgs.cs
   
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/IFileService.cs
Modified:
   trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog
   trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/Makefile.am
   
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.addin.xml
   trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.mdp
Log:
* MonoDevelop.Core.Gui.mdp, MonoDevelop.Core.Gui/FileEventArgs.cs,
  MonoDevelop.Core.Gui/DefaultFileService.cs,
  MonoDevelop.Core.Gui/IFileService.cs, Makefile.am,
  MonoDevelop.Core.Gui.addin.xml: FileService has been moved to
  MonoDevelop.Core.

Modified: trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog   2006-12-17 
17:31:52 UTC (rev 69608)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog   2006-12-17 
17:32:24 UTC (rev 69609)
@@ -1,3 +1,11 @@
+2006-12-17  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
+       * MonoDevelop.Core.Gui.mdp, MonoDevelop.Core.Gui/FileEventArgs.cs,
+         MonoDevelop.Core.Gui/DefaultFileService.cs,
+         MonoDevelop.Core.Gui/IFileService.cs, Makefile.am,
+         MonoDevelop.Core.Gui.addin.xml: FileService has been moved to
+         MonoDevelop.Core.
+
 2006-12-06 Jacob Ilsø Christensen  <[EMAIL PROTECTED]>
 
        * MonoDevelop.Core.Gui.Dialogs/AddinInstallDialog.cs:

Modified: trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/Makefile.am
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/Makefile.am 2006-12-17 
17:31:52 UTC (rev 69608)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/Makefile.am 2006-12-17 
17:32:24 UTC (rev 69609)
@@ -32,9 +32,6 @@
 MonoDevelop.Core.Gui/SyncContext.cs \
 MonoDevelop.Core.Gui/SyncContextAttribute.cs \
 MonoDevelop.Core.Gui/SyncObject.cs \
-MonoDevelop.Core.Gui/DefaultFileService.cs \
-MonoDevelop.Core.Gui/FileEventArgs.cs \
-MonoDevelop.Core.Gui/IFileService.cs \
 Freedesktop.RecentFiles/RecentFiles.cs \
 MonoDevelop.Core.Gui/RecentOpen.cs \
 MonoDevelop.Core.Gui.Dialogs/DefaultDialogPanelDescriptor.cs \

Deleted: 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/DefaultFileService.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/DefaultFileService.cs
  2006-12-17 17:31:52 UTC (rev 69608)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/DefaultFileService.cs
  2006-12-17 17:32:24 UTC (rev 69609)
@@ -1,154 +0,0 @@
-// <file>
-//     <copyright see="prj:///doc/copyright.txt"/>
-//     <license see="prj:///doc/license.txt"/>
-//     <owner name="Mike Krüger" email="[EMAIL PROTECTED]"/>
-//     <version value="$version"/>
-// </file>
-
-using System;
-using System.Collections;
-using System.Diagnostics;
-using System.IO;
-using System.Xml;
-
-using MonoDevelop.Core.AddIns;
-using MonoDevelop.Core;
-using MonoDevelop.Components;
-using MonoDevelop.Core.Gui.Utils;
-
-namespace MonoDevelop.Core.Gui
-{
-       internal class DefaultFileService : AbstractService, IFileService
-       {
-               string currentFile;
-               
-               public string CurrentFile {
-                       get {
-                               return currentFile;
-                       }
-                       set {
-                               currentFile = value;
-                       }
-               }
-               
-               public void RemoveFile(string fileName)
-               {
-                       if (Directory.Exists(fileName)) {
-                               try {
-                                       Directory.Delete (fileName, true);
-                               } catch (Exception e) {
-                                       Services.MessageService.ShowError(e, 
String.Format (GettextCatalog.GetString ("Can't remove directory {0}"), 
fileName));
-                                       return;
-                               }
-                               OnFileRemoved(new FileEventArgs(fileName, 
true));
-                       } else {
-                               try {
-                                       File.Delete(fileName);
-                               } catch (Exception e) {
-                                       Services.MessageService.ShowError(e, 
String.Format (GettextCatalog.GetString ("Can't remove file {0}"), fileName));
-                                       return;
-                               }
-                               OnFileRemoved(new FileEventArgs(fileName, 
false));
-                       }
-               }
-               
-               public void RenameFile(string oldName, string newName)
-               {
-                       if (oldName != newName) {
-                               if (Directory.Exists(oldName)) {
-                                       try {
-                                               Directory.Move(oldName, 
newName);
-                                       } catch (Exception e) {
-                                               
Services.MessageService.ShowError(e, String.Format (GettextCatalog.GetString 
("Can't rename directory {0}"), oldName));
-                                               return;
-                                       }
-                                       OnFileRenamed(new 
FileEventArgs(oldName, newName, true));
-                               } else {
-                                       try {
-                                               File.Move(oldName, newName);
-                                       } catch (Exception e) {
-                                               
Services.MessageService.ShowError(e, String.Format (GettextCatalog.GetString 
("Can't rename file {0}"), oldName));
-                                               return;
-                                       }
-                                       OnFileRenamed(new 
FileEventArgs(oldName, newName, false));
-                               }
-                       }
-               }
-               
-               [FreeDispatch]
-               public void CopyFile (string sourcePath, string destPath)
-               {
-                       File.Copy (sourcePath, destPath, true);
-                       OnFileCreated (new FileEventArgs (destPath, false));
-               }
-
-               [FreeDispatch]
-               public void MoveFile (string sourcePath, string destPath)
-               {
-                       File.Copy (sourcePath, destPath, true);
-                       OnFileCreated (new FileEventArgs (destPath, false));
-                       File.Delete (sourcePath);
-                       OnFileRemoved (new FileEventArgs (destPath, false));
-               }
-               
-               [FreeDispatch]
-               public void CreateDirectory (string path)
-               {
-                       Directory.CreateDirectory (path);
-                       OnFileCreated (new FileEventArgs (path, true));
-               }
-               
-               public void NotifyFileChange (string path)
-               {
-                       OnFileChanged (new FileEventArgs (path, false));
-               }
-               
-               public void NotifyFileRemove (string path)
-               {
-                       OnFileRemoved (new FileEventArgs (path, false));
-               }
-               
-               public void NotifyFileRename (string path)
-               {
-                       OnFileRenamed (new FileEventArgs (path, false));
-               }
-               
-               public void NotifyFileCreate (string path)
-               {
-                       OnFileCreated (new FileEventArgs (path, false));
-               }
-               
-               protected virtual void OnFileCreated (FileEventArgs e)
-               {
-                       if (FileCreated != null) {
-                               FileCreated (this, e);
-                       }
-               }
-               
-               protected virtual void OnFileRemoved (FileEventArgs e)
-               {
-                       if (FileRemoved != null) {
-                               FileRemoved(this, e);
-                       }
-               }
-
-               protected virtual void OnFileRenamed (FileEventArgs e)
-               {
-                       if (FileRenamed != null) {
-                               FileRenamed(this, e);
-                       }
-               }
-
-               protected virtual void OnFileChanged (FileEventArgs e)
-               {
-                       if (FileChanged != null) {
-                               FileChanged(this, e);
-                       }
-               }
-
-               public event FileEventHandler FileCreated;
-               public event FileEventHandler FileRenamed;
-               public event FileEventHandler FileRemoved;
-               public event FileEventHandler FileChanged;
-       }
-}

Deleted: 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/FileEventArgs.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/FileEventArgs.cs
       2006-12-17 17:31:52 UTC (rev 69608)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/FileEventArgs.cs
       2006-12-17 17:32:24 UTC (rev 69609)
@@ -1,60 +0,0 @@
-// <file>
-//     <copyright see="prj:///doc/copyright.txt"/>
-//     <license see="prj:///doc/license.txt"/>
-//     <owner name="Mike Krüger" email="[EMAIL PROTECTED]"/>
-//     <version value="$version"/>
-// </file>
-
-using System;
-
-namespace MonoDevelop.Core.Gui
-{
-       public delegate void FileEventHandler(object sender, FileEventArgs e);
-       
-       public class FileEventArgs : EventArgs
-       {
-               string fileName   = null;
-               string sourceFile = null;
-               string targetFile = null;
-               
-               bool   isDirectory;
-               
-               public string FileName {
-                       get {
-                               return fileName;
-                       }
-               }
-               
-               public string SourceFile {
-                       get {
-                               return sourceFile;
-                       }
-               }
-               
-               public string TargetFile {
-                       get {
-                               return targetFile;
-                       }
-               }
-               
-               
-               public bool IsDirectory {
-                       get {
-                               return isDirectory;
-                       }
-               }
-               
-               public FileEventArgs(string fileName, bool isDirectory)
-               {
-                       this.fileName = fileName;
-                       this.isDirectory = isDirectory;
-               }
-               
-               public FileEventArgs(string sourceFile, string targetFile, bool 
isDirectory)
-               {
-                       this.sourceFile = sourceFile;
-                       this.targetFile = targetFile;
-                       this.isDirectory = isDirectory;
-               }
-       }
-}

Deleted: 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/IFileService.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/IFileService.cs
        2006-12-17 17:31:52 UTC (rev 69608)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/IFileService.cs
        2006-12-17 17:32:24 UTC (rev 69609)
@@ -1,67 +0,0 @@
-// <file>
-//     <copyright see="prj:///doc/copyright.txt"/>
-//     <license see="prj:///doc/license.txt"/>
-//     <owner name="Mike Krüger" email="[EMAIL PROTECTED]"/>
-//     <version value="$version"/>
-// </file>
-
-using System;
-using System.Diagnostics;
-using System.IO;
-using System.Xml;
-
-namespace MonoDevelop.Core.Gui
-{
-       /// <summary>
-       /// This interface describes the basic functions of the 
-       /// SharpDevelop file service.
-       /// </summary>
-       public interface IFileService
-       {
-               /// <remarks>
-               /// Removes a file physically
-               /// CAUTION : Use only this file for a remove operation, 
because it is important
-               /// to know for other parts of the IDE when a file is removed.
-               /// </remarks>
-               void RemoveFile(string fileName);
-               
-               /// <remarks>
-               /// Renames a file physically
-               /// CAUTION : Use only this file for a rename operation, 
because it is important
-               /// to know for other parts of the IDE when a file is renamed.
-               /// </remarks>
-               void RenameFile(string oldName, string newName);
-               
-               void CopyFile (string sourcePath, string destPath);
-
-               void MoveFile (string sourcePath, string destPath);
-               
-               void CreateDirectory (string path);
-
-
-               void NotifyFileChange (string path);
-               void NotifyFileRemove (string path);
-               void NotifyFileRename (string path);
-               void NotifyFileCreate (string path);
-
-               /// <remarks>
-               /// Is called, when a file is renamed.
-               /// </remarks>
-               event FileEventHandler FileRenamed;
-               
-               /// <remarks>
-               /// Is called, when a file is removed.
-               /// </remarks>
-               event FileEventHandler FileRemoved;
-               
-               /// <remarks>
-               /// Is called, when a file is created.
-               /// </remarks>
-               event FileEventHandler FileCreated;
-               
-               /// <remarks>
-               /// Is called, when a file is created.
-               /// </remarks>
-               event FileEventHandler FileChanged;
-       }
-}

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.addin.xml
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.addin.xml  
    2006-12-17 17:31:52 UTC (rev 69608)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.addin.xml  
    2006-12-17 17:32:24 UTC (rev 69609)
@@ -20,8 +20,6 @@
        <Extension path = "/Workspace/Services">
                <Class id    = "DispatchService"
                       class = "MonoDevelop.Core.Gui.DispatchService"/>
-               <Class id    = "FileService"
-                      class = "MonoDevelop.Core.Gui.DefaultFileService"/>
                <Class id    = "ResourceService"
                       class = "MonoDevelop.Core.Gui.ResourceService"/>
                <Class id    = "MessageService"

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.mdp
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.mdp    
2006-12-17 17:31:52 UTC (rev 69608)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.mdp    
2006-12-17 17:32:24 UTC (rev 69609)
@@ -147,9 +147,6 @@
     <File name="./MonoDevelop.Core.Gui/SyncContext.cs" subtype="Code" 
buildaction="Compile" />
     <File name="./MonoDevelop.Core.Gui/SyncContextAttribute.cs" subtype="Code" 
buildaction="Compile" />
     <File name="./MonoDevelop.Core.Gui/SyncObject.cs" subtype="Code" 
buildaction="Compile" />
-    <File name="./MonoDevelop.Core.Gui/DefaultFileService.cs" subtype="Code" 
buildaction="Compile" />
-    <File name="./MonoDevelop.Core.Gui/FileEventArgs.cs" subtype="Code" 
buildaction="Compile" />
-    <File name="./MonoDevelop.Core.Gui/IFileService.cs" subtype="Code" 
buildaction="Compile" />
     <File name="./Freedesktop.RecentFiles/RecentFiles.cs" subtype="Code" 
buildaction="Compile" />
     <File name="./MonoDevelop.Core.Gui/RecentOpen.cs" subtype="Code" 
buildaction="Compile" />
     <File 
name="./MonoDevelop.Core.Gui.Dialogs/DefaultDialogPanelDescriptor.cs" 
subtype="Code" buildaction="Compile" />

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to