1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288 |
- smalltalk.addPackage('Helios-Inspector', {});
- smalltalk.addClass('HLInspector', smalltalk.HLWidget, ['model', 'variables', 'display', 'code', 'label'], 'Helios-Inspector');
- smalltalk.addMethod(
- "_code",
- smalltalk.method({
- selector: "code",
- category: 'accessing',
- fn: function (){
- var self=this;
- var $1;
- if(($receiver = self["@code"]) == nil || $receiver == undefined){
- $1=smalltalk.send(self,"_initializeCode",[]);
- } else {
- $1=self["@code"];
- };
- return $1;
- },
- args: [],
- source: "code\x0a\x0a\x09^ code ifNil:[self initializeCode]",
- messageSends: ["ifNil:", "initializeCode"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_display",
- smalltalk.method({
- selector: "display",
- category: 'accessing',
- fn: function (){
- var self=this;
- var $1;
- if(($receiver = self["@display"]) == nil || $receiver == undefined){
- $1=smalltalk.send(self,"_initializeDisplay",[]);
- } else {
- $1=self["@display"];
- };
- return $1;
- },
- args: [],
- source: "display\x0a\x0a\x09^ display ifNil:[self initializeDisplay]",
- messageSends: ["ifNil:", "initializeDisplay"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_ensureModel",
- smalltalk.method({
- selector: "ensureModel",
- category: 'actions',
- fn: function (){
- var self=this;
- if(($receiver = self["@model"]) == nil || $receiver == undefined){
- smalltalk.send(self,"_model_",[smalltalk.send(self,"_model",[])]);
- smalltalk.send(self,"_observeVariables",[]);
- } else {
- self["@model"];
- };
- return self},
- args: [],
- source: "ensureModel\x0a\x09\x22Sends the #model: initialization message if needed.\x22\x0a\x0a\x09model ifNil:[\x0a\x09\x09self model: self model.\x0a\x09\x09self observeVariables]\x0a\x09",
- messageSends: ["ifNil:", "model:", "model", "observeVariables"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_initializeCode",
- smalltalk.method({
- selector: "initializeCode",
- category: 'initialization',
- fn: function (){
- var self=this;
- var $1;
- self["@code"]=smalltalk.send(self,"_makeCode",[]);
- $1=self["@code"];
- return $1;
- },
- args: [],
- source: "initializeCode\x0a\x0a\x09^ code := self makeCode.",
- messageSends: ["makeCode"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_initializeDisplay",
- smalltalk.method({
- selector: "initializeDisplay",
- category: 'initialization',
- fn: function (){
- var self=this;
- var $1;
- self["@display"]=smalltalk.send(self,"_makeDisplay",[]);
- $1=self["@display"];
- return $1;
- },
- args: [],
- source: "initializeDisplay\x0a\x09^ display := self makeDisplay",
- messageSends: ["makeDisplay"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_initializeLabel",
- smalltalk.method({
- selector: "initializeLabel",
- category: 'initialization',
- fn: function (){
- var self=this;
- var $1;
- self["@label"]=smalltalk.send(smalltalk.send(self["@model"],"_inspectee",[]),"_printString",[]);
- $1=self["@label"];
- return $1;
- },
- args: [],
- source: "initializeLabel\x0a\x09^ label := model inspectee printString",
- messageSends: ["printString", "inspectee"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_initializeModel",
- smalltalk.method({
- selector: "initializeModel",
- category: 'initialization',
- fn: function (){
- var self=this;
- var $1;
- self["@model"]=smalltalk.send((smalltalk.HLInspectorModel || HLInspectorModel),"_new",[]);
- $1=self["@model"];
- return $1;
- },
- args: [],
- source: "initializeModel\x0a\x0a\x09^ model := HLInspectorModel new",
- messageSends: ["new"],
- referencedClasses: ["HLInspectorModel"]
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_initializeVariables",
- smalltalk.method({
- selector: "initializeVariables",
- category: 'initialization',
- fn: function (){
- var self=this;
- var $1;
- self["@variables"]=smalltalk.send(self,"_makeVariables",[]);
- $1=self["@variables"];
- return $1;
- },
- args: [],
- source: "initializeVariables\x0a\x09^ variables := self makeVariables",
- messageSends: ["makeVariables"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_inspect_",
- smalltalk.method({
- selector: "inspect:",
- category: 'actions',
- fn: function (anObject){
- var self=this;
- smalltalk.send(smalltalk.send(self,"_model",[]),"_inspect_on_",[anObject,self]);
- return self},
- args: ["anObject"],
- source: "inspect: anObject\x0a\x0a\x09self model inspect: anObject on: self ",
- messageSends: ["inspect:on:", "model"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_inspectee",
- smalltalk.method({
- selector: "inspectee",
- category: 'accessing',
- fn: function (){
- var self=this;
- var $1;
- $1=smalltalk.send(smalltalk.send(self,"_model",[]),"_inspectee",[]);
- return $1;
- },
- args: [],
- source: "inspectee\x0a\x0a\x09^ self model inspectee",
- messageSends: ["inspectee", "model"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_inspectee_",
- smalltalk.method({
- selector: "inspectee:",
- category: 'accessing',
- fn: function (anObject){
- var self=this;
- smalltalk.send(smalltalk.send(self,"_model",[]),"_inspectee_",[anObject]);
- return self},
- args: ["anObject"],
- source: "inspectee: anObject\x0a\x0a\x09self model inspectee: anObject",
- messageSends: ["inspectee:", "model"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_label",
- smalltalk.method({
- selector: "label",
- category: 'accessing',
- fn: function (){
- var self=this;
- var $1;
- if(($receiver = self["@label"]) == nil || $receiver == undefined){
- $1=smalltalk.send(self,"_initializeLabel",[]);
- } else {
- $1=self["@label"];
- };
- return $1;
- },
- args: [],
- source: "label\x0a\x09\x0a ^ label ifNil:[self initializeLabel]",
- messageSends: ["ifNil:", "initializeLabel"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_makeCode",
- smalltalk.method({
- selector: "makeCode",
- category: 'actions',
- fn: function (){
- var self=this;
- var $2,$3,$1;
- $2=smalltalk.send((smalltalk.HLCodeWidget || HLCodeWidget),"_new",[]);
- smalltalk.send($2,"_model_",[smalltalk.send(self["@model"],"_code",[])]);
- smalltalk.send($2,"_doItReaction_",[(function(){
- return smalltalk.send(self,"_refresh",[]);
- })]);
- $3=smalltalk.send($2,"_yourself",[]);
- $1=$3;
- return $1;
- },
- args: [],
- source: "makeCode\x0a\x0a\x09^ HLCodeWidget new\x0a \x09model: model code;\x0a\x09\x09doItReaction: [self refresh];\x0a yourself.\x0a \x0a",
- messageSends: ["model:", "code", "new", "doItReaction:", "refresh", "yourself"],
- referencedClasses: ["HLCodeWidget"]
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_makeDisplay",
- smalltalk.method({
- selector: "makeDisplay",
- category: 'actions',
- fn: function (){
- var self=this;
- var $2,$3,$1;
- $2=smalltalk.send((smalltalk.HLInspectorDisplay || HLInspectorDisplay),"_new",[]);
- smalltalk.send($2,"_model_",[smalltalk.send(self,"_model",[])]);
- $3=smalltalk.send($2,"_yourself",[]);
- $1=$3;
- return $1;
- },
- args: [],
- source: "makeDisplay\x0a\x0a\x09^ HLInspectorDisplay new\x0a \x09model: self model;\x0a yourself\x0a",
- messageSends: ["model:", "model", "new", "yourself"],
- referencedClasses: ["HLInspectorDisplay"]
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_makeVariables",
- smalltalk.method({
- selector: "makeVariables",
- category: 'actions',
- fn: function (){
- var self=this;
- var $2,$3,$1;
- $2=smalltalk.send((smalltalk.HLInspectorVariables || HLInspectorVariables),"_new",[]);
- smalltalk.send($2,"_model_",[smalltalk.send(self,"_model",[])]);
- $3=smalltalk.send($2,"_yourself",[]);
- $1=$3;
- return $1;
- },
- args: [],
- source: "makeVariables\x0a\x0a\x09^ HLInspectorVariables new\x0a \x09model: self model;\x0a yourself\x0a",
- messageSends: ["model:", "model", "new", "yourself"],
- referencedClasses: ["HLInspectorVariables"]
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_model",
- smalltalk.method({
- selector: "model",
- category: 'accessing',
- fn: function (){
- var self=this;
- var $1;
- if(($receiver = self["@model"]) == nil || $receiver == undefined){
- $1=smalltalk.send(self,"_initializeModel",[]);
- } else {
- $1=self["@model"];
- };
- return $1;
- },
- args: [],
- source: "model\x0a\x0a\x09^ model ifNil:[self initializeModel]",
- messageSends: ["ifNil:", "initializeModel"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_model_",
- smalltalk.method({
- selector: "model:",
- category: 'accessing',
- fn: function (aModel){
- var self=this;
- self["@model"]=aModel;
- smalltalk.send(smalltalk.send(self,"_code",[]),"_model_",[smalltalk.send(aModel,"_code",[])]);
- smalltalk.send(self,"_observeCode",[]);
- return self},
- args: ["aModel"],
- source: "model: aModel\x0a\x0a\x09model := aModel.\x0a \x0a self code model: aModel code.\x0a self observeCode.\x0a ",
- messageSends: ["model:", "code", "observeCode"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_observeCode",
- smalltalk.method({
- selector: "observeCode",
- category: 'actions',
- fn: function (){
- var self=this;
- return self},
- args: [],
- source: "observeCode\x0a\x0a",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_observeVariables",
- smalltalk.method({
- selector: "observeVariables",
- category: 'actions',
- fn: function (){
- var self=this;
- var $1,$2;
- $1=smalltalk.send(smalltalk.send(self,"_variables",[]),"_announcer",[]);
- smalltalk.send($1,"_on_do_",[(smalltalk.HLRefreshRequested || HLRefreshRequested),(function(ann){
- return smalltalk.send(self,"_onRefresh",[]);
- })]);
- smalltalk.send($1,"_on_do_",[(smalltalk.HLInstanceVariableSelected || HLInstanceVariableSelected),(function(ann){
- return smalltalk.send(self,"_onInstanceVariableSelected",[]);
- })]);
- $2=smalltalk.send($1,"_yourself",[]);
- return self},
- args: [],
- source: "observeVariables\x0a\x0a\x09self variables announcer \x0a \x09on: HLRefreshRequested do:[:ann| self onRefresh];\x0a on: HLInstanceVariableSelected do:[:ann| self onInstanceVariableSelected];\x0a yourself ",
- messageSends: ["on:do:", "onRefresh", "announcer", "variables", "onInstanceVariableSelected", "yourself"],
- referencedClasses: ["HLRefreshRequested", "HLInstanceVariableSelected"]
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_onDoIt",
- smalltalk.method({
- selector: "onDoIt",
- category: 'reactions',
- fn: function (){
- var self=this;
- return self},
- args: [],
- source: "onDoIt",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_onInspectIt",
- smalltalk.method({
- selector: "onInspectIt",
- category: 'reactions',
- fn: function (){
- var self=this;
- return self},
- args: [],
- source: "onInspectIt",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_onInstanceVariableSelected",
- smalltalk.method({
- selector: "onInstanceVariableSelected",
- category: 'reactions',
- fn: function (){
- var self=this;
- smalltalk.send(self,"_halt",[]);
- return self},
- args: [],
- source: "onInstanceVariableSelected\x0a\x0a\x09self halt.",
- messageSends: ["halt"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_onPrintIt",
- smalltalk.method({
- selector: "onPrintIt",
- category: 'reactions',
- fn: function (){
- var self=this;
- return self},
- args: [],
- source: "onPrintIt",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_onRefresh",
- smalltalk.method({
- selector: "onRefresh",
- category: 'reactions',
- fn: function (){
- var self=this;
- smalltalk.send(self,"_refresh",[]);
- return self},
- args: [],
- source: "onRefresh\x0a\x0a\x09self refresh",
- messageSends: ["refresh"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_open",
- smalltalk.method({
- selector: "open",
- category: 'actions',
- fn: function (){
- var self=this;
- smalltalk.send(smalltalk.send((smalltalk.HLManager || HLManager),"_current",[]),"_addTab_",[smalltalk.send((smalltalk.HLTab || HLTab),"_on_labelled_",[self,smalltalk.send(self,"_tabLabel",[])])]);
- return self},
- args: [],
- source: "open\x0a\x0a\x09HLManager current addTab: (HLTab on: self labelled: self tabLabel)\x0a",
- messageSends: ["addTab:", "on:labelled:", "tabLabel", "current"],
- referencedClasses: ["HLTab", "HLManager"]
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_refresh",
- smalltalk.method({
- selector: "refresh",
- category: 'actions',
- fn: function (){
- var self=this;
- var $1;
- smalltalk.send(self,"_inspect_",[smalltalk.send(self,"_inspectee",[])]);
- smalltalk.send(self,"_refreshVariables",[]);
- $1=smalltalk.send(self,"_refreshDisplay",[]);
- return self},
- args: [],
- source: "refresh\x0a\x0a\x09self \x0a\x09\x09inspect: self inspectee; \x0a\x09\x09refreshVariables;\x0a\x09\x09refreshDisplay",
- messageSends: ["inspect:", "inspectee", "refreshVariables", "refreshDisplay"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_refreshDisplay",
- smalltalk.method({
- selector: "refreshDisplay",
- category: 'actions',
- fn: function (){
- var self=this;
- smalltalk.send(smalltalk.send(self,"_display",[]),"_refresh",[]);
- return self},
- args: [],
- source: "refreshDisplay\x0a\x0a\x09self display refresh",
- messageSends: ["refresh", "display"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_refreshVariables",
- smalltalk.method({
- selector: "refreshVariables",
- category: 'actions',
- fn: function (){
- var self=this;
- smalltalk.send(smalltalk.send(self,"_variables",[]),"_refresh",[]);
- return self},
- args: [],
- source: "refreshVariables\x0a\x0a\x09self variables refresh",
- messageSends: ["refresh", "variables"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_renderContentOn_",
- smalltalk.method({
- selector: "renderContentOn:",
- category: 'rendering',
- fn: function (html){
- var self=this;
- smalltalk.send(self,"_ensureModel",[]);
- smalltalk.send(html,"_with_",[smalltalk.send((smalltalk.HLContainer || HLContainer),"_with_",[smalltalk.send((smalltalk.HLHorizontalSplitter || HLHorizontalSplitter),"_with_with_",[smalltalk.send((smalltalk.HLVerticalSplitter || HLVerticalSplitter),"_with_with_",[smalltalk.send(self,"_variables",[]),smalltalk.send(self,"_display",[])]),smalltalk.send(self,"_code",[])])])]);
- return self},
- args: ["html"],
- source: "renderContentOn: html\x0a\x0a\x09self ensureModel.\x0a \x0a \x09html with: (HLContainer with: (HLHorizontalSplitter\x0a \x09with: (HLVerticalSplitter \x0a \x09\x09with: self variables\x0a \x09 with: self display)\x0a with: self code))\x0a ",
- messageSends: ["ensureModel", "with:", "with:with:", "variables", "display", "code"],
- referencedClasses: ["HLVerticalSplitter", "HLHorizontalSplitter", "HLContainer"]
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_setLabel_",
- smalltalk.method({
- selector: "setLabel:",
- category: 'actions',
- fn: function (aString){
- var self=this;
- self["@label"]=aString;
- return self},
- args: ["aString"],
- source: "setLabel: aString\x0a\x09label := aString",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_setVariables_",
- smalltalk.method({
- selector: "setVariables:",
- category: 'actions',
- fn: function (aDictionary){
- var self=this;
- smalltalk.send(smalltalk.send(self,"_model",[]),"_variables_",[aDictionary]);
- return self},
- args: ["aDictionary"],
- source: "setVariables: aDictionary\x0a\x0a\x09self model variables: aDictionary",
- messageSends: ["variables:", "model"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_tabLabel",
- smalltalk.method({
- selector: "tabLabel",
- category: 'accessing',
- fn: function (){
- var self=this;
- var $1;
- $1=smalltalk.send(self,"_label",[]);
- return $1;
- },
- args: [],
- source: "tabLabel\x0a\x09\x0a ^ self label",
- messageSends: ["label"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_variables",
- smalltalk.method({
- selector: "variables",
- category: 'accessing',
- fn: function (){
- var self=this;
- var $1;
- if(($receiver = self["@variables"]) == nil || $receiver == undefined){
- $1=smalltalk.send(self,"_initializeVariables",[]);
- } else {
- $1=self["@variables"];
- };
- return $1;
- },
- args: [],
- source: "variables\x0a\x0a\x09^ variables ifNil:[self initializeVariables]",
- messageSends: ["ifNil:", "initializeVariables"],
- referencedClasses: []
- }),
- smalltalk.HLInspector);
- smalltalk.addMethod(
- "_canBeOpenAsTab",
- smalltalk.method({
- selector: "canBeOpenAsTab",
- category: 'testing',
- fn: function (){
- var self=this;
- return false;
- },
- args: [],
- source: "canBeOpenAsTab\x0a\x09^ false",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspector.klass);
- smalltalk.addMethod(
- "_tabLabel",
- smalltalk.method({
- selector: "tabLabel",
- category: 'accessing',
- fn: function (){
- var self=this;
- return "Inspector";
- },
- args: [],
- source: "tabLabel\x0a\x09^ 'Inspector'",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspector.klass);
- smalltalk.addMethod(
- "_tabPriority",
- smalltalk.method({
- selector: "tabPriority",
- category: 'accessing',
- fn: function (){
- var self=this;
- return (10);
- },
- args: [],
- source: "tabPriority\x0a\x09^ 10",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspector.klass);
- smalltalk.addClass('HLInspectorDisplay', smalltalk.HLNavigationListWidget, ['model'], 'Helios-Inspector');
- smalltalk.addMethod(
- "_model",
- smalltalk.method({
- selector: "model",
- category: 'accessing',
- fn: function (){
- var self=this;
- return self["@model"];
- },
- args: [],
- source: "model\x0a\x0a\x09^ model",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorDisplay);
- smalltalk.addMethod(
- "_model_",
- smalltalk.method({
- selector: "model:",
- category: 'accessing',
- fn: function (aModel){
- var self=this;
- self["@model"]=aModel;
- return self},
- args: ["aModel"],
- source: "model: aModel\x0a\x0a\x09model := aModel",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorDisplay);
- smalltalk.addMethod(
- "_renderContentOn_",
- smalltalk.method({
- selector: "renderContentOn:",
- category: 'rendering',
- fn: function (html){
- var self=this;
- smalltalk.send(smalltalk.send(html,"_div",[]),"_with_",[smalltalk.send(smalltalk.send(self["@model"],"_selection",[]),"_printString",[])]);
- return self},
- args: ["html"],
- source: "renderContentOn: html\x0a\x09\x0a html div with: model selection printString\x0a ",
- messageSends: ["with:", "printString", "selection", "div"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorDisplay);
- smalltalk.addClass('HLInspectorModel', smalltalk.Object, ['announcer', 'environment', 'inspectee', 'code', 'variables', 'selection'], 'Helios-Inspector');
- smalltalk.addMethod(
- "_announcer",
- smalltalk.method({
- selector: "announcer",
- category: 'accessing',
- fn: function (){
- var self=this;
- var $1;
- if(($receiver = self["@announcer"]) == nil || $receiver == undefined){
- $1=smalltalk.send(self,"_initializeAnnouncer",[]);
- } else {
- $1=self["@announcer"];
- };
- return $1;
- },
- args: [],
- source: "announcer\x0a\x09^ announcer ifNil: [ self initializeAnnouncer ]",
- messageSends: ["ifNil:", "initializeAnnouncer"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_beLocal",
- smalltalk.method({
- selector: "beLocal",
- category: 'actions',
- fn: function (){
- var self=this;
- smalltalk.send(self,"_initializeEnvironment",[]);
- return self},
- args: [],
- source: "beLocal\x0a\x0a\x09self initializeEnvironment\x0a",
- messageSends: ["initializeEnvironment"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_beRemoteOn_port_",
- smalltalk.method({
- selector: "beRemoteOn:port:",
- category: 'actions',
- fn: function (anIPAddress,aPort){
- var self=this;
- return self},
- args: ["anIPAddress", "aPort"],
- source: "beRemoteOn: anIPAddress port: aPort\x0a\x0a\x09\x22to-do\x22\x0a \x0a \x22environment := HLRemoteEnvironment on: anIPAddress port: aPort\x0a \x0a ...kind of stuff\x22\x0a \x0a",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_code",
- smalltalk.method({
- selector: "code",
- category: 'accessing',
- fn: function (){
- var self=this;
- var $1;
- if(($receiver = self["@code"]) == nil || $receiver == undefined){
- $1=smalltalk.send(self,"_initializeCode",[]);
- } else {
- $1=self["@code"];
- };
- return $1;
- },
- args: [],
- source: "code\x0a\x09\x22Answers the code model working for this workspace model\x22\x0a\x09^ code ifNil:[self initializeCode]",
- messageSends: ["ifNil:", "initializeCode"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_environment",
- smalltalk.method({
- selector: "environment",
- category: 'accessing',
- fn: function (){
- var self=this;
- var $1;
- if(($receiver = self["@environment"]) == nil || $receiver == undefined){
- $1=smalltalk.send(self,"_initializeEnvironment",[]);
- } else {
- $1=self["@environment"];
- };
- return $1;
- },
- args: [],
- source: "environment\x0a\x09^ environment ifNil: [ self initializeEnvironment]",
- messageSends: ["ifNil:", "initializeEnvironment"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_environment_",
- smalltalk.method({
- selector: "environment:",
- category: 'accessing',
- fn: function (anEnvironment){
- var self=this;
- self["@environment"]=anEnvironment;
- return self},
- args: ["anEnvironment"],
- source: "environment: anEnvironment\x0a\x09environment := anEnvironment",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_initializeAnnouncer",
- smalltalk.method({
- selector: "initializeAnnouncer",
- category: 'initialization',
- fn: function (){
- var self=this;
- var $1;
- self["@announcer"]=smalltalk.send((smalltalk.Announcer || Announcer),"_new",[]);
- $1=self["@announcer"];
- return $1;
- },
- args: [],
- source: "initializeAnnouncer\x0a\x09^ announcer := Announcer new",
- messageSends: ["new"],
- referencedClasses: ["Announcer"]
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_initializeCode",
- smalltalk.method({
- selector: "initializeCode",
- category: 'initialization',
- fn: function (){
- var self=this;
- var $1;
- self["@code"]=smalltalk.send((smalltalk.HLCodeModel || HLCodeModel),"_on_",[smalltalk.send(self,"_environment",[])]);
- $1=self["@code"];
- return $1;
- },
- args: [],
- source: "initializeCode\x0a\x0a\x09^ code := HLCodeModel on: self environment",
- messageSends: ["on:", "environment"],
- referencedClasses: ["HLCodeModel"]
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_initializeEnvironment",
- smalltalk.method({
- selector: "initializeEnvironment",
- category: 'initialization',
- fn: function (){
- var self=this;
- var $1;
- self["@environment"]=smalltalk.send((smalltalk.HLLocalEnvironment || HLLocalEnvironment),"_new",[]);
- $1=self["@environment"];
- return $1;
- },
- args: [],
- source: "initializeEnvironment\x0a\x09^ environment := HLLocalEnvironment new",
- messageSends: ["new"],
- referencedClasses: ["HLLocalEnvironment"]
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_initializeSelection",
- smalltalk.method({
- selector: "initializeSelection",
- category: 'initialization',
- fn: function (){
- var self=this;
- var $1;
- self["@selection"]=smalltalk.send(self,"_inspectee",[]);
- $1=self["@selection"];
- return $1;
- },
- args: [],
- source: "initializeSelection\x0a\x0a\x09^ selection := self inspectee",
- messageSends: ["inspectee"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_inspect_on_",
- smalltalk.method({
- selector: "inspect:on:",
- category: 'actions',
- fn: function (anObject,anInspector){
- var self=this;
- self["@inspectee"]=anObject;
- self["@variables"]=[];
- smalltalk.send(self["@inspectee"],"_inspectOn_",[anInspector]);
- return self},
- args: ["anObject", "anInspector"],
- source: "inspect: anObject on: anInspector\x0a\x0a\x09inspectee := anObject.\x0a\x09variables := #().\x0a\x09inspectee inspectOn: anInspector \x0a",
- messageSends: ["inspectOn:"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_inspectee",
- smalltalk.method({
- selector: "inspectee",
- category: 'accessing',
- fn: function (){
- var self=this;
- return self["@inspectee"];
- },
- args: [],
- source: "inspectee \x0a\x0a\x09^ inspectee ",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_inspectee_",
- smalltalk.method({
- selector: "inspectee:",
- category: 'accessing',
- fn: function (anObject){
- var self=this;
- self["@inspectee"]=anObject;
- return self},
- args: ["anObject"],
- source: "inspectee: anObject \x0a\x0a\x09inspectee := anObject\x0a ",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_onKeyDown_",
- smalltalk.method({
- selector: "onKeyDown:",
- category: 'reactions',
- fn: function (anEvent){
- var self=this;
- if(anEvent.ctrlKey) {
- if(anEvent.keyCode === 80) { //ctrl+p
- self._printIt();
- anEvent.preventDefault();
- return false;
- }
- if(anEvent.keyCode === 68) { //ctrl+d
- self._doIt();
- anEvent.preventDefault();
- return false;
- }
- if(anEvent.keyCode === 73) { //ctrl+i
- self._inspectIt();
- anEvent.preventDefault();
- return false;
- }
- };
- ;
- return self},
- args: ["anEvent"],
- source: "onKeyDown: anEvent\x0a\x0a\x09<if(anEvent.ctrlKey) {\x0a\x09\x09if(anEvent.keyCode === 80) { //ctrl+p\x0a\x09\x09\x09self._printIt();\x0a\x09\x09\x09anEvent.preventDefault();\x0a\x09\x09\x09return false;\x0a\x09\x09}\x0a\x09\x09if(anEvent.keyCode === 68) { //ctrl+d\x0a\x09\x09\x09self._doIt();\x0a\x09\x09\x09anEvent.preventDefault();\x0a\x09\x09\x09return false;\x0a\x09\x09}\x0a\x09\x09if(anEvent.keyCode === 73) { //ctrl+i\x0a\x09\x09\x09self._inspectIt();\x0a\x09\x09\x09anEvent.preventDefault();\x0a\x09\x09\x09return false;\x0a\x09\x09}\x0a\x09}>",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_selection",
- smalltalk.method({
- selector: "selection",
- category: 'accessing',
- fn: function (){
- var self=this;
- var $1;
- if(($receiver = self["@selection"]) == nil || $receiver == undefined){
- $1=smalltalk.send(self,"_initializeSelection",[]);
- } else {
- $1=self["@selection"];
- };
- return $1;
- },
- args: [],
- source: "selection\x0a\x0a\x09^ selection ifNil:[self initializeSelection] ",
- messageSends: ["ifNil:", "initializeSelection"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_selection_",
- smalltalk.method({
- selector: "selection:",
- category: 'accessing',
- fn: function (anObject){
- var self=this;
- self["@selection"]=anObject;
- return self},
- args: ["anObject"],
- source: "selection: anObject\x0a\x0a\x09selection := anObject",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_subscribe_",
- smalltalk.method({
- selector: "subscribe:",
- category: 'actions',
- fn: function (aWidget){
- var self=this;
- smalltalk.send(aWidget,"_subscribeTo_",[smalltalk.send(self,"_announcer",[])]);
- return self},
- args: ["aWidget"],
- source: "subscribe: aWidget\x0a\x09aWidget subscribeTo: self announcer",
- messageSends: ["subscribeTo:", "announcer"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_variables",
- smalltalk.method({
- selector: "variables",
- category: 'accessing',
- fn: function (){
- var self=this;
- return self["@variables"];
- },
- args: [],
- source: "variables\x0a\x0a\x09^ variables",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_variables_",
- smalltalk.method({
- selector: "variables:",
- category: 'accessing',
- fn: function (aCollection){
- var self=this;
- self["@variables"]=aCollection;
- return self},
- args: ["aCollection"],
- source: "variables: aCollection\x0a\x0a\x09variables := aCollection\x0a ",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- "_on_",
- smalltalk.method({
- selector: "on:",
- category: 'actions',
- fn: function (anEnvironment){
- var self=this;
- var $2,$3,$1;
- $2=smalltalk.send(self,"_new",[]);
- smalltalk.send($2,"_environment_",[anEnvironment]);
- $3=smalltalk.send($2,"_yourself",[]);
- $1=$3;
- return $1;
- },
- args: ["anEnvironment"],
- source: "on: anEnvironment\x0a\x0a\x09^ self new\x0a \x09environment: anEnvironment;\x0a yourself",
- messageSends: ["environment:", "new", "yourself"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel.klass);
- smalltalk.addClass('HLInspectorVariables', smalltalk.HLNavigationListWidget, ['announcer', 'model', 'list', 'diveButton'], 'Helios-Inspector');
- smalltalk.addMethod(
- "_announcer",
- smalltalk.method({
- selector: "announcer",
- category: 'accessing',
- fn: function (){
- var self=this;
- var $1;
- if(($receiver = self["@announcer"]) == nil || $receiver == undefined){
- $1=smalltalk.send(self,"_initializeAnnouncer",[]);
- } else {
- $1=self["@announcer"];
- };
- return $1;
- },
- args: [],
- source: "announcer\x0a\x0a\x09^ announcer ifNil:[self initializeAnnouncer]",
- messageSends: ["ifNil:", "initializeAnnouncer"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariables);
- smalltalk.addMethod(
- "_initializeAnnouncer",
- smalltalk.method({
- selector: "initializeAnnouncer",
- category: 'initialization',
- fn: function (){
- var self=this;
- var $1;
- self["@announcer"]=smalltalk.send((smalltalk.Announcer || Announcer),"_new",[]);
- $1=self["@announcer"];
- return $1;
- },
- args: [],
- source: "initializeAnnouncer\x0a\x0a\x09^ announcer := Announcer new",
- messageSends: ["new"],
- referencedClasses: ["Announcer"]
- }),
- smalltalk.HLInspectorVariables);
- smalltalk.addMethod(
- "_initializeItems",
- smalltalk.method({
- selector: "initializeItems",
- category: 'initialization',
- fn: function (){
- var self=this;
- var $1;
- self["@items"]=smalltalk.send(smalltalk.send(smalltalk.send(self,"_model",[]),"_variables",[]),"_keys",[]);
- $1=self["@items"];
- return $1;
- },
- args: [],
- source: "initializeItems\x0a\x09^ items := self model variables keys",
- messageSends: ["keys", "variables", "model"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariables);
- smalltalk.addMethod(
- "_model",
- smalltalk.method({
- selector: "model",
- category: 'accessing',
- fn: function (){
- var self=this;
- return self["@model"];
- },
- args: [],
- source: "model\x0a\x09\x0a ^ model\x0a ",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariables);
- smalltalk.addMethod(
- "_model_",
- smalltalk.method({
- selector: "model:",
- category: 'accessing',
- fn: function (aModel){
- var self=this;
- self["@model"]=aModel;
- return self},
- args: ["aModel"],
- source: "model: aModel\x0a\x09\x0a model := aModel\x0a ",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariables);
- smalltalk.addMethod(
- "_refresh",
- smalltalk.method({
- selector: "refresh",
- category: 'actions',
- fn: function (){
- var self=this;
- smalltalk.send(self,"_resetItems",[]);
- smalltalk.send(self,"_refresh",[],smalltalk.HLNavigationListWidget);
- return self},
- args: [],
- source: "refresh\x0a\x0a\x09self resetItems.\x0a \x0a super refresh\x0a ",
- messageSends: ["resetItems", "refresh"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariables);
- smalltalk.addMethod(
- "_renderButtonsOn_",
- smalltalk.method({
- selector: "renderButtonsOn:",
- category: 'rendering',
- fn: function (html){
- var self=this;
- var $1,$2,$3,$4;
- $1=smalltalk.send(html,"_button",[]);
- smalltalk.send($1,"_class_",["btn"]);
- smalltalk.send($1,"_with_",["Refresh"]);
- $2=smalltalk.send($1,"_onClick_",[(function(){
- return smalltalk.send(smalltalk.send(self,"_announcer",[]),"_announce_",[smalltalk.send((smalltalk.HLRefreshRequested || HLRefreshRequested),"_new",[])]);
- })]);
- $3=smalltalk.send(html,"_button",[]);
- smalltalk.send($3,"_class_",["btn"]);
- smalltalk.send($3,"_with_",["Dive"]);
- $4=smalltalk.send($3,"_onClick_",[(function(){
- return smalltalk.send(smalltalk.send(self,"_announcer",[]),"_announce_",[smalltalk.send((smalltalk.HLDiveRequested || HLDiveRequested),"_new",[])]);
- })]);
- self["@diveButton"]=$4;
- return self},
- args: ["html"],
- source: "renderButtonsOn: html\x0a\x0a\x09html button\x0a\x09\x09\x09class: 'btn';\x0a\x09\x09\x09with: 'Refresh';\x0a\x09\x09\x09onClick: [self announcer announce: HLRefreshRequested new].\x0a\x0a\x09diveButton := html button \x0a\x09\x09\x09\x09class: 'btn';\x0a\x09\x09\x09\x09with: 'Dive'; \x0a\x09\x09\x09\x09onClick: [self announcer announce: HLDiveRequested new]",
- messageSends: ["class:", "button", "with:", "onClick:", "announce:", "new", "announcer"],
- referencedClasses: ["HLRefreshRequested", "HLDiveRequested"]
- }),
- smalltalk.HLInspectorVariables);
- smalltalk.addMethod(
- "_resetItems",
- smalltalk.method({
- selector: "resetItems",
- category: 'actions',
- fn: function (){
- var self=this;
- self["@items"]=nil;
- return self},
- args: [],
- source: "resetItems\x0a\x0a\x09items := nil",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariables);
- smalltalk.addMethod(
- "_selection",
- smalltalk.method({
- selector: "selection",
- category: 'accessing',
- fn: function (){
- var self=this;
- var $1;
- $1=smalltalk.send(self["@model"],"_selection",[]);
- return $1;
- },
- args: [],
- source: "selection\x0a\x0a\x09^ model selection",
- messageSends: ["selection"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariables);
- smalltalk.addMethod(
- "_variables",
- smalltalk.method({
- selector: "variables",
- category: 'accessing',
- fn: function (){
- var self=this;
- var $1;
- $1=smalltalk.send(self["@model"],"_variables",[]);
- return $1;
- },
- args: [],
- source: "variables\x0a\x0a\x09^ model variables",
- messageSends: ["variables"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariables);
|