Helios-Inspector.js 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288
  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. if(($receiver = self["@model"]) == nil || $receiver == undefined){
  53. smalltalk.send(self,"_model_",[smalltalk.send(self,"_model",[])]);
  54. smalltalk.send(self,"_observeVariables",[]);
  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\x09model ifNil:[\x0a\x09\x09self model: self model.\x0a\x09\x09self observeVariables]\x0a\x09",
  61. messageSends: ["ifNil:", "model:", "model", "observeVariables"],
  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;
  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. smalltalk.send($1,"_on_do_",[(smalltalk.HLInstanceVariableSelected || HLInstanceVariableSelected),(function(ann){
  351. return smalltalk.send(self,"_onInstanceVariableSelected",[]);
  352. })]);
  353. $2=smalltalk.send($1,"_yourself",[]);
  354. return self},
  355. args: [],
  356. source: "observeVariables\x0a\x0a\x09self variables announcer \x0a \x09on: HLRefreshRequested do:[:ann| self onRefresh];\x0a on: HLInstanceVariableSelected do:[:ann| self onInstanceVariableSelected];\x0a yourself ",
  357. messageSends: ["on:do:", "onRefresh", "announcer", "variables", "onInstanceVariableSelected", "yourself"],
  358. referencedClasses: ["HLRefreshRequested", "HLInstanceVariableSelected"]
  359. }),
  360. smalltalk.HLInspector);
  361. smalltalk.addMethod(
  362. "_onDoIt",
  363. smalltalk.method({
  364. selector: "onDoIt",
  365. category: 'reactions',
  366. fn: function (){
  367. var self=this;
  368. return self},
  369. args: [],
  370. source: "onDoIt",
  371. messageSends: [],
  372. referencedClasses: []
  373. }),
  374. smalltalk.HLInspector);
  375. smalltalk.addMethod(
  376. "_onInspectIt",
  377. smalltalk.method({
  378. selector: "onInspectIt",
  379. category: 'reactions',
  380. fn: function (){
  381. var self=this;
  382. return self},
  383. args: [],
  384. source: "onInspectIt",
  385. messageSends: [],
  386. referencedClasses: []
  387. }),
  388. smalltalk.HLInspector);
  389. smalltalk.addMethod(
  390. "_onInstanceVariableSelected",
  391. smalltalk.method({
  392. selector: "onInstanceVariableSelected",
  393. category: 'reactions',
  394. fn: function (){
  395. var self=this;
  396. smalltalk.send(self,"_halt",[]);
  397. return self},
  398. args: [],
  399. source: "onInstanceVariableSelected\x0a\x0a\x09self halt.",
  400. messageSends: ["halt"],
  401. referencedClasses: []
  402. }),
  403. smalltalk.HLInspector);
  404. smalltalk.addMethod(
  405. "_onPrintIt",
  406. smalltalk.method({
  407. selector: "onPrintIt",
  408. category: 'reactions',
  409. fn: function (){
  410. var self=this;
  411. return self},
  412. args: [],
  413. source: "onPrintIt",
  414. messageSends: [],
  415. referencedClasses: []
  416. }),
  417. smalltalk.HLInspector);
  418. smalltalk.addMethod(
  419. "_onRefresh",
  420. smalltalk.method({
  421. selector: "onRefresh",
  422. category: 'reactions',
  423. fn: function (){
  424. var self=this;
  425. smalltalk.send(self,"_refresh",[]);
  426. return self},
  427. args: [],
  428. source: "onRefresh\x0a\x0a\x09self refresh",
  429. messageSends: ["refresh"],
  430. referencedClasses: []
  431. }),
  432. smalltalk.HLInspector);
  433. smalltalk.addMethod(
  434. "_open",
  435. smalltalk.method({
  436. selector: "open",
  437. category: 'actions',
  438. fn: function (){
  439. var self=this;
  440. smalltalk.send(smalltalk.send((smalltalk.HLManager || HLManager),"_current",[]),"_addTab_",[smalltalk.send((smalltalk.HLTab || HLTab),"_on_labelled_",[self,smalltalk.send(self,"_tabLabel",[])])]);
  441. return self},
  442. args: [],
  443. source: "open\x0a\x0a\x09HLManager current addTab: (HLTab on: self labelled: self tabLabel)\x0a",
  444. messageSends: ["addTab:", "on:labelled:", "tabLabel", "current"],
  445. referencedClasses: ["HLTab", "HLManager"]
  446. }),
  447. smalltalk.HLInspector);
  448. smalltalk.addMethod(
  449. "_refresh",
  450. smalltalk.method({
  451. selector: "refresh",
  452. category: 'actions',
  453. fn: function (){
  454. var self=this;
  455. var $1;
  456. smalltalk.send(self,"_inspect_",[smalltalk.send(self,"_inspectee",[])]);
  457. smalltalk.send(self,"_refreshVariables",[]);
  458. $1=smalltalk.send(self,"_refreshDisplay",[]);
  459. return self},
  460. args: [],
  461. source: "refresh\x0a\x0a\x09self \x0a\x09\x09inspect: self inspectee; \x0a\x09\x09refreshVariables;\x0a\x09\x09refreshDisplay",
  462. messageSends: ["inspect:", "inspectee", "refreshVariables", "refreshDisplay"],
  463. referencedClasses: []
  464. }),
  465. smalltalk.HLInspector);
  466. smalltalk.addMethod(
  467. "_refreshDisplay",
  468. smalltalk.method({
  469. selector: "refreshDisplay",
  470. category: 'actions',
  471. fn: function (){
  472. var self=this;
  473. smalltalk.send(smalltalk.send(self,"_display",[]),"_refresh",[]);
  474. return self},
  475. args: [],
  476. source: "refreshDisplay\x0a\x0a\x09self display refresh",
  477. messageSends: ["refresh", "display"],
  478. referencedClasses: []
  479. }),
  480. smalltalk.HLInspector);
  481. smalltalk.addMethod(
  482. "_refreshVariables",
  483. smalltalk.method({
  484. selector: "refreshVariables",
  485. category: 'actions',
  486. fn: function (){
  487. var self=this;
  488. smalltalk.send(smalltalk.send(self,"_variables",[]),"_refresh",[]);
  489. return self},
  490. args: [],
  491. source: "refreshVariables\x0a\x0a\x09self variables refresh",
  492. messageSends: ["refresh", "variables"],
  493. referencedClasses: []
  494. }),
  495. smalltalk.HLInspector);
  496. smalltalk.addMethod(
  497. "_renderContentOn_",
  498. smalltalk.method({
  499. selector: "renderContentOn:",
  500. category: 'rendering',
  501. fn: function (html){
  502. var self=this;
  503. smalltalk.send(self,"_ensureModel",[]);
  504. 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",[])])])]);
  505. return self},
  506. args: ["html"],
  507. 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 ",
  508. messageSends: ["ensureModel", "with:", "with:with:", "variables", "display", "code"],
  509. referencedClasses: ["HLVerticalSplitter", "HLHorizontalSplitter", "HLContainer"]
  510. }),
  511. smalltalk.HLInspector);
  512. smalltalk.addMethod(
  513. "_setLabel_",
  514. smalltalk.method({
  515. selector: "setLabel:",
  516. category: 'actions',
  517. fn: function (aString){
  518. var self=this;
  519. self["@label"]=aString;
  520. return self},
  521. args: ["aString"],
  522. source: "setLabel: aString\x0a\x09label := aString",
  523. messageSends: [],
  524. referencedClasses: []
  525. }),
  526. smalltalk.HLInspector);
  527. smalltalk.addMethod(
  528. "_setVariables_",
  529. smalltalk.method({
  530. selector: "setVariables:",
  531. category: 'actions',
  532. fn: function (aDictionary){
  533. var self=this;
  534. smalltalk.send(smalltalk.send(self,"_model",[]),"_variables_",[aDictionary]);
  535. return self},
  536. args: ["aDictionary"],
  537. source: "setVariables: aDictionary\x0a\x0a\x09self model variables: aDictionary",
  538. messageSends: ["variables:", "model"],
  539. referencedClasses: []
  540. }),
  541. smalltalk.HLInspector);
  542. smalltalk.addMethod(
  543. "_tabLabel",
  544. smalltalk.method({
  545. selector: "tabLabel",
  546. category: 'accessing',
  547. fn: function (){
  548. var self=this;
  549. var $1;
  550. $1=smalltalk.send(self,"_label",[]);
  551. return $1;
  552. },
  553. args: [],
  554. source: "tabLabel\x0a\x09\x0a ^ self label",
  555. messageSends: ["label"],
  556. referencedClasses: []
  557. }),
  558. smalltalk.HLInspector);
  559. smalltalk.addMethod(
  560. "_variables",
  561. smalltalk.method({
  562. selector: "variables",
  563. category: 'accessing',
  564. fn: function (){
  565. var self=this;
  566. var $1;
  567. if(($receiver = self["@variables"]) == nil || $receiver == undefined){
  568. $1=smalltalk.send(self,"_initializeVariables",[]);
  569. } else {
  570. $1=self["@variables"];
  571. };
  572. return $1;
  573. },
  574. args: [],
  575. source: "variables\x0a\x0a\x09^ variables ifNil:[self initializeVariables]",
  576. messageSends: ["ifNil:", "initializeVariables"],
  577. referencedClasses: []
  578. }),
  579. smalltalk.HLInspector);
  580. smalltalk.addMethod(
  581. "_canBeOpenAsTab",
  582. smalltalk.method({
  583. selector: "canBeOpenAsTab",
  584. category: 'testing',
  585. fn: function (){
  586. var self=this;
  587. return false;
  588. },
  589. args: [],
  590. source: "canBeOpenAsTab\x0a\x09^ false",
  591. messageSends: [],
  592. referencedClasses: []
  593. }),
  594. smalltalk.HLInspector.klass);
  595. smalltalk.addMethod(
  596. "_tabLabel",
  597. smalltalk.method({
  598. selector: "tabLabel",
  599. category: 'accessing',
  600. fn: function (){
  601. var self=this;
  602. return "Inspector";
  603. },
  604. args: [],
  605. source: "tabLabel\x0a\x09^ 'Inspector'",
  606. messageSends: [],
  607. referencedClasses: []
  608. }),
  609. smalltalk.HLInspector.klass);
  610. smalltalk.addMethod(
  611. "_tabPriority",
  612. smalltalk.method({
  613. selector: "tabPriority",
  614. category: 'accessing',
  615. fn: function (){
  616. var self=this;
  617. return (10);
  618. },
  619. args: [],
  620. source: "tabPriority\x0a\x09^ 10",
  621. messageSends: [],
  622. referencedClasses: []
  623. }),
  624. smalltalk.HLInspector.klass);
  625. smalltalk.addClass('HLInspectorDisplay', smalltalk.HLNavigationListWidget, ['model'], 'Helios-Inspector');
  626. smalltalk.addMethod(
  627. "_model",
  628. smalltalk.method({
  629. selector: "model",
  630. category: 'accessing',
  631. fn: function (){
  632. var self=this;
  633. return self["@model"];
  634. },
  635. args: [],
  636. source: "model\x0a\x0a\x09^ model",
  637. messageSends: [],
  638. referencedClasses: []
  639. }),
  640. smalltalk.HLInspectorDisplay);
  641. smalltalk.addMethod(
  642. "_model_",
  643. smalltalk.method({
  644. selector: "model:",
  645. category: 'accessing',
  646. fn: function (aModel){
  647. var self=this;
  648. self["@model"]=aModel;
  649. return self},
  650. args: ["aModel"],
  651. source: "model: aModel\x0a\x0a\x09model := aModel",
  652. messageSends: [],
  653. referencedClasses: []
  654. }),
  655. smalltalk.HLInspectorDisplay);
  656. smalltalk.addMethod(
  657. "_renderContentOn_",
  658. smalltalk.method({
  659. selector: "renderContentOn:",
  660. category: 'rendering',
  661. fn: function (html){
  662. var self=this;
  663. smalltalk.send(smalltalk.send(html,"_div",[]),"_with_",[smalltalk.send(smalltalk.send(self["@model"],"_selection",[]),"_printString",[])]);
  664. return self},
  665. args: ["html"],
  666. source: "renderContentOn: html\x0a\x09\x0a html div with: model selection printString\x0a ",
  667. messageSends: ["with:", "printString", "selection", "div"],
  668. referencedClasses: []
  669. }),
  670. smalltalk.HLInspectorDisplay);
  671. smalltalk.addClass('HLInspectorModel', smalltalk.Object, ['announcer', 'environment', 'inspectee', 'code', 'variables', 'selection'], 'Helios-Inspector');
  672. smalltalk.addMethod(
  673. "_announcer",
  674. smalltalk.method({
  675. selector: "announcer",
  676. category: 'accessing',
  677. fn: function (){
  678. var self=this;
  679. var $1;
  680. if(($receiver = self["@announcer"]) == nil || $receiver == undefined){
  681. $1=smalltalk.send(self,"_initializeAnnouncer",[]);
  682. } else {
  683. $1=self["@announcer"];
  684. };
  685. return $1;
  686. },
  687. args: [],
  688. source: "announcer\x0a\x09^ announcer ifNil: [ self initializeAnnouncer ]",
  689. messageSends: ["ifNil:", "initializeAnnouncer"],
  690. referencedClasses: []
  691. }),
  692. smalltalk.HLInspectorModel);
  693. smalltalk.addMethod(
  694. "_beLocal",
  695. smalltalk.method({
  696. selector: "beLocal",
  697. category: 'actions',
  698. fn: function (){
  699. var self=this;
  700. smalltalk.send(self,"_initializeEnvironment",[]);
  701. return self},
  702. args: [],
  703. source: "beLocal\x0a\x0a\x09self initializeEnvironment\x0a",
  704. messageSends: ["initializeEnvironment"],
  705. referencedClasses: []
  706. }),
  707. smalltalk.HLInspectorModel);
  708. smalltalk.addMethod(
  709. "_beRemoteOn_port_",
  710. smalltalk.method({
  711. selector: "beRemoteOn:port:",
  712. category: 'actions',
  713. fn: function (anIPAddress,aPort){
  714. var self=this;
  715. return self},
  716. args: ["anIPAddress", "aPort"],
  717. 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",
  718. messageSends: [],
  719. referencedClasses: []
  720. }),
  721. smalltalk.HLInspectorModel);
  722. smalltalk.addMethod(
  723. "_code",
  724. smalltalk.method({
  725. selector: "code",
  726. category: 'accessing',
  727. fn: function (){
  728. var self=this;
  729. var $1;
  730. if(($receiver = self["@code"]) == nil || $receiver == undefined){
  731. $1=smalltalk.send(self,"_initializeCode",[]);
  732. } else {
  733. $1=self["@code"];
  734. };
  735. return $1;
  736. },
  737. args: [],
  738. source: "code\x0a\x09\x22Answers the code model working for this workspace model\x22\x0a\x09^ code ifNil:[self initializeCode]",
  739. messageSends: ["ifNil:", "initializeCode"],
  740. referencedClasses: []
  741. }),
  742. smalltalk.HLInspectorModel);
  743. smalltalk.addMethod(
  744. "_environment",
  745. smalltalk.method({
  746. selector: "environment",
  747. category: 'accessing',
  748. fn: function (){
  749. var self=this;
  750. var $1;
  751. if(($receiver = self["@environment"]) == nil || $receiver == undefined){
  752. $1=smalltalk.send(self,"_initializeEnvironment",[]);
  753. } else {
  754. $1=self["@environment"];
  755. };
  756. return $1;
  757. },
  758. args: [],
  759. source: "environment\x0a\x09^ environment ifNil: [ self initializeEnvironment]",
  760. messageSends: ["ifNil:", "initializeEnvironment"],
  761. referencedClasses: []
  762. }),
  763. smalltalk.HLInspectorModel);
  764. smalltalk.addMethod(
  765. "_environment_",
  766. smalltalk.method({
  767. selector: "environment:",
  768. category: 'accessing',
  769. fn: function (anEnvironment){
  770. var self=this;
  771. self["@environment"]=anEnvironment;
  772. return self},
  773. args: ["anEnvironment"],
  774. source: "environment: anEnvironment\x0a\x09environment := anEnvironment",
  775. messageSends: [],
  776. referencedClasses: []
  777. }),
  778. smalltalk.HLInspectorModel);
  779. smalltalk.addMethod(
  780. "_initializeAnnouncer",
  781. smalltalk.method({
  782. selector: "initializeAnnouncer",
  783. category: 'initialization',
  784. fn: function (){
  785. var self=this;
  786. var $1;
  787. self["@announcer"]=smalltalk.send((smalltalk.Announcer || Announcer),"_new",[]);
  788. $1=self["@announcer"];
  789. return $1;
  790. },
  791. args: [],
  792. source: "initializeAnnouncer\x0a\x09^ announcer := Announcer new",
  793. messageSends: ["new"],
  794. referencedClasses: ["Announcer"]
  795. }),
  796. smalltalk.HLInspectorModel);
  797. smalltalk.addMethod(
  798. "_initializeCode",
  799. smalltalk.method({
  800. selector: "initializeCode",
  801. category: 'initialization',
  802. fn: function (){
  803. var self=this;
  804. var $1;
  805. self["@code"]=smalltalk.send((smalltalk.HLCodeModel || HLCodeModel),"_on_",[smalltalk.send(self,"_environment",[])]);
  806. $1=self["@code"];
  807. return $1;
  808. },
  809. args: [],
  810. source: "initializeCode\x0a\x0a\x09^ code := HLCodeModel on: self environment",
  811. messageSends: ["on:", "environment"],
  812. referencedClasses: ["HLCodeModel"]
  813. }),
  814. smalltalk.HLInspectorModel);
  815. smalltalk.addMethod(
  816. "_initializeEnvironment",
  817. smalltalk.method({
  818. selector: "initializeEnvironment",
  819. category: 'initialization',
  820. fn: function (){
  821. var self=this;
  822. var $1;
  823. self["@environment"]=smalltalk.send((smalltalk.HLLocalEnvironment || HLLocalEnvironment),"_new",[]);
  824. $1=self["@environment"];
  825. return $1;
  826. },
  827. args: [],
  828. source: "initializeEnvironment\x0a\x09^ environment := HLLocalEnvironment new",
  829. messageSends: ["new"],
  830. referencedClasses: ["HLLocalEnvironment"]
  831. }),
  832. smalltalk.HLInspectorModel);
  833. smalltalk.addMethod(
  834. "_initializeSelection",
  835. smalltalk.method({
  836. selector: "initializeSelection",
  837. category: 'initialization',
  838. fn: function (){
  839. var self=this;
  840. var $1;
  841. self["@selection"]=smalltalk.send(self,"_inspectee",[]);
  842. $1=self["@selection"];
  843. return $1;
  844. },
  845. args: [],
  846. source: "initializeSelection\x0a\x0a\x09^ selection := self inspectee",
  847. messageSends: ["inspectee"],
  848. referencedClasses: []
  849. }),
  850. smalltalk.HLInspectorModel);
  851. smalltalk.addMethod(
  852. "_inspect_on_",
  853. smalltalk.method({
  854. selector: "inspect:on:",
  855. category: 'actions',
  856. fn: function (anObject,anInspector){
  857. var self=this;
  858. self["@inspectee"]=anObject;
  859. self["@variables"]=[];
  860. smalltalk.send(self["@inspectee"],"_inspectOn_",[anInspector]);
  861. return self},
  862. args: ["anObject", "anInspector"],
  863. source: "inspect: anObject on: anInspector\x0a\x0a\x09inspectee := anObject.\x0a\x09variables := #().\x0a\x09inspectee inspectOn: anInspector \x0a",
  864. messageSends: ["inspectOn:"],
  865. referencedClasses: []
  866. }),
  867. smalltalk.HLInspectorModel);
  868. smalltalk.addMethod(
  869. "_inspectee",
  870. smalltalk.method({
  871. selector: "inspectee",
  872. category: 'accessing',
  873. fn: function (){
  874. var self=this;
  875. return self["@inspectee"];
  876. },
  877. args: [],
  878. source: "inspectee \x0a\x0a\x09^ inspectee ",
  879. messageSends: [],
  880. referencedClasses: []
  881. }),
  882. smalltalk.HLInspectorModel);
  883. smalltalk.addMethod(
  884. "_inspectee_",
  885. smalltalk.method({
  886. selector: "inspectee:",
  887. category: 'accessing',
  888. fn: function (anObject){
  889. var self=this;
  890. self["@inspectee"]=anObject;
  891. return self},
  892. args: ["anObject"],
  893. source: "inspectee: anObject \x0a\x0a\x09inspectee := anObject\x0a ",
  894. messageSends: [],
  895. referencedClasses: []
  896. }),
  897. smalltalk.HLInspectorModel);
  898. smalltalk.addMethod(
  899. "_onKeyDown_",
  900. smalltalk.method({
  901. selector: "onKeyDown:",
  902. category: 'reactions',
  903. fn: function (anEvent){
  904. var self=this;
  905. if(anEvent.ctrlKey) {
  906. if(anEvent.keyCode === 80) { //ctrl+p
  907. self._printIt();
  908. anEvent.preventDefault();
  909. return false;
  910. }
  911. if(anEvent.keyCode === 68) { //ctrl+d
  912. self._doIt();
  913. anEvent.preventDefault();
  914. return false;
  915. }
  916. if(anEvent.keyCode === 73) { //ctrl+i
  917. self._inspectIt();
  918. anEvent.preventDefault();
  919. return false;
  920. }
  921. };
  922. ;
  923. return self},
  924. args: ["anEvent"],
  925. 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}>",
  926. messageSends: [],
  927. referencedClasses: []
  928. }),
  929. smalltalk.HLInspectorModel);
  930. smalltalk.addMethod(
  931. "_selection",
  932. smalltalk.method({
  933. selector: "selection",
  934. category: 'accessing',
  935. fn: function (){
  936. var self=this;
  937. var $1;
  938. if(($receiver = self["@selection"]) == nil || $receiver == undefined){
  939. $1=smalltalk.send(self,"_initializeSelection",[]);
  940. } else {
  941. $1=self["@selection"];
  942. };
  943. return $1;
  944. },
  945. args: [],
  946. source: "selection\x0a\x0a\x09^ selection ifNil:[self initializeSelection] ",
  947. messageSends: ["ifNil:", "initializeSelection"],
  948. referencedClasses: []
  949. }),
  950. smalltalk.HLInspectorModel);
  951. smalltalk.addMethod(
  952. "_selection_",
  953. smalltalk.method({
  954. selector: "selection:",
  955. category: 'accessing',
  956. fn: function (anObject){
  957. var self=this;
  958. self["@selection"]=anObject;
  959. return self},
  960. args: ["anObject"],
  961. source: "selection: anObject\x0a\x0a\x09selection := anObject",
  962. messageSends: [],
  963. referencedClasses: []
  964. }),
  965. smalltalk.HLInspectorModel);
  966. smalltalk.addMethod(
  967. "_subscribe_",
  968. smalltalk.method({
  969. selector: "subscribe:",
  970. category: 'actions',
  971. fn: function (aWidget){
  972. var self=this;
  973. smalltalk.send(aWidget,"_subscribeTo_",[smalltalk.send(self,"_announcer",[])]);
  974. return self},
  975. args: ["aWidget"],
  976. source: "subscribe: aWidget\x0a\x09aWidget subscribeTo: self announcer",
  977. messageSends: ["subscribeTo:", "announcer"],
  978. referencedClasses: []
  979. }),
  980. smalltalk.HLInspectorModel);
  981. smalltalk.addMethod(
  982. "_variables",
  983. smalltalk.method({
  984. selector: "variables",
  985. category: 'accessing',
  986. fn: function (){
  987. var self=this;
  988. return self["@variables"];
  989. },
  990. args: [],
  991. source: "variables\x0a\x0a\x09^ variables",
  992. messageSends: [],
  993. referencedClasses: []
  994. }),
  995. smalltalk.HLInspectorModel);
  996. smalltalk.addMethod(
  997. "_variables_",
  998. smalltalk.method({
  999. selector: "variables:",
  1000. category: 'accessing',
  1001. fn: function (aCollection){
  1002. var self=this;
  1003. self["@variables"]=aCollection;
  1004. return self},
  1005. args: ["aCollection"],
  1006. source: "variables: aCollection\x0a\x0a\x09variables := aCollection\x0a ",
  1007. messageSends: [],
  1008. referencedClasses: []
  1009. }),
  1010. smalltalk.HLInspectorModel);
  1011. smalltalk.addMethod(
  1012. "_on_",
  1013. smalltalk.method({
  1014. selector: "on:",
  1015. category: 'actions',
  1016. fn: function (anEnvironment){
  1017. var self=this;
  1018. var $2,$3,$1;
  1019. $2=smalltalk.send(self,"_new",[]);
  1020. smalltalk.send($2,"_environment_",[anEnvironment]);
  1021. $3=smalltalk.send($2,"_yourself",[]);
  1022. $1=$3;
  1023. return $1;
  1024. },
  1025. args: ["anEnvironment"],
  1026. source: "on: anEnvironment\x0a\x0a\x09^ self new\x0a \x09environment: anEnvironment;\x0a yourself",
  1027. messageSends: ["environment:", "new", "yourself"],
  1028. referencedClasses: []
  1029. }),
  1030. smalltalk.HLInspectorModel.klass);
  1031. smalltalk.addClass('HLInspectorVariables', smalltalk.HLNavigationListWidget, ['announcer', 'model', 'list', 'diveButton'], 'Helios-Inspector');
  1032. smalltalk.addMethod(
  1033. "_announcer",
  1034. smalltalk.method({
  1035. selector: "announcer",
  1036. category: 'accessing',
  1037. fn: function (){
  1038. var self=this;
  1039. var $1;
  1040. if(($receiver = self["@announcer"]) == nil || $receiver == undefined){
  1041. $1=smalltalk.send(self,"_initializeAnnouncer",[]);
  1042. } else {
  1043. $1=self["@announcer"];
  1044. };
  1045. return $1;
  1046. },
  1047. args: [],
  1048. source: "announcer\x0a\x0a\x09^ announcer ifNil:[self initializeAnnouncer]",
  1049. messageSends: ["ifNil:", "initializeAnnouncer"],
  1050. referencedClasses: []
  1051. }),
  1052. smalltalk.HLInspectorVariables);
  1053. smalltalk.addMethod(
  1054. "_initializeAnnouncer",
  1055. smalltalk.method({
  1056. selector: "initializeAnnouncer",
  1057. category: 'initialization',
  1058. fn: function (){
  1059. var self=this;
  1060. var $1;
  1061. self["@announcer"]=smalltalk.send((smalltalk.Announcer || Announcer),"_new",[]);
  1062. $1=self["@announcer"];
  1063. return $1;
  1064. },
  1065. args: [],
  1066. source: "initializeAnnouncer\x0a\x0a\x09^ announcer := Announcer new",
  1067. messageSends: ["new"],
  1068. referencedClasses: ["Announcer"]
  1069. }),
  1070. smalltalk.HLInspectorVariables);
  1071. smalltalk.addMethod(
  1072. "_initializeItems",
  1073. smalltalk.method({
  1074. selector: "initializeItems",
  1075. category: 'initialization',
  1076. fn: function (){
  1077. var self=this;
  1078. var $1;
  1079. self["@items"]=smalltalk.send(smalltalk.send(smalltalk.send(self,"_model",[]),"_variables",[]),"_keys",[]);
  1080. $1=self["@items"];
  1081. return $1;
  1082. },
  1083. args: [],
  1084. source: "initializeItems\x0a\x09^ items := self model variables keys",
  1085. messageSends: ["keys", "variables", "model"],
  1086. referencedClasses: []
  1087. }),
  1088. smalltalk.HLInspectorVariables);
  1089. smalltalk.addMethod(
  1090. "_model",
  1091. smalltalk.method({
  1092. selector: "model",
  1093. category: 'accessing',
  1094. fn: function (){
  1095. var self=this;
  1096. return self["@model"];
  1097. },
  1098. args: [],
  1099. source: "model\x0a\x09\x0a ^ model\x0a ",
  1100. messageSends: [],
  1101. referencedClasses: []
  1102. }),
  1103. smalltalk.HLInspectorVariables);
  1104. smalltalk.addMethod(
  1105. "_model_",
  1106. smalltalk.method({
  1107. selector: "model:",
  1108. category: 'accessing',
  1109. fn: function (aModel){
  1110. var self=this;
  1111. self["@model"]=aModel;
  1112. return self},
  1113. args: ["aModel"],
  1114. source: "model: aModel\x0a\x09\x0a model := aModel\x0a ",
  1115. messageSends: [],
  1116. referencedClasses: []
  1117. }),
  1118. smalltalk.HLInspectorVariables);
  1119. smalltalk.addMethod(
  1120. "_refresh",
  1121. smalltalk.method({
  1122. selector: "refresh",
  1123. category: 'actions',
  1124. fn: function (){
  1125. var self=this;
  1126. smalltalk.send(self,"_resetItems",[]);
  1127. smalltalk.send(self,"_refresh",[],smalltalk.HLNavigationListWidget);
  1128. return self},
  1129. args: [],
  1130. source: "refresh\x0a\x0a\x09self resetItems.\x0a \x0a super refresh\x0a ",
  1131. messageSends: ["resetItems", "refresh"],
  1132. referencedClasses: []
  1133. }),
  1134. smalltalk.HLInspectorVariables);
  1135. smalltalk.addMethod(
  1136. "_renderButtonsOn_",
  1137. smalltalk.method({
  1138. selector: "renderButtonsOn:",
  1139. category: 'rendering',
  1140. fn: function (html){
  1141. var self=this;
  1142. var $1,$2,$3,$4;
  1143. $1=smalltalk.send(html,"_button",[]);
  1144. smalltalk.send($1,"_class_",["btn"]);
  1145. smalltalk.send($1,"_with_",["Refresh"]);
  1146. $2=smalltalk.send($1,"_onClick_",[(function(){
  1147. return smalltalk.send(smalltalk.send(self,"_announcer",[]),"_announce_",[smalltalk.send((smalltalk.HLRefreshRequested || HLRefreshRequested),"_new",[])]);
  1148. })]);
  1149. $3=smalltalk.send(html,"_button",[]);
  1150. smalltalk.send($3,"_class_",["btn"]);
  1151. smalltalk.send($3,"_with_",["Dive"]);
  1152. $4=smalltalk.send($3,"_onClick_",[(function(){
  1153. return smalltalk.send(smalltalk.send(self,"_announcer",[]),"_announce_",[smalltalk.send((smalltalk.HLDiveRequested || HLDiveRequested),"_new",[])]);
  1154. })]);
  1155. self["@diveButton"]=$4;
  1156. return self},
  1157. args: ["html"],
  1158. 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]",
  1159. messageSends: ["class:", "button", "with:", "onClick:", "announce:", "new", "announcer"],
  1160. referencedClasses: ["HLRefreshRequested", "HLDiveRequested"]
  1161. }),
  1162. smalltalk.HLInspectorVariables);
  1163. smalltalk.addMethod(
  1164. "_resetItems",
  1165. smalltalk.method({
  1166. selector: "resetItems",
  1167. category: 'actions',
  1168. fn: function (){
  1169. var self=this;
  1170. self["@items"]=nil;
  1171. return self},
  1172. args: [],
  1173. source: "resetItems\x0a\x0a\x09items := nil",
  1174. messageSends: [],
  1175. referencedClasses: []
  1176. }),
  1177. smalltalk.HLInspectorVariables);
  1178. smalltalk.addMethod(
  1179. "_selection",
  1180. smalltalk.method({
  1181. selector: "selection",
  1182. category: 'accessing',
  1183. fn: function (){
  1184. var self=this;
  1185. var $1;
  1186. $1=smalltalk.send(self["@model"],"_selection",[]);
  1187. return $1;
  1188. },
  1189. args: [],
  1190. source: "selection\x0a\x0a\x09^ model selection",
  1191. messageSends: ["selection"],
  1192. referencedClasses: []
  1193. }),
  1194. smalltalk.HLInspectorVariables);
  1195. smalltalk.addMethod(
  1196. "_variables",
  1197. smalltalk.method({
  1198. selector: "variables",
  1199. category: 'accessing',
  1200. fn: function (){
  1201. var self=this;
  1202. var $1;
  1203. $1=smalltalk.send(self["@model"],"_variables",[]);
  1204. return $1;
  1205. },
  1206. args: [],
  1207. source: "variables\x0a\x0a\x09^ model variables",
  1208. messageSends: ["variables"],
  1209. referencedClasses: []
  1210. }),
  1211. smalltalk.HLInspectorVariables);