1
0

Helios-Inspector.js 40 KB

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