1
0

Helios-Inspector.js 38 KB

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