1
0

Helios-Inspector.deploy.js 36 KB

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