Helios-Inspector.js 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403
  1. smalltalk.addPackage('Helios-Inspector', {});
  2. smalltalk.addClass('HLInspector', smalltalk.HLWidget, ['model', 'variables', 'display', 'code', 'label'], 'Helios-Inspector');
  3. smalltalk.addMethod(
  4. "_code",
  5. smalltalk.method({
  6. selector: "code",
  7. category: 'accessing',
  8. fn: function (){
  9. var self=this;
  10. var $1;
  11. if(($receiver = self["@code"]) == nil || $receiver == undefined){
  12. $1=smalltalk.send(self,"_initializeCode",[]);
  13. } else {
  14. $1=self["@code"];
  15. };
  16. return $1;
  17. },
  18. args: [],
  19. source: "code\x0a\x0a\x09^ code ifNil:[self initializeCode]",
  20. messageSends: ["ifNil:", "initializeCode"],
  21. referencedClasses: []
  22. }),
  23. smalltalk.HLInspector);
  24. smalltalk.addMethod(
  25. "_display",
  26. smalltalk.method({
  27. selector: "display",
  28. category: 'accessing',
  29. fn: function (){
  30. var self=this;
  31. var $1;
  32. if(($receiver = self["@display"]) == nil || $receiver == undefined){
  33. $1=smalltalk.send(self,"_initializeDisplay",[]);
  34. } else {
  35. $1=self["@display"];
  36. };
  37. return $1;
  38. },
  39. args: [],
  40. source: "display\x0a\x0a\x09^ display ifNil:[self initializeDisplay]",
  41. messageSends: ["ifNil:", "initializeDisplay"],
  42. referencedClasses: []
  43. }),
  44. smalltalk.HLInspector);
  45. smalltalk.addMethod(
  46. "_ensureModel",
  47. smalltalk.method({
  48. selector: "ensureModel",
  49. category: 'actions',
  50. fn: function (){
  51. var self=this;
  52. smalltalk.send(self,"_observeVariables",[]);
  53. if(($receiver = self["@model"]) == nil || $receiver == undefined){
  54. smalltalk.send(self,"_model_",[smalltalk.send(self,"_model",[])]);
  55. } else {
  56. self["@model"];
  57. };
  58. return self},
  59. args: [],
  60. source: "ensureModel\x0a\x09\x22Sends the #model: initialization message if needed.\x22\x0a\x0a\x09self observeVariables.\x0a \x0a\x09model ifNil:[\x0a\x09\x09self model: self model]\x0a\x09",
  61. messageSends: ["observeVariables", "ifNil:", "model:", "model"],
  62. referencedClasses: []
  63. }),
  64. smalltalk.HLInspector);
  65. smalltalk.addMethod(
  66. "_initializeCode",
  67. smalltalk.method({
  68. selector: "initializeCode",
  69. category: 'initialization',
  70. fn: function (){
  71. var self=this;
  72. var $1;
  73. self["@code"]=smalltalk.send(self,"_makeCode",[]);
  74. $1=self["@code"];
  75. return $1;
  76. },
  77. args: [],
  78. source: "initializeCode\x0a\x0a\x09^ code := self makeCode.",
  79. messageSends: ["makeCode"],
  80. referencedClasses: []
  81. }),
  82. smalltalk.HLInspector);
  83. smalltalk.addMethod(
  84. "_initializeDisplay",
  85. smalltalk.method({
  86. selector: "initializeDisplay",
  87. category: 'initialization',
  88. fn: function (){
  89. var self=this;
  90. var $1;
  91. self["@display"]=smalltalk.send(self,"_makeDisplay",[]);
  92. $1=self["@display"];
  93. return $1;
  94. },
  95. args: [],
  96. source: "initializeDisplay\x0a\x09^ display := self makeDisplay",
  97. messageSends: ["makeDisplay"],
  98. referencedClasses: []
  99. }),
  100. smalltalk.HLInspector);
  101. smalltalk.addMethod(
  102. "_initializeLabel",
  103. smalltalk.method({
  104. selector: "initializeLabel",
  105. category: 'initialization',
  106. fn: function (){
  107. var self=this;
  108. var $1;
  109. self["@label"]=smalltalk.send(smalltalk.send(self["@model"],"_inspectee",[]),"_printString",[]);
  110. $1=self["@label"];
  111. return $1;
  112. },
  113. args: [],
  114. source: "initializeLabel\x0a\x09^ label := model inspectee printString",
  115. messageSends: ["printString", "inspectee"],
  116. referencedClasses: []
  117. }),
  118. smalltalk.HLInspector);
  119. smalltalk.addMethod(
  120. "_initializeModel",
  121. smalltalk.method({
  122. selector: "initializeModel",
  123. category: 'initialization',
  124. fn: function (){
  125. var self=this;
  126. var $1;
  127. self["@model"]=smalltalk.send((smalltalk.HLInspectorModel || HLInspectorModel),"_new",[]);
  128. $1=self["@model"];
  129. return $1;
  130. },
  131. args: [],
  132. source: "initializeModel\x0a\x0a\x09^ model := HLInspectorModel new",
  133. messageSends: ["new"],
  134. referencedClasses: ["HLInspectorModel"]
  135. }),
  136. smalltalk.HLInspector);
  137. smalltalk.addMethod(
  138. "_initializeVariables",
  139. smalltalk.method({
  140. selector: "initializeVariables",
  141. category: 'initialization',
  142. fn: function (){
  143. var self=this;
  144. var $1;
  145. self["@variables"]=smalltalk.send(self,"_makeVariables",[]);
  146. $1=self["@variables"];
  147. return $1;
  148. },
  149. args: [],
  150. source: "initializeVariables\x0a\x09^ variables := self makeVariables",
  151. messageSends: ["makeVariables"],
  152. referencedClasses: []
  153. }),
  154. smalltalk.HLInspector);
  155. smalltalk.addMethod(
  156. "_inspect_",
  157. smalltalk.method({
  158. selector: "inspect:",
  159. category: 'actions',
  160. fn: function (anObject){
  161. var self=this;
  162. var $1;
  163. smalltalk.send(smalltalk.send(self,"_model",[]),"_inspect_on_",[anObject,self]);
  164. smalltalk.send(self,"_refreshVariables",[]);
  165. smalltalk.send(self,"_refreshDisplay",[]);
  166. $1=smalltalk.send(self,"_yourself",[]);
  167. return self},
  168. args: ["anObject"],
  169. source: "inspect: anObject\x0a\x0a\x09self model inspect: anObject on: self.\x0a \x0a\x09self \x0a \x09refreshVariables;\x0a\x09\x09refreshDisplay;\x0a yourself",
  170. messageSends: ["inspect:on:", "model", "refreshVariables", "refreshDisplay", "yourself"],
  171. referencedClasses: []
  172. }),
  173. smalltalk.HLInspector);
  174. smalltalk.addMethod(
  175. "_inspectee",
  176. smalltalk.method({
  177. selector: "inspectee",
  178. category: 'accessing',
  179. fn: function (){
  180. var self=this;
  181. var $1;
  182. $1=smalltalk.send(smalltalk.send(self,"_model",[]),"_inspectee",[]);
  183. return $1;
  184. },
  185. args: [],
  186. source: "inspectee\x0a\x0a\x09^ self model inspectee",
  187. messageSends: ["inspectee", "model"],
  188. referencedClasses: []
  189. }),
  190. smalltalk.HLInspector);
  191. smalltalk.addMethod(
  192. "_inspectee_",
  193. smalltalk.method({
  194. selector: "inspectee:",
  195. category: 'accessing',
  196. fn: function (anObject){
  197. var self=this;
  198. smalltalk.send(smalltalk.send(self,"_model",[]),"_inspectee_",[anObject]);
  199. return self},
  200. args: ["anObject"],
  201. source: "inspectee: anObject\x0a\x0a\x09self model inspectee: anObject",
  202. messageSends: ["inspectee:", "model"],
  203. referencedClasses: []
  204. }),
  205. smalltalk.HLInspector);
  206. smalltalk.addMethod(
  207. "_label",
  208. smalltalk.method({
  209. selector: "label",
  210. category: 'accessing',
  211. fn: function (){
  212. var self=this;
  213. var $1;
  214. if(($receiver = self["@label"]) == nil || $receiver == undefined){
  215. $1=smalltalk.send(self,"_initializeLabel",[]);
  216. } else {
  217. $1=self["@label"];
  218. };
  219. return $1;
  220. },
  221. args: [],
  222. source: "label\x0a\x09\x0a ^ label ifNil:[self initializeLabel]",
  223. messageSends: ["ifNil:", "initializeLabel"],
  224. referencedClasses: []
  225. }),
  226. smalltalk.HLInspector);
  227. smalltalk.addMethod(
  228. "_makeCode",
  229. smalltalk.method({
  230. selector: "makeCode",
  231. category: 'actions',
  232. fn: function (){
  233. var self=this;
  234. var $2,$3,$1;
  235. $2=smalltalk.send((smalltalk.HLCodeWidget || HLCodeWidget),"_new",[]);
  236. smalltalk.send($2,"_model_",[smalltalk.send(self["@model"],"_code",[])]);
  237. smalltalk.send($2,"_receiver_",[smalltalk.send(self["@model"],"_inspectee",[])]);
  238. $3=smalltalk.send($2,"_yourself",[]);
  239. $1=$3;
  240. return $1;
  241. },
  242. args: [],
  243. source: "makeCode\x0a\x0a\x09^ HLCodeWidget new\x0a \x09model: model code;\x0a receiver: model inspectee;\x0a yourself.\x0a \x0a",
  244. messageSends: ["model:", "code", "new", "receiver:", "inspectee", "yourself"],
  245. referencedClasses: ["HLCodeWidget"]
  246. }),
  247. smalltalk.HLInspector);
  248. smalltalk.addMethod(
  249. "_makeDisplay",
  250. smalltalk.method({
  251. selector: "makeDisplay",
  252. category: 'actions',
  253. fn: function (){
  254. var self=this;
  255. var $2,$3,$1;
  256. $2=smalltalk.send((smalltalk.HLInspectorDisplay || HLInspectorDisplay),"_new",[]);
  257. smalltalk.send($2,"_model_",[smalltalk.send(self,"_model",[])]);
  258. $3=smalltalk.send($2,"_yourself",[]);
  259. $1=$3;
  260. return $1;
  261. },
  262. args: [],
  263. source: "makeDisplay\x0a\x0a\x09^ HLInspectorDisplay new\x0a \x09model: self model;\x0a yourself\x0a",
  264. messageSends: ["model:", "model", "new", "yourself"],
  265. referencedClasses: ["HLInspectorDisplay"]
  266. }),
  267. smalltalk.HLInspector);
  268. smalltalk.addMethod(
  269. "_makeVariables",
  270. smalltalk.method({
  271. selector: "makeVariables",
  272. category: 'actions',
  273. fn: function (){
  274. var self=this;
  275. var $2,$3,$1;
  276. $2=smalltalk.send((smalltalk.HLInspectorVariables || HLInspectorVariables),"_new",[]);
  277. smalltalk.send($2,"_model_",[smalltalk.send(self,"_model",[])]);
  278. $3=smalltalk.send($2,"_yourself",[]);
  279. $1=$3;
  280. return $1;
  281. },
  282. args: [],
  283. source: "makeVariables\x0a\x0a\x09^ HLInspectorVariables new\x0a \x09model: self model;\x0a yourself\x0a",
  284. messageSends: ["model:", "model", "new", "yourself"],
  285. referencedClasses: ["HLInspectorVariables"]
  286. }),
  287. smalltalk.HLInspector);
  288. smalltalk.addMethod(
  289. "_model",
  290. smalltalk.method({
  291. selector: "model",
  292. category: 'accessing',
  293. fn: function (){
  294. var self=this;
  295. var $1;
  296. if(($receiver = self["@model"]) == nil || $receiver == undefined){
  297. $1=smalltalk.send(self,"_initializeModel",[]);
  298. } else {
  299. $1=self["@model"];
  300. };
  301. return $1;
  302. },
  303. args: [],
  304. source: "model\x0a\x0a\x09^ model ifNil:[self initializeModel]",
  305. messageSends: ["ifNil:", "initializeModel"],
  306. referencedClasses: []
  307. }),
  308. smalltalk.HLInspector);
  309. smalltalk.addMethod(
  310. "_model_",
  311. smalltalk.method({
  312. selector: "model:",
  313. category: 'accessing',
  314. fn: function (aModel){
  315. var self=this;
  316. self["@model"]=aModel;
  317. smalltalk.send(smalltalk.send(self,"_code",[]),"_model_",[smalltalk.send(aModel,"_code",[])]);
  318. smalltalk.send(self,"_observeCode",[]);
  319. return self},
  320. args: ["aModel"],
  321. source: "model: aModel\x0a\x0a\x09model := aModel.\x0a \x0a self code model: aModel code.\x0a self observeCode.\x0a ",
  322. messageSends: ["model:", "code", "observeCode"],
  323. referencedClasses: []
  324. }),
  325. smalltalk.HLInspector);
  326. smalltalk.addMethod(
  327. "_observeCode",
  328. smalltalk.method({
  329. selector: "observeCode",
  330. category: 'actions',
  331. fn: function (){
  332. var self=this;
  333. smalltalk.send(smalltalk.send(smalltalk.send(self,"_code",[]),"_announcer",[]),"_on_do_",[(smalltalk.HLDoItExecuted || HLDoItExecuted),(function(){
  334. return smalltalk.send(self,"_onDoneIt",[]);
  335. })]);
  336. return self},
  337. args: [],
  338. source: "observeCode\x0a\x0a\x09self code announcer \x0a \x09on: HLDoItExecuted \x0a do: [self onDoneIt]\x0a",
  339. messageSends: ["on:do:", "onDoneIt", "announcer", "code"],
  340. referencedClasses: ["HLDoItExecuted"]
  341. }),
  342. smalltalk.HLInspector);
  343. smalltalk.addMethod(
  344. "_observeVariables",
  345. smalltalk.method({
  346. selector: "observeVariables",
  347. category: 'actions',
  348. fn: function (){
  349. var self=this;
  350. var $1,$2,$3,$4;
  351. $1=smalltalk.send(smalltalk.send(self,"_variables",[]),"_announcer",[]);
  352. smalltalk.send($1,"_on_do_",[(smalltalk.HLRefreshRequested || HLRefreshRequested),(function(ann){
  353. return smalltalk.send(self,"_onRefresh",[]);
  354. })]);
  355. $2=smalltalk.send($1,"_yourself",[]);
  356. $3=smalltalk.send(smalltalk.send(self,"_model",[]),"_announcer",[]);
  357. smalltalk.send($3,"_on_do_",[(smalltalk.HLInstanceVariableSelected || HLInstanceVariableSelected),(function(ann){
  358. return smalltalk.send(self,"_onInstanceVariableSelected",[]);
  359. })]);
  360. $4=smalltalk.send($3,"_yourself",[]);
  361. return self},
  362. args: [],
  363. source: "observeVariables\x0a\x0a\x09self variables announcer \x0a \x09on: HLRefreshRequested do:[:ann| self onRefresh];\x0a yourself.\x0a\x0a\x09self model announcer\x0a on: HLInstanceVariableSelected do:[:ann| self onInstanceVariableSelected];\x0a yourself.\x0a ",
  364. messageSends: ["on:do:", "onRefresh", "announcer", "variables", "yourself", "onInstanceVariableSelected", "model"],
  365. referencedClasses: ["HLRefreshRequested", "HLInstanceVariableSelected"]
  366. }),
  367. smalltalk.HLInspector);
  368. smalltalk.addMethod(
  369. "_onDoIt",
  370. smalltalk.method({
  371. selector: "onDoIt",
  372. category: 'reactions',
  373. fn: function (){
  374. var self=this;
  375. return self},
  376. args: [],
  377. source: "onDoIt",
  378. messageSends: [],
  379. referencedClasses: []
  380. }),
  381. smalltalk.HLInspector);
  382. smalltalk.addMethod(
  383. "_onDoneIt",
  384. smalltalk.method({
  385. selector: "onDoneIt",
  386. category: 'reactions',
  387. fn: function (){
  388. var self=this;
  389. smalltalk.send(self,"_refresh",[]);
  390. return self},
  391. args: [],
  392. source: "onDoneIt\x0a\x0a\x09self refresh",
  393. messageSends: ["refresh"],
  394. referencedClasses: []
  395. }),
  396. smalltalk.HLInspector);
  397. smalltalk.addMethod(
  398. "_onInspectIt",
  399. smalltalk.method({
  400. selector: "onInspectIt",
  401. category: 'reactions',
  402. fn: function (){
  403. var self=this;
  404. return self},
  405. args: [],
  406. source: "onInspectIt",
  407. messageSends: [],
  408. referencedClasses: []
  409. }),
  410. smalltalk.HLInspector);
  411. smalltalk.addMethod(
  412. "_onInstanceVariableSelected",
  413. smalltalk.method({
  414. selector: "onInstanceVariableSelected",
  415. category: 'reactions',
  416. fn: function (){
  417. var self=this;
  418. smalltalk.send(self,"_refreshDisplay",[]);
  419. return self},
  420. args: [],
  421. source: "onInstanceVariableSelected\x0a\x0a\x09self refreshDisplay",
  422. messageSends: ["refreshDisplay"],
  423. referencedClasses: []
  424. }),
  425. smalltalk.HLInspector);
  426. smalltalk.addMethod(
  427. "_onPrintIt",
  428. smalltalk.method({
  429. selector: "onPrintIt",
  430. category: 'reactions',
  431. fn: function (){
  432. var self=this;
  433. return self},
  434. args: [],
  435. source: "onPrintIt",
  436. messageSends: [],
  437. referencedClasses: []
  438. }),
  439. smalltalk.HLInspector);
  440. smalltalk.addMethod(
  441. "_onRefresh",
  442. smalltalk.method({
  443. selector: "onRefresh",
  444. category: 'reactions',
  445. fn: function (){
  446. var self=this;
  447. smalltalk.send(self,"_refresh",[]);
  448. return self},
  449. args: [],
  450. source: "onRefresh\x0a\x0a\x09self refresh",
  451. messageSends: ["refresh"],
  452. referencedClasses: []
  453. }),
  454. smalltalk.HLInspector);
  455. smalltalk.addMethod(
  456. "_open",
  457. smalltalk.method({
  458. selector: "open",
  459. category: 'actions',
  460. fn: function (){
  461. var self=this;
  462. smalltalk.send(smalltalk.send((smalltalk.HLManager || HLManager),"_current",[]),"_addTab_",[smalltalk.send((smalltalk.HLTab || HLTab),"_on_labelled_",[self,smalltalk.send(self,"_tabLabel",[])])]);
  463. return self},
  464. args: [],
  465. source: "open\x0a\x0a\x09HLManager current addTab: (HLTab on: self labelled: self tabLabel)\x0a",
  466. messageSends: ["addTab:", "on:labelled:", "tabLabel", "current"],
  467. referencedClasses: ["HLTab", "HLManager"]
  468. }),
  469. smalltalk.HLInspector);
  470. smalltalk.addMethod(
  471. "_refresh",
  472. smalltalk.method({
  473. selector: "refresh",
  474. category: 'actions',
  475. fn: function (){
  476. var self=this;
  477. smalltalk.send(self,"_inspect_",[smalltalk.send(self,"_inspectee",[])]);
  478. return self},
  479. args: [],
  480. source: "refresh\x0a\x0a\x09self inspect: self inspectee",
  481. messageSends: ["inspect:", "inspectee"],
  482. referencedClasses: []
  483. }),
  484. smalltalk.HLInspector);
  485. smalltalk.addMethod(
  486. "_refreshDisplay",
  487. smalltalk.method({
  488. selector: "refreshDisplay",
  489. category: 'actions',
  490. fn: function (){
  491. var self=this;
  492. smalltalk.send(smalltalk.send(self,"_display",[]),"_refresh",[]);
  493. return self},
  494. args: [],
  495. source: "refreshDisplay\x0a\x0a\x09self display refresh",
  496. messageSends: ["refresh", "display"],
  497. referencedClasses: []
  498. }),
  499. smalltalk.HLInspector);
  500. smalltalk.addMethod(
  501. "_refreshVariables",
  502. smalltalk.method({
  503. selector: "refreshVariables",
  504. category: 'actions',
  505. fn: function (){
  506. var self=this;
  507. smalltalk.send(smalltalk.send(self,"_variables",[]),"_refresh",[]);
  508. return self},
  509. args: [],
  510. source: "refreshVariables\x0a\x0a\x09self variables refresh",
  511. messageSends: ["refresh", "variables"],
  512. referencedClasses: []
  513. }),
  514. smalltalk.HLInspector);
  515. smalltalk.addMethod(
  516. "_renderContentOn_",
  517. smalltalk.method({
  518. selector: "renderContentOn:",
  519. category: 'rendering',
  520. fn: function (html){
  521. var self=this;
  522. smalltalk.send(self,"_ensureModel",[]);
  523. smalltalk.send(html,"_with_",[smalltalk.send((smalltalk.HLContainer || HLContainer),"_with_",[smalltalk.send((smalltalk.HLHorizontalSplitter || HLHorizontalSplitter),"_with_with_",[smalltalk.send((smalltalk.HLVerticalSplitter || HLVerticalSplitter),"_with_with_",[smalltalk.send(self,"_variables",[]),smalltalk.send(self,"_display",[])]),smalltalk.send(self,"_code",[])])])]);
  524. return self},
  525. args: ["html"],
  526. source: "renderContentOn: html\x0a\x0a\x09self ensureModel.\x0a \x0a \x09html with: (HLContainer with: (HLHorizontalSplitter\x0a \x09with: (HLVerticalSplitter \x0a \x09\x09with: self variables\x0a \x09 with: self display)\x0a with: self code))\x0a ",
  527. messageSends: ["ensureModel", "with:", "with:with:", "variables", "display", "code"],
  528. referencedClasses: ["HLVerticalSplitter", "HLHorizontalSplitter", "HLContainer"]
  529. }),
  530. smalltalk.HLInspector);
  531. smalltalk.addMethod(
  532. "_setLabel_",
  533. smalltalk.method({
  534. selector: "setLabel:",
  535. category: 'actions',
  536. fn: function (aString){
  537. var self=this;
  538. self["@label"]=aString;
  539. return self},
  540. args: ["aString"],
  541. source: "setLabel: aString\x0a\x09label := aString",
  542. messageSends: [],
  543. referencedClasses: []
  544. }),
  545. smalltalk.HLInspector);
  546. smalltalk.addMethod(
  547. "_setVariables_",
  548. smalltalk.method({
  549. selector: "setVariables:",
  550. category: 'actions',
  551. fn: function (aDictionary){
  552. var self=this;
  553. smalltalk.send(smalltalk.send(self,"_model",[]),"_variables_",[aDictionary]);
  554. return self},
  555. args: ["aDictionary"],
  556. source: "setVariables: aDictionary\x0a\x0a\x09self model variables: aDictionary",
  557. messageSends: ["variables:", "model"],
  558. referencedClasses: []
  559. }),
  560. smalltalk.HLInspector);
  561. smalltalk.addMethod(
  562. "_tabLabel",
  563. smalltalk.method({
  564. selector: "tabLabel",
  565. category: 'accessing',
  566. fn: function (){
  567. var self=this;
  568. var $1;
  569. $1=smalltalk.send(self,"_label",[]);
  570. return $1;
  571. },
  572. args: [],
  573. source: "tabLabel\x0a\x09\x0a ^ self label",
  574. messageSends: ["label"],
  575. referencedClasses: []
  576. }),
  577. smalltalk.HLInspector);
  578. smalltalk.addMethod(
  579. "_variables",
  580. smalltalk.method({
  581. selector: "variables",
  582. category: 'accessing',
  583. fn: function (){
  584. var self=this;
  585. var $1;
  586. if(($receiver = self["@variables"]) == nil || $receiver == undefined){
  587. $1=smalltalk.send(self,"_initializeVariables",[]);
  588. } else {
  589. $1=self["@variables"];
  590. };
  591. return $1;
  592. },
  593. args: [],
  594. source: "variables\x0a\x0a\x09^ variables ifNil:[self initializeVariables]",
  595. messageSends: ["ifNil:", "initializeVariables"],
  596. referencedClasses: []
  597. }),
  598. smalltalk.HLInspector);
  599. smalltalk.addMethod(
  600. "_canBeOpenAsTab",
  601. smalltalk.method({
  602. selector: "canBeOpenAsTab",
  603. category: 'testing',
  604. fn: function (){
  605. var self=this;
  606. return false;
  607. },
  608. args: [],
  609. source: "canBeOpenAsTab\x0a\x09^ false",
  610. messageSends: [],
  611. referencedClasses: []
  612. }),
  613. smalltalk.HLInspector.klass);
  614. smalltalk.addMethod(
  615. "_tabLabel",
  616. smalltalk.method({
  617. selector: "tabLabel",
  618. category: 'accessing',
  619. fn: function (){
  620. var self=this;
  621. return "Inspector";
  622. },
  623. args: [],
  624. source: "tabLabel\x0a\x09^ 'Inspector'",
  625. messageSends: [],
  626. referencedClasses: []
  627. }),
  628. smalltalk.HLInspector.klass);
  629. smalltalk.addMethod(
  630. "_tabPriority",
  631. smalltalk.method({
  632. selector: "tabPriority",
  633. category: 'accessing',
  634. fn: function (){
  635. var self=this;
  636. return (10);
  637. },
  638. args: [],
  639. source: "tabPriority\x0a\x09^ 10",
  640. messageSends: [],
  641. referencedClasses: []
  642. }),
  643. smalltalk.HLInspector.klass);
  644. smalltalk.addClass('HLInspectorDisplay', smalltalk.HLNavigationListWidget, ['model'], 'Helios-Inspector');
  645. smalltalk.addMethod(
  646. "_model",
  647. smalltalk.method({
  648. selector: "model",
  649. category: 'accessing',
  650. fn: function (){
  651. var self=this;
  652. return self["@model"];
  653. },
  654. args: [],
  655. source: "model\x0a\x0a\x09^ model",
  656. messageSends: [],
  657. referencedClasses: []
  658. }),
  659. smalltalk.HLInspectorDisplay);
  660. smalltalk.addMethod(
  661. "_model_",
  662. smalltalk.method({
  663. selector: "model:",
  664. category: 'accessing',
  665. fn: function (aModel){
  666. var self=this;
  667. self["@model"]=aModel;
  668. return self},
  669. args: ["aModel"],
  670. source: "model: aModel\x0a\x0a\x09model := aModel",
  671. messageSends: [],
  672. referencedClasses: []
  673. }),
  674. smalltalk.HLInspectorDisplay);
  675. smalltalk.addMethod(
  676. "_renderContentOn_",
  677. smalltalk.method({
  678. selector: "renderContentOn:",
  679. category: 'rendering',
  680. fn: function (html){
  681. var self=this;
  682. smalltalk.send(smalltalk.send(html,"_div",[]),"_with_",[smalltalk.send(self,"_selectionDisplayString",[])]);
  683. return self},
  684. args: ["html"],
  685. source: "renderContentOn: html\x0a\x09\x0a html div with: self selectionDisplayString\x0a ",
  686. messageSends: ["with:", "selectionDisplayString", "div"],
  687. referencedClasses: []
  688. }),
  689. smalltalk.HLInspectorDisplay);
  690. smalltalk.addMethod(
  691. "_selectionDisplayString",
  692. smalltalk.method({
  693. selector: "selectionDisplayString",
  694. category: 'rendering',
  695. fn: function (){
  696. var self=this;
  697. var $2,$1;
  698. var selection;
  699. selection=smalltalk.send(self["@model"],"_selection",[]);
  700. $2=smalltalk.send(smalltalk.send(smalltalk.send(self["@model"],"_variables",[]),"_keys",[]),"_includes_",[selection]);
  701. if(smalltalk.assert($2)){
  702. $1=smalltalk.send(smalltalk.send(self["@model"],"_instVarObjectAt_",[selection]),"_printString",[]);
  703. } else {
  704. $1="";
  705. };
  706. return $1;
  707. },
  708. args: [],
  709. source: "selectionDisplayString\x0a\x09|selection|\x0a\x09selection := model selection.\x0a ^ (model variables keys includes: selection)\x0a \x09ifTrue:[(model instVarObjectAt: selection) printString]\x0a \x09ifFalse:['']",
  710. messageSends: ["selection", "ifTrue:ifFalse:", "printString", "instVarObjectAt:", "includes:", "keys", "variables"],
  711. referencedClasses: []
  712. }),
  713. smalltalk.HLInspectorDisplay);
  714. smalltalk.addClass('HLInspectorModel', smalltalk.Object, ['announcer', 'environment', 'inspectee', 'code', 'variables', 'selection'], 'Helios-Inspector');
  715. smalltalk.addMethod(
  716. "_announcer",
  717. smalltalk.method({
  718. selector: "announcer",
  719. category: 'accessing',
  720. fn: function (){
  721. var self=this;
  722. var $1;
  723. if(($receiver = self["@announcer"]) == nil || $receiver == undefined){
  724. $1=smalltalk.send(self,"_initializeAnnouncer",[]);
  725. } else {
  726. $1=self["@announcer"];
  727. };
  728. return $1;
  729. },
  730. args: [],
  731. source: "announcer\x0a\x09^ announcer ifNil: [ self initializeAnnouncer ]",
  732. messageSends: ["ifNil:", "initializeAnnouncer"],
  733. referencedClasses: []
  734. }),
  735. smalltalk.HLInspectorModel);
  736. smalltalk.addMethod(
  737. "_beLocal",
  738. smalltalk.method({
  739. selector: "beLocal",
  740. category: 'actions',
  741. fn: function (){
  742. var self=this;
  743. smalltalk.send(self,"_initializeEnvironment",[]);
  744. return self},
  745. args: [],
  746. source: "beLocal\x0a\x0a\x09self initializeEnvironment\x0a",
  747. messageSends: ["initializeEnvironment"],
  748. referencedClasses: []
  749. }),
  750. smalltalk.HLInspectorModel);
  751. smalltalk.addMethod(
  752. "_beRemoteOn_port_",
  753. smalltalk.method({
  754. selector: "beRemoteOn:port:",
  755. category: 'actions',
  756. fn: function (anIPAddress,aPort){
  757. var self=this;
  758. return self},
  759. args: ["anIPAddress", "aPort"],
  760. source: "beRemoteOn: anIPAddress port: aPort\x0a\x0a\x09\x22to-do\x22\x0a \x0a \x22environment := HLRemoteEnvironment on: anIPAddress port: aPort\x0a \x0a ...kind of stuff\x22\x0a \x0a",
  761. messageSends: [],
  762. referencedClasses: []
  763. }),
  764. smalltalk.HLInspectorModel);
  765. smalltalk.addMethod(
  766. "_code",
  767. smalltalk.method({
  768. selector: "code",
  769. category: 'accessing',
  770. fn: function (){
  771. var self=this;
  772. var $1;
  773. if(($receiver = self["@code"]) == nil || $receiver == undefined){
  774. $1=smalltalk.send(self,"_initializeCode",[]);
  775. } else {
  776. $1=self["@code"];
  777. };
  778. return $1;
  779. },
  780. args: [],
  781. source: "code\x0a\x09\x22Answers the code model working for this workspace model\x22\x0a\x09^ code ifNil:[self initializeCode]",
  782. messageSends: ["ifNil:", "initializeCode"],
  783. referencedClasses: []
  784. }),
  785. smalltalk.HLInspectorModel);
  786. smalltalk.addMethod(
  787. "_environment",
  788. smalltalk.method({
  789. selector: "environment",
  790. category: 'accessing',
  791. fn: function (){
  792. var self=this;
  793. var $1;
  794. if(($receiver = self["@environment"]) == nil || $receiver == undefined){
  795. $1=smalltalk.send(self,"_initializeEnvironment",[]);
  796. } else {
  797. $1=self["@environment"];
  798. };
  799. return $1;
  800. },
  801. args: [],
  802. source: "environment\x0a\x09^ environment ifNil: [ self initializeEnvironment]",
  803. messageSends: ["ifNil:", "initializeEnvironment"],
  804. referencedClasses: []
  805. }),
  806. smalltalk.HLInspectorModel);
  807. smalltalk.addMethod(
  808. "_environment_",
  809. smalltalk.method({
  810. selector: "environment:",
  811. category: 'accessing',
  812. fn: function (anEnvironment){
  813. var self=this;
  814. self["@environment"]=anEnvironment;
  815. return self},
  816. args: ["anEnvironment"],
  817. source: "environment: anEnvironment\x0a\x09environment := anEnvironment",
  818. messageSends: [],
  819. referencedClasses: []
  820. }),
  821. smalltalk.HLInspectorModel);
  822. smalltalk.addMethod(
  823. "_initializeAnnouncer",
  824. smalltalk.method({
  825. selector: "initializeAnnouncer",
  826. category: 'initialization',
  827. fn: function (){
  828. var self=this;
  829. var $1;
  830. self["@announcer"]=smalltalk.send((smalltalk.Announcer || Announcer),"_new",[]);
  831. $1=self["@announcer"];
  832. return $1;
  833. },
  834. args: [],
  835. source: "initializeAnnouncer\x0a\x09^ announcer := Announcer new",
  836. messageSends: ["new"],
  837. referencedClasses: ["Announcer"]
  838. }),
  839. smalltalk.HLInspectorModel);
  840. smalltalk.addMethod(
  841. "_initializeCode",
  842. smalltalk.method({
  843. selector: "initializeCode",
  844. category: 'initialization',
  845. fn: function (){
  846. var self=this;
  847. var $1;
  848. self["@code"]=smalltalk.send((smalltalk.HLCodeModel || HLCodeModel),"_on_",[smalltalk.send(self,"_environment",[])]);
  849. $1=self["@code"];
  850. return $1;
  851. },
  852. args: [],
  853. source: "initializeCode\x0a\x0a\x09^ code := HLCodeModel on: self environment",
  854. messageSends: ["on:", "environment"],
  855. referencedClasses: ["HLCodeModel"]
  856. }),
  857. smalltalk.HLInspectorModel);
  858. smalltalk.addMethod(
  859. "_initializeEnvironment",
  860. smalltalk.method({
  861. selector: "initializeEnvironment",
  862. category: 'initialization',
  863. fn: function (){
  864. var self=this;
  865. var $1;
  866. self["@environment"]=smalltalk.send((smalltalk.HLLocalEnvironment || HLLocalEnvironment),"_new",[]);
  867. $1=self["@environment"];
  868. return $1;
  869. },
  870. args: [],
  871. source: "initializeEnvironment\x0a\x09^ environment := HLLocalEnvironment new",
  872. messageSends: ["new"],
  873. referencedClasses: ["HLLocalEnvironment"]
  874. }),
  875. smalltalk.HLInspectorModel);
  876. smalltalk.addMethod(
  877. "_initializeSelection",
  878. smalltalk.method({
  879. selector: "initializeSelection",
  880. category: 'initialization',
  881. fn: function (){
  882. var self=this;
  883. var $1;
  884. self["@selection"]="";
  885. $1=self["@selection"];
  886. return $1;
  887. },
  888. args: [],
  889. source: "initializeSelection\x0a\x0a\x09^ selection := ''",
  890. messageSends: [],
  891. referencedClasses: []
  892. }),
  893. smalltalk.HLInspectorModel);
  894. smalltalk.addMethod(
  895. "_inspect_on_",
  896. smalltalk.method({
  897. selector: "inspect:on:",
  898. category: 'actions',
  899. fn: function (anObject,anInspector){
  900. var self=this;
  901. self["@inspectee"]=anObject;
  902. self["@variables"]=[];
  903. smalltalk.send(self["@inspectee"],"_inspectOn_",[anInspector]);
  904. return self},
  905. args: ["anObject", "anInspector"],
  906. source: "inspect: anObject on: anInspector\x0a\x0a\x09inspectee := anObject.\x0a\x09variables := #().\x0a\x09inspectee inspectOn: anInspector \x0a",
  907. messageSends: ["inspectOn:"],
  908. referencedClasses: []
  909. }),
  910. smalltalk.HLInspectorModel);
  911. smalltalk.addMethod(
  912. "_inspectee",
  913. smalltalk.method({
  914. selector: "inspectee",
  915. category: 'accessing',
  916. fn: function (){
  917. var self=this;
  918. return self["@inspectee"];
  919. },
  920. args: [],
  921. source: "inspectee \x0a\x0a\x09^ inspectee ",
  922. messageSends: [],
  923. referencedClasses: []
  924. }),
  925. smalltalk.HLInspectorModel);
  926. smalltalk.addMethod(
  927. "_inspectee_",
  928. smalltalk.method({
  929. selector: "inspectee:",
  930. category: 'accessing',
  931. fn: function (anObject){
  932. var self=this;
  933. self["@inspectee"]=anObject;
  934. return self},
  935. args: ["anObject"],
  936. source: "inspectee: anObject \x0a\x0a\x09inspectee := anObject\x0a ",
  937. messageSends: [],
  938. referencedClasses: []
  939. }),
  940. smalltalk.HLInspectorModel);
  941. smalltalk.addMethod(
  942. "_instVarObjectAt_",
  943. smalltalk.method({
  944. selector: "instVarObjectAt:",
  945. category: 'actions',
  946. fn: function (anInstVarName){
  947. var self=this;
  948. var $1;
  949. $1=smalltalk.send(smalltalk.send(self,"_variables",[]),"_at_",[anInstVarName]);
  950. return $1;
  951. },
  952. args: ["anInstVarName"],
  953. source: "instVarObjectAt: anInstVarName\x0a\x0a\x09^ self variables at: anInstVarName",
  954. messageSends: ["at:", "variables"],
  955. referencedClasses: []
  956. }),
  957. smalltalk.HLInspectorModel);
  958. smalltalk.addMethod(
  959. "_onKeyDown_",
  960. smalltalk.method({
  961. selector: "onKeyDown:",
  962. category: 'reactions',
  963. fn: function (anEvent){
  964. var self=this;
  965. if(anEvent.ctrlKey) {
  966. if(anEvent.keyCode === 80) { //ctrl+p
  967. self._printIt();
  968. anEvent.preventDefault();
  969. return false;
  970. }
  971. if(anEvent.keyCode === 68) { //ctrl+d
  972. self._doIt();
  973. anEvent.preventDefault();
  974. return false;
  975. }
  976. if(anEvent.keyCode === 73) { //ctrl+i
  977. self._inspectIt();
  978. anEvent.preventDefault();
  979. return false;
  980. }
  981. };
  982. ;
  983. return self},
  984. args: ["anEvent"],
  985. 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}>",
  986. messageSends: [],
  987. referencedClasses: []
  988. }),
  989. smalltalk.HLInspectorModel);
  990. smalltalk.addMethod(
  991. "_selectedInstVar_",
  992. smalltalk.method({
  993. selector: "selectedInstVar:",
  994. category: 'actions',
  995. fn: function (anInstVarName){
  996. var self=this;
  997. smalltalk.send(self,"_selection_",[anInstVarName]);
  998. return self},
  999. args: ["anInstVarName"],
  1000. source: "selectedInstVar: anInstVarName\x0a\x0a self selection: anInstVarName\x0a\x0a\x09\x22self selection: (self variables keyAtValue: anInstVarObject)\x22",
  1001. messageSends: ["selection:"],
  1002. referencedClasses: []
  1003. }),
  1004. smalltalk.HLInspectorModel);
  1005. smalltalk.addMethod(
  1006. "_selectedInstVarObject",
  1007. smalltalk.method({
  1008. selector: "selectedInstVarObject",
  1009. category: 'accessing',
  1010. fn: function (){
  1011. var self=this;
  1012. var $1;
  1013. $1=smalltalk.send(self,"_instVarObjectAt_",[smalltalk.send(self,"_selection",[])]);
  1014. return $1;
  1015. },
  1016. args: [],
  1017. source: "selectedInstVarObject\x0a\x0a\x09^ self instVarObjectAt: self selection\x0a ",
  1018. messageSends: ["instVarObjectAt:", "selection"],
  1019. referencedClasses: []
  1020. }),
  1021. smalltalk.HLInspectorModel);
  1022. smalltalk.addMethod(
  1023. "_selection",
  1024. smalltalk.method({
  1025. selector: "selection",
  1026. category: 'accessing',
  1027. fn: function (){
  1028. var self=this;
  1029. var $1;
  1030. if(($receiver = self["@selection"]) == nil || $receiver == undefined){
  1031. $1=smalltalk.send(self,"_initializeSelection",[]);
  1032. } else {
  1033. $1=self["@selection"];
  1034. };
  1035. return $1;
  1036. },
  1037. args: [],
  1038. source: "selection\x0a\x0a\x09^ selection ifNil:[self initializeSelection] ",
  1039. messageSends: ["ifNil:", "initializeSelection"],
  1040. referencedClasses: []
  1041. }),
  1042. smalltalk.HLInspectorModel);
  1043. smalltalk.addMethod(
  1044. "_selection_",
  1045. smalltalk.method({
  1046. selector: "selection:",
  1047. category: 'accessing',
  1048. fn: function (anObject){
  1049. var self=this;
  1050. self["@selection"]=anObject;
  1051. smalltalk.send(smalltalk.send(self,"_announcer",[]),"_announce_",[smalltalk.send((smalltalk.HLInstanceVariableSelected || HLInstanceVariableSelected),"_on_",[self["@selection"]])]);
  1052. return self},
  1053. args: ["anObject"],
  1054. source: "selection: anObject\x0a\x0a\x09selection := anObject.\x0a\x0a\x09self announcer announce: (HLInstanceVariableSelected on: selection)\x0a ",
  1055. messageSends: ["announce:", "on:", "announcer"],
  1056. referencedClasses: ["HLInstanceVariableSelected"]
  1057. }),
  1058. smalltalk.HLInspectorModel);
  1059. smalltalk.addMethod(
  1060. "_subscribe_",
  1061. smalltalk.method({
  1062. selector: "subscribe:",
  1063. category: 'actions',
  1064. fn: function (aWidget){
  1065. var self=this;
  1066. smalltalk.send(aWidget,"_subscribeTo_",[smalltalk.send(self,"_announcer",[])]);
  1067. return self},
  1068. args: ["aWidget"],
  1069. source: "subscribe: aWidget\x0a\x09aWidget subscribeTo: self announcer",
  1070. messageSends: ["subscribeTo:", "announcer"],
  1071. referencedClasses: []
  1072. }),
  1073. smalltalk.HLInspectorModel);
  1074. smalltalk.addMethod(
  1075. "_variables",
  1076. smalltalk.method({
  1077. selector: "variables",
  1078. category: 'accessing',
  1079. fn: function (){
  1080. var self=this;
  1081. return self["@variables"];
  1082. },
  1083. args: [],
  1084. source: "variables\x0a\x0a\x09^ variables",
  1085. messageSends: [],
  1086. referencedClasses: []
  1087. }),
  1088. smalltalk.HLInspectorModel);
  1089. smalltalk.addMethod(
  1090. "_variables_",
  1091. smalltalk.method({
  1092. selector: "variables:",
  1093. category: 'accessing',
  1094. fn: function (aCollection){
  1095. var self=this;
  1096. self["@variables"]=aCollection;
  1097. return self},
  1098. args: ["aCollection"],
  1099. source: "variables: aCollection\x0a\x0a\x09variables := aCollection\x0a ",
  1100. messageSends: [],
  1101. referencedClasses: []
  1102. }),
  1103. smalltalk.HLInspectorModel);
  1104. smalltalk.addMethod(
  1105. "_on_",
  1106. smalltalk.method({
  1107. selector: "on:",
  1108. category: 'actions',
  1109. fn: function (anEnvironment){
  1110. var self=this;
  1111. var $2,$3,$1;
  1112. $2=smalltalk.send(self,"_new",[]);
  1113. smalltalk.send($2,"_environment_",[anEnvironment]);
  1114. $3=smalltalk.send($2,"_yourself",[]);
  1115. $1=$3;
  1116. return $1;
  1117. },
  1118. args: ["anEnvironment"],
  1119. source: "on: anEnvironment\x0a\x0a\x09^ self new\x0a \x09environment: anEnvironment;\x0a yourself",
  1120. messageSends: ["environment:", "new", "yourself"],
  1121. referencedClasses: []
  1122. }),
  1123. smalltalk.HLInspectorModel.klass);
  1124. smalltalk.addClass('HLInspectorVariables', smalltalk.HLNavigationListWidget, ['announcer', 'model', 'list', 'diveButton'], 'Helios-Inspector');
  1125. smalltalk.addMethod(
  1126. "_announcer",
  1127. smalltalk.method({
  1128. selector: "announcer",
  1129. category: 'accessing',
  1130. fn: function (){
  1131. var self=this;
  1132. var $1;
  1133. if(($receiver = self["@announcer"]) == nil || $receiver == undefined){
  1134. $1=smalltalk.send(self,"_initializeAnnouncer",[]);
  1135. } else {
  1136. $1=self["@announcer"];
  1137. };
  1138. return $1;
  1139. },
  1140. args: [],
  1141. source: "announcer\x0a\x0a\x09^ announcer ifNil:[self initializeAnnouncer]",
  1142. messageSends: ["ifNil:", "initializeAnnouncer"],
  1143. referencedClasses: []
  1144. }),
  1145. smalltalk.HLInspectorVariables);
  1146. smalltalk.addMethod(
  1147. "_initializeAnnouncer",
  1148. smalltalk.method({
  1149. selector: "initializeAnnouncer",
  1150. category: 'initialization',
  1151. fn: function (){
  1152. var self=this;
  1153. var $1;
  1154. self["@announcer"]=smalltalk.send((smalltalk.Announcer || Announcer),"_new",[]);
  1155. $1=self["@announcer"];
  1156. return $1;
  1157. },
  1158. args: [],
  1159. source: "initializeAnnouncer\x0a\x0a\x09^ announcer := Announcer new",
  1160. messageSends: ["new"],
  1161. referencedClasses: ["Announcer"]
  1162. }),
  1163. smalltalk.HLInspectorVariables);
  1164. smalltalk.addMethod(
  1165. "_initializeItems",
  1166. smalltalk.method({
  1167. selector: "initializeItems",
  1168. category: 'initialization',
  1169. fn: function (){
  1170. var self=this;
  1171. var $1;
  1172. self["@items"]=smalltalk.send(smalltalk.send(smalltalk.send(self,"_model",[]),"_variables",[]),"_keys",[]);
  1173. $1=self["@items"];
  1174. return $1;
  1175. },
  1176. args: [],
  1177. source: "initializeItems\x0a\x09^ items := self model variables keys",
  1178. messageSends: ["keys", "variables", "model"],
  1179. referencedClasses: []
  1180. }),
  1181. smalltalk.HLInspectorVariables);
  1182. smalltalk.addMethod(
  1183. "_model",
  1184. smalltalk.method({
  1185. selector: "model",
  1186. category: 'accessing',
  1187. fn: function (){
  1188. var self=this;
  1189. return self["@model"];
  1190. },
  1191. args: [],
  1192. source: "model\x0a\x09\x0a ^ model\x0a ",
  1193. messageSends: [],
  1194. referencedClasses: []
  1195. }),
  1196. smalltalk.HLInspectorVariables);
  1197. smalltalk.addMethod(
  1198. "_model_",
  1199. smalltalk.method({
  1200. selector: "model:",
  1201. category: 'accessing',
  1202. fn: function (aModel){
  1203. var self=this;
  1204. self["@model"]=aModel;
  1205. return self},
  1206. args: ["aModel"],
  1207. source: "model: aModel\x0a\x09\x0a model := aModel\x0a ",
  1208. messageSends: [],
  1209. referencedClasses: []
  1210. }),
  1211. smalltalk.HLInspectorVariables);
  1212. smalltalk.addMethod(
  1213. "_refresh",
  1214. smalltalk.method({
  1215. selector: "refresh",
  1216. category: 'actions',
  1217. fn: function (){
  1218. var self=this;
  1219. smalltalk.send(self,"_resetItems",[]);
  1220. smalltalk.send(self,"_refresh",[],smalltalk.HLNavigationListWidget);
  1221. return self},
  1222. args: [],
  1223. source: "refresh\x0a\x0a\x09self resetItems.\x0a \x0a super refresh\x0a ",
  1224. messageSends: ["resetItems", "refresh"],
  1225. referencedClasses: []
  1226. }),
  1227. smalltalk.HLInspectorVariables);
  1228. smalltalk.addMethod(
  1229. "_renderButtonsOn_",
  1230. smalltalk.method({
  1231. selector: "renderButtonsOn:",
  1232. category: 'rendering',
  1233. fn: function (html){
  1234. var self=this;
  1235. var $1,$2,$3,$4;
  1236. $1=smalltalk.send(html,"_button",[]);
  1237. smalltalk.send($1,"_class_",["btn"]);
  1238. smalltalk.send($1,"_with_",["Refresh"]);
  1239. $2=smalltalk.send($1,"_onClick_",[(function(){
  1240. return smalltalk.send(smalltalk.send(self,"_announcer",[]),"_announce_",[smalltalk.send((smalltalk.HLRefreshRequested || HLRefreshRequested),"_new",[])]);
  1241. })]);
  1242. $3=smalltalk.send(html,"_button",[]);
  1243. smalltalk.send($3,"_class_",["btn"]);
  1244. smalltalk.send($3,"_with_",["Dive"]);
  1245. $4=smalltalk.send($3,"_onClick_",[(function(){
  1246. return smalltalk.send(smalltalk.send(self,"_announcer",[]),"_announce_",[smalltalk.send((smalltalk.HLDiveRequested || HLDiveRequested),"_new",[])]);
  1247. })]);
  1248. self["@diveButton"]=$4;
  1249. return self},
  1250. args: ["html"],
  1251. 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]",
  1252. messageSends: ["class:", "button", "with:", "onClick:", "announce:", "new", "announcer"],
  1253. referencedClasses: ["HLRefreshRequested", "HLDiveRequested"]
  1254. }),
  1255. smalltalk.HLInspectorVariables);
  1256. smalltalk.addMethod(
  1257. "_resetItems",
  1258. smalltalk.method({
  1259. selector: "resetItems",
  1260. category: 'actions',
  1261. fn: function (){
  1262. var self=this;
  1263. self["@items"]=nil;
  1264. return self},
  1265. args: [],
  1266. source: "resetItems\x0a\x0a\x09items := nil",
  1267. messageSends: [],
  1268. referencedClasses: []
  1269. }),
  1270. smalltalk.HLInspectorVariables);
  1271. smalltalk.addMethod(
  1272. "_selectItem_",
  1273. smalltalk.method({
  1274. selector: "selectItem:",
  1275. category: 'reactions',
  1276. fn: function (anObject){
  1277. var self=this;
  1278. smalltalk.send(self,"_selectItem_",[anObject],smalltalk.HLNavigationListWidget);
  1279. smalltalk.send(smalltalk.send(self,"_model",[]),"_selectedInstVar_",[anObject]);
  1280. return self},
  1281. args: ["anObject"],
  1282. source: "selectItem: anObject\x0a\x09 \x0a\x09super selectItem: anObject.\x0a \x0a self model selectedInstVar: anObject",
  1283. messageSends: ["selectItem:", "selectedInstVar:", "model"],
  1284. referencedClasses: []
  1285. }),
  1286. smalltalk.HLInspectorVariables);
  1287. smalltalk.addMethod(
  1288. "_selection",
  1289. smalltalk.method({
  1290. selector: "selection",
  1291. category: 'accessing',
  1292. fn: function (){
  1293. var self=this;
  1294. var $1;
  1295. $1=smalltalk.send(self["@model"],"_selection",[]);
  1296. return $1;
  1297. },
  1298. args: [],
  1299. source: "selection\x0a\x0a\x09^ model selection",
  1300. messageSends: ["selection"],
  1301. referencedClasses: []
  1302. }),
  1303. smalltalk.HLInspectorVariables);
  1304. smalltalk.addMethod(
  1305. "_variables",
  1306. smalltalk.method({
  1307. selector: "variables",
  1308. category: 'accessing',
  1309. fn: function (){
  1310. var self=this;
  1311. var $1;
  1312. $1=smalltalk.send(self["@model"],"_variables",[]);
  1313. return $1;
  1314. },
  1315. args: [],
  1316. source: "variables\x0a\x0a\x09^ model variables",
  1317. messageSends: ["variables"],
  1318. referencedClasses: []
  1319. }),
  1320. smalltalk.HLInspectorVariables);