Helios-Inspector.js 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361
  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(smalltalk.send(self["@model"],"_selectedInstVarObject",[]),"_printString",[])]);
  666. return self},
  667. args: ["html"],
  668. source: "renderContentOn: html\x0a\x09\x0a html div with: model selectedInstVarObject printString\x0a ",
  669. messageSends: ["with:", "printString", "selectedInstVarObject", "div"],
  670. referencedClasses: []
  671. }),
  672. smalltalk.HLInspectorDisplay);
  673. smalltalk.addClass('HLInspectorModel', smalltalk.Object, ['announcer', 'environment', 'inspectee', 'code', 'variables', 'selection'], 'Helios-Inspector');
  674. smalltalk.addMethod(
  675. "_announcer",
  676. smalltalk.method({
  677. selector: "announcer",
  678. category: 'accessing',
  679. fn: function (){
  680. var self=this;
  681. var $1;
  682. if(($receiver = self["@announcer"]) == nil || $receiver == undefined){
  683. $1=smalltalk.send(self,"_initializeAnnouncer",[]);
  684. } else {
  685. $1=self["@announcer"];
  686. };
  687. return $1;
  688. },
  689. args: [],
  690. source: "announcer\x0a\x09^ announcer ifNil: [ self initializeAnnouncer ]",
  691. messageSends: ["ifNil:", "initializeAnnouncer"],
  692. referencedClasses: []
  693. }),
  694. smalltalk.HLInspectorModel);
  695. smalltalk.addMethod(
  696. "_beLocal",
  697. smalltalk.method({
  698. selector: "beLocal",
  699. category: 'actions',
  700. fn: function (){
  701. var self=this;
  702. smalltalk.send(self,"_initializeEnvironment",[]);
  703. return self},
  704. args: [],
  705. source: "beLocal\x0a\x0a\x09self initializeEnvironment\x0a",
  706. messageSends: ["initializeEnvironment"],
  707. referencedClasses: []
  708. }),
  709. smalltalk.HLInspectorModel);
  710. smalltalk.addMethod(
  711. "_beRemoteOn_port_",
  712. smalltalk.method({
  713. selector: "beRemoteOn:port:",
  714. category: 'actions',
  715. fn: function (anIPAddress,aPort){
  716. var self=this;
  717. return self},
  718. args: ["anIPAddress", "aPort"],
  719. 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",
  720. messageSends: [],
  721. referencedClasses: []
  722. }),
  723. smalltalk.HLInspectorModel);
  724. smalltalk.addMethod(
  725. "_code",
  726. smalltalk.method({
  727. selector: "code",
  728. category: 'accessing',
  729. fn: function (){
  730. var self=this;
  731. var $1;
  732. if(($receiver = self["@code"]) == nil || $receiver == undefined){
  733. $1=smalltalk.send(self,"_initializeCode",[]);
  734. } else {
  735. $1=self["@code"];
  736. };
  737. return $1;
  738. },
  739. args: [],
  740. source: "code\x0a\x09\x22Answers the code model working for this workspace model\x22\x0a\x09^ code ifNil:[self initializeCode]",
  741. messageSends: ["ifNil:", "initializeCode"],
  742. referencedClasses: []
  743. }),
  744. smalltalk.HLInspectorModel);
  745. smalltalk.addMethod(
  746. "_environment",
  747. smalltalk.method({
  748. selector: "environment",
  749. category: 'accessing',
  750. fn: function (){
  751. var self=this;
  752. var $1;
  753. if(($receiver = self["@environment"]) == nil || $receiver == undefined){
  754. $1=smalltalk.send(self,"_initializeEnvironment",[]);
  755. } else {
  756. $1=self["@environment"];
  757. };
  758. return $1;
  759. },
  760. args: [],
  761. source: "environment\x0a\x09^ environment ifNil: [ self initializeEnvironment]",
  762. messageSends: ["ifNil:", "initializeEnvironment"],
  763. referencedClasses: []
  764. }),
  765. smalltalk.HLInspectorModel);
  766. smalltalk.addMethod(
  767. "_environment_",
  768. smalltalk.method({
  769. selector: "environment:",
  770. category: 'accessing',
  771. fn: function (anEnvironment){
  772. var self=this;
  773. self["@environment"]=anEnvironment;
  774. return self},
  775. args: ["anEnvironment"],
  776. source: "environment: anEnvironment\x0a\x09environment := anEnvironment",
  777. messageSends: [],
  778. referencedClasses: []
  779. }),
  780. smalltalk.HLInspectorModel);
  781. smalltalk.addMethod(
  782. "_initializeAnnouncer",
  783. smalltalk.method({
  784. selector: "initializeAnnouncer",
  785. category: 'initialization',
  786. fn: function (){
  787. var self=this;
  788. var $1;
  789. self["@announcer"]=smalltalk.send((smalltalk.Announcer || Announcer),"_new",[]);
  790. $1=self["@announcer"];
  791. return $1;
  792. },
  793. args: [],
  794. source: "initializeAnnouncer\x0a\x09^ announcer := Announcer new",
  795. messageSends: ["new"],
  796. referencedClasses: ["Announcer"]
  797. }),
  798. smalltalk.HLInspectorModel);
  799. smalltalk.addMethod(
  800. "_initializeCode",
  801. smalltalk.method({
  802. selector: "initializeCode",
  803. category: 'initialization',
  804. fn: function (){
  805. var self=this;
  806. var $1;
  807. self["@code"]=smalltalk.send((smalltalk.HLCodeModel || HLCodeModel),"_on_",[smalltalk.send(self,"_environment",[])]);
  808. $1=self["@code"];
  809. return $1;
  810. },
  811. args: [],
  812. source: "initializeCode\x0a\x0a\x09^ code := HLCodeModel on: self environment",
  813. messageSends: ["on:", "environment"],
  814. referencedClasses: ["HLCodeModel"]
  815. }),
  816. smalltalk.HLInspectorModel);
  817. smalltalk.addMethod(
  818. "_initializeEnvironment",
  819. smalltalk.method({
  820. selector: "initializeEnvironment",
  821. category: 'initialization',
  822. fn: function (){
  823. var self=this;
  824. var $1;
  825. self["@environment"]=smalltalk.send((smalltalk.HLLocalEnvironment || HLLocalEnvironment),"_new",[]);
  826. $1=self["@environment"];
  827. return $1;
  828. },
  829. args: [],
  830. source: "initializeEnvironment\x0a\x09^ environment := HLLocalEnvironment new",
  831. messageSends: ["new"],
  832. referencedClasses: ["HLLocalEnvironment"]
  833. }),
  834. smalltalk.HLInspectorModel);
  835. smalltalk.addMethod(
  836. "_initializeSelection",
  837. smalltalk.method({
  838. selector: "initializeSelection",
  839. category: 'initialization',
  840. fn: function (){
  841. var self=this;
  842. var $1;
  843. self["@selection"]=smalltalk.send(self,"_inspectee",[]);
  844. $1=self["@selection"];
  845. return $1;
  846. },
  847. args: [],
  848. source: "initializeSelection\x0a\x0a\x09^ selection := self inspectee",
  849. messageSends: ["inspectee"],
  850. referencedClasses: []
  851. }),
  852. smalltalk.HLInspectorModel);
  853. smalltalk.addMethod(
  854. "_inspect_on_",
  855. smalltalk.method({
  856. selector: "inspect:on:",
  857. category: 'actions',
  858. fn: function (anObject,anInspector){
  859. var self=this;
  860. self["@inspectee"]=anObject;
  861. self["@variables"]=[];
  862. smalltalk.send(self["@inspectee"],"_inspectOn_",[anInspector]);
  863. return self},
  864. args: ["anObject", "anInspector"],
  865. source: "inspect: anObject on: anInspector\x0a\x0a\x09inspectee := anObject.\x0a\x09variables := #().\x0a\x09inspectee inspectOn: anInspector \x0a",
  866. messageSends: ["inspectOn:"],
  867. referencedClasses: []
  868. }),
  869. smalltalk.HLInspectorModel);
  870. smalltalk.addMethod(
  871. "_inspectee",
  872. smalltalk.method({
  873. selector: "inspectee",
  874. category: 'accessing',
  875. fn: function (){
  876. var self=this;
  877. return self["@inspectee"];
  878. },
  879. args: [],
  880. source: "inspectee \x0a\x0a\x09^ inspectee ",
  881. messageSends: [],
  882. referencedClasses: []
  883. }),
  884. smalltalk.HLInspectorModel);
  885. smalltalk.addMethod(
  886. "_inspectee_",
  887. smalltalk.method({
  888. selector: "inspectee:",
  889. category: 'accessing',
  890. fn: function (anObject){
  891. var self=this;
  892. self["@inspectee"]=anObject;
  893. return self},
  894. args: ["anObject"],
  895. source: "inspectee: anObject \x0a\x0a\x09inspectee := anObject\x0a ",
  896. messageSends: [],
  897. referencedClasses: []
  898. }),
  899. smalltalk.HLInspectorModel);
  900. smalltalk.addMethod(
  901. "_instVarObjectAt_",
  902. smalltalk.method({
  903. selector: "instVarObjectAt:",
  904. category: 'actions',
  905. fn: function (anInstVarName){
  906. var self=this;
  907. var $1;
  908. $1=smalltalk.send(smalltalk.send(self,"_variables",[]),"_at_",[anInstVarName]);
  909. return $1;
  910. },
  911. args: ["anInstVarName"],
  912. source: "instVarObjectAt: anInstVarName\x0a\x0a\x09^ self variables at: anInstVarName",
  913. messageSends: ["at:", "variables"],
  914. referencedClasses: []
  915. }),
  916. smalltalk.HLInspectorModel);
  917. smalltalk.addMethod(
  918. "_onKeyDown_",
  919. smalltalk.method({
  920. selector: "onKeyDown:",
  921. category: 'reactions',
  922. fn: function (anEvent){
  923. var self=this;
  924. if(anEvent.ctrlKey) {
  925. if(anEvent.keyCode === 80) { //ctrl+p
  926. self._printIt();
  927. anEvent.preventDefault();
  928. return false;
  929. }
  930. if(anEvent.keyCode === 68) { //ctrl+d
  931. self._doIt();
  932. anEvent.preventDefault();
  933. return false;
  934. }
  935. if(anEvent.keyCode === 73) { //ctrl+i
  936. self._inspectIt();
  937. anEvent.preventDefault();
  938. return false;
  939. }
  940. };
  941. ;
  942. return self},
  943. args: ["anEvent"],
  944. 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}>",
  945. messageSends: [],
  946. referencedClasses: []
  947. }),
  948. smalltalk.HLInspectorModel);
  949. smalltalk.addMethod(
  950. "_selectedInstVar_",
  951. smalltalk.method({
  952. selector: "selectedInstVar:",
  953. category: 'actions',
  954. fn: function (anInstVarObject){
  955. var self=this;
  956. smalltalk.send(self,"_halt",[]);
  957. smalltalk.send(self,"_selection_",[smalltalk.send(smalltalk.send(self,"_variables",[]),"_keyAtValue_",[anInstVarObject])]);
  958. return self},
  959. args: ["anInstVarObject"],
  960. source: "selectedInstVar: anInstVarObject\x0a self halt.\x0a\x09self selection: (self variables keyAtValue: anInstVarObject)",
  961. messageSends: ["halt", "selection:", "keyAtValue:", "variables"],
  962. referencedClasses: []
  963. }),
  964. smalltalk.HLInspectorModel);
  965. smalltalk.addMethod(
  966. "_selectedInstVarObject",
  967. smalltalk.method({
  968. selector: "selectedInstVarObject",
  969. category: 'accessing',
  970. fn: function (){
  971. var self=this;
  972. var $1;
  973. $1=smalltalk.send(self,"_instVarObjectAt_",[smalltalk.send(self,"_selection",[])]);
  974. return $1;
  975. },
  976. args: [],
  977. source: "selectedInstVarObject\x0a\x0a\x09^ self instVarObjectAt: self selection\x0a ",
  978. messageSends: ["instVarObjectAt:", "selection"],
  979. referencedClasses: []
  980. }),
  981. smalltalk.HLInspectorModel);
  982. smalltalk.addMethod(
  983. "_selection",
  984. smalltalk.method({
  985. selector: "selection",
  986. category: 'accessing',
  987. fn: function (){
  988. var self=this;
  989. var $1;
  990. if(($receiver = self["@selection"]) == nil || $receiver == undefined){
  991. $1=smalltalk.send(self,"_initializeSelection",[]);
  992. } else {
  993. $1=self["@selection"];
  994. };
  995. return $1;
  996. },
  997. args: [],
  998. source: "selection\x0a\x0a\x09^ selection ifNil:[self initializeSelection] ",
  999. messageSends: ["ifNil:", "initializeSelection"],
  1000. referencedClasses: []
  1001. }),
  1002. smalltalk.HLInspectorModel);
  1003. smalltalk.addMethod(
  1004. "_selection_",
  1005. smalltalk.method({
  1006. selector: "selection:",
  1007. category: 'accessing',
  1008. fn: function (anObject){
  1009. var self=this;
  1010. self["@selection"]=anObject;
  1011. smalltalk.send(smalltalk.send(self,"_announcer",[]),"_announce_",[smalltalk.send((smalltalk.HLInstanceVariableSelected || HLInstanceVariableSelected),"_on_",[self["@selection"]])]);
  1012. return self},
  1013. args: ["anObject"],
  1014. source: "selection: anObject\x0a\x0a\x09selection := anObject.\x0a\x0a\x09self announcer announce: (HLInstanceVariableSelected on: selection)\x0a ",
  1015. messageSends: ["announce:", "on:", "announcer"],
  1016. referencedClasses: ["HLInstanceVariableSelected"]
  1017. }),
  1018. smalltalk.HLInspectorModel);
  1019. smalltalk.addMethod(
  1020. "_subscribe_",
  1021. smalltalk.method({
  1022. selector: "subscribe:",
  1023. category: 'actions',
  1024. fn: function (aWidget){
  1025. var self=this;
  1026. smalltalk.send(aWidget,"_subscribeTo_",[smalltalk.send(self,"_announcer",[])]);
  1027. return self},
  1028. args: ["aWidget"],
  1029. source: "subscribe: aWidget\x0a\x09aWidget subscribeTo: self announcer",
  1030. messageSends: ["subscribeTo:", "announcer"],
  1031. referencedClasses: []
  1032. }),
  1033. smalltalk.HLInspectorModel);
  1034. smalltalk.addMethod(
  1035. "_variables",
  1036. smalltalk.method({
  1037. selector: "variables",
  1038. category: 'accessing',
  1039. fn: function (){
  1040. var self=this;
  1041. return self["@variables"];
  1042. },
  1043. args: [],
  1044. source: "variables\x0a\x0a\x09^ variables",
  1045. messageSends: [],
  1046. referencedClasses: []
  1047. }),
  1048. smalltalk.HLInspectorModel);
  1049. smalltalk.addMethod(
  1050. "_variables_",
  1051. smalltalk.method({
  1052. selector: "variables:",
  1053. category: 'accessing',
  1054. fn: function (aCollection){
  1055. var self=this;
  1056. self["@variables"]=aCollection;
  1057. return self},
  1058. args: ["aCollection"],
  1059. source: "variables: aCollection\x0a\x0a\x09variables := aCollection\x0a ",
  1060. messageSends: [],
  1061. referencedClasses: []
  1062. }),
  1063. smalltalk.HLInspectorModel);
  1064. smalltalk.addMethod(
  1065. "_on_",
  1066. smalltalk.method({
  1067. selector: "on:",
  1068. category: 'actions',
  1069. fn: function (anEnvironment){
  1070. var self=this;
  1071. var $2,$3,$1;
  1072. $2=smalltalk.send(self,"_new",[]);
  1073. smalltalk.send($2,"_environment_",[anEnvironment]);
  1074. $3=smalltalk.send($2,"_yourself",[]);
  1075. $1=$3;
  1076. return $1;
  1077. },
  1078. args: ["anEnvironment"],
  1079. source: "on: anEnvironment\x0a\x0a\x09^ self new\x0a \x09environment: anEnvironment;\x0a yourself",
  1080. messageSends: ["environment:", "new", "yourself"],
  1081. referencedClasses: []
  1082. }),
  1083. smalltalk.HLInspectorModel.klass);
  1084. smalltalk.addClass('HLInspectorVariables', smalltalk.HLNavigationListWidget, ['announcer', 'model', 'list', 'diveButton'], 'Helios-Inspector');
  1085. smalltalk.addMethod(
  1086. "_announcer",
  1087. smalltalk.method({
  1088. selector: "announcer",
  1089. category: 'accessing',
  1090. fn: function (){
  1091. var self=this;
  1092. var $1;
  1093. if(($receiver = self["@announcer"]) == nil || $receiver == undefined){
  1094. $1=smalltalk.send(self,"_initializeAnnouncer",[]);
  1095. } else {
  1096. $1=self["@announcer"];
  1097. };
  1098. return $1;
  1099. },
  1100. args: [],
  1101. source: "announcer\x0a\x0a\x09^ announcer ifNil:[self initializeAnnouncer]",
  1102. messageSends: ["ifNil:", "initializeAnnouncer"],
  1103. referencedClasses: []
  1104. }),
  1105. smalltalk.HLInspectorVariables);
  1106. smalltalk.addMethod(
  1107. "_initializeAnnouncer",
  1108. smalltalk.method({
  1109. selector: "initializeAnnouncer",
  1110. category: 'initialization',
  1111. fn: function (){
  1112. var self=this;
  1113. var $1;
  1114. self["@announcer"]=smalltalk.send((smalltalk.Announcer || Announcer),"_new",[]);
  1115. $1=self["@announcer"];
  1116. return $1;
  1117. },
  1118. args: [],
  1119. source: "initializeAnnouncer\x0a\x0a\x09^ announcer := Announcer new",
  1120. messageSends: ["new"],
  1121. referencedClasses: ["Announcer"]
  1122. }),
  1123. smalltalk.HLInspectorVariables);
  1124. smalltalk.addMethod(
  1125. "_initializeItems",
  1126. smalltalk.method({
  1127. selector: "initializeItems",
  1128. category: 'initialization',
  1129. fn: function (){
  1130. var self=this;
  1131. var $1;
  1132. self["@items"]=smalltalk.send(smalltalk.send(smalltalk.send(self,"_model",[]),"_variables",[]),"_keys",[]);
  1133. $1=self["@items"];
  1134. return $1;
  1135. },
  1136. args: [],
  1137. source: "initializeItems\x0a\x09^ items := self model variables keys",
  1138. messageSends: ["keys", "variables", "model"],
  1139. referencedClasses: []
  1140. }),
  1141. smalltalk.HLInspectorVariables);
  1142. smalltalk.addMethod(
  1143. "_model",
  1144. smalltalk.method({
  1145. selector: "model",
  1146. category: 'accessing',
  1147. fn: function (){
  1148. var self=this;
  1149. return self["@model"];
  1150. },
  1151. args: [],
  1152. source: "model\x0a\x09\x0a ^ model\x0a ",
  1153. messageSends: [],
  1154. referencedClasses: []
  1155. }),
  1156. smalltalk.HLInspectorVariables);
  1157. smalltalk.addMethod(
  1158. "_model_",
  1159. smalltalk.method({
  1160. selector: "model:",
  1161. category: 'accessing',
  1162. fn: function (aModel){
  1163. var self=this;
  1164. self["@model"]=aModel;
  1165. return self},
  1166. args: ["aModel"],
  1167. source: "model: aModel\x0a\x09\x0a model := aModel\x0a ",
  1168. messageSends: [],
  1169. referencedClasses: []
  1170. }),
  1171. smalltalk.HLInspectorVariables);
  1172. smalltalk.addMethod(
  1173. "_refresh",
  1174. smalltalk.method({
  1175. selector: "refresh",
  1176. category: 'actions',
  1177. fn: function (){
  1178. var self=this;
  1179. smalltalk.send(self,"_resetItems",[]);
  1180. smalltalk.send(self,"_refresh",[],smalltalk.HLNavigationListWidget);
  1181. return self},
  1182. args: [],
  1183. source: "refresh\x0a\x0a\x09self resetItems.\x0a \x0a super refresh\x0a ",
  1184. messageSends: ["resetItems", "refresh"],
  1185. referencedClasses: []
  1186. }),
  1187. smalltalk.HLInspectorVariables);
  1188. smalltalk.addMethod(
  1189. "_renderButtonsOn_",
  1190. smalltalk.method({
  1191. selector: "renderButtonsOn:",
  1192. category: 'rendering',
  1193. fn: function (html){
  1194. var self=this;
  1195. var $1,$2,$3,$4;
  1196. $1=smalltalk.send(html,"_button",[]);
  1197. smalltalk.send($1,"_class_",["btn"]);
  1198. smalltalk.send($1,"_with_",["Refresh"]);
  1199. $2=smalltalk.send($1,"_onClick_",[(function(){
  1200. return smalltalk.send(smalltalk.send(self,"_announcer",[]),"_announce_",[smalltalk.send((smalltalk.HLRefreshRequested || HLRefreshRequested),"_new",[])]);
  1201. })]);
  1202. $3=smalltalk.send(html,"_button",[]);
  1203. smalltalk.send($3,"_class_",["btn"]);
  1204. smalltalk.send($3,"_with_",["Dive"]);
  1205. $4=smalltalk.send($3,"_onClick_",[(function(){
  1206. return smalltalk.send(smalltalk.send(self,"_announcer",[]),"_announce_",[smalltalk.send((smalltalk.HLDiveRequested || HLDiveRequested),"_new",[])]);
  1207. })]);
  1208. self["@diveButton"]=$4;
  1209. return self},
  1210. args: ["html"],
  1211. 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]",
  1212. messageSends: ["class:", "button", "with:", "onClick:", "announce:", "new", "announcer"],
  1213. referencedClasses: ["HLRefreshRequested", "HLDiveRequested"]
  1214. }),
  1215. smalltalk.HLInspectorVariables);
  1216. smalltalk.addMethod(
  1217. "_resetItems",
  1218. smalltalk.method({
  1219. selector: "resetItems",
  1220. category: 'actions',
  1221. fn: function (){
  1222. var self=this;
  1223. self["@items"]=nil;
  1224. return self},
  1225. args: [],
  1226. source: "resetItems\x0a\x0a\x09items := nil",
  1227. messageSends: [],
  1228. referencedClasses: []
  1229. }),
  1230. smalltalk.HLInspectorVariables);
  1231. smalltalk.addMethod(
  1232. "_selectItem_",
  1233. smalltalk.method({
  1234. selector: "selectItem:",
  1235. category: 'reactions',
  1236. fn: function (anObject){
  1237. var self=this;
  1238. smalltalk.send(self,"_selectItem_",[anObject],smalltalk.HLNavigationListWidget);
  1239. smalltalk.send(smalltalk.send(self,"_model",[]),"_selectedInstVar_",[anObject]);
  1240. return self},
  1241. args: ["anObject"],
  1242. source: "selectItem: anObject\x0a\x0a\x09super selectItem: anObject.\x0a \x0a self model selectedInstVar: anObject",
  1243. messageSends: ["selectItem:", "selectedInstVar:", "model"],
  1244. referencedClasses: []
  1245. }),
  1246. smalltalk.HLInspectorVariables);
  1247. smalltalk.addMethod(
  1248. "_selection",
  1249. smalltalk.method({
  1250. selector: "selection",
  1251. category: 'accessing',
  1252. fn: function (){
  1253. var self=this;
  1254. var $1;
  1255. $1=smalltalk.send(self["@model"],"_selection",[]);
  1256. return $1;
  1257. },
  1258. args: [],
  1259. source: "selection\x0a\x0a\x09^ model selection",
  1260. messageSends: ["selection"],
  1261. referencedClasses: []
  1262. }),
  1263. smalltalk.HLInspectorVariables);
  1264. smalltalk.addMethod(
  1265. "_variables",
  1266. smalltalk.method({
  1267. selector: "variables",
  1268. category: 'accessing',
  1269. fn: function (){
  1270. var self=this;
  1271. var $1;
  1272. $1=smalltalk.send(self["@model"],"_variables",[]);
  1273. return $1;
  1274. },
  1275. args: [],
  1276. source: "variables\x0a\x0a\x09^ model variables",
  1277. messageSends: ["variables"],
  1278. referencedClasses: []
  1279. }),
  1280. smalltalk.HLInspectorVariables);