Helios-Inspector.js 35 KB

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