aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/src/ProjectTree/ProjectFile.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-12-13 18:31:05 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-12-13 18:31:05 +0100
commit446a51f911c731eeb7a3b50987c59a7cd1316f78 (patch)
tree6e09e96d25979e276056a3f70aed1808abf2207b /CrowIDE/src/ProjectTree/ProjectFile.cs
parent590fb1d22d56e1b171865fa9fa80f7d35ec4e26a (diff)
some caching for reflexion, other debug
Diffstat (limited to 'CrowIDE/src/ProjectTree/ProjectFile.cs')
-rw-r--r--CrowIDE/src/ProjectTree/ProjectFile.cs12
1 files changed, 5 insertions, 7 deletions
diff --git a/CrowIDE/src/ProjectTree/ProjectFile.cs b/CrowIDE/src/ProjectTree/ProjectFile.cs
index 611f1d8b..8d803faa 100644
--- a/CrowIDE/src/ProjectTree/ProjectFile.cs
+++ b/CrowIDE/src/ProjectTree/ProjectFile.cs
@@ -25,15 +25,13 @@
// THE SOFTWARE.
using System;
using System.Collections.Generic;
-using System.Linq;
-using System.Xml;
using System.IO;
-using Crow;
+using System.Linq;
using System.Threading;
+using System.Xml;
-namespace Crow.Coding
-{
- public class ProjectFile : ProjectItem {
+namespace Crow.Coding {
+ public class ProjectFile : ProjectItem {
bool isOpened = false;
DateTime accessTime;
string source;
@@ -222,7 +220,7 @@ namespace Crow.Coding
}
}
- public void Open () {
+ public virtual void Open () {
accessTime = System.IO.File.GetLastWriteTime (AbsolutePath);
using (StreamReader sr = new StreamReader (AbsolutePath)) {
source = sr.ReadToEnd ();