4 * this is the code represents a File when using the Gtk view..
18 public class PlainFile : JsRender
22 public PlainFile(Project.Project project, string path) {
25 this.xtype = "PlainFile";
29 this.language = "vala";
34 this.id = "file-plain-%d".printf(plid++);
36 // various loader methods..
38 // Class = list of arguments ... and which property to use as a value.
47 setNSID : function(id)
50 this.items[0]['*class'] = id;
59 public override void removeFiles() {
60 if (FileUtils.test(this.path, FileTest.EXISTS)) {
61 GLib.FileUtils.remove(this.path);
66 public override void loadItems() throws GLib.Error // : function(cb, sync) == original was async.
69 GLib.FileUtils.get_contents(this.path, out this.contents);
75 public override string toSourcePreview()
79 public override void setSource(string str) {
82 public override string toSource()
90 public override void save() {
91 this.writeFile(this.path, this.contents);
94 // ignore these calls.
95 public override void saveHTML ( string html ) {}
101 * save as a javascript file.
102 * why is this not save...???
107 string getHelpUrl(string cls)
111 public override void findTransStrings(Node? node )