diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-10 06:03:25 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-10 06:03:25 +0100 |
| commit | 407690e9b8a2693a7bd831e954c079cb26c569b7 (patch) | |
| tree | 080e33bbd9e9aea75048306513cde40b603223ea /CrowIDE/src/DesignInterface.cs | |
| parent | fd3397cdf340284c7cbb912b45ebfdbb654947d5 (diff) | |
getStremFromPath made instanced for overriding in designiface, crowide wip
Diffstat (limited to 'CrowIDE/src/DesignInterface.cs')
| -rw-r--r-- | CrowIDE/src/DesignInterface.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/CrowIDE/src/DesignInterface.cs b/CrowIDE/src/DesignInterface.cs index 3c1abf01..4178e398 100644 --- a/CrowIDE/src/DesignInterface.cs +++ b/CrowIDE/src/DesignInterface.cs @@ -29,6 +29,7 @@ using System.Globalization; using System.Threading; using System.Collections.Generic; using System.Diagnostics; +using System.IO; namespace Crow.Coding { @@ -80,6 +81,16 @@ namespace Crow.Coding System.Diagnostics.Debugger.Break (); return null; } + public override System.IO.Stream GetStreamFromPath (string path) + { + ProjectFile pi; + if (ProjFile.Project.solution.GetProjectFileFromPath (path, out pi)) { + return new FileStream (pi.AbsolutePath, FileMode.Open); + } + + Console.WriteLine ("File not found: {0}", path); + return null; + } public override bool ProcessMouseMove (int x, int y) { int deltaX = x - Mouse.X; @@ -171,7 +182,7 @@ namespace Crow.Coding LayoutingQueueItem lqi; while (LayoutingQueue.Count > 0) { lqi = LayoutingQueue.Dequeue (); - Console.WriteLine (lqi.ToString ()); + //Console.WriteLine (lqi.ToString ()); #if DEBUG_LAYOUTING currentLQI = lqi; curLQIsTries.Add(currentLQI); |