Lively Kernel canvas
// this script is evaluated on world load
MyConsole = WorldMorph.current().submorphs.detect(function(ea){return ea.name == "MyConsole"});
if(!MyConsole) return;
MyConsole = MyConsole.component;
MyConsole.setText("-- start --");
MyConsole.log = function(s) {
this.setText(this.formalModel.getText() + "\n" + s);
};
MyConsole.log("My Console initialized!");
MyConsole.morph.resetScrollPane = function() {
var sp = this.enclosingScrollPane();
if (sp) sp.scrollToBottom();
};
// console.consumers seems to be broken... so we go the hard waz
console.log = console.log.wrap(function(proceed, s) {
MyConsole.log(s)
proceed(s)})
console.log("wrapped console for MyConsole successfully")
0.0003359843641132479
Web-basedDevelopmentEnvironments20
ZoomableUML->CodeEditor40 Code Editor"]]>
10007.578261417724394Wikicontroltrue
Core.js
null-1.3744936875624378null
null-1.831768029077792null
TextMorph
ImageMorph
Morph
null-1.271816207419056null
null-1.890454786451908null
TextMorph
Morph
ImageMorph
linestextStringtextSyle2
null0.7551044034786732null
TextMorph
linestextStringtextSyle2
lines
compositeText:function(){varresult=this.privateDoStuff()...returnresult}3
null
nullnull-1.6921483720866295
Morph
TextLines
nullnull0.019605330857204686
String
null0.019605330857204686null
null0.6107259643892086null
null0.4636476090008061null
Prerequisists:-ClassandMethodAPIaccessforCodeRepository-Typeinformation(TypeinferenceofRuntimegathering)14
Questions:-Howdoesitscaleintermsofscreenspace-Automaticvs.ManualLayouting-Wheredoesithelp?-Whataddionalwork/tasksisneededwhenprogramminginsuchaway?-Whathastheliteraturetosayaboutsuchanenvironment?614null59