Helios-Inspector.js 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150
  1. smalltalk.addPackage('Helios-Inspector');
  2. smalltalk.addClass('HLInspector', smalltalk.HLWidget, ['model', 'variablesWidget', 'displayWidget', 'codeWidget', 'label'], 'Helios-Inspector');
  3. smalltalk.addMethod(
  4. "_codeWidget",
  5. smalltalk.method({
  6. selector: "codeWidget",
  7. category: 'accessing',
  8. fn: function (){
  9. var self=this;
  10. return smalltalk.withContext(function($ctx1) { var $2,$3,$4,$1;
  11. $2=self["@codeWidget"];
  12. if(($receiver = $2) == nil || $receiver == undefined){
  13. $3=_st((smalltalk.HLCodeWidget || HLCodeWidget))._new();
  14. _st($3)._model_(_st(self["@model"])._code());
  15. _st($3)._receiver_(_st(self["@model"])._inspectee());
  16. $4=_st($3)._yourself();
  17. self["@codeWidget"]=$4;
  18. $1=self["@codeWidget"];
  19. } else {
  20. $1=$2;
  21. };
  22. return $1;
  23. }, function($ctx1) {$ctx1.fill(self,"codeWidget",{}, smalltalk.HLInspector)})},
  24. args: [],
  25. source: "codeWidget\x0a\x09^ codeWidget ifNil: [\x0a\x09\x09codeWidget := HLCodeWidget new\x0a \x09\x09model: model code;\x0a \x09receiver: model inspectee;\x0a \x09yourself ]",
  26. messageSends: ["ifNil:", "model:", "code", "new", "receiver:", "inspectee", "yourself"],
  27. referencedClasses: ["HLCodeWidget"]
  28. }),
  29. smalltalk.HLInspector);
  30. smalltalk.addMethod(
  31. "_displayWidget",
  32. smalltalk.method({
  33. selector: "displayWidget",
  34. category: 'accessing',
  35. fn: function (){
  36. var self=this;
  37. return smalltalk.withContext(function($ctx1) { var $2,$3,$4,$1;
  38. $2=self["@displayWidget"];
  39. if(($receiver = $2) == nil || $receiver == undefined){
  40. $3=_st((smalltalk.HLInspectorDisplayWidget || HLInspectorDisplayWidget))._new();
  41. _st($3)._model_(_st(self)._model());
  42. $4=_st($3)._yourself();
  43. self["@displayWidget"]=$4;
  44. $1=self["@displayWidget"];
  45. } else {
  46. $1=$2;
  47. };
  48. return $1;
  49. }, function($ctx1) {$ctx1.fill(self,"displayWidget",{}, smalltalk.HLInspector)})},
  50. args: [],
  51. source: "displayWidget\x0a\x09^ displayWidget ifNil: [\x0a\x09\x09displayWidget := HLInspectorDisplayWidget new\x0a \x09\x09model: self model;\x0a \x09yourself ]",
  52. messageSends: ["ifNil:", "model:", "model", "new", "yourself"],
  53. referencedClasses: ["HLInspectorDisplayWidget"]
  54. }),
  55. smalltalk.HLInspector);
  56. smalltalk.addMethod(
  57. "_inspect_",
  58. smalltalk.method({
  59. selector: "inspect:",
  60. category: 'actions',
  61. fn: function (anObject){
  62. var self=this;
  63. return smalltalk.withContext(function($ctx1) { var $1,$2;
  64. _st(_st(self)._model())._inspect_on_(anObject,self);
  65. $1=self;
  66. _st($1)._refreshVariablesWidget();
  67. $2=_st($1)._refreshDisplayWidget();
  68. return self}, function($ctx1) {$ctx1.fill(self,"inspect:",{anObject:anObject}, smalltalk.HLInspector)})},
  69. args: ["anObject"],
  70. source: "inspect: anObject\x0a\x09self model inspect: anObject on: self.\x0a \x0a\x09self \x0a \x09refreshVariablesWidget;\x0a\x09\x09refreshDisplayWidget",
  71. messageSends: ["inspect:on:", "model", "refreshVariablesWidget", "refreshDisplayWidget"],
  72. referencedClasses: []
  73. }),
  74. smalltalk.HLInspector);
  75. smalltalk.addMethod(
  76. "_inspectee",
  77. smalltalk.method({
  78. selector: "inspectee",
  79. category: 'accessing',
  80. fn: function (){
  81. var self=this;
  82. return smalltalk.withContext(function($ctx1) { var $1;
  83. $1=_st(_st(self)._model())._inspectee();
  84. return $1;
  85. }, function($ctx1) {$ctx1.fill(self,"inspectee",{}, smalltalk.HLInspector)})},
  86. args: [],
  87. source: "inspectee\x0a\x09^ self model inspectee",
  88. messageSends: ["inspectee", "model"],
  89. referencedClasses: []
  90. }),
  91. smalltalk.HLInspector);
  92. smalltalk.addMethod(
  93. "_inspectee_",
  94. smalltalk.method({
  95. selector: "inspectee:",
  96. category: 'accessing',
  97. fn: function (anObject){
  98. var self=this;
  99. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._inspectee_(anObject);
  100. return self}, function($ctx1) {$ctx1.fill(self,"inspectee:",{anObject:anObject}, smalltalk.HLInspector)})},
  101. args: ["anObject"],
  102. source: "inspectee: anObject\x0a\x09self model inspectee: anObject",
  103. messageSends: ["inspectee:", "model"],
  104. referencedClasses: []
  105. }),
  106. smalltalk.HLInspector);
  107. smalltalk.addMethod(
  108. "_label",
  109. smalltalk.method({
  110. selector: "label",
  111. category: 'accessing',
  112. fn: function (){
  113. var self=this;
  114. return smalltalk.withContext(function($ctx1) { var $2,$1;
  115. $2=self["@label"];
  116. if(($receiver = $2) == nil || $receiver == undefined){
  117. $1=_st(_st(self["@model"])._inspectee())._printString();
  118. } else {
  119. $1=$2;
  120. };
  121. return $1;
  122. }, function($ctx1) {$ctx1.fill(self,"label",{}, smalltalk.HLInspector)})},
  123. args: [],
  124. source: "label\x0a ^ label ifNil: [ model inspectee printString ]",
  125. messageSends: ["ifNil:", "printString", "inspectee"],
  126. referencedClasses: []
  127. }),
  128. smalltalk.HLInspector);
  129. smalltalk.addMethod(
  130. "_model",
  131. smalltalk.method({
  132. selector: "model",
  133. category: 'accessing',
  134. fn: function (){
  135. var self=this;
  136. return smalltalk.withContext(function($ctx1) { var $2,$1;
  137. $2=self["@model"];
  138. if(($receiver = $2) == nil || $receiver == undefined){
  139. _st(self)._model_(_st((smalltalk.HLInspectorModel || HLInspectorModel))._new());
  140. $1=self["@model"];
  141. } else {
  142. $1=$2;
  143. };
  144. return $1;
  145. }, function($ctx1) {$ctx1.fill(self,"model",{}, smalltalk.HLInspector)})},
  146. args: [],
  147. source: "model\x0a\x09^ model ifNil: [ \x0a \x09self model: HLInspectorModel new.\x0a\x09\x09model ]",
  148. messageSends: ["ifNil:", "model:", "new"],
  149. referencedClasses: ["HLInspectorModel"]
  150. }),
  151. smalltalk.HLInspector);
  152. smalltalk.addMethod(
  153. "_model_",
  154. smalltalk.method({
  155. selector: "model:",
  156. category: 'accessing',
  157. fn: function (aModel){
  158. var self=this;
  159. return smalltalk.withContext(function($ctx1) { var $1,$2;
  160. self["@model"]=aModel;
  161. _st(_st(self)._codeWidget())._model_(_st(aModel)._code());
  162. $1=self;
  163. _st($1)._observeCodeWidget();
  164. _st($1)._observeVariablesWidget();
  165. $2=_st($1)._observeModel();
  166. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel}, smalltalk.HLInspector)})},
  167. args: ["aModel"],
  168. source: "model: aModel\x0a\x09model := aModel. \x0a self codeWidget model: aModel code.\x0a \x0a self \x0a observeCodeWidget;\x0a \x09observeVariablesWidget;\x0a observeModel",
  169. messageSends: ["model:", "code", "codeWidget", "observeCodeWidget", "observeVariablesWidget", "observeModel"],
  170. referencedClasses: []
  171. }),
  172. smalltalk.HLInspector);
  173. smalltalk.addMethod(
  174. "_observeCodeWidget",
  175. smalltalk.method({
  176. selector: "observeCodeWidget",
  177. category: 'actions',
  178. fn: function (){
  179. var self=this;
  180. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._codeWidget())._announcer())._on_do_((smalltalk.HLDoItExecuted || HLDoItExecuted),(function(){
  181. return smalltalk.withContext(function($ctx2) { return _st(self)._onDoneIt();
  182. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  183. return self}, function($ctx1) {$ctx1.fill(self,"observeCodeWidget",{}, smalltalk.HLInspector)})},
  184. args: [],
  185. source: "observeCodeWidget\x0a\x09self codeWidget announcer \x0a \x09on: HLDoItExecuted \x0a do: [ self onDoneIt ]\x0a",
  186. messageSends: ["on:do:", "onDoneIt", "announcer", "codeWidget"],
  187. referencedClasses: ["HLDoItExecuted"]
  188. }),
  189. smalltalk.HLInspector);
  190. smalltalk.addMethod(
  191. "_observeModel",
  192. smalltalk.method({
  193. selector: "observeModel",
  194. category: 'actions',
  195. fn: function (){
  196. var self=this;
  197. return smalltalk.withContext(function($ctx1) { _st(_st(_st(self)._model())._announcer())._on_do_((smalltalk.HLInstanceVariableSelected || HLInstanceVariableSelected),(function(ann){
  198. return smalltalk.withContext(function($ctx2) { return _st(self)._onInstanceVariableSelected();
  199. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  200. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{}, smalltalk.HLInspector)})},
  201. args: [],
  202. source: "observeModel\x0a\x09self model announcer\x0a on: HLInstanceVariableSelected do: [ :ann | self onInstanceVariableSelected ]",
  203. messageSends: ["on:do:", "onInstanceVariableSelected", "announcer", "model"],
  204. referencedClasses: ["HLInstanceVariableSelected"]
  205. }),
  206. smalltalk.HLInspector);
  207. smalltalk.addMethod(
  208. "_observeVariablesWidget",
  209. smalltalk.method({
  210. selector: "observeVariablesWidget",
  211. category: 'actions',
  212. fn: function (){
  213. var self=this;
  214. return smalltalk.withContext(function($ctx1) { var $1,$2;
  215. $1=_st(_st(self)._variablesWidget())._announcer();
  216. _st($1)._on_do_((smalltalk.HLRefreshRequested || HLRefreshRequested),(function(ann){
  217. return smalltalk.withContext(function($ctx2) { return _st(self)._onRefresh();
  218. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  219. $2=_st($1)._on_do_((smalltalk.HLDiveRequested || HLDiveRequested),(function(){
  220. return smalltalk.withContext(function($ctx2) { return _st(self)._onDive();
  221. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  222. return self}, function($ctx1) {$ctx1.fill(self,"observeVariablesWidget",{}, smalltalk.HLInspector)})},
  223. args: [],
  224. source: "observeVariablesWidget\x0a\x09self variablesWidget announcer \x0a \x09on: HLRefreshRequested do: [ :ann | self onRefresh ];\x0a on: HLDiveRequested do:[ self onDive ]\x0a ",
  225. messageSends: ["on:do:", "onRefresh", "announcer", "variablesWidget", "onDive"],
  226. referencedClasses: ["HLRefreshRequested", "HLDiveRequested"]
  227. }),
  228. smalltalk.HLInspector);
  229. smalltalk.addMethod(
  230. "_onDive",
  231. smalltalk.method({
  232. selector: "onDive",
  233. category: 'reactions',
  234. fn: function (){
  235. var self=this;
  236. return smalltalk.withContext(function($ctx1) { _st(self)._inspect_(_st(_st(self)._model())._selectedInstVarObject());
  237. return self}, function($ctx1) {$ctx1.fill(self,"onDive",{}, smalltalk.HLInspector)})},
  238. args: [],
  239. source: "onDive\x0a\x0a\x09self inspect: self model selectedInstVarObject",
  240. messageSends: ["inspect:", "selectedInstVarObject", "model"],
  241. referencedClasses: []
  242. }),
  243. smalltalk.HLInspector);
  244. smalltalk.addMethod(
  245. "_onDoneIt",
  246. smalltalk.method({
  247. selector: "onDoneIt",
  248. category: 'reactions',
  249. fn: function (){
  250. var self=this;
  251. return smalltalk.withContext(function($ctx1) { _st(self)._refresh();
  252. return self}, function($ctx1) {$ctx1.fill(self,"onDoneIt",{}, smalltalk.HLInspector)})},
  253. args: [],
  254. source: "onDoneIt\x0a\x0a\x09self refresh",
  255. messageSends: ["refresh"],
  256. referencedClasses: []
  257. }),
  258. smalltalk.HLInspector);
  259. smalltalk.addMethod(
  260. "_onInspectIt",
  261. smalltalk.method({
  262. selector: "onInspectIt",
  263. category: 'reactions',
  264. fn: function (){
  265. var self=this;
  266. return smalltalk.withContext(function($ctx1) { return self}, function($ctx1) {$ctx1.fill(self,"onInspectIt",{}, smalltalk.HLInspector)})},
  267. args: [],
  268. source: "onInspectIt",
  269. messageSends: [],
  270. referencedClasses: []
  271. }),
  272. smalltalk.HLInspector);
  273. smalltalk.addMethod(
  274. "_onInstanceVariableSelected",
  275. smalltalk.method({
  276. selector: "onInstanceVariableSelected",
  277. category: 'reactions',
  278. fn: function (){
  279. var self=this;
  280. return smalltalk.withContext(function($ctx1) { _st(_st(self)._codeWidget())._receiver_(_st(_st(self)._model())._selectedInstVarObject());
  281. _st(self)._refreshDisplayWidget();
  282. return self}, function($ctx1) {$ctx1.fill(self,"onInstanceVariableSelected",{}, smalltalk.HLInspector)})},
  283. args: [],
  284. source: "onInstanceVariableSelected\x0a\x09self codeWidget receiver: self model selectedInstVarObject.\x0a\x09self refreshDisplayWidget",
  285. messageSends: ["receiver:", "selectedInstVarObject", "model", "codeWidget", "refreshDisplayWidget"],
  286. referencedClasses: []
  287. }),
  288. smalltalk.HLInspector);
  289. smalltalk.addMethod(
  290. "_onPrintIt",
  291. smalltalk.method({
  292. selector: "onPrintIt",
  293. category: 'reactions',
  294. fn: function (){
  295. var self=this;
  296. return smalltalk.withContext(function($ctx1) { return self}, function($ctx1) {$ctx1.fill(self,"onPrintIt",{}, smalltalk.HLInspector)})},
  297. args: [],
  298. source: "onPrintIt",
  299. messageSends: [],
  300. referencedClasses: []
  301. }),
  302. smalltalk.HLInspector);
  303. smalltalk.addMethod(
  304. "_onRefresh",
  305. smalltalk.method({
  306. selector: "onRefresh",
  307. category: 'reactions',
  308. fn: function (){
  309. var self=this;
  310. return smalltalk.withContext(function($ctx1) { _st(self)._refresh();
  311. return self}, function($ctx1) {$ctx1.fill(self,"onRefresh",{}, smalltalk.HLInspector)})},
  312. args: [],
  313. source: "onRefresh\x0a\x0a\x09self refresh",
  314. messageSends: ["refresh"],
  315. referencedClasses: []
  316. }),
  317. smalltalk.HLInspector);
  318. smalltalk.addMethod(
  319. "_open",
  320. smalltalk.method({
  321. selector: "open",
  322. category: 'actions',
  323. fn: function (){
  324. var self=this;
  325. return smalltalk.withContext(function($ctx1) { _st(_st((smalltalk.HLManager || HLManager))._current())._addTab_(_st((smalltalk.HLTab || HLTab))._on_labelled_(self,_st(self)._tabLabel()));
  326. return self}, function($ctx1) {$ctx1.fill(self,"open",{}, smalltalk.HLInspector)})},
  327. args: [],
  328. source: "open\x0a\x09HLManager current addTab: (HLTab on: self labelled: self tabLabel)\x0a",
  329. messageSends: ["addTab:", "on:labelled:", "tabLabel", "current"],
  330. referencedClasses: ["HLTab", "HLManager"]
  331. }),
  332. smalltalk.HLInspector);
  333. smalltalk.addMethod(
  334. "_refresh",
  335. smalltalk.method({
  336. selector: "refresh",
  337. category: 'actions',
  338. fn: function (){
  339. var self=this;
  340. return smalltalk.withContext(function($ctx1) { _st(self)._inspect_(_st(self)._inspectee());
  341. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{}, smalltalk.HLInspector)})},
  342. args: [],
  343. source: "refresh\x0a\x09self inspect: self inspectee",
  344. messageSends: ["inspect:", "inspectee"],
  345. referencedClasses: []
  346. }),
  347. smalltalk.HLInspector);
  348. smalltalk.addMethod(
  349. "_refreshDisplayWidget",
  350. smalltalk.method({
  351. selector: "refreshDisplayWidget",
  352. category: 'actions',
  353. fn: function (){
  354. var self=this;
  355. return smalltalk.withContext(function($ctx1) { _st(_st(self)._displayWidget())._refresh();
  356. return self}, function($ctx1) {$ctx1.fill(self,"refreshDisplayWidget",{}, smalltalk.HLInspector)})},
  357. args: [],
  358. source: "refreshDisplayWidget\x0a\x09self displayWidget refresh",
  359. messageSends: ["refresh", "displayWidget"],
  360. referencedClasses: []
  361. }),
  362. smalltalk.HLInspector);
  363. smalltalk.addMethod(
  364. "_refreshVariablesWidget",
  365. smalltalk.method({
  366. selector: "refreshVariablesWidget",
  367. category: 'actions',
  368. fn: function (){
  369. var self=this;
  370. return smalltalk.withContext(function($ctx1) { _st(_st(self)._variablesWidget())._refresh();
  371. return self}, function($ctx1) {$ctx1.fill(self,"refreshVariablesWidget",{}, smalltalk.HLInspector)})},
  372. args: [],
  373. source: "refreshVariablesWidget\x0a\x09self variablesWidget refresh",
  374. messageSends: ["refresh", "variablesWidget"],
  375. referencedClasses: []
  376. }),
  377. smalltalk.HLInspector);
  378. smalltalk.addMethod(
  379. "_renderContentOn_",
  380. smalltalk.method({
  381. selector: "renderContentOn:",
  382. category: 'rendering',
  383. fn: function (html){
  384. var self=this;
  385. return smalltalk.withContext(function($ctx1) { _st(html)._with_(_st((smalltalk.HLContainer || HLContainer))._with_(_st((smalltalk.HLHorizontalSplitter || HLHorizontalSplitter))._with_with_(_st((smalltalk.HLVerticalSplitter || HLVerticalSplitter))._with_with_(_st(self)._variablesWidget(),_st(self)._displayWidget()),_st(self)._codeWidget())));
  386. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLInspector)})},
  387. args: ["html"],
  388. source: "renderContentOn: html\x0a \x09html with: (HLContainer with: (HLHorizontalSplitter\x0a \x09with: (HLVerticalSplitter \x0a \x09\x09with: self variablesWidget\x0a \x09 with: self displayWidget)\x0a with: self codeWidget))\x0a ",
  389. messageSends: ["with:", "with:with:", "variablesWidget", "displayWidget", "codeWidget"],
  390. referencedClasses: ["HLVerticalSplitter", "HLHorizontalSplitter", "HLContainer"]
  391. }),
  392. smalltalk.HLInspector);
  393. smalltalk.addMethod(
  394. "_setLabel_",
  395. smalltalk.method({
  396. selector: "setLabel:",
  397. category: 'actions',
  398. fn: function (aString){
  399. var self=this;
  400. return smalltalk.withContext(function($ctx1) { self["@label"]=aString;
  401. return self}, function($ctx1) {$ctx1.fill(self,"setLabel:",{aString:aString}, smalltalk.HLInspector)})},
  402. args: ["aString"],
  403. source: "setLabel: aString\x0a\x09label := aString",
  404. messageSends: [],
  405. referencedClasses: []
  406. }),
  407. smalltalk.HLInspector);
  408. smalltalk.addMethod(
  409. "_setVariables_",
  410. smalltalk.method({
  411. selector: "setVariables:",
  412. category: 'actions',
  413. fn: function (aDictionary){
  414. var self=this;
  415. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._variables_(aDictionary);
  416. return self}, function($ctx1) {$ctx1.fill(self,"setVariables:",{aDictionary:aDictionary}, smalltalk.HLInspector)})},
  417. args: ["aDictionary"],
  418. source: "setVariables: aDictionary\x0a\x09self model variables: aDictionary",
  419. messageSends: ["variables:", "model"],
  420. referencedClasses: []
  421. }),
  422. smalltalk.HLInspector);
  423. smalltalk.addMethod(
  424. "_tabLabel",
  425. smalltalk.method({
  426. selector: "tabLabel",
  427. category: 'accessing',
  428. fn: function (){
  429. var self=this;
  430. return smalltalk.withContext(function($ctx1) { var $1;
  431. $1=_st(self)._label();
  432. return $1;
  433. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{}, smalltalk.HLInspector)})},
  434. args: [],
  435. source: "tabLabel\x0a ^ self label",
  436. messageSends: ["label"],
  437. referencedClasses: []
  438. }),
  439. smalltalk.HLInspector);
  440. smalltalk.addMethod(
  441. "_variablesWidget",
  442. smalltalk.method({
  443. selector: "variablesWidget",
  444. category: 'accessing',
  445. fn: function (){
  446. var self=this;
  447. return smalltalk.withContext(function($ctx1) { var $2,$3,$4,$1;
  448. $2=self["@variablesWidget"];
  449. if(($receiver = $2) == nil || $receiver == undefined){
  450. $3=_st((smalltalk.HLInspectorVariablesWidget || HLInspectorVariablesWidget))._new();
  451. _st($3)._model_(_st(self)._model());
  452. $4=_st($3)._yourself();
  453. self["@variablesWidget"]=$4;
  454. $1=self["@variablesWidget"];
  455. } else {
  456. $1=$2;
  457. };
  458. return $1;
  459. }, function($ctx1) {$ctx1.fill(self,"variablesWidget",{}, smalltalk.HLInspector)})},
  460. args: [],
  461. source: "variablesWidget\x0a\x09^ variablesWidget ifNil: [\x0a\x09\x09variablesWidget := HLInspectorVariablesWidget new\x0a \x09\x09model: self model;\x0a \x09yourself ]",
  462. messageSends: ["ifNil:", "model:", "model", "new", "yourself"],
  463. referencedClasses: ["HLInspectorVariablesWidget"]
  464. }),
  465. smalltalk.HLInspector);
  466. smalltalk.addMethod(
  467. "_canBeOpenAsTab",
  468. smalltalk.method({
  469. selector: "canBeOpenAsTab",
  470. category: 'testing',
  471. fn: function (){
  472. var self=this;
  473. return smalltalk.withContext(function($ctx1) { return false;
  474. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{}, smalltalk.HLInspector.klass)})},
  475. args: [],
  476. source: "canBeOpenAsTab\x0a\x09^ false",
  477. messageSends: [],
  478. referencedClasses: []
  479. }),
  480. smalltalk.HLInspector.klass);
  481. smalltalk.addMethod(
  482. "_tabLabel",
  483. smalltalk.method({
  484. selector: "tabLabel",
  485. category: 'accessing',
  486. fn: function (){
  487. var self=this;
  488. return smalltalk.withContext(function($ctx1) { return "Inspector";
  489. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{}, smalltalk.HLInspector.klass)})},
  490. args: [],
  491. source: "tabLabel\x0a\x09^ 'Inspector'",
  492. messageSends: [],
  493. referencedClasses: []
  494. }),
  495. smalltalk.HLInspector.klass);
  496. smalltalk.addMethod(
  497. "_tabPriority",
  498. smalltalk.method({
  499. selector: "tabPriority",
  500. category: 'accessing',
  501. fn: function (){
  502. var self=this;
  503. return smalltalk.withContext(function($ctx1) { return (10);
  504. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{}, smalltalk.HLInspector.klass)})},
  505. args: [],
  506. source: "tabPriority\x0a\x09^ 10",
  507. messageSends: [],
  508. referencedClasses: []
  509. }),
  510. smalltalk.HLInspector.klass);
  511. smalltalk.addClass('HLInspectorDisplayWidget', smalltalk.HLNavigationListWidget, ['model'], 'Helios-Inspector');
  512. smalltalk.addMethod(
  513. "_model",
  514. smalltalk.method({
  515. selector: "model",
  516. category: 'accessing',
  517. fn: function (){
  518. var self=this;
  519. return smalltalk.withContext(function($ctx1) { var $1;
  520. $1=self["@model"];
  521. return $1;
  522. }, function($ctx1) {$ctx1.fill(self,"model",{}, smalltalk.HLInspectorDisplayWidget)})},
  523. args: [],
  524. source: "model\x0a\x0a\x09^ model",
  525. messageSends: [],
  526. referencedClasses: []
  527. }),
  528. smalltalk.HLInspectorDisplayWidget);
  529. smalltalk.addMethod(
  530. "_model_",
  531. smalltalk.method({
  532. selector: "model:",
  533. category: 'accessing',
  534. fn: function (aModel){
  535. var self=this;
  536. return smalltalk.withContext(function($ctx1) { self["@model"]=aModel;
  537. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel}, smalltalk.HLInspectorDisplayWidget)})},
  538. args: ["aModel"],
  539. source: "model: aModel\x0a\x0a\x09model := aModel",
  540. messageSends: [],
  541. referencedClasses: []
  542. }),
  543. smalltalk.HLInspectorDisplayWidget);
  544. smalltalk.addMethod(
  545. "_renderContentOn_",
  546. smalltalk.method({
  547. selector: "renderContentOn:",
  548. category: 'rendering',
  549. fn: function (html){
  550. var self=this;
  551. return smalltalk.withContext(function($ctx1) { _st(_st(html)._div())._with_(_st(self)._selectionDisplayString());
  552. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLInspectorDisplayWidget)})},
  553. args: ["html"],
  554. source: "renderContentOn: html\x0a\x09\x0a html div with: self selectionDisplayString\x0a ",
  555. messageSends: ["with:", "selectionDisplayString", "div"],
  556. referencedClasses: []
  557. }),
  558. smalltalk.HLInspectorDisplayWidget);
  559. smalltalk.addMethod(
  560. "_selectionDisplayString",
  561. smalltalk.method({
  562. selector: "selectionDisplayString",
  563. category: 'rendering',
  564. fn: function (){
  565. var self=this;
  566. var selection;
  567. return smalltalk.withContext(function($ctx1) { var $2,$1;
  568. selection=_st(self["@model"])._selection();
  569. $2=_st(_st(_st(self["@model"])._variables())._keys())._includes_(selection);
  570. if(smalltalk.assert($2)){
  571. $1=_st(_st(self["@model"])._instVarObjectAt_(selection))._printString();
  572. } else {
  573. $1="";
  574. };
  575. return $1;
  576. }, function($ctx1) {$ctx1.fill(self,"selectionDisplayString",{selection:selection}, smalltalk.HLInspectorDisplayWidget)})},
  577. args: [],
  578. source: "selectionDisplayString\x0a\x09|selection|\x0a\x09selection := model selection.\x0a ^ (model variables keys includes: selection)\x0a \x09ifTrue:[(model instVarObjectAt: selection) printString]\x0a \x09ifFalse:['']",
  579. messageSends: ["selection", "ifTrue:ifFalse:", "printString", "instVarObjectAt:", "includes:", "keys", "variables"],
  580. referencedClasses: []
  581. }),
  582. smalltalk.HLInspectorDisplayWidget);
  583. smalltalk.addClass('HLInspectorModel', smalltalk.Object, ['announcer', 'environment', 'inspectee', 'code', 'variables', 'selection'], 'Helios-Inspector');
  584. smalltalk.addMethod(
  585. "_announcer",
  586. smalltalk.method({
  587. selector: "announcer",
  588. category: 'accessing',
  589. fn: function (){
  590. var self=this;
  591. return smalltalk.withContext(function($ctx1) { var $2,$1;
  592. $2=self["@announcer"];
  593. if(($receiver = $2) == nil || $receiver == undefined){
  594. self["@announcer"]=_st((smalltalk.Announcer || Announcer))._new();
  595. $1=self["@announcer"];
  596. } else {
  597. $1=$2;
  598. };
  599. return $1;
  600. }, function($ctx1) {$ctx1.fill(self,"announcer",{}, smalltalk.HLInspectorModel)})},
  601. args: [],
  602. source: "announcer\x0a\x09^ announcer ifNil: [announcer := Announcer new ]",
  603. messageSends: ["ifNil:", "new"],
  604. referencedClasses: ["Announcer"]
  605. }),
  606. smalltalk.HLInspectorModel);
  607. smalltalk.addMethod(
  608. "_code",
  609. smalltalk.method({
  610. selector: "code",
  611. category: 'accessing',
  612. fn: function (){
  613. var self=this;
  614. return smalltalk.withContext(function($ctx1) { var $2,$1;
  615. $2=self["@code"];
  616. if(($receiver = $2) == nil || $receiver == undefined){
  617. self["@code"]=_st((smalltalk.HLCodeModel || HLCodeModel))._on_(_st(self)._environment());
  618. $1=self["@code"];
  619. } else {
  620. $1=$2;
  621. };
  622. return $1;
  623. }, function($ctx1) {$ctx1.fill(self,"code",{}, smalltalk.HLInspectorModel)})},
  624. args: [],
  625. source: "code\x0a\x09\x22Answers the code model working for this workspace model\x22\x0a\x09^ code ifNil:[ code := HLCodeModel on: self environment ]",
  626. messageSends: ["ifNil:", "on:", "environment"],
  627. referencedClasses: ["HLCodeModel"]
  628. }),
  629. smalltalk.HLInspectorModel);
  630. smalltalk.addMethod(
  631. "_environment",
  632. smalltalk.method({
  633. selector: "environment",
  634. category: 'accessing',
  635. fn: function (){
  636. var self=this;
  637. return smalltalk.withContext(function($ctx1) { var $2,$1;
  638. $2=self["@environment"];
  639. if(($receiver = $2) == nil || $receiver == undefined){
  640. $1=_st(_st((smalltalk.HLManager || HLManager))._current())._environment();
  641. } else {
  642. $1=$2;
  643. };
  644. return $1;
  645. }, function($ctx1) {$ctx1.fill(self,"environment",{}, smalltalk.HLInspectorModel)})},
  646. args: [],
  647. source: "environment\x0a\x09^ environment ifNil: [ HLManager current environment ]",
  648. messageSends: ["ifNil:", "environment", "current"],
  649. referencedClasses: ["HLManager"]
  650. }),
  651. smalltalk.HLInspectorModel);
  652. smalltalk.addMethod(
  653. "_environment_",
  654. smalltalk.method({
  655. selector: "environment:",
  656. category: 'accessing',
  657. fn: function (anEnvironment){
  658. var self=this;
  659. return smalltalk.withContext(function($ctx1) { self["@environment"]=anEnvironment;
  660. return self}, function($ctx1) {$ctx1.fill(self,"environment:",{anEnvironment:anEnvironment}, smalltalk.HLInspectorModel)})},
  661. args: ["anEnvironment"],
  662. source: "environment: anEnvironment\x0a\x09environment := anEnvironment",
  663. messageSends: [],
  664. referencedClasses: []
  665. }),
  666. smalltalk.HLInspectorModel);
  667. smalltalk.addMethod(
  668. "_inspect_on_",
  669. smalltalk.method({
  670. selector: "inspect:on:",
  671. category: 'actions',
  672. fn: function (anObject,anInspector){
  673. var self=this;
  674. return smalltalk.withContext(function($ctx1) { self["@inspectee"]=anObject;
  675. self["@variables"]=[];
  676. _st(self["@inspectee"])._inspectOn_(anInspector);
  677. return self}, function($ctx1) {$ctx1.fill(self,"inspect:on:",{anObject:anObject,anInspector:anInspector}, smalltalk.HLInspectorModel)})},
  678. args: ["anObject", "anInspector"],
  679. source: "inspect: anObject on: anInspector\x0a\x09inspectee := anObject.\x0a\x09variables := #().\x0a\x09inspectee inspectOn: anInspector \x0a",
  680. messageSends: ["inspectOn:"],
  681. referencedClasses: []
  682. }),
  683. smalltalk.HLInspectorModel);
  684. smalltalk.addMethod(
  685. "_inspectee",
  686. smalltalk.method({
  687. selector: "inspectee",
  688. category: 'accessing',
  689. fn: function (){
  690. var self=this;
  691. return smalltalk.withContext(function($ctx1) { var $1;
  692. $1=self["@inspectee"];
  693. return $1;
  694. }, function($ctx1) {$ctx1.fill(self,"inspectee",{}, smalltalk.HLInspectorModel)})},
  695. args: [],
  696. source: "inspectee \x0a\x09^ inspectee ",
  697. messageSends: [],
  698. referencedClasses: []
  699. }),
  700. smalltalk.HLInspectorModel);
  701. smalltalk.addMethod(
  702. "_inspectee_",
  703. smalltalk.method({
  704. selector: "inspectee:",
  705. category: 'accessing',
  706. fn: function (anObject){
  707. var self=this;
  708. return smalltalk.withContext(function($ctx1) { self["@inspectee"]=anObject;
  709. return self}, function($ctx1) {$ctx1.fill(self,"inspectee:",{anObject:anObject}, smalltalk.HLInspectorModel)})},
  710. args: ["anObject"],
  711. source: "inspectee: anObject \x0a\x09inspectee := anObject\x0a ",
  712. messageSends: [],
  713. referencedClasses: []
  714. }),
  715. smalltalk.HLInspectorModel);
  716. smalltalk.addMethod(
  717. "_instVarObjectAt_",
  718. smalltalk.method({
  719. selector: "instVarObjectAt:",
  720. category: 'actions',
  721. fn: function (anInstVarName){
  722. var self=this;
  723. return smalltalk.withContext(function($ctx1) { var $1;
  724. $1=_st(_st(self)._variables())._at_(anInstVarName);
  725. return $1;
  726. }, function($ctx1) {$ctx1.fill(self,"instVarObjectAt:",{anInstVarName:anInstVarName}, smalltalk.HLInspectorModel)})},
  727. args: ["anInstVarName"],
  728. source: "instVarObjectAt: anInstVarName\x0a\x09^ self variables at: anInstVarName",
  729. messageSends: ["at:", "variables"],
  730. referencedClasses: []
  731. }),
  732. smalltalk.HLInspectorModel);
  733. smalltalk.addMethod(
  734. "_onKeyDown_",
  735. smalltalk.method({
  736. selector: "onKeyDown:",
  737. category: 'reactions',
  738. fn: function (anEvent){
  739. var self=this;
  740. return smalltalk.withContext(function($ctx1) { if(anEvent.ctrlKey) {
  741. if(anEvent.keyCode === 80) { //ctrl+p
  742. self._printIt();
  743. anEvent.preventDefault();
  744. return false;
  745. }
  746. if(anEvent.keyCode === 68) { //ctrl+d
  747. self._doIt();
  748. anEvent.preventDefault();
  749. return false;
  750. }
  751. if(anEvent.keyCode === 73) { //ctrl+i
  752. self._inspectIt();
  753. anEvent.preventDefault();
  754. return false;
  755. }
  756. };
  757. return self}, function($ctx1) {$ctx1.fill(self,"onKeyDown:",{anEvent:anEvent}, smalltalk.HLInspectorModel)})},
  758. args: ["anEvent"],
  759. 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}>",
  760. messageSends: [],
  761. referencedClasses: []
  762. }),
  763. smalltalk.HLInspectorModel);
  764. smalltalk.addMethod(
  765. "_selectedInstVar_",
  766. smalltalk.method({
  767. selector: "selectedInstVar:",
  768. category: 'actions',
  769. fn: function (anInstVarName){
  770. var self=this;
  771. return smalltalk.withContext(function($ctx1) { _st(self)._selection_(anInstVarName);
  772. return self}, function($ctx1) {$ctx1.fill(self,"selectedInstVar:",{anInstVarName:anInstVarName}, smalltalk.HLInspectorModel)})},
  773. args: ["anInstVarName"],
  774. source: "selectedInstVar: anInstVarName\x0a self selection: anInstVarName",
  775. messageSends: ["selection:"],
  776. referencedClasses: []
  777. }),
  778. smalltalk.HLInspectorModel);
  779. smalltalk.addMethod(
  780. "_selectedInstVarObject",
  781. smalltalk.method({
  782. selector: "selectedInstVarObject",
  783. category: 'accessing',
  784. fn: function (){
  785. var self=this;
  786. return smalltalk.withContext(function($ctx1) { var $1;
  787. $1=_st(self)._instVarObjectAt_(_st(self)._selection());
  788. return $1;
  789. }, function($ctx1) {$ctx1.fill(self,"selectedInstVarObject",{}, smalltalk.HLInspectorModel)})},
  790. args: [],
  791. source: "selectedInstVarObject\x0a\x09^ self instVarObjectAt: self selection\x0a ",
  792. messageSends: ["instVarObjectAt:", "selection"],
  793. referencedClasses: []
  794. }),
  795. smalltalk.HLInspectorModel);
  796. smalltalk.addMethod(
  797. "_selection",
  798. smalltalk.method({
  799. selector: "selection",
  800. category: 'accessing',
  801. fn: function (){
  802. var self=this;
  803. return smalltalk.withContext(function($ctx1) { var $2,$1;
  804. $2=self["@selection"];
  805. if(($receiver = $2) == nil || $receiver == undefined){
  806. $1="";
  807. } else {
  808. $1=$2;
  809. };
  810. return $1;
  811. }, function($ctx1) {$ctx1.fill(self,"selection",{}, smalltalk.HLInspectorModel)})},
  812. args: [],
  813. source: "selection\x0a\x09^ selection ifNil:[ '' ] ",
  814. messageSends: ["ifNil:"],
  815. referencedClasses: []
  816. }),
  817. smalltalk.HLInspectorModel);
  818. smalltalk.addMethod(
  819. "_selection_",
  820. smalltalk.method({
  821. selector: "selection:",
  822. category: 'accessing',
  823. fn: function (anObject){
  824. var self=this;
  825. return smalltalk.withContext(function($ctx1) { self["@selection"]=anObject;
  826. _st(_st(self)._announcer())._announce_(_st((smalltalk.HLInstanceVariableSelected || HLInstanceVariableSelected))._on_(self["@selection"]));
  827. return self}, function($ctx1) {$ctx1.fill(self,"selection:",{anObject:anObject}, smalltalk.HLInspectorModel)})},
  828. args: ["anObject"],
  829. source: "selection: anObject\x0a\x09selection := anObject.\x0a\x0a\x09self announcer announce: (HLInstanceVariableSelected on: selection)\x0a ",
  830. messageSends: ["announce:", "on:", "announcer"],
  831. referencedClasses: ["HLInstanceVariableSelected"]
  832. }),
  833. smalltalk.HLInspectorModel);
  834. smalltalk.addMethod(
  835. "_subscribe_",
  836. smalltalk.method({
  837. selector: "subscribe:",
  838. category: 'actions',
  839. fn: function (aWidget){
  840. var self=this;
  841. return smalltalk.withContext(function($ctx1) { _st(aWidget)._subscribeTo_(_st(self)._announcer());
  842. return self}, function($ctx1) {$ctx1.fill(self,"subscribe:",{aWidget:aWidget}, smalltalk.HLInspectorModel)})},
  843. args: ["aWidget"],
  844. source: "subscribe: aWidget\x0a\x09aWidget subscribeTo: self announcer",
  845. messageSends: ["subscribeTo:", "announcer"],
  846. referencedClasses: []
  847. }),
  848. smalltalk.HLInspectorModel);
  849. smalltalk.addMethod(
  850. "_variables",
  851. smalltalk.method({
  852. selector: "variables",
  853. category: 'accessing',
  854. fn: function (){
  855. var self=this;
  856. return smalltalk.withContext(function($ctx1) { var $1;
  857. $1=self["@variables"];
  858. return $1;
  859. }, function($ctx1) {$ctx1.fill(self,"variables",{}, smalltalk.HLInspectorModel)})},
  860. args: [],
  861. source: "variables\x0a\x09^ variables",
  862. messageSends: [],
  863. referencedClasses: []
  864. }),
  865. smalltalk.HLInspectorModel);
  866. smalltalk.addMethod(
  867. "_variables_",
  868. smalltalk.method({
  869. selector: "variables:",
  870. category: 'accessing',
  871. fn: function (aCollection){
  872. var self=this;
  873. return smalltalk.withContext(function($ctx1) { self["@variables"]=aCollection;
  874. return self}, function($ctx1) {$ctx1.fill(self,"variables:",{aCollection:aCollection}, smalltalk.HLInspectorModel)})},
  875. args: ["aCollection"],
  876. source: "variables: aCollection\x0a\x09variables := aCollection\x0a ",
  877. messageSends: [],
  878. referencedClasses: []
  879. }),
  880. smalltalk.HLInspectorModel);
  881. smalltalk.addMethod(
  882. "_on_",
  883. smalltalk.method({
  884. selector: "on:",
  885. category: 'actions',
  886. fn: function (anEnvironment){
  887. var self=this;
  888. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  889. $2=_st(self)._new();
  890. _st($2)._environment_(anEnvironment);
  891. $3=_st($2)._yourself();
  892. $1=$3;
  893. return $1;
  894. }, function($ctx1) {$ctx1.fill(self,"on:",{anEnvironment:anEnvironment}, smalltalk.HLInspectorModel.klass)})},
  895. args: ["anEnvironment"],
  896. source: "on: anEnvironment\x0a\x0a\x09^ self new\x0a \x09environment: anEnvironment;\x0a yourself",
  897. messageSends: ["environment:", "new", "yourself"],
  898. referencedClasses: []
  899. }),
  900. smalltalk.HLInspectorModel.klass);
  901. smalltalk.addClass('HLInspectorVariablesWidget', smalltalk.HLNavigationListWidget, ['announcer', 'model', 'list', 'diveButton'], 'Helios-Inspector');
  902. smalltalk.addMethod(
  903. "_announcer",
  904. smalltalk.method({
  905. selector: "announcer",
  906. category: 'accessing',
  907. fn: function (){
  908. var self=this;
  909. return smalltalk.withContext(function($ctx1) { var $2,$1;
  910. $2=self["@announcer"];
  911. if(($receiver = $2) == nil || $receiver == undefined){
  912. self["@announcer"]=_st((smalltalk.Announcer || Announcer))._new();
  913. $1=self["@announcer"];
  914. } else {
  915. $1=$2;
  916. };
  917. return $1;
  918. }, function($ctx1) {$ctx1.fill(self,"announcer",{}, smalltalk.HLInspectorVariablesWidget)})},
  919. args: [],
  920. source: "announcer\x0a\x09^ announcer ifNil:[ announcer := Announcer new ]",
  921. messageSends: ["ifNil:", "new"],
  922. referencedClasses: ["Announcer"]
  923. }),
  924. smalltalk.HLInspectorVariablesWidget);
  925. smalltalk.addMethod(
  926. "_defaultItems",
  927. smalltalk.method({
  928. selector: "defaultItems",
  929. category: 'defaults',
  930. fn: function (){
  931. var self=this;
  932. return smalltalk.withContext(function($ctx1) { var $1;
  933. $1=_st(_st(_st(self)._model())._variables())._keys();
  934. return $1;
  935. }, function($ctx1) {$ctx1.fill(self,"defaultItems",{}, smalltalk.HLInspectorVariablesWidget)})},
  936. args: [],
  937. source: "defaultItems\x0a\x09^ self model variables keys",
  938. messageSends: ["keys", "variables", "model"],
  939. referencedClasses: []
  940. }),
  941. smalltalk.HLInspectorVariablesWidget);
  942. smalltalk.addMethod(
  943. "_model",
  944. smalltalk.method({
  945. selector: "model",
  946. category: 'accessing',
  947. fn: function (){
  948. var self=this;
  949. return smalltalk.withContext(function($ctx1) { var $1;
  950. $1=self["@model"];
  951. return $1;
  952. }, function($ctx1) {$ctx1.fill(self,"model",{}, smalltalk.HLInspectorVariablesWidget)})},
  953. args: [],
  954. source: "model\x0a ^ model\x0a ",
  955. messageSends: [],
  956. referencedClasses: []
  957. }),
  958. smalltalk.HLInspectorVariablesWidget);
  959. smalltalk.addMethod(
  960. "_model_",
  961. smalltalk.method({
  962. selector: "model:",
  963. category: 'accessing',
  964. fn: function (aModel){
  965. var self=this;
  966. return smalltalk.withContext(function($ctx1) { self["@model"]=aModel;
  967. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel}, smalltalk.HLInspectorVariablesWidget)})},
  968. args: ["aModel"],
  969. source: "model: aModel\x0a model := aModel\x0a ",
  970. messageSends: [],
  971. referencedClasses: []
  972. }),
  973. smalltalk.HLInspectorVariablesWidget);
  974. smalltalk.addMethod(
  975. "_refresh",
  976. smalltalk.method({
  977. selector: "refresh",
  978. category: 'actions',
  979. fn: function (){
  980. var self=this;
  981. return smalltalk.withContext(function($ctx1) { _st(self)._resetItems();
  982. smalltalk.HLNavigationListWidget.fn.prototype._refresh.apply(_st(self), []);
  983. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{}, smalltalk.HLInspectorVariablesWidget)})},
  984. args: [],
  985. source: "refresh\x0a\x09self resetItems.\x0a super refresh\x0a ",
  986. messageSends: ["resetItems", "refresh"],
  987. referencedClasses: []
  988. }),
  989. smalltalk.HLInspectorVariablesWidget);
  990. smalltalk.addMethod(
  991. "_renderButtonsOn_",
  992. smalltalk.method({
  993. selector: "renderButtonsOn:",
  994. category: 'rendering',
  995. fn: function (html){
  996. var self=this;
  997. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  998. $1=_st(html)._button();
  999. _st($1)._class_("btn");
  1000. _st($1)._with_("Refresh");
  1001. $2=_st($1)._onClick_((function(){
  1002. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._announcer())._announce_(_st((smalltalk.HLRefreshRequested || HLRefreshRequested))._new());
  1003. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1004. $3=_st(html)._button();
  1005. _st($3)._class_("btn");
  1006. _st($3)._with_("Dive");
  1007. $4=_st($3)._onClick_((function(){
  1008. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._announcer())._announce_(_st((smalltalk.HLDiveRequested || HLDiveRequested))._new());
  1009. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1010. self["@diveButton"]=$4;
  1011. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html}, smalltalk.HLInspectorVariablesWidget)})},
  1012. args: ["html"],
  1013. 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]",
  1014. messageSends: ["class:", "button", "with:", "onClick:", "announce:", "new", "announcer"],
  1015. referencedClasses: ["HLRefreshRequested", "HLDiveRequested"]
  1016. }),
  1017. smalltalk.HLInspectorVariablesWidget);
  1018. smalltalk.addMethod(
  1019. "_resetItems",
  1020. smalltalk.method({
  1021. selector: "resetItems",
  1022. category: 'actions',
  1023. fn: function (){
  1024. var self=this;
  1025. return smalltalk.withContext(function($ctx1) { self["@items"]=nil;
  1026. return self}, function($ctx1) {$ctx1.fill(self,"resetItems",{}, smalltalk.HLInspectorVariablesWidget)})},
  1027. args: [],
  1028. source: "resetItems\x0a\x09items := nil",
  1029. messageSends: [],
  1030. referencedClasses: []
  1031. }),
  1032. smalltalk.HLInspectorVariablesWidget);
  1033. smalltalk.addMethod(
  1034. "_selectItem_",
  1035. smalltalk.method({
  1036. selector: "selectItem:",
  1037. category: 'reactions',
  1038. fn: function (anObject){
  1039. var self=this;
  1040. return smalltalk.withContext(function($ctx1) { smalltalk.HLNavigationListWidget.fn.prototype._selectItem_.apply(_st(self), [anObject]);
  1041. _st(_st(self)._model())._selectedInstVar_(anObject);
  1042. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{anObject:anObject}, smalltalk.HLInspectorVariablesWidget)})},
  1043. args: ["anObject"],
  1044. source: "selectItem: anObject\x0a\x09super selectItem: anObject.\x0a self model selectedInstVar: anObject",
  1045. messageSends: ["selectItem:", "selectedInstVar:", "model"],
  1046. referencedClasses: []
  1047. }),
  1048. smalltalk.HLInspectorVariablesWidget);
  1049. smalltalk.addMethod(
  1050. "_selection",
  1051. smalltalk.method({
  1052. selector: "selection",
  1053. category: 'accessing',
  1054. fn: function (){
  1055. var self=this;
  1056. return smalltalk.withContext(function($ctx1) { var $1;
  1057. $1=_st(self["@model"])._selection();
  1058. return $1;
  1059. }, function($ctx1) {$ctx1.fill(self,"selection",{}, smalltalk.HLInspectorVariablesWidget)})},
  1060. args: [],
  1061. source: "selection\x0a\x09^ model selection",
  1062. messageSends: ["selection"],
  1063. referencedClasses: []
  1064. }),
  1065. smalltalk.HLInspectorVariablesWidget);
  1066. smalltalk.addMethod(
  1067. "_variables",
  1068. smalltalk.method({
  1069. selector: "variables",
  1070. category: 'accessing',
  1071. fn: function (){
  1072. var self=this;
  1073. return smalltalk.withContext(function($ctx1) { var $1;
  1074. $1=_st(self["@model"])._variables();
  1075. return $1;
  1076. }, function($ctx1) {$ctx1.fill(self,"variables",{}, smalltalk.HLInspectorVariablesWidget)})},
  1077. args: [],
  1078. source: "variables\x0a\x09^ model variables",
  1079. messageSends: ["variables"],
  1080. referencedClasses: []
  1081. }),
  1082. smalltalk.HLInspectorVariablesWidget);