Helios-Inspector.deploy.js 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033
  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. fn: function (){
  7. var self=this;
  8. function $HLCodeWidget(){return smalltalk.HLCodeWidget||(typeof HLCodeWidget=="undefined"?nil:HLCodeWidget)}
  9. return smalltalk.withContext(function($ctx1) {
  10. var $2,$3,$4,$1;
  11. $2=self["@codeWidget"];
  12. if(($receiver = $2) == nil || $receiver == undefined){
  13. $3=_st($HLCodeWidget())._new();
  14. _st($3)._model_(_st(self["@model"])._code());
  15. _st($3)._receiver_(_st(self["@model"])._inspectee());
  16. $4=_st($3)._yourself();
  17. self["@codeWidget"]=$4;
  18. $1=self["@codeWidget"];
  19. } else {
  20. $1=$2;
  21. };
  22. return $1;
  23. }, function($ctx1) {$ctx1.fill(self,"codeWidget",{},smalltalk.HLInspector)})},
  24. messageSends: ["ifNil:", "model:", "code", "new", "receiver:", "inspectee", "yourself"]}),
  25. smalltalk.HLInspector);
  26. smalltalk.addMethod(
  27. smalltalk.method({
  28. selector: "displayWidget",
  29. fn: function (){
  30. var self=this;
  31. function $HLInspectorDisplayWidget(){return smalltalk.HLInspectorDisplayWidget||(typeof HLInspectorDisplayWidget=="undefined"?nil:HLInspectorDisplayWidget)}
  32. return smalltalk.withContext(function($ctx1) {
  33. var $2,$3,$4,$1;
  34. $2=self["@displayWidget"];
  35. if(($receiver = $2) == nil || $receiver == undefined){
  36. $3=_st($HLInspectorDisplayWidget())._new();
  37. _st($3)._model_(_st(self)._model());
  38. $4=_st($3)._yourself();
  39. self["@displayWidget"]=$4;
  40. $1=self["@displayWidget"];
  41. } else {
  42. $1=$2;
  43. };
  44. return $1;
  45. }, function($ctx1) {$ctx1.fill(self,"displayWidget",{},smalltalk.HLInspector)})},
  46. messageSends: ["ifNil:", "model:", "model", "new", "yourself"]}),
  47. smalltalk.HLInspector);
  48. smalltalk.addMethod(
  49. smalltalk.method({
  50. selector: "initialize",
  51. fn: function (){
  52. var self=this;
  53. return smalltalk.withContext(function($ctx1) {
  54. smalltalk.HLWidget.fn.prototype._initialize.apply(_st(self), []);
  55. _st(self)._register();
  56. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLInspector)})},
  57. messageSends: ["initialize", "register"]}),
  58. smalltalk.HLInspector);
  59. smalltalk.addMethod(
  60. smalltalk.method({
  61. selector: "inspect:",
  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. messageSends: ["inspect:on:", "model", "refreshVariablesWidget", "refreshDisplayWidget"]}),
  72. smalltalk.HLInspector);
  73. smalltalk.addMethod(
  74. smalltalk.method({
  75. selector: "inspectee",
  76. fn: function (){
  77. var self=this;
  78. return smalltalk.withContext(function($ctx1) {
  79. var $1;
  80. $1=_st(_st(self)._model())._inspectee();
  81. return $1;
  82. }, function($ctx1) {$ctx1.fill(self,"inspectee",{},smalltalk.HLInspector)})},
  83. messageSends: ["inspectee", "model"]}),
  84. smalltalk.HLInspector);
  85. smalltalk.addMethod(
  86. smalltalk.method({
  87. selector: "inspectee:",
  88. fn: function (anObject){
  89. var self=this;
  90. return smalltalk.withContext(function($ctx1) {
  91. _st(_st(self)._model())._inspectee_(anObject);
  92. return self}, function($ctx1) {$ctx1.fill(self,"inspectee:",{anObject:anObject},smalltalk.HLInspector)})},
  93. messageSends: ["inspectee:", "model"]}),
  94. smalltalk.HLInspector);
  95. smalltalk.addMethod(
  96. smalltalk.method({
  97. selector: "label",
  98. fn: function (){
  99. var self=this;
  100. return smalltalk.withContext(function($ctx1) {
  101. var $2,$1;
  102. $2=self["@label"];
  103. if(($receiver = $2) == nil || $receiver == undefined){
  104. $1=_st(_st(self["@model"])._inspectee())._printString();
  105. } else {
  106. $1=$2;
  107. };
  108. return $1;
  109. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLInspector)})},
  110. messageSends: ["ifNil:", "printString", "inspectee"]}),
  111. smalltalk.HLInspector);
  112. smalltalk.addMethod(
  113. smalltalk.method({
  114. selector: "model",
  115. fn: function (){
  116. var self=this;
  117. function $HLInspectorModel(){return smalltalk.HLInspectorModel||(typeof HLInspectorModel=="undefined"?nil:HLInspectorModel)}
  118. return smalltalk.withContext(function($ctx1) {
  119. var $2,$1;
  120. $2=self["@model"];
  121. if(($receiver = $2) == nil || $receiver == undefined){
  122. _st(self)._model_(_st($HLInspectorModel())._new());
  123. $1=self["@model"];
  124. } else {
  125. $1=$2;
  126. };
  127. return $1;
  128. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLInspector)})},
  129. messageSends: ["ifNil:", "model:", "new"]}),
  130. smalltalk.HLInspector);
  131. smalltalk.addMethod(
  132. smalltalk.method({
  133. selector: "model:",
  134. fn: function (aModel){
  135. var self=this;
  136. return smalltalk.withContext(function($ctx1) {
  137. var $1,$2;
  138. self["@model"]=aModel;
  139. _st(_st(self)._codeWidget())._model_(_st(aModel)._code());
  140. $1=self;
  141. _st($1)._observeCodeWidget();
  142. _st($1)._observeVariablesWidget();
  143. $2=_st($1)._observeModel();
  144. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLInspector)})},
  145. messageSends: ["model:", "code", "codeWidget", "observeCodeWidget", "observeVariablesWidget", "observeModel"]}),
  146. smalltalk.HLInspector);
  147. smalltalk.addMethod(
  148. smalltalk.method({
  149. selector: "observeCodeWidget",
  150. fn: function (){
  151. var self=this;
  152. function $HLDoItExecuted(){return smalltalk.HLDoItExecuted||(typeof HLDoItExecuted=="undefined"?nil:HLDoItExecuted)}
  153. return smalltalk.withContext(function($ctx1) {
  154. _st(_st(_st(self)._codeWidget())._announcer())._on_do_($HLDoItExecuted(),(function(){
  155. return smalltalk.withContext(function($ctx2) {
  156. return _st(self)._onDoneIt();
  157. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  158. return self}, function($ctx1) {$ctx1.fill(self,"observeCodeWidget",{},smalltalk.HLInspector)})},
  159. messageSends: ["on:do:", "onDoneIt", "announcer", "codeWidget"]}),
  160. smalltalk.HLInspector);
  161. smalltalk.addMethod(
  162. smalltalk.method({
  163. selector: "observeModel",
  164. fn: function (){
  165. var self=this;
  166. function $HLInstanceVariableSelected(){return smalltalk.HLInstanceVariableSelected||(typeof HLInstanceVariableSelected=="undefined"?nil:HLInstanceVariableSelected)}
  167. return smalltalk.withContext(function($ctx1) {
  168. _st(_st(_st(self)._model())._announcer())._on_send_to_($HLInstanceVariableSelected(),"onInstanceVariableSelected",self);
  169. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLInspector)})},
  170. messageSends: ["on:send:to:", "announcer", "model"]}),
  171. smalltalk.HLInspector);
  172. smalltalk.addMethod(
  173. smalltalk.method({
  174. selector: "observeVariablesWidget",
  175. fn: function (){
  176. var self=this;
  177. function $HLDiveRequested(){return smalltalk.HLDiveRequested||(typeof HLDiveRequested=="undefined"?nil:HLDiveRequested)}
  178. return smalltalk.withContext(function($ctx1) {
  179. _st(_st(_st(self)._variablesWidget())._announcer())._on_do_($HLDiveRequested(),(function(){
  180. return smalltalk.withContext(function($ctx2) {
  181. return _st(self)._onDive();
  182. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  183. return self}, function($ctx1) {$ctx1.fill(self,"observeVariablesWidget",{},smalltalk.HLInspector)})},
  184. messageSends: ["on:do:", "onDive", "announcer", "variablesWidget"]}),
  185. smalltalk.HLInspector);
  186. smalltalk.addMethod(
  187. smalltalk.method({
  188. selector: "onDive",
  189. fn: function (){
  190. var self=this;
  191. return smalltalk.withContext(function($ctx1) {
  192. _st(self)._inspect_(_st(_st(self)._model())._selectedInstVarObject());
  193. return self}, function($ctx1) {$ctx1.fill(self,"onDive",{},smalltalk.HLInspector)})},
  194. messageSends: ["inspect:", "selectedInstVarObject", "model"]}),
  195. smalltalk.HLInspector);
  196. smalltalk.addMethod(
  197. smalltalk.method({
  198. selector: "onDoneIt",
  199. fn: function (){
  200. var self=this;
  201. return smalltalk.withContext(function($ctx1) {
  202. _st(self)._refresh();
  203. return self}, function($ctx1) {$ctx1.fill(self,"onDoneIt",{},smalltalk.HLInspector)})},
  204. messageSends: ["refresh"]}),
  205. smalltalk.HLInspector);
  206. smalltalk.addMethod(
  207. smalltalk.method({
  208. selector: "onInspectIt",
  209. fn: function (){
  210. var self=this;
  211. return smalltalk.withContext(function($ctx1) {
  212. return self}, function($ctx1) {$ctx1.fill(self,"onInspectIt",{},smalltalk.HLInspector)})},
  213. messageSends: []}),
  214. smalltalk.HLInspector);
  215. smalltalk.addMethod(
  216. smalltalk.method({
  217. selector: "onInstanceVariableSelected",
  218. fn: function (){
  219. var self=this;
  220. return smalltalk.withContext(function($ctx1) {
  221. _st(_st(self)._codeWidget())._receiver_(_st(_st(self)._model())._selectedInstVarObject());
  222. _st(self)._refreshDisplayWidget();
  223. return self}, function($ctx1) {$ctx1.fill(self,"onInstanceVariableSelected",{},smalltalk.HLInspector)})},
  224. messageSends: ["receiver:", "selectedInstVarObject", "model", "codeWidget", "refreshDisplayWidget"]}),
  225. smalltalk.HLInspector);
  226. smalltalk.addMethod(
  227. smalltalk.method({
  228. selector: "onPrintIt",
  229. fn: function (){
  230. var self=this;
  231. return smalltalk.withContext(function($ctx1) {
  232. return self}, function($ctx1) {$ctx1.fill(self,"onPrintIt",{},smalltalk.HLInspector)})},
  233. messageSends: []}),
  234. smalltalk.HLInspector);
  235. smalltalk.addMethod(
  236. smalltalk.method({
  237. selector: "open",
  238. fn: function (){
  239. var self=this;
  240. function $HLTab(){return smalltalk.HLTab||(typeof HLTab=="undefined"?nil:HLTab)}
  241. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  242. return smalltalk.withContext(function($ctx1) {
  243. _st(_st($HLManager())._current())._addTab_(_st($HLTab())._on_labelled_(self,_st(self)._tabLabel()));
  244. return self}, function($ctx1) {$ctx1.fill(self,"open",{},smalltalk.HLInspector)})},
  245. messageSends: ["addTab:", "on:labelled:", "tabLabel", "current"]}),
  246. smalltalk.HLInspector);
  247. smalltalk.addMethod(
  248. smalltalk.method({
  249. selector: "refresh",
  250. fn: function (){
  251. var self=this;
  252. return smalltalk.withContext(function($ctx1) {
  253. _st(self)._inspect_(_st(self)._inspectee());
  254. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLInspector)})},
  255. messageSends: ["inspect:", "inspectee"]}),
  256. smalltalk.HLInspector);
  257. smalltalk.addMethod(
  258. smalltalk.method({
  259. selector: "refreshDisplayWidget",
  260. fn: function (){
  261. var self=this;
  262. return smalltalk.withContext(function($ctx1) {
  263. _st(_st(self)._displayWidget())._refresh();
  264. return self}, function($ctx1) {$ctx1.fill(self,"refreshDisplayWidget",{},smalltalk.HLInspector)})},
  265. messageSends: ["refresh", "displayWidget"]}),
  266. smalltalk.HLInspector);
  267. smalltalk.addMethod(
  268. smalltalk.method({
  269. selector: "refreshVariablesWidget",
  270. fn: function (){
  271. var self=this;
  272. return smalltalk.withContext(function($ctx1) {
  273. _st(_st(self)._variablesWidget())._refresh();
  274. return self}, function($ctx1) {$ctx1.fill(self,"refreshVariablesWidget",{},smalltalk.HLInspector)})},
  275. messageSends: ["refresh", "variablesWidget"]}),
  276. smalltalk.HLInspector);
  277. smalltalk.addMethod(
  278. smalltalk.method({
  279. selector: "register",
  280. fn: function (){
  281. var self=this;
  282. return smalltalk.withContext(function($ctx1) {
  283. _st(_st(self)._class())._register_(self);
  284. return self}, function($ctx1) {$ctx1.fill(self,"register",{},smalltalk.HLInspector)})},
  285. messageSends: ["register:", "class"]}),
  286. smalltalk.HLInspector);
  287. smalltalk.addMethod(
  288. smalltalk.method({
  289. selector: "renderContentOn:",
  290. fn: function (html){
  291. var self=this;
  292. function $HLVerticalSplitter(){return smalltalk.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
  293. function $HLHorizontalSplitter(){return smalltalk.HLHorizontalSplitter||(typeof HLHorizontalSplitter=="undefined"?nil:HLHorizontalSplitter)}
  294. function $HLContainer(){return smalltalk.HLContainer||(typeof HLContainer=="undefined"?nil:HLContainer)}
  295. return smalltalk.withContext(function($ctx1) {
  296. _st(html)._with_(_st($HLContainer())._with_(_st($HLHorizontalSplitter())._with_with_(_st($HLVerticalSplitter())._with_with_(_st(self)._variablesWidget(),_st(self)._displayWidget()),_st(self)._codeWidget())));
  297. _st(_st(self)._variablesWidget())._focus();
  298. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLInspector)})},
  299. messageSends: ["with:", "with:with:", "variablesWidget", "displayWidget", "codeWidget", "focus"]}),
  300. smalltalk.HLInspector);
  301. smalltalk.addMethod(
  302. smalltalk.method({
  303. selector: "setLabel:",
  304. fn: function (aString){
  305. var self=this;
  306. return smalltalk.withContext(function($ctx1) {
  307. self["@label"]=aString;
  308. return self}, function($ctx1) {$ctx1.fill(self,"setLabel:",{aString:aString},smalltalk.HLInspector)})},
  309. messageSends: []}),
  310. smalltalk.HLInspector);
  311. smalltalk.addMethod(
  312. smalltalk.method({
  313. selector: "setVariables:",
  314. fn: function (aDictionary){
  315. var self=this;
  316. return smalltalk.withContext(function($ctx1) {
  317. _st(_st(self)._model())._variables_(aDictionary);
  318. return self}, function($ctx1) {$ctx1.fill(self,"setVariables:",{aDictionary:aDictionary},smalltalk.HLInspector)})},
  319. messageSends: ["variables:", "model"]}),
  320. smalltalk.HLInspector);
  321. smalltalk.addMethod(
  322. smalltalk.method({
  323. selector: "tabLabel",
  324. fn: function (){
  325. var self=this;
  326. return smalltalk.withContext(function($ctx1) {
  327. return "Inspector";
  328. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLInspector)})},
  329. messageSends: []}),
  330. smalltalk.HLInspector);
  331. smalltalk.addMethod(
  332. smalltalk.method({
  333. selector: "unregister",
  334. fn: function (){
  335. var self=this;
  336. return smalltalk.withContext(function($ctx1) {
  337. smalltalk.HLWidget.fn.prototype._unregister.apply(_st(self), []);
  338. _st(_st(self)._class())._unregister_(self);
  339. return self}, function($ctx1) {$ctx1.fill(self,"unregister",{},smalltalk.HLInspector)})},
  340. messageSends: ["unregister", "unregister:", "class"]}),
  341. smalltalk.HLInspector);
  342. smalltalk.addMethod(
  343. smalltalk.method({
  344. selector: "variablesWidget",
  345. fn: function (){
  346. var self=this;
  347. function $HLInspectorVariablesWidget(){return smalltalk.HLInspectorVariablesWidget||(typeof HLInspectorVariablesWidget=="undefined"?nil:HLInspectorVariablesWidget)}
  348. return smalltalk.withContext(function($ctx1) {
  349. var $2,$3,$4,$1;
  350. $2=self["@variablesWidget"];
  351. if(($receiver = $2) == nil || $receiver == undefined){
  352. $3=_st($HLInspectorVariablesWidget())._new();
  353. _st($3)._model_(_st(self)._model());
  354. $4=_st($3)._yourself();
  355. self["@variablesWidget"]=$4;
  356. $1=self["@variablesWidget"];
  357. } else {
  358. $1=$2;
  359. };
  360. return $1;
  361. }, function($ctx1) {$ctx1.fill(self,"variablesWidget",{},smalltalk.HLInspector)})},
  362. messageSends: ["ifNil:", "model:", "model", "new", "yourself"]}),
  363. smalltalk.HLInspector);
  364. smalltalk.HLInspector.klass.iVarNames = ['inspectors'];
  365. smalltalk.addMethod(
  366. smalltalk.method({
  367. selector: "canBeOpenAsTab",
  368. fn: function (){
  369. var self=this;
  370. return smalltalk.withContext(function($ctx1) {
  371. return false;
  372. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLInspector.klass)})},
  373. messageSends: []}),
  374. smalltalk.HLInspector.klass);
  375. smalltalk.addMethod(
  376. smalltalk.method({
  377. selector: "initialize",
  378. fn: function (){
  379. var self=this;
  380. function $InspectorHandler(){return smalltalk.InspectorHandler||(typeof InspectorHandler=="undefined"?nil:InspectorHandler)}
  381. return smalltalk.withContext(function($ctx1) {
  382. smalltalk.HLWidget.klass.fn.prototype._initialize.apply(_st(self), []);
  383. _st($InspectorHandler())._register_(self);
  384. _st(self)._watchChanges();
  385. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLInspector.klass)})},
  386. messageSends: ["initialize", "register:", "watchChanges"]}),
  387. smalltalk.HLInspector.klass);
  388. smalltalk.addMethod(
  389. smalltalk.method({
  390. selector: "inspect:",
  391. fn: function (anObject){
  392. var self=this;
  393. return smalltalk.withContext(function($ctx1) {
  394. var $1,$2;
  395. $1=_st(self)._new();
  396. _st($1)._inspect_(anObject);
  397. $2=_st($1)._open();
  398. return self}, function($ctx1) {$ctx1.fill(self,"inspect:",{anObject:anObject},smalltalk.HLInspector.klass)})},
  399. messageSends: ["inspect:", "new", "open"]}),
  400. smalltalk.HLInspector.klass);
  401. smalltalk.addMethod(
  402. smalltalk.method({
  403. selector: "inspectors",
  404. fn: function (){
  405. var self=this;
  406. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  407. return smalltalk.withContext(function($ctx1) {
  408. var $2,$1;
  409. $2=self["@inspectors"];
  410. if(($receiver = $2) == nil || $receiver == undefined){
  411. self["@inspectors"]=_st($OrderedCollection())._new();
  412. $1=self["@inspectors"];
  413. } else {
  414. $1=$2;
  415. };
  416. return $1;
  417. }, function($ctx1) {$ctx1.fill(self,"inspectors",{},smalltalk.HLInspector.klass)})},
  418. messageSends: ["ifNil:", "new"]}),
  419. smalltalk.HLInspector.klass);
  420. smalltalk.addMethod(
  421. smalltalk.method({
  422. selector: "register:",
  423. fn: function (anInspector){
  424. var self=this;
  425. return smalltalk.withContext(function($ctx1) {
  426. _st(_st(self)._inspectors())._add_(anInspector);
  427. return self}, function($ctx1) {$ctx1.fill(self,"register:",{anInspector:anInspector},smalltalk.HLInspector.klass)})},
  428. messageSends: ["add:", "inspectors"]}),
  429. smalltalk.HLInspector.klass);
  430. smalltalk.addMethod(
  431. smalltalk.method({
  432. selector: "tabLabel",
  433. fn: function (){
  434. var self=this;
  435. return smalltalk.withContext(function($ctx1) {
  436. return "Inspector";
  437. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLInspector.klass)})},
  438. messageSends: []}),
  439. smalltalk.HLInspector.klass);
  440. smalltalk.addMethod(
  441. smalltalk.method({
  442. selector: "tabPriority",
  443. fn: function (){
  444. var self=this;
  445. return smalltalk.withContext(function($ctx1) {
  446. var $1;
  447. $1=(10);
  448. return $1;
  449. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLInspector.klass)})},
  450. messageSends: []}),
  451. smalltalk.HLInspector.klass);
  452. smalltalk.addMethod(
  453. smalltalk.method({
  454. selector: "unregister:",
  455. fn: function (anInspector){
  456. var self=this;
  457. return smalltalk.withContext(function($ctx1) {
  458. _st(_st(self)._inspectors())._remove_(anInspector);
  459. return self}, function($ctx1) {$ctx1.fill(self,"unregister:",{anInspector:anInspector},smalltalk.HLInspector.klass)})},
  460. messageSends: ["remove:", "inspectors"]}),
  461. smalltalk.HLInspector.klass);
  462. smalltalk.addMethod(
  463. smalltalk.method({
  464. selector: "watchChanges",
  465. fn: function (){
  466. var self=this;
  467. return smalltalk.withContext(function($ctx1) {
  468. _st((function(){
  469. return smalltalk.withContext(function($ctx2) {
  470. return _st(_st(self)._inspectors())._do_((function(each){
  471. return smalltalk.withContext(function($ctx3) {
  472. return _st(each)._refresh();
  473. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx1)})}));
  474. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._valueWithInterval_((500));
  475. return self}, function($ctx1) {$ctx1.fill(self,"watchChanges",{},smalltalk.HLInspector.klass)})},
  476. messageSends: ["valueWithInterval:", "do:", "refresh", "inspectors"]}),
  477. smalltalk.HLInspector.klass);
  478. smalltalk.addClass('HLInspectorWidget', smalltalk.HLInspector, [], 'Helios-Inspector');
  479. smalltalk.addMethod(
  480. smalltalk.method({
  481. selector: "renderContentOn:",
  482. fn: function (html){
  483. var self=this;
  484. function $HLVerticalSplitter(){return smalltalk.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
  485. function $HLHorizontalSplitter(){return smalltalk.HLHorizontalSplitter||(typeof HLHorizontalSplitter=="undefined"?nil:HLHorizontalSplitter)}
  486. return smalltalk.withContext(function($ctx1) {
  487. _st(html)._with_(_st($HLHorizontalSplitter())._with_with_(_st($HLVerticalSplitter())._with_with_(_st(self)._variablesWidget(),_st(self)._displayWidget()),_st(self)._codeWidget()));
  488. _st(_st(self)._variablesWidget())._focus();
  489. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLInspectorWidget)})},
  490. messageSends: ["with:", "with:with:", "variablesWidget", "displayWidget", "codeWidget", "focus"]}),
  491. smalltalk.HLInspectorWidget);
  492. smalltalk.addClass('HLInspectorDisplayWidget', smalltalk.HLNavigationListWidget, ['model'], 'Helios-Inspector');
  493. smalltalk.addMethod(
  494. smalltalk.method({
  495. selector: "model",
  496. fn: function (){
  497. var self=this;
  498. return smalltalk.withContext(function($ctx1) {
  499. var $1;
  500. $1=self["@model"];
  501. return $1;
  502. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLInspectorDisplayWidget)})},
  503. messageSends: []}),
  504. smalltalk.HLInspectorDisplayWidget);
  505. smalltalk.addMethod(
  506. smalltalk.method({
  507. selector: "model:",
  508. fn: function (aModel){
  509. var self=this;
  510. return smalltalk.withContext(function($ctx1) {
  511. self["@model"]=aModel;
  512. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLInspectorDisplayWidget)})},
  513. messageSends: []}),
  514. smalltalk.HLInspectorDisplayWidget);
  515. smalltalk.addMethod(
  516. smalltalk.method({
  517. selector: "renderContentOn:",
  518. fn: function (html){
  519. var self=this;
  520. return smalltalk.withContext(function($ctx1) {
  521. _st(_st(html)._div())._with_(_st(self)._selectionDisplayString());
  522. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLInspectorDisplayWidget)})},
  523. messageSends: ["with:", "selectionDisplayString", "div"]}),
  524. smalltalk.HLInspectorDisplayWidget);
  525. smalltalk.addMethod(
  526. smalltalk.method({
  527. selector: "selectionDisplayString",
  528. fn: function (){
  529. var self=this;
  530. var selection;
  531. return smalltalk.withContext(function($ctx1) {
  532. var $2,$1;
  533. selection=_st(self["@model"])._selection();
  534. $2=_st(_st(_st(self["@model"])._variables())._keys())._includes_(selection);
  535. if(smalltalk.assert($2)){
  536. $1=_st(_st(self["@model"])._instVarObjectAt_(selection))._printString();
  537. } else {
  538. $1="";
  539. };
  540. return $1;
  541. }, function($ctx1) {$ctx1.fill(self,"selectionDisplayString",{selection:selection},smalltalk.HLInspectorDisplayWidget)})},
  542. messageSends: ["selection", "ifTrue:ifFalse:", "printString", "instVarObjectAt:", "includes:", "keys", "variables"]}),
  543. smalltalk.HLInspectorDisplayWidget);
  544. smalltalk.addClass('HLInspectorModel', smalltalk.Object, ['announcer', 'environment', 'inspectee', 'code', 'variables', 'selection'], 'Helios-Inspector');
  545. smalltalk.addMethod(
  546. smalltalk.method({
  547. selector: "announcer",
  548. fn: function (){
  549. var self=this;
  550. function $Announcer(){return smalltalk.Announcer||(typeof Announcer=="undefined"?nil:Announcer)}
  551. return smalltalk.withContext(function($ctx1) {
  552. var $2,$1;
  553. $2=self["@announcer"];
  554. if(($receiver = $2) == nil || $receiver == undefined){
  555. self["@announcer"]=_st($Announcer())._new();
  556. $1=self["@announcer"];
  557. } else {
  558. $1=$2;
  559. };
  560. return $1;
  561. }, function($ctx1) {$ctx1.fill(self,"announcer",{},smalltalk.HLInspectorModel)})},
  562. messageSends: ["ifNil:", "new"]}),
  563. smalltalk.HLInspectorModel);
  564. smalltalk.addMethod(
  565. smalltalk.method({
  566. selector: "code",
  567. fn: function (){
  568. var self=this;
  569. function $HLCodeModel(){return smalltalk.HLCodeModel||(typeof HLCodeModel=="undefined"?nil:HLCodeModel)}
  570. return smalltalk.withContext(function($ctx1) {
  571. var $2,$1;
  572. $2=self["@code"];
  573. if(($receiver = $2) == nil || $receiver == undefined){
  574. self["@code"]=_st($HLCodeModel())._on_(_st(self)._environment());
  575. $1=self["@code"];
  576. } else {
  577. $1=$2;
  578. };
  579. return $1;
  580. }, function($ctx1) {$ctx1.fill(self,"code",{},smalltalk.HLInspectorModel)})},
  581. messageSends: ["ifNil:", "on:", "environment"]}),
  582. smalltalk.HLInspectorModel);
  583. smalltalk.addMethod(
  584. smalltalk.method({
  585. selector: "environment",
  586. fn: function (){
  587. var self=this;
  588. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  589. return smalltalk.withContext(function($ctx1) {
  590. var $2,$1;
  591. $2=self["@environment"];
  592. if(($receiver = $2) == nil || $receiver == undefined){
  593. $1=_st(_st($HLManager())._current())._environment();
  594. } else {
  595. $1=$2;
  596. };
  597. return $1;
  598. }, function($ctx1) {$ctx1.fill(self,"environment",{},smalltalk.HLInspectorModel)})},
  599. messageSends: ["ifNil:", "environment", "current"]}),
  600. smalltalk.HLInspectorModel);
  601. smalltalk.addMethod(
  602. smalltalk.method({
  603. selector: "environment:",
  604. fn: function (anEnvironment){
  605. var self=this;
  606. return smalltalk.withContext(function($ctx1) {
  607. self["@environment"]=anEnvironment;
  608. return self}, function($ctx1) {$ctx1.fill(self,"environment:",{anEnvironment:anEnvironment},smalltalk.HLInspectorModel)})},
  609. messageSends: []}),
  610. smalltalk.HLInspectorModel);
  611. smalltalk.addMethod(
  612. smalltalk.method({
  613. selector: "inspect:on:",
  614. fn: function (anObject,anInspector){
  615. var self=this;
  616. return smalltalk.withContext(function($ctx1) {
  617. self["@inspectee"]=anObject;
  618. self["@variables"]=[];
  619. _st(self["@inspectee"])._inspectOn_(anInspector);
  620. return self}, function($ctx1) {$ctx1.fill(self,"inspect:on:",{anObject:anObject,anInspector:anInspector},smalltalk.HLInspectorModel)})},
  621. messageSends: ["inspectOn:"]}),
  622. smalltalk.HLInspectorModel);
  623. smalltalk.addMethod(
  624. smalltalk.method({
  625. selector: "inspectee",
  626. fn: function (){
  627. var self=this;
  628. return smalltalk.withContext(function($ctx1) {
  629. var $1;
  630. $1=self["@inspectee"];
  631. return $1;
  632. }, function($ctx1) {$ctx1.fill(self,"inspectee",{},smalltalk.HLInspectorModel)})},
  633. messageSends: []}),
  634. smalltalk.HLInspectorModel);
  635. smalltalk.addMethod(
  636. smalltalk.method({
  637. selector: "inspectee:",
  638. fn: function (anObject){
  639. var self=this;
  640. return smalltalk.withContext(function($ctx1) {
  641. self["@inspectee"]=anObject;
  642. return self}, function($ctx1) {$ctx1.fill(self,"inspectee:",{anObject:anObject},smalltalk.HLInspectorModel)})},
  643. messageSends: []}),
  644. smalltalk.HLInspectorModel);
  645. smalltalk.addMethod(
  646. smalltalk.method({
  647. selector: "instVarObjectAt:",
  648. fn: function (anInstVarName){
  649. var self=this;
  650. return smalltalk.withContext(function($ctx1) {
  651. var $1;
  652. $1=_st(_st(self)._variables())._at_(anInstVarName);
  653. return $1;
  654. }, function($ctx1) {$ctx1.fill(self,"instVarObjectAt:",{anInstVarName:anInstVarName},smalltalk.HLInspectorModel)})},
  655. messageSends: ["at:", "variables"]}),
  656. smalltalk.HLInspectorModel);
  657. smalltalk.addMethod(
  658. smalltalk.method({
  659. selector: "onKeyDown:",
  660. fn: function (anEvent){
  661. var self=this;
  662. return smalltalk.withContext(function($ctx1) {
  663. if(anEvent.ctrlKey) {
  664. if(anEvent.keyCode === 80) { //ctrl+p
  665. self._printIt();
  666. anEvent.preventDefault();
  667. return false;
  668. }
  669. if(anEvent.keyCode === 68) { //ctrl+d
  670. self._doIt();
  671. anEvent.preventDefault();
  672. return false;
  673. }
  674. if(anEvent.keyCode === 73) { //ctrl+i
  675. self._inspectIt();
  676. anEvent.preventDefault();
  677. return false;
  678. }
  679. };
  680. return self}, function($ctx1) {$ctx1.fill(self,"onKeyDown:",{anEvent:anEvent},smalltalk.HLInspectorModel)})},
  681. messageSends: []}),
  682. smalltalk.HLInspectorModel);
  683. smalltalk.addMethod(
  684. smalltalk.method({
  685. selector: "selectedInstVar:",
  686. fn: function (anInstVarName){
  687. var self=this;
  688. return smalltalk.withContext(function($ctx1) {
  689. _st(self)._selection_(anInstVarName);
  690. return self}, function($ctx1) {$ctx1.fill(self,"selectedInstVar:",{anInstVarName:anInstVarName},smalltalk.HLInspectorModel)})},
  691. messageSends: ["selection:"]}),
  692. smalltalk.HLInspectorModel);
  693. smalltalk.addMethod(
  694. smalltalk.method({
  695. selector: "selectedInstVarObject",
  696. fn: function (){
  697. var self=this;
  698. return smalltalk.withContext(function($ctx1) {
  699. var $1;
  700. $1=_st(self)._instVarObjectAt_(_st(self)._selection());
  701. return $1;
  702. }, function($ctx1) {$ctx1.fill(self,"selectedInstVarObject",{},smalltalk.HLInspectorModel)})},
  703. messageSends: ["instVarObjectAt:", "selection"]}),
  704. smalltalk.HLInspectorModel);
  705. smalltalk.addMethod(
  706. smalltalk.method({
  707. selector: "selection",
  708. fn: function (){
  709. var self=this;
  710. return smalltalk.withContext(function($ctx1) {
  711. var $2,$1;
  712. $2=self["@selection"];
  713. if(($receiver = $2) == nil || $receiver == undefined){
  714. $1="";
  715. } else {
  716. $1=$2;
  717. };
  718. return $1;
  719. }, function($ctx1) {$ctx1.fill(self,"selection",{},smalltalk.HLInspectorModel)})},
  720. messageSends: ["ifNil:"]}),
  721. smalltalk.HLInspectorModel);
  722. smalltalk.addMethod(
  723. smalltalk.method({
  724. selector: "selection:",
  725. fn: function (anObject){
  726. var self=this;
  727. function $HLInstanceVariableSelected(){return smalltalk.HLInstanceVariableSelected||(typeof HLInstanceVariableSelected=="undefined"?nil:HLInstanceVariableSelected)}
  728. return smalltalk.withContext(function($ctx1) {
  729. self["@selection"]=anObject;
  730. _st(_st(self)._announcer())._announce_(_st($HLInstanceVariableSelected())._on_(self["@selection"]));
  731. return self}, function($ctx1) {$ctx1.fill(self,"selection:",{anObject:anObject},smalltalk.HLInspectorModel)})},
  732. messageSends: ["announce:", "on:", "announcer"]}),
  733. smalltalk.HLInspectorModel);
  734. smalltalk.addMethod(
  735. smalltalk.method({
  736. selector: "subscribe:",
  737. fn: function (aWidget){
  738. var self=this;
  739. return smalltalk.withContext(function($ctx1) {
  740. _st(aWidget)._subscribeTo_(_st(self)._announcer());
  741. return self}, function($ctx1) {$ctx1.fill(self,"subscribe:",{aWidget:aWidget},smalltalk.HLInspectorModel)})},
  742. messageSends: ["subscribeTo:", "announcer"]}),
  743. smalltalk.HLInspectorModel);
  744. smalltalk.addMethod(
  745. smalltalk.method({
  746. selector: "variables",
  747. fn: function (){
  748. var self=this;
  749. function $Dictionary(){return smalltalk.Dictionary||(typeof Dictionary=="undefined"?nil:Dictionary)}
  750. return smalltalk.withContext(function($ctx1) {
  751. var $2,$1;
  752. $2=self["@variables"];
  753. if(($receiver = $2) == nil || $receiver == undefined){
  754. $1=_st($Dictionary())._new();
  755. } else {
  756. $1=$2;
  757. };
  758. return $1;
  759. }, function($ctx1) {$ctx1.fill(self,"variables",{},smalltalk.HLInspectorModel)})},
  760. messageSends: ["ifNil:", "new"]}),
  761. smalltalk.HLInspectorModel);
  762. smalltalk.addMethod(
  763. smalltalk.method({
  764. selector: "variables:",
  765. fn: function (aCollection){
  766. var self=this;
  767. return smalltalk.withContext(function($ctx1) {
  768. self["@variables"]=aCollection;
  769. return self}, function($ctx1) {$ctx1.fill(self,"variables:",{aCollection:aCollection},smalltalk.HLInspectorModel)})},
  770. messageSends: []}),
  771. smalltalk.HLInspectorModel);
  772. smalltalk.addMethod(
  773. smalltalk.method({
  774. selector: "on:",
  775. fn: function (anEnvironment){
  776. var self=this;
  777. return smalltalk.withContext(function($ctx1) {
  778. var $2,$3,$1;
  779. $2=_st(self)._new();
  780. _st($2)._environment_(anEnvironment);
  781. $3=_st($2)._yourself();
  782. $1=$3;
  783. return $1;
  784. }, function($ctx1) {$ctx1.fill(self,"on:",{anEnvironment:anEnvironment},smalltalk.HLInspectorModel.klass)})},
  785. messageSends: ["environment:", "new", "yourself"]}),
  786. smalltalk.HLInspectorModel.klass);
  787. smalltalk.addClass('HLInspectorVariablesWidget', smalltalk.HLNavigationListWidget, ['announcer', 'model', 'list', 'diveButton'], 'Helios-Inspector');
  788. smalltalk.addMethod(
  789. smalltalk.method({
  790. selector: "announcer",
  791. fn: function (){
  792. var self=this;
  793. function $Announcer(){return smalltalk.Announcer||(typeof Announcer=="undefined"?nil:Announcer)}
  794. return smalltalk.withContext(function($ctx1) {
  795. var $2,$1;
  796. $2=self["@announcer"];
  797. if(($receiver = $2) == nil || $receiver == undefined){
  798. self["@announcer"]=_st($Announcer())._new();
  799. $1=self["@announcer"];
  800. } else {
  801. $1=$2;
  802. };
  803. return $1;
  804. }, function($ctx1) {$ctx1.fill(self,"announcer",{},smalltalk.HLInspectorVariablesWidget)})},
  805. messageSends: ["ifNil:", "new"]}),
  806. smalltalk.HLInspectorVariablesWidget);
  807. smalltalk.addMethod(
  808. smalltalk.method({
  809. selector: "defaultItems",
  810. fn: function (){
  811. var self=this;
  812. return smalltalk.withContext(function($ctx1) {
  813. var $1;
  814. $1=_st(_st(_st(self)._model())._variables())._keys();
  815. return $1;
  816. }, function($ctx1) {$ctx1.fill(self,"defaultItems",{},smalltalk.HLInspectorVariablesWidget)})},
  817. messageSends: ["keys", "variables", "model"]}),
  818. smalltalk.HLInspectorVariablesWidget);
  819. smalltalk.addMethod(
  820. smalltalk.method({
  821. selector: "label",
  822. fn: function (){
  823. var self=this;
  824. return smalltalk.withContext(function($ctx1) {
  825. var $1;
  826. $1=_st(_st(_st(_st(self)._model())._inspectee())._class())._name();
  827. return $1;
  828. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLInspectorVariablesWidget)})},
  829. messageSends: ["name", "class", "inspectee", "model"]}),
  830. smalltalk.HLInspectorVariablesWidget);
  831. smalltalk.addMethod(
  832. smalltalk.method({
  833. selector: "model",
  834. fn: function (){
  835. var self=this;
  836. return smalltalk.withContext(function($ctx1) {
  837. var $1;
  838. $1=self["@model"];
  839. return $1;
  840. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLInspectorVariablesWidget)})},
  841. messageSends: []}),
  842. smalltalk.HLInspectorVariablesWidget);
  843. smalltalk.addMethod(
  844. smalltalk.method({
  845. selector: "model:",
  846. fn: function (aModel){
  847. var self=this;
  848. return smalltalk.withContext(function($ctx1) {
  849. self["@model"]=aModel;
  850. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLInspectorVariablesWidget)})},
  851. messageSends: []}),
  852. smalltalk.HLInspectorVariablesWidget);
  853. smalltalk.addMethod(
  854. smalltalk.method({
  855. selector: "refresh",
  856. fn: function (){
  857. var self=this;
  858. return smalltalk.withContext(function($ctx1) {
  859. _st(self)._resetItems();
  860. smalltalk.HLNavigationListWidget.fn.prototype._refresh.apply(_st(self), []);
  861. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLInspectorVariablesWidget)})},
  862. messageSends: ["resetItems", "refresh"]}),
  863. smalltalk.HLInspectorVariablesWidget);
  864. smalltalk.addMethod(
  865. smalltalk.method({
  866. selector: "renderButtonsOn:",
  867. fn: function (html){
  868. var self=this;
  869. function $HLDiveRequested(){return smalltalk.HLDiveRequested||(typeof HLDiveRequested=="undefined"?nil:HLDiveRequested)}
  870. return smalltalk.withContext(function($ctx1) {
  871. var $1,$2;
  872. $1=_st(html)._button();
  873. _st($1)._class_("btn");
  874. _st($1)._with_("Dive");
  875. $2=_st($1)._onClick_((function(){
  876. return smalltalk.withContext(function($ctx2) {
  877. return _st(_st(self)._announcer())._announce_(_st($HLDiveRequested())._new());
  878. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  879. self["@diveButton"]=$2;
  880. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.HLInspectorVariablesWidget)})},
  881. messageSends: ["class:", "button", "with:", "onClick:", "announce:", "new", "announcer"]}),
  882. smalltalk.HLInspectorVariablesWidget);
  883. smalltalk.addMethod(
  884. smalltalk.method({
  885. selector: "renderContentOn:",
  886. fn: function (html){
  887. var self=this;
  888. return smalltalk.withContext(function($ctx1) {
  889. _st(self)._renderHeadOn_(html);
  890. smalltalk.HLNavigationListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  891. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLInspectorVariablesWidget)})},
  892. messageSends: ["renderHeadOn:", "renderContentOn:"]}),
  893. smalltalk.HLInspectorVariablesWidget);
  894. smalltalk.addMethod(
  895. smalltalk.method({
  896. selector: "renderHeadOn:",
  897. fn: function (html){
  898. var self=this;
  899. return smalltalk.withContext(function($ctx1) {
  900. var $1,$2;
  901. $1=_st(html)._div();
  902. _st($1)._class_("list-label");
  903. $2=_st($1)._with_(_st(self)._label());
  904. return self}, function($ctx1) {$ctx1.fill(self,"renderHeadOn:",{html:html},smalltalk.HLInspectorVariablesWidget)})},
  905. messageSends: ["class:", "div", "with:", "label"]}),
  906. smalltalk.HLInspectorVariablesWidget);
  907. smalltalk.addMethod(
  908. smalltalk.method({
  909. selector: "resetItems",
  910. fn: function (){
  911. var self=this;
  912. return smalltalk.withContext(function($ctx1) {
  913. self["@items"]=nil;
  914. return self}, function($ctx1) {$ctx1.fill(self,"resetItems",{},smalltalk.HLInspectorVariablesWidget)})},
  915. messageSends: []}),
  916. smalltalk.HLInspectorVariablesWidget);
  917. smalltalk.addMethod(
  918. smalltalk.method({
  919. selector: "selectItem:",
  920. fn: function (anObject){
  921. var self=this;
  922. return smalltalk.withContext(function($ctx1) {
  923. smalltalk.HLNavigationListWidget.fn.prototype._selectItem_.apply(_st(self), [anObject]);
  924. _st(_st(self)._model())._selectedInstVar_(anObject);
  925. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{anObject:anObject},smalltalk.HLInspectorVariablesWidget)})},
  926. messageSends: ["selectItem:", "selectedInstVar:", "model"]}),
  927. smalltalk.HLInspectorVariablesWidget);
  928. smalltalk.addMethod(
  929. smalltalk.method({
  930. selector: "selection",
  931. fn: function (){
  932. var self=this;
  933. return smalltalk.withContext(function($ctx1) {
  934. var $1;
  935. $1=_st(self["@model"])._selection();
  936. return $1;
  937. }, function($ctx1) {$ctx1.fill(self,"selection",{},smalltalk.HLInspectorVariablesWidget)})},
  938. messageSends: ["selection"]}),
  939. smalltalk.HLInspectorVariablesWidget);
  940. smalltalk.addMethod(
  941. smalltalk.method({
  942. selector: "variables",
  943. fn: function (){
  944. var self=this;
  945. return smalltalk.withContext(function($ctx1) {
  946. var $1;
  947. $1=_st(self["@model"])._variables();
  948. return $1;
  949. }, function($ctx1) {$ctx1.fill(self,"variables",{},smalltalk.HLInspectorVariablesWidget)})},
  950. messageSends: ["variables"]}),
  951. smalltalk.HLInspectorVariablesWidget);