Lively Kernel canvas
null
gerbil_rollBack
30
0
false
null
16
null
0.1
60
194.87906156948924
0.6698998329707467
null
null
null
false
null
WorldMorph.current().addTextWindow({title:"workspace?"});Global.ge=newGerbilEdit("gerbil_junk.js");ge.openWindowOnContent();ge.saveWindowContent();ge.contentWindow.innerMorph().textString_f=function(foo,bar){bar=bar||0;returnbar;}_f("blah",100)
8
null
true
true
false
204
true
null
204
null
true
false
false
1
true
false
true
false
null
false
null
false
null
false
workspace?
null
false
false
false
false
null
false
false
null
null
null
null
false
null
null
false
null
Object.subclass('GerbilEdit',{initialize:function(file,version_opt){target_version=version_opt||0;this.content=this.getContent(file,target_version);this.version=target_version;this.file=file;},openWindowOnContent:function(){varspec={title:this.file+'r'+this.version};spec.content=this.content;this.contentWindow=WorldMorph.current().addTextWindow(spec);},saveWindowContent:function(){this.content=this.contentWindow.innerMorph().textString;if(this.content.length>0)this.putContent(this.file,this.content);},getContent:function(file,version){url=URL.source.getDirectory();dir=newFileDirectory(url);res=newSVNResource(url.toString(),Record.newPlainInstance({URL:url+file,Metadata:null,HeadRevision:null}));res.fetchMetadata(true,null);timestamps=res.getMetadata();revs=timestamps.collect(function(ea){returnea.toString().match(/.*Revision(.*)/)[1]});sourceRev=revs[version];returndir.fileContent(file,sourceRev);},putContent:function(file,content){url=URL.source.getDirectory();dir=newFileDirectory(url);dir.writeFileNamed(file,content);},removeCodeElement:function(code){varp1=code.indexOf('<code>');varp2=code.indexOf('</code>');if((p1===-1)||(p2===-1)){returncode;}else{varp3=p2+'</code>'.length;pre=code.substr(0,p1);post=code.substr(p3,code.length-p3);returnpre+post;}}});
0) this.putContent(this.file,this.content);\r},\r\ngetContent: function (file,version)\r{\r url = URL.source.getDirectory();\n dir = new FileDirectory(url);\n res = new SVNResource(url.toString(), Record.newPlainInstance({URL: url+file, Metadata: null, HeadRevision: null}));\n res.fetchMetadata(true, null);\n timestamps = res.getMetadata();\r revs = timestamps.collect(function(ea) { return ea.toString().match(/.*Revision (.*)/)[1] });\n sourceRev = revs[version];\n return dir.fileContent(file, sourceRev);\r},\rputContent: function(file,content)\r{\r url = URL.source.getDirectory();\n dir = new FileDirectory(url);\r dir.writeFileNamed(file, content);\r},\r\rremoveCodeElement: function(code) \r{\rvar p1 = code.indexOf('');\rvar p2 = code.indexOf('
');\rif((p1===-1)||(p2===-1))\r {\r return code;\r }\relse\r {\r var p3 = p2 + ''.length;\r pre = code.substr(0,p1);\r post = code.substr(p3,code.length-p3);\r return pre+post;\r }\r}\r});"]]>
19
null
true
true
false
508
false
null
547
0) this.putContent(this.file,this.content);\r},\r\ngetContent: function (file,version)\r{\r url = URL.source.getDirectory();\n dir = new FileDirectory(url);\n res = new SVNResource(url.toString(), Record.newPlainInstance({URL: url+file, Metadata: null, HeadRevision: null}));\n res.fetchMetadata(true, null);\n timestamps = res.getMetadata();\r revs = timestamps.collect(function(ea) { return ea.toString().match(/.*Revision (.*)/)[1] });\n sourceRev = revs[version];\n return dir.fileContent(file, sourceRev);\r},\rputContent: function(file,content)\r{\r url = URL.source.getDirectory();\n dir = new FileDirectory(url);\r dir.writeFileNamed(file, content);\r},\r\rremoveCodeElement: function(code) \r{\rvar p1 = code.indexOf('');\rvar p2 = code.indexOf('
');\rif((p1===-1)||(p2===-1))\r {\r return code;\r }\relse\r {\r var p3 = p2 + ''.length;\r pre = code.substr(0,p1);\r post = code.substr(p3,code.length-p3);\r return pre+post;\r }\r}\r});"]]>
null
true
false
false
1
true
false
null
true
false
null
false
null
false
null
false
GerbilEdit
null
false
false
false
false
null
false
false
null
null
null
null
false
null
1236640740782
29674
1
45
null
1236640740
null