src/Builder4/Editor.bjs
[app.Builder.js] / src / Builder4 / Editor.vala
index 8ddf909..63980fc 100644 (file)
@@ -105,24 +105,6 @@ public class Editor : Object
         
         return true;
     
-    }
-    public void showPlainFile (string fname)
-    {
-        this.ptype = "";
-        this.key  = "";
-        this.node = null;
-        this.file = null;
-        this.fname = fname;
-        string str;
-        try {
-            GLib.FileUtils.get_contents(fname, out str);
-        } catch (Error e) {
-            str = ""; // a tad dangerios... - perhaps we should block editing...
-        }
-        
-        this.view.load(str);
-        this.key_edit.el.text = "";    
-    
     }
     public   void show (JsRender.JsRender file, JsRender.Node node, string ptype, string key)
     {
@@ -146,12 +128,13 @@ public class Editor : Object
                 val = node.props.get(key);
             }
             this.view.load(val);
-            this.key_edit.el.text = key;  
+    
         
         } else {
             this.view.load(        file.toSource() );
-        }
     
+        }
+        this.key_edit.el.text = key;