1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432 |
- define("amber/Helios-Inspector", ["amber_vm/smalltalk","amber_vm/nil","amber_vm/_st"], function(smalltalk,nil,_st){
- smalltalk.addPackage('Helios-Inspector');
- smalltalk.addClass('HLInspectorDisplayWidget', smalltalk.HLNavigationListWidget, ['model'], 'Helios-Inspector');
- smalltalk.addMethod(
- smalltalk.method({
- selector: "model",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $1;
- $1=self["@model"];
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLInspectorDisplayWidget)})},
- args: [],
- source: "model\x0a\x0a\x09^ model",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorDisplayWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "model:",
- category: 'accessing',
- fn: function (aModel){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- self["@model"]=aModel;
- return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLInspectorDisplayWidget)})},
- args: ["aModel"],
- source: "model: aModel\x0a\x0a\x09model := aModel",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorDisplayWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "renderContentOn:",
- category: 'rendering',
- fn: function (html){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- _st(_st(html)._div())._with_(self._selectionDisplayString());
- return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLInspectorDisplayWidget)})},
- args: ["html"],
- source: "renderContentOn: html\x0a\x09\x0a html div with: self selectionDisplayString\x0a ",
- messageSends: ["with:", "selectionDisplayString", "div"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorDisplayWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "selectionDisplayString",
- category: 'rendering',
- fn: function (){
- var self=this;
- var selection;
- return smalltalk.withContext(function($ctx1) {
- var $2,$1;
- selection=_st(self["@model"])._selection();
- $2=_st(_st(_st(self["@model"])._variables())._keys())._includes_(selection);
- if(smalltalk.assert($2)){
- $1=_st(_st(self["@model"])._instVarObjectAt_(selection))._printString();
- } else {
- $1="";
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"selectionDisplayString",{selection:selection},smalltalk.HLInspectorDisplayWidget)})},
- args: [],
- source: "selectionDisplayString\x0a\x09|selection|\x0a\x09selection := model selection.\x0a ^ (model variables keys includes: selection)\x0a \x09ifTrue:[(model instVarObjectAt: selection) printString]\x0a \x09ifFalse:['']",
- messageSends: ["selection", "ifTrue:ifFalse:", "printString", "instVarObjectAt:", "includes:", "keys", "variables"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorDisplayWidget);
- smalltalk.addClass('HLInspectorModel', smalltalk.Object, ['announcer', 'environment', 'inspectee', 'code', 'variables', 'label', 'selection'], 'Helios-Inspector');
- smalltalk.addMethod(
- smalltalk.method({
- selector: "announcer",
- category: 'accessing',
- fn: function (){
- var self=this;
- function $Announcer(){return smalltalk.Announcer||(typeof Announcer=="undefined"?nil:Announcer)}
- return smalltalk.withContext(function($ctx1) {
- var $2,$1;
- $2=self["@announcer"];
- if(($receiver = $2) == nil || $receiver == undefined){
- self["@announcer"]=_st($Announcer())._new();
- $1=self["@announcer"];
- } else {
- $1=$2;
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"announcer",{},smalltalk.HLInspectorModel)})},
- args: [],
- source: "announcer\x0a\x09^ announcer ifNil: [announcer := Announcer new ]",
- messageSends: ["ifNil:", "new"],
- referencedClasses: ["Announcer"]
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "code",
- category: 'accessing',
- fn: function (){
- var self=this;
- function $HLCodeModel(){return smalltalk.HLCodeModel||(typeof HLCodeModel=="undefined"?nil:HLCodeModel)}
- return smalltalk.withContext(function($ctx1) {
- var $2,$1;
- $2=self["@code"];
- if(($receiver = $2) == nil || $receiver == undefined){
- self["@code"]=_st($HLCodeModel())._on_(self._environment());
- $1=self["@code"];
- } else {
- $1=$2;
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"code",{},smalltalk.HLInspectorModel)})},
- args: [],
- source: "code\x0a\x09\x22Answers the code model working for this workspace model\x22\x0a\x09^ code ifNil:[ code := HLCodeModel on: self environment ]",
- messageSends: ["ifNil:", "on:", "environment"],
- referencedClasses: ["HLCodeModel"]
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "environment",
- category: 'accessing',
- fn: function (){
- var self=this;
- function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
- return smalltalk.withContext(function($ctx1) {
- var $2,$1;
- $2=self["@environment"];
- if(($receiver = $2) == nil || $receiver == undefined){
- $1=_st(_st($HLManager())._current())._environment();
- } else {
- $1=$2;
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"environment",{},smalltalk.HLInspectorModel)})},
- args: [],
- source: "environment\x0a\x09^ environment ifNil: [ HLManager current environment ]",
- messageSends: ["ifNil:", "environment", "current"],
- referencedClasses: ["HLManager"]
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "environment:",
- category: 'accessing',
- fn: function (anEnvironment){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- self["@environment"]=anEnvironment;
- return self}, function($ctx1) {$ctx1.fill(self,"environment:",{anEnvironment:anEnvironment},smalltalk.HLInspectorModel)})},
- args: ["anEnvironment"],
- source: "environment: anEnvironment\x0a\x09environment := anEnvironment",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "inspect:on:",
- category: 'actions',
- fn: function (anObject,anInspector){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- self["@inspectee"]=anObject;
- self["@variables"]=[];
- _st(self["@inspectee"])._inspectOn_(anInspector);
- return self}, function($ctx1) {$ctx1.fill(self,"inspect:on:",{anObject:anObject,anInspector:anInspector},smalltalk.HLInspectorModel)})},
- args: ["anObject", "anInspector"],
- source: "inspect: anObject on: anInspector\x0a\x09inspectee := anObject.\x0a\x09variables := #().\x0a\x09inspectee inspectOn: anInspector ",
- messageSends: ["inspectOn:"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "inspectee",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $1;
- $1=self["@inspectee"];
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"inspectee",{},smalltalk.HLInspectorModel)})},
- args: [],
- source: "inspectee \x0a\x09^ inspectee ",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "inspectee:",
- category: 'accessing',
- fn: function (anObject){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- self["@inspectee"]=anObject;
- return self}, function($ctx1) {$ctx1.fill(self,"inspectee:",{anObject:anObject},smalltalk.HLInspectorModel)})},
- args: ["anObject"],
- source: "inspectee: anObject \x0a\x09inspectee := anObject\x0a ",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "instVarObjectAt:",
- category: 'actions',
- fn: function (anInstVarName){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $1;
- $1=_st(self._variables())._at_(anInstVarName);
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"instVarObjectAt:",{anInstVarName:anInstVarName},smalltalk.HLInspectorModel)})},
- args: ["anInstVarName"],
- source: "instVarObjectAt: anInstVarName\x0a\x09^ self variables at: anInstVarName",
- messageSends: ["at:", "variables"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "label",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $2,$1;
- $2=self["@label"];
- if(($receiver = $2) == nil || $receiver == undefined){
- $1=_st(self._inspectee())._printString();
- } else {
- $1=$2;
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLInspectorModel)})},
- args: [],
- source: "label\x0a ^ label ifNil: [ self inspectee printString ]",
- messageSends: ["ifNil:", "printString", "inspectee"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "label:",
- category: 'accessing',
- fn: function (aString){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- self["@label"]=aString;
- return self}, function($ctx1) {$ctx1.fill(self,"label:",{aString:aString},smalltalk.HLInspectorModel)})},
- args: ["aString"],
- source: "label: aString\x0a label := aString",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "onKeyDown:",
- category: 'reactions',
- fn: function (anEvent){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- 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}, function($ctx1) {$ctx1.fill(self,"onKeyDown:",{anEvent:anEvent},smalltalk.HLInspectorModel)})},
- 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(
- smalltalk.method({
- selector: "selectedInstVar:",
- category: 'actions',
- fn: function (anInstVarName){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- self._selection_(anInstVarName);
- return self}, function($ctx1) {$ctx1.fill(self,"selectedInstVar:",{anInstVarName:anInstVarName},smalltalk.HLInspectorModel)})},
- args: ["anInstVarName"],
- source: "selectedInstVar: anInstVarName\x0a self selection: anInstVarName",
- messageSends: ["selection:"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "selectedInstVarObject",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $1;
- $1=self._instVarObjectAt_(self._selection());
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"selectedInstVarObject",{},smalltalk.HLInspectorModel)})},
- args: [],
- source: "selectedInstVarObject\x0a\x09^ self instVarObjectAt: self selection\x0a ",
- messageSends: ["instVarObjectAt:", "selection"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "selection",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $2,$1;
- $2=self["@selection"];
- if(($receiver = $2) == nil || $receiver == undefined){
- $1="";
- } else {
- $1=$2;
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"selection",{},smalltalk.HLInspectorModel)})},
- args: [],
- source: "selection\x0a\x09^ selection ifNil:[ '' ] ",
- messageSends: ["ifNil:"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "selection:",
- category: 'accessing',
- fn: function (anObject){
- var self=this;
- function $HLInstanceVariableSelected(){return smalltalk.HLInstanceVariableSelected||(typeof HLInstanceVariableSelected=="undefined"?nil:HLInstanceVariableSelected)}
- return smalltalk.withContext(function($ctx1) {
- self["@selection"]=anObject;
- _st(self._announcer())._announce_(_st($HLInstanceVariableSelected())._on_(self["@selection"]));
- return self}, function($ctx1) {$ctx1.fill(self,"selection:",{anObject:anObject},smalltalk.HLInspectorModel)})},
- args: ["anObject"],
- source: "selection: anObject\x0a\x09selection := anObject.\x0a\x0a\x09self announcer announce: (HLInstanceVariableSelected on: selection)\x0a ",
- messageSends: ["announce:", "on:", "announcer"],
- referencedClasses: ["HLInstanceVariableSelected"]
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "subscribe:",
- category: 'actions',
- fn: function (aWidget){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- _st(aWidget)._subscribeTo_(self._announcer());
- return self}, function($ctx1) {$ctx1.fill(self,"subscribe:",{aWidget:aWidget},smalltalk.HLInspectorModel)})},
- args: ["aWidget"],
- source: "subscribe: aWidget\x0a\x09aWidget subscribeTo: self announcer",
- messageSends: ["subscribeTo:", "announcer"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "variables",
- category: 'accessing',
- fn: function (){
- var self=this;
- function $Dictionary(){return smalltalk.Dictionary||(typeof Dictionary=="undefined"?nil:Dictionary)}
- return smalltalk.withContext(function($ctx1) {
- var $2,$1;
- $2=self["@variables"];
- if(($receiver = $2) == nil || $receiver == undefined){
- $1=_st($Dictionary())._new();
- } else {
- $1=$2;
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"variables",{},smalltalk.HLInspectorModel)})},
- args: [],
- source: "variables\x0a\x09^ variables ifNil: [ Dictionary new ]",
- messageSends: ["ifNil:", "new"],
- referencedClasses: ["Dictionary"]
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "variables:",
- category: 'accessing',
- fn: function (aCollection){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- self["@variables"]=aCollection;
- return self}, function($ctx1) {$ctx1.fill(self,"variables:",{aCollection:aCollection},smalltalk.HLInspectorModel)})},
- args: ["aCollection"],
- source: "variables: aCollection\x0a\x09variables := aCollection\x0a ",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorModel);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "on:",
- category: 'actions',
- fn: function (anEnvironment){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $2,$3,$1;
- $2=self._new();
- _st($2)._environment_(anEnvironment);
- $3=_st($2)._yourself();
- $1=$3;
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"on:",{anEnvironment:anEnvironment},smalltalk.HLInspectorModel.klass)})},
- 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('HLInspectorVariablesWidget', smalltalk.HLNavigationListWidget, ['announcer', 'model', 'list', 'diveButton'], 'Helios-Inspector');
- smalltalk.addMethod(
- smalltalk.method({
- selector: "announcer",
- category: 'accessing',
- fn: function (){
- var self=this;
- function $Announcer(){return smalltalk.Announcer||(typeof Announcer=="undefined"?nil:Announcer)}
- return smalltalk.withContext(function($ctx1) {
- var $2,$1;
- $2=self["@announcer"];
- if(($receiver = $2) == nil || $receiver == undefined){
- self["@announcer"]=_st($Announcer())._new();
- $1=self["@announcer"];
- } else {
- $1=$2;
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"announcer",{},smalltalk.HLInspectorVariablesWidget)})},
- args: [],
- source: "announcer\x0a\x09^ announcer ifNil:[ announcer := Announcer new ]",
- messageSends: ["ifNil:", "new"],
- referencedClasses: ["Announcer"]
- }),
- smalltalk.HLInspectorVariablesWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "defaultItems",
- category: 'defaults',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $1;
- $1=self._variables();
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"defaultItems",{},smalltalk.HLInspectorVariablesWidget)})},
- args: [],
- source: "defaultItems\x0a\x09^ self variables",
- messageSends: ["variables"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariablesWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "label",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $1;
- $1=_st(self._model())._label();
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLInspectorVariablesWidget)})},
- args: [],
- source: "label\x0a\x09^ self model label",
- messageSends: ["label", "model"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariablesWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "model",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $1;
- $1=self["@model"];
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLInspectorVariablesWidget)})},
- args: [],
- source: "model\x0a ^ model\x0a ",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariablesWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "model:",
- category: 'accessing',
- fn: function (aModel){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- self["@model"]=aModel;
- return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLInspectorVariablesWidget)})},
- args: ["aModel"],
- source: "model: aModel\x0a model := aModel\x0a ",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariablesWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "refresh",
- category: 'actions',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $1;
- $1=_st(self._variables()).__eq(self._items());
- if(! smalltalk.assert($1)){
- self._resetItems();
- smalltalk.HLInspectorVariablesWidget.superclass.fn.prototype._refresh.apply(_st(self), []);
- };
- return self}, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLInspectorVariablesWidget)})},
- args: [],
- source: "refresh\x0a\x09self variables = self items ifFalse: [\x0a\x09\x09self resetItems.\x0a \x09super refresh ]",
- messageSends: ["ifFalse:", "resetItems", "refresh", "=", "items", "variables"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariablesWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "renderButtonsOn:",
- category: 'rendering',
- fn: function (html){
- var self=this;
- function $HLDiveRequested(){return smalltalk.HLDiveRequested||(typeof HLDiveRequested=="undefined"?nil:HLDiveRequested)}
- return smalltalk.withContext(function($ctx1) {
- var $1,$2;
- $1=_st(html)._button();
- _st($1)._class_("btn");
- _st($1)._with_("Dive");
- $2=_st($1)._onClick_((function(){
- return smalltalk.withContext(function($ctx2) {
- return _st(self._announcer())._announce_(_st($HLDiveRequested())._new());
- }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
- self["@diveButton"]=$2;
- return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.HLInspectorVariablesWidget)})},
- args: ["html"],
- source: "renderButtonsOn: html\x0a\x09diveButton := html button \x0a\x09\x09class: 'btn';\x0a\x09\x09with: 'Dive'; \x0a\x09\x09onClick: [ self announcer announce: HLDiveRequested new ]",
- messageSends: ["class:", "button", "with:", "onClick:", "announce:", "new", "announcer"],
- referencedClasses: ["HLDiveRequested"]
- }),
- smalltalk.HLInspectorVariablesWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "renderContentOn:",
- category: 'rendering',
- fn: function (html){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- self._renderHeadOn_(html);
- smalltalk.HLInspectorVariablesWidget.superclass.fn.prototype._renderContentOn_.apply(_st(self), [html]);
- return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLInspectorVariablesWidget)})},
- args: ["html"],
- source: "renderContentOn: html\x0a\x09self renderHeadOn: html.\x0a\x09super renderContentOn: html",
- messageSends: ["renderHeadOn:", "renderContentOn:"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariablesWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "renderHeadOn:",
- category: 'rendering',
- fn: function (html){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $1,$2;
- $1=_st(html)._div();
- _st($1)._class_("list-label");
- $2=_st($1)._with_(self._label());
- return self}, function($ctx1) {$ctx1.fill(self,"renderHeadOn:",{html:html},smalltalk.HLInspectorVariablesWidget)})},
- args: ["html"],
- source: "renderHeadOn: html\x0a\x09html div \x0a\x09\x09class: 'list-label';\x0a\x09\x09with: self label",
- messageSends: ["class:", "div", "with:", "label"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariablesWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "resetItems",
- category: 'actions',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- self["@items"]=nil;
- return self}, function($ctx1) {$ctx1.fill(self,"resetItems",{},smalltalk.HLInspectorVariablesWidget)})},
- args: [],
- source: "resetItems\x0a\x09items := nil",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariablesWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "selectItem:",
- category: 'reactions',
- fn: function (anObject){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- smalltalk.HLInspectorVariablesWidget.superclass.fn.prototype._selectItem_.apply(_st(self), [anObject]);
- _st(self._model())._selectedInstVar_(anObject);
- return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{anObject:anObject},smalltalk.HLInspectorVariablesWidget)})},
- args: ["anObject"],
- source: "selectItem: anObject\x0a\x09super selectItem: anObject.\x0a self model selectedInstVar: anObject",
- messageSends: ["selectItem:", "selectedInstVar:", "model"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariablesWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "selection",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $1;
- $1=_st(self["@model"])._selection();
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"selection",{},smalltalk.HLInspectorVariablesWidget)})},
- args: [],
- source: "selection\x0a\x09^ model selection",
- messageSends: ["selection"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariablesWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "variables",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $1;
- $1=_st(_st(self._model())._variables())._keys();
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"variables",{},smalltalk.HLInspectorVariablesWidget)})},
- args: [],
- source: "variables\x0a\x09^ self model variables keys",
- messageSends: ["keys", "variables", "model"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorVariablesWidget);
- smalltalk.addClass('HLInspectorWidget', smalltalk.HLWidget, ['model', 'variablesWidget', 'displayWidget', 'codeWidget'], 'Helios-Inspector');
- smalltalk.addMethod(
- smalltalk.method({
- selector: "codeWidget",
- category: 'accessing',
- fn: function (){
- var self=this;
- function $HLCodeWidget(){return smalltalk.HLCodeWidget||(typeof HLCodeWidget=="undefined"?nil:HLCodeWidget)}
- return smalltalk.withContext(function($ctx1) {
- var $2,$3,$4,$1;
- $2=self["@codeWidget"];
- if(($receiver = $2) == nil || $receiver == undefined){
- $3=_st($HLCodeWidget())._new();
- _st($3)._model_(_st(self["@model"])._code());
- _st($3)._receiver_(_st(self["@model"])._inspectee());
- $4=_st($3)._yourself();
- self["@codeWidget"]=$4;
- $1=self["@codeWidget"];
- } else {
- $1=$2;
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"codeWidget",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "codeWidget\x0a\x09^ codeWidget ifNil: [\x0a\x09\x09codeWidget := HLCodeWidget new\x0a \x09\x09model: model code;\x0a \x09receiver: model inspectee;\x0a \x09yourself ]",
- messageSends: ["ifNil:", "model:", "code", "new", "receiver:", "inspectee", "yourself"],
- referencedClasses: ["HLCodeWidget"]
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "displayWidget",
- category: 'accessing',
- fn: function (){
- var self=this;
- function $HLInspectorDisplayWidget(){return smalltalk.HLInspectorDisplayWidget||(typeof HLInspectorDisplayWidget=="undefined"?nil:HLInspectorDisplayWidget)}
- return smalltalk.withContext(function($ctx1) {
- var $2,$3,$4,$1;
- $2=self["@displayWidget"];
- if(($receiver = $2) == nil || $receiver == undefined){
- $3=_st($HLInspectorDisplayWidget())._new();
- _st($3)._model_(self._model());
- $4=_st($3)._yourself();
- self["@displayWidget"]=$4;
- $1=self["@displayWidget"];
- } else {
- $1=$2;
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"displayWidget",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "displayWidget\x0a\x09^ displayWidget ifNil: [\x0a\x09\x09displayWidget := HLInspectorDisplayWidget new\x0a \x09\x09model: self model;\x0a \x09yourself ]",
- messageSends: ["ifNil:", "model:", "model", "new", "yourself"],
- referencedClasses: ["HLInspectorDisplayWidget"]
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "initialize",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- smalltalk.HLInspectorWidget.superclass.fn.prototype._initialize.apply(_st(self), []);
- self._register();
- return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "initialize\x0a\x09super initialize.\x0a\x09self register",
- messageSends: ["initialize", "register"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "inspect:",
- category: 'actions',
- fn: function (anObject){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $1,$2;
- _st(self._model())._inspect_on_(anObject,self);
- $1=self;
- _st($1)._refreshVariablesWidget();
- $2=_st($1)._refreshDisplayWidget();
- return self}, function($ctx1) {$ctx1.fill(self,"inspect:",{anObject:anObject},smalltalk.HLInspectorWidget)})},
- args: ["anObject"],
- source: "inspect: anObject\x0a\x09self model inspect: anObject on: self.\x0a \x0a\x09self \x0a \x09refreshVariablesWidget;\x0a\x09\x09refreshDisplayWidget",
- messageSends: ["inspect:on:", "model", "refreshVariablesWidget", "refreshDisplayWidget"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "inspectee",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $1;
- $1=_st(self._model())._inspectee();
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"inspectee",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "inspectee\x0a\x09^ self model inspectee",
- messageSends: ["inspectee", "model"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "inspectee:",
- category: 'accessing',
- fn: function (anObject){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- _st(self._model())._inspectee_(anObject);
- return self}, function($ctx1) {$ctx1.fill(self,"inspectee:",{anObject:anObject},smalltalk.HLInspectorWidget)})},
- args: ["anObject"],
- source: "inspectee: anObject\x0a\x09self model inspectee: anObject",
- messageSends: ["inspectee:", "model"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "label",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $1;
- $1=_st(self._model())._label();
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "label\x0a ^ self model label",
- messageSends: ["label", "model"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "model",
- category: 'accessing',
- fn: function (){
- var self=this;
- function $HLInspectorModel(){return smalltalk.HLInspectorModel||(typeof HLInspectorModel=="undefined"?nil:HLInspectorModel)}
- return smalltalk.withContext(function($ctx1) {
- var $2,$1;
- $2=self["@model"];
- if(($receiver = $2) == nil || $receiver == undefined){
- self._model_(_st($HLInspectorModel())._new());
- $1=self["@model"];
- } else {
- $1=$2;
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "model\x0a\x09^ model ifNil: [ \x0a \x09self model: HLInspectorModel new.\x0a\x09\x09model ]",
- messageSends: ["ifNil:", "model:", "new"],
- referencedClasses: ["HLInspectorModel"]
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "model:",
- category: 'accessing',
- fn: function (aModel){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $1,$2;
- self["@model"]=aModel;
- _st(self._codeWidget())._model_(_st(aModel)._code());
- $1=self;
- _st($1)._observeCodeWidget();
- _st($1)._observeVariablesWidget();
- $2=_st($1)._observeModel();
- return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLInspectorWidget)})},
- args: ["aModel"],
- source: "model: aModel\x0a\x09model := aModel. \x0a self codeWidget model: aModel code.\x0a \x0a self \x0a observeCodeWidget;\x0a \x09observeVariablesWidget;\x0a observeModel",
- messageSends: ["model:", "code", "codeWidget", "observeCodeWidget", "observeVariablesWidget", "observeModel"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "observeCodeWidget",
- category: 'actions',
- fn: function (){
- var self=this;
- function $HLDoItExecuted(){return smalltalk.HLDoItExecuted||(typeof HLDoItExecuted=="undefined"?nil:HLDoItExecuted)}
- return smalltalk.withContext(function($ctx1) {
- _st(_st(self._codeWidget())._announcer())._on_do_($HLDoItExecuted(),(function(){
- return smalltalk.withContext(function($ctx2) {
- return self._onDoneIt();
- }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
- return self}, function($ctx1) {$ctx1.fill(self,"observeCodeWidget",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "observeCodeWidget\x0a\x09self codeWidget announcer \x0a \x09on: HLDoItExecuted \x0a do: [ self onDoneIt ]",
- messageSends: ["on:do:", "onDoneIt", "announcer", "codeWidget"],
- referencedClasses: ["HLDoItExecuted"]
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "observeModel",
- category: 'actions',
- fn: function (){
- var self=this;
- function $HLInstanceVariableSelected(){return smalltalk.HLInstanceVariableSelected||(typeof HLInstanceVariableSelected=="undefined"?nil:HLInstanceVariableSelected)}
- return smalltalk.withContext(function($ctx1) {
- _st(_st(self._model())._announcer())._on_send_to_($HLInstanceVariableSelected(),"onInstanceVariableSelected",self);
- return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "observeModel\x0a\x09self model announcer\x0a on: HLInstanceVariableSelected\x0a\x09\x09send: #onInstanceVariableSelected\x0a\x09\x09to: self",
- messageSends: ["on:send:to:", "announcer", "model"],
- referencedClasses: ["HLInstanceVariableSelected"]
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "observeVariablesWidget",
- category: 'actions',
- fn: function (){
- var self=this;
- function $HLDiveRequested(){return smalltalk.HLDiveRequested||(typeof HLDiveRequested=="undefined"?nil:HLDiveRequested)}
- return smalltalk.withContext(function($ctx1) {
- _st(_st(self._variablesWidget())._announcer())._on_do_($HLDiveRequested(),(function(){
- return smalltalk.withContext(function($ctx2) {
- return self._onDive();
- }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
- return self}, function($ctx1) {$ctx1.fill(self,"observeVariablesWidget",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "observeVariablesWidget\x0a\x09self variablesWidget announcer \x0a on: HLDiveRequested do:[ self onDive ]\x0a ",
- messageSends: ["on:do:", "onDive", "announcer", "variablesWidget"],
- referencedClasses: ["HLDiveRequested"]
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "onDive",
- category: 'reactions',
- fn: function (){
- var self=this;
- function $HLInspector(){return smalltalk.HLInspector||(typeof HLInspector=="undefined"?nil:HLInspector)}
- return smalltalk.withContext(function($ctx1) {
- var $1,$2;
- $1=_st($HLInspector())._new();
- _st($1)._inspect_(_st(self._model())._selectedInstVarObject());
- $2=_st($1)._openAsTab();
- return self}, function($ctx1) {$ctx1.fill(self,"onDive",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "onDive\x0a\x0a\x09HLInspector new \x0a\x09\x09inspect: self model selectedInstVarObject;\x0a\x09\x09openAsTab",
- messageSends: ["inspect:", "selectedInstVarObject", "model", "new", "openAsTab"],
- referencedClasses: ["HLInspector"]
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "onDoneIt",
- category: 'reactions',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- self._refresh();
- return self}, function($ctx1) {$ctx1.fill(self,"onDoneIt",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "onDoneIt\x0a\x0a\x09self refresh",
- messageSends: ["refresh"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "onInspectIt",
- category: 'reactions',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- return self}, function($ctx1) {$ctx1.fill(self,"onInspectIt",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "onInspectIt",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "onInstanceVariableSelected",
- category: 'reactions',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- _st(self._codeWidget())._receiver_(_st(self._model())._selectedInstVarObject());
- self._refreshDisplayWidget();
- return self}, function($ctx1) {$ctx1.fill(self,"onInstanceVariableSelected",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "onInstanceVariableSelected\x0a\x09self codeWidget receiver: self model selectedInstVarObject.\x0a\x09self refreshDisplayWidget",
- messageSends: ["receiver:", "selectedInstVarObject", "model", "codeWidget", "refreshDisplayWidget"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "onPrintIt",
- category: 'reactions',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- return self}, function($ctx1) {$ctx1.fill(self,"onPrintIt",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "onPrintIt",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "refresh",
- category: 'actions',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- self._inspect_(self._inspectee());
- return self}, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "refresh\x0a\x09self inspect: self inspectee",
- messageSends: ["inspect:", "inspectee"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "refreshDisplayWidget",
- category: 'actions',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- _st(self._displayWidget())._refresh();
- return self}, function($ctx1) {$ctx1.fill(self,"refreshDisplayWidget",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "refreshDisplayWidget\x0a\x09self displayWidget refresh",
- messageSends: ["refresh", "displayWidget"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "refreshVariablesWidget",
- category: 'actions',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- _st(self._variablesWidget())._refresh();
- return self}, function($ctx1) {$ctx1.fill(self,"refreshVariablesWidget",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "refreshVariablesWidget\x0a\x09self variablesWidget refresh",
- messageSends: ["refresh", "variablesWidget"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "register",
- category: 'registration',
- fn: function (){
- var self=this;
- function $HLInspector(){return smalltalk.HLInspector||(typeof HLInspector=="undefined"?nil:HLInspector)}
- return smalltalk.withContext(function($ctx1) {
- _st($HLInspector())._register_(self);
- return self}, function($ctx1) {$ctx1.fill(self,"register",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "register\x0a\x09HLInspector register: self",
- messageSends: ["register:"],
- referencedClasses: ["HLInspector"]
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "renderContentOn:",
- category: 'rendering',
- fn: function (html){
- var self=this;
- function $HLVerticalSplitter(){return smalltalk.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
- function $HLHorizontalSplitter(){return smalltalk.HLHorizontalSplitter||(typeof HLHorizontalSplitter=="undefined"?nil:HLHorizontalSplitter)}
- return smalltalk.withContext(function($ctx1) {
- _st(html)._with_(_st($HLHorizontalSplitter())._with_with_(_st($HLVerticalSplitter())._with_with_(self._variablesWidget(),self._displayWidget()),self._codeWidget()));
- return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLInspectorWidget)})},
- args: ["html"],
- source: "renderContentOn: html\x0a \x09html with: (HLHorizontalSplitter\x0a \x09with: (HLVerticalSplitter \x0a with: self variablesWidget\x0a with: self displayWidget)\x0a with: self codeWidget)\x0a ",
- messageSends: ["with:", "with:with:", "variablesWidget", "displayWidget", "codeWidget"],
- referencedClasses: ["HLVerticalSplitter", "HLHorizontalSplitter"]
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "setLabel:",
- category: 'actions',
- fn: function (aString){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- _st(self._model())._label_(aString);
- return self}, function($ctx1) {$ctx1.fill(self,"setLabel:",{aString:aString},smalltalk.HLInspectorWidget)})},
- args: ["aString"],
- source: "setLabel: aString\x0a\x09self model label: aString",
- messageSends: ["label:", "model"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "setVariables:",
- category: 'actions',
- fn: function (aDictionary){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- _st(self._model())._variables_(aDictionary);
- return self}, function($ctx1) {$ctx1.fill(self,"setVariables:",{aDictionary:aDictionary},smalltalk.HLInspectorWidget)})},
- args: ["aDictionary"],
- source: "setVariables: aDictionary\x0a\x09self model variables: aDictionary",
- messageSends: ["variables:", "model"],
- referencedClasses: []
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "tabLabel",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- return "Inspector";
- }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "tabLabel\x0a ^ 'Inspector'",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "unregister",
- category: 'registration',
- fn: function (){
- var self=this;
- function $HLInspector(){return smalltalk.HLInspector||(typeof HLInspector=="undefined"?nil:HLInspector)}
- return smalltalk.withContext(function($ctx1) {
- smalltalk.HLInspectorWidget.superclass.fn.prototype._unregister.apply(_st(self), []);
- _st($HLInspector())._unregister_(self);
- return self}, function($ctx1) {$ctx1.fill(self,"unregister",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "unregister\x0a\x09super unregister.\x0a\x09HLInspector unregister: self",
- messageSends: ["unregister", "unregister:"],
- referencedClasses: ["HLInspector"]
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "variablesWidget",
- category: 'accessing',
- fn: function (){
- var self=this;
- function $HLInspectorVariablesWidget(){return smalltalk.HLInspectorVariablesWidget||(typeof HLInspectorVariablesWidget=="undefined"?nil:HLInspectorVariablesWidget)}
- return smalltalk.withContext(function($ctx1) {
- var $2,$3,$4,$1;
- $2=self["@variablesWidget"];
- if(($receiver = $2) == nil || $receiver == undefined){
- $3=_st($HLInspectorVariablesWidget())._new();
- _st($3)._model_(self._model());
- $4=_st($3)._yourself();
- self["@variablesWidget"]=$4;
- $1=self["@variablesWidget"];
- } else {
- $1=$2;
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"variablesWidget",{},smalltalk.HLInspectorWidget)})},
- args: [],
- source: "variablesWidget\x0a\x09^ variablesWidget ifNil: [\x0a\x09\x09variablesWidget := HLInspectorVariablesWidget new\x0a \x09\x09model: self model;\x0a \x09yourself ]",
- messageSends: ["ifNil:", "model:", "model", "new", "yourself"],
- referencedClasses: ["HLInspectorVariablesWidget"]
- }),
- smalltalk.HLInspectorWidget);
- smalltalk.addClass('HLInspector', smalltalk.HLInspectorWidget, [], 'Helios-Inspector');
- smalltalk.addMethod(
- smalltalk.method({
- selector: "renderContentOn:",
- category: 'rendering',
- fn: function (html){
- var self=this;
- function $HLVerticalSplitter(){return smalltalk.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
- function $HLHorizontalSplitter(){return smalltalk.HLHorizontalSplitter||(typeof HLHorizontalSplitter=="undefined"?nil:HLHorizontalSplitter)}
- function $HLContainer(){return smalltalk.HLContainer||(typeof HLContainer=="undefined"?nil:HLContainer)}
- return smalltalk.withContext(function($ctx1) {
- _st(html)._with_(_st($HLContainer())._with_(_st($HLHorizontalSplitter())._with_with_(_st($HLVerticalSplitter())._with_with_(self._variablesWidget(),self._displayWidget()),self._codeWidget())));
- _st(self._variablesWidget())._focus();
- return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLInspector)})},
- args: ["html"],
- source: "renderContentOn: html\x0a \x09html with: (HLContainer with: (HLHorizontalSplitter\x0a \x09with: (HLVerticalSplitter \x0a with: self variablesWidget\x0a with: self displayWidget)\x0a with: self codeWidget)).\x0a\x09\x0a\x09self variablesWidget focus",
- messageSends: ["with:", "with:with:", "variablesWidget", "displayWidget", "codeWidget", "focus"],
- referencedClasses: ["HLVerticalSplitter", "HLHorizontalSplitter", "HLContainer"]
- }),
- smalltalk.HLInspector);
- smalltalk.HLInspector.klass.iVarNames = ['inspectors'];
- smalltalk.addMethod(
- smalltalk.method({
- selector: "canBeOpenAsTab",
- category: 'testing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- return false;
- }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLInspector.klass)})},
- args: [],
- source: "canBeOpenAsTab\x0a\x09^ false",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspector.klass);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "initialize",
- category: 'initialization',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- smalltalk.HLInspector.klass.superclass.fn.prototype._initialize.apply(_st(self), []);
- self._watchChanges();
- return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLInspector.klass)})},
- args: [],
- source: "initialize\x0a\x09super initialize.\x0a\x09self watchChanges",
- messageSends: ["initialize", "watchChanges"],
- referencedClasses: []
- }),
- smalltalk.HLInspector.klass);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "inspect:",
- category: 'actions',
- fn: function (anObject){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- var $1,$2;
- $1=self._new();
- _st($1)._inspect_(anObject);
- $2=_st($1)._openAsTab();
- return self}, function($ctx1) {$ctx1.fill(self,"inspect:",{anObject:anObject},smalltalk.HLInspector.klass)})},
- args: ["anObject"],
- source: "inspect: anObject\x0a\x09self new\x0a\x09\x09inspect: anObject;\x0a\x09\x09openAsTab",
- messageSends: ["inspect:", "new", "openAsTab"],
- referencedClasses: []
- }),
- smalltalk.HLInspector.klass);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "inspectors",
- category: 'accessing',
- fn: function (){
- var self=this;
- function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
- return smalltalk.withContext(function($ctx1) {
- var $2,$1;
- $2=self["@inspectors"];
- if(($receiver = $2) == nil || $receiver == undefined){
- self["@inspectors"]=_st($OrderedCollection())._new();
- $1=self["@inspectors"];
- } else {
- $1=$2;
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"inspectors",{},smalltalk.HLInspector.klass)})},
- args: [],
- source: "inspectors\x0a\x09^ inspectors ifNil: [ inspectors := OrderedCollection new ]",
- messageSends: ["ifNil:", "new"],
- referencedClasses: ["OrderedCollection"]
- }),
- smalltalk.HLInspector.klass);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "register:",
- category: 'registration',
- fn: function (anInspector){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- _st(self._inspectors())._add_(anInspector);
- return self}, function($ctx1) {$ctx1.fill(self,"register:",{anInspector:anInspector},smalltalk.HLInspector.klass)})},
- args: ["anInspector"],
- source: "register: anInspector\x0a\x09self inspectors add: anInspector",
- messageSends: ["add:", "inspectors"],
- referencedClasses: []
- }),
- smalltalk.HLInspector.klass);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "tabClass",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- return "inspector";
- }, function($ctx1) {$ctx1.fill(self,"tabClass",{},smalltalk.HLInspector.klass)})},
- args: [],
- source: "tabClass\x0a\x09^ 'inspector'",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspector.klass);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "tabLabel",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- return "Inspector";
- }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLInspector.klass)})},
- args: [],
- source: "tabLabel\x0a\x09^ 'Inspector'",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspector.klass);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "tabPriority",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- return (10);
- }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLInspector.klass)})},
- args: [],
- source: "tabPriority\x0a\x09^ 10",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HLInspector.klass);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "unregister:",
- category: 'registration',
- fn: function (anInspector){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- _st(self._inspectors())._remove_(anInspector);
- return self}, function($ctx1) {$ctx1.fill(self,"unregister:",{anInspector:anInspector},smalltalk.HLInspector.klass)})},
- args: ["anInspector"],
- source: "unregister: anInspector\x0a\x09self inspectors remove: anInspector",
- messageSends: ["remove:", "inspectors"],
- referencedClasses: []
- }),
- smalltalk.HLInspector.klass);
- smalltalk.addMethod(
- smalltalk.method({
- selector: "watchChanges",
- category: 'initialization',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
- _st((function(){
- return smalltalk.withContext(function($ctx2) {
- return _st(self._inspectors())._do_((function(each){
- return smalltalk.withContext(function($ctx3) {
- return _st(each)._refresh();
- }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx2)})}));
- }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._valueWithInterval_((500));
- return self}, function($ctx1) {$ctx1.fill(self,"watchChanges",{},smalltalk.HLInspector.klass)})},
- args: [],
- source: "watchChanges\x0a\x09[ self inspectors do: [ :each | each refresh ] ]\x0a\x09\x09valueWithInterval: 500",
- messageSends: ["valueWithInterval:", "do:", "refresh", "inspectors"],
- referencedClasses: []
- }),
- smalltalk.HLInspector.klass);
- });
|