Helios-Inspector.js 37 KB

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