- Timestamp:
- 07/08/14 18:53:42 (10 years ago)
- Location:
- stable
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 11034
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Data.Views/3.3
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Data.Views/3.3 merged: 11034
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Data.Views/3.3/Path Views/TextFileView.cs
r9961 r11140 68 68 if (Content != null && Content.Exists()) { 69 69 fileSystemWatcher.Filter = Path.GetFileName(Content.Value); 70 fileSystemWatcher.Path = Path.GetDirectoryName(Content.Value); 70 var path = Path.GetDirectoryName(Content.Value); 71 if (string.IsNullOrEmpty(path)) path = Environment.CurrentDirectory; 72 fileSystemWatcher.Path = path; 71 73 } 72 74 fileSystemWatcher.EnableRaisingEvents = Content != null && File.Exists(Content.Value) && Visible; -
stable/HeuristicLab.Data/3.3
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Data/3.3 merged: 11034
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Data/3.3/Path Types/DirectoryValue.cs
r9961 r11140 39 39 40 40 public override bool Exists() { 41 if (!Path.IsPathRooted(Value)) return false; 41 42 return Directory.Exists(Value); 42 43 } -
stable/HeuristicLab.Data/3.3/Path Types/FileValue.cs
r9961 r11140 56 56 57 57 public override bool Exists() { 58 if (string.IsNullOrEmpty(Value)) return false; 59 if (string.IsNullOrEmpty(Path.GetDirectoryName(Value))) return false; 58 60 return File.Exists(Value); 59 61 } -
stable/HeuristicLab.Data/3.3/Path Types/PathValue.cs
r9961 r11140 52 52 } 53 53 54 protected PathValue() : base() { } 54 protected PathValue() 55 : base() { 56 stringValue.ToStringChanged += (o, e) => OnToStringChanged(); 57 } 58 59 [StorableHook(HookType.AfterDeserialization)] 60 private void AfterDeserialization() { 61 stringValue.ToStringChanged += (o, e) => OnToStringChanged(); 62 } 55 63 56 64 public abstract bool Exists(); 65 66 public override string ToString() { 67 return stringValue.ToString(); 68 } 69 57 70 } 58 71 }
Note: See TracChangeset
for help on using the changeset viewer.