Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@novell.com>2009-05-19 13:32:21 +0400
committerLluis Sanchez <lluis@novell.com>2009-05-19 13:32:21 +0400
commit2994a9fb2746a3093416ade0c0511279809c6f45 (patch)
treefd291966304ba36a33b66479b6032e698d71c8a4 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad
parent895e1974b5ce782d3bc4d830183cc04b36123b5f (diff)
Use the new FilePath class for handling file and directory paths.
svn path=/trunk/monodevelop/; revision=134374
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolder.cs16
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/SystemFile.cs19
2 files changed, 18 insertions, 17 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolder.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolder.cs
index a7900889a0..a07de9b405 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolder.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolder.cs
@@ -37,17 +37,17 @@ using MonoDevelop.Core.Gui;
namespace MonoDevelop.Ide.Gui.Pads.ProjectPad
{
public class ProjectFolder: IDisposable, IFolderItem
- {
- string absolutePath;
+ {
+ FilePath absolutePath;
IWorkspaceObject parentWorkspaceObject;
object parent;
bool trackChanges;
- public ProjectFolder (string absolutePath, IWorkspaceObject parentWorkspaceObject): this (absolutePath, parentWorkspaceObject, null)
+ public ProjectFolder (FilePath absolutePath, IWorkspaceObject parentWorkspaceObject): this (absolutePath, parentWorkspaceObject, null)
{
- }
-
- public ProjectFolder (string absolutePath, IWorkspaceObject parentWorkspaceObject, object parent)
+ }
+
+ public ProjectFolder (FilePath absolutePath, IWorkspaceObject parentWorkspaceObject, object parent)
{
this.parent = parent;
this.parentWorkspaceObject = parentWorkspaceObject;
@@ -67,11 +67,11 @@ namespace MonoDevelop.Ide.Gui.Pads.ProjectPad
}
}
- string IFolderItem.BaseDirectory {
+ FilePath IFolderItem.BaseDirectory {
get { return Path; }
}
- public string Path {
+ public FilePath Path {
get { return absolutePath; }
}
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/SystemFile.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/SystemFile.cs
index f260a43d0b..b604e9d7b9 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/SystemFile.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/SystemFile.cs
@@ -29,32 +29,33 @@
using System;
using System.IO;
-using MonoDevelop.Projects;
+using MonoDevelop.Projects;
+using MonoDevelop.Core;
namespace MonoDevelop.Ide.Gui.Pads.ProjectPad
{
public class SystemFile: IFileItem
- {
- string absolutePath;
+ {
+ FilePath absolutePath;
IWorkspaceObject parent;
bool showTransparent;
- public SystemFile (string absolutePath, IWorkspaceObject parent): this (absolutePath, parent, true)
+ public SystemFile (FilePath absolutePath, IWorkspaceObject parent): this (absolutePath, parent, true)
{
- }
-
- public SystemFile (string absolutePath, IWorkspaceObject parent, bool showTransparent)
+ }
+
+ public SystemFile (FilePath absolutePath, IWorkspaceObject parent, bool showTransparent)
{
this.parent = parent;
this.absolutePath = absolutePath;
this.showTransparent = showTransparent;
}
- public string Path {
+ public FilePath Path {
get { return absolutePath; }
}
- string IFileItem.FileName {
+ FilePath IFileItem.FileName {
get { return Path; }
}