1
0

Helios-Inspector.js 44 KB

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