2
0

Helios-Inspector.deploy.js 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063
  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_(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_(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(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(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. 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=self._instVarObjectAt_(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(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_(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=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=self._variables();
  352. return $1;
  353. }, function($ctx1) {$ctx1.fill(self,"defaultItems",{},smalltalk.HLInspectorVariablesWidget)})},
  354. messageSends: ["variables"]}),
  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(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. var $1;
  397. $1=_st(self._variables()).__eq(self._items());
  398. if(! smalltalk.assert($1)){
  399. self._resetItems();
  400. smalltalk.HLNavigationListWidget.fn.prototype._refresh.apply(_st(self), []);
  401. };
  402. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLInspectorVariablesWidget)})},
  403. messageSends: ["ifFalse:", "resetItems", "refresh", "=", "items", "variables"]}),
  404. smalltalk.HLInspectorVariablesWidget);
  405. smalltalk.addMethod(
  406. smalltalk.method({
  407. selector: "renderButtonsOn:",
  408. fn: function (html){
  409. var self=this;
  410. function $HLDiveRequested(){return smalltalk.HLDiveRequested||(typeof HLDiveRequested=="undefined"?nil:HLDiveRequested)}
  411. return smalltalk.withContext(function($ctx1) {
  412. var $1,$2;
  413. $1=_st(html)._button();
  414. _st($1)._class_("btn");
  415. _st($1)._with_("Dive");
  416. $2=_st($1)._onClick_((function(){
  417. return smalltalk.withContext(function($ctx2) {
  418. return _st(self._announcer())._announce_(_st($HLDiveRequested())._new());
  419. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  420. self["@diveButton"]=$2;
  421. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.HLInspectorVariablesWidget)})},
  422. messageSends: ["class:", "button", "with:", "onClick:", "announce:", "new", "announcer"]}),
  423. smalltalk.HLInspectorVariablesWidget);
  424. smalltalk.addMethod(
  425. smalltalk.method({
  426. selector: "renderContentOn:",
  427. fn: function (html){
  428. var self=this;
  429. return smalltalk.withContext(function($ctx1) {
  430. self._renderHeadOn_(html);
  431. smalltalk.HLNavigationListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  432. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLInspectorVariablesWidget)})},
  433. messageSends: ["renderHeadOn:", "renderContentOn:"]}),
  434. smalltalk.HLInspectorVariablesWidget);
  435. smalltalk.addMethod(
  436. smalltalk.method({
  437. selector: "renderHeadOn:",
  438. fn: function (html){
  439. var self=this;
  440. return smalltalk.withContext(function($ctx1) {
  441. var $1,$2;
  442. $1=_st(html)._div();
  443. _st($1)._class_("list-label");
  444. $2=_st($1)._with_(self._label());
  445. return self}, function($ctx1) {$ctx1.fill(self,"renderHeadOn:",{html:html},smalltalk.HLInspectorVariablesWidget)})},
  446. messageSends: ["class:", "div", "with:", "label"]}),
  447. smalltalk.HLInspectorVariablesWidget);
  448. smalltalk.addMethod(
  449. smalltalk.method({
  450. selector: "resetItems",
  451. fn: function (){
  452. var self=this;
  453. return smalltalk.withContext(function($ctx1) {
  454. self["@items"]=nil;
  455. return self}, function($ctx1) {$ctx1.fill(self,"resetItems",{},smalltalk.HLInspectorVariablesWidget)})},
  456. messageSends: []}),
  457. smalltalk.HLInspectorVariablesWidget);
  458. smalltalk.addMethod(
  459. smalltalk.method({
  460. selector: "selectItem:",
  461. fn: function (anObject){
  462. var self=this;
  463. return smalltalk.withContext(function($ctx1) {
  464. smalltalk.HLNavigationListWidget.fn.prototype._selectItem_.apply(_st(self), [anObject]);
  465. _st(self._model())._selectedInstVar_(anObject);
  466. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{anObject:anObject},smalltalk.HLInspectorVariablesWidget)})},
  467. messageSends: ["selectItem:", "selectedInstVar:", "model"]}),
  468. smalltalk.HLInspectorVariablesWidget);
  469. smalltalk.addMethod(
  470. smalltalk.method({
  471. selector: "selection",
  472. fn: function (){
  473. var self=this;
  474. return smalltalk.withContext(function($ctx1) {
  475. var $1;
  476. $1=_st(self["@model"])._selection();
  477. return $1;
  478. }, function($ctx1) {$ctx1.fill(self,"selection",{},smalltalk.HLInspectorVariablesWidget)})},
  479. messageSends: ["selection"]}),
  480. smalltalk.HLInspectorVariablesWidget);
  481. smalltalk.addMethod(
  482. smalltalk.method({
  483. selector: "variables",
  484. fn: function (){
  485. var self=this;
  486. return smalltalk.withContext(function($ctx1) {
  487. var $1;
  488. $1=_st(_st(self._model())._variables())._keys();
  489. return $1;
  490. }, function($ctx1) {$ctx1.fill(self,"variables",{},smalltalk.HLInspectorVariablesWidget)})},
  491. messageSends: ["keys", "variables", "model"]}),
  492. smalltalk.HLInspectorVariablesWidget);
  493. smalltalk.addClass('HLInspectorWidget', smalltalk.HLWidget, ['model', 'variablesWidget', 'displayWidget', 'codeWidget'], 'Helios-Inspector');
  494. smalltalk.addMethod(
  495. smalltalk.method({
  496. selector: "codeWidget",
  497. fn: function (){
  498. var self=this;
  499. function $HLCodeWidget(){return smalltalk.HLCodeWidget||(typeof HLCodeWidget=="undefined"?nil:HLCodeWidget)}
  500. return smalltalk.withContext(function($ctx1) {
  501. var $2,$3,$4,$1;
  502. $2=self["@codeWidget"];
  503. if(($receiver = $2) == nil || $receiver == undefined){
  504. $3=_st($HLCodeWidget())._new();
  505. _st($3)._model_(_st(self["@model"])._code());
  506. _st($3)._receiver_(_st(self["@model"])._inspectee());
  507. $4=_st($3)._yourself();
  508. self["@codeWidget"]=$4;
  509. $1=self["@codeWidget"];
  510. } else {
  511. $1=$2;
  512. };
  513. return $1;
  514. }, function($ctx1) {$ctx1.fill(self,"codeWidget",{},smalltalk.HLInspectorWidget)})},
  515. messageSends: ["ifNil:", "model:", "code", "new", "receiver:", "inspectee", "yourself"]}),
  516. smalltalk.HLInspectorWidget);
  517. smalltalk.addMethod(
  518. smalltalk.method({
  519. selector: "displayWidget",
  520. fn: function (){
  521. var self=this;
  522. function $HLInspectorDisplayWidget(){return smalltalk.HLInspectorDisplayWidget||(typeof HLInspectorDisplayWidget=="undefined"?nil:HLInspectorDisplayWidget)}
  523. return smalltalk.withContext(function($ctx1) {
  524. var $2,$3,$4,$1;
  525. $2=self["@displayWidget"];
  526. if(($receiver = $2) == nil || $receiver == undefined){
  527. $3=_st($HLInspectorDisplayWidget())._new();
  528. _st($3)._model_(self._model());
  529. $4=_st($3)._yourself();
  530. self["@displayWidget"]=$4;
  531. $1=self["@displayWidget"];
  532. } else {
  533. $1=$2;
  534. };
  535. return $1;
  536. }, function($ctx1) {$ctx1.fill(self,"displayWidget",{},smalltalk.HLInspectorWidget)})},
  537. messageSends: ["ifNil:", "model:", "model", "new", "yourself"]}),
  538. smalltalk.HLInspectorWidget);
  539. smalltalk.addMethod(
  540. smalltalk.method({
  541. selector: "initialize",
  542. fn: function (){
  543. var self=this;
  544. return smalltalk.withContext(function($ctx1) {
  545. smalltalk.HLWidget.fn.prototype._initialize.apply(_st(self), []);
  546. self._register();
  547. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLInspectorWidget)})},
  548. messageSends: ["initialize", "register"]}),
  549. smalltalk.HLInspectorWidget);
  550. smalltalk.addMethod(
  551. smalltalk.method({
  552. selector: "inspect:",
  553. fn: function (anObject){
  554. var self=this;
  555. return smalltalk.withContext(function($ctx1) {
  556. var $1,$2;
  557. _st(self._model())._inspect_on_(anObject,self);
  558. $1=self;
  559. _st($1)._refreshVariablesWidget();
  560. $2=_st($1)._refreshDisplayWidget();
  561. return self}, function($ctx1) {$ctx1.fill(self,"inspect:",{anObject:anObject},smalltalk.HLInspectorWidget)})},
  562. messageSends: ["inspect:on:", "model", "refreshVariablesWidget", "refreshDisplayWidget"]}),
  563. smalltalk.HLInspectorWidget);
  564. smalltalk.addMethod(
  565. smalltalk.method({
  566. selector: "inspectee",
  567. fn: function (){
  568. var self=this;
  569. return smalltalk.withContext(function($ctx1) {
  570. var $1;
  571. $1=_st(self._model())._inspectee();
  572. return $1;
  573. }, function($ctx1) {$ctx1.fill(self,"inspectee",{},smalltalk.HLInspectorWidget)})},
  574. messageSends: ["inspectee", "model"]}),
  575. smalltalk.HLInspectorWidget);
  576. smalltalk.addMethod(
  577. smalltalk.method({
  578. selector: "inspectee:",
  579. fn: function (anObject){
  580. var self=this;
  581. return smalltalk.withContext(function($ctx1) {
  582. _st(self._model())._inspectee_(anObject);
  583. return self}, function($ctx1) {$ctx1.fill(self,"inspectee:",{anObject:anObject},smalltalk.HLInspectorWidget)})},
  584. messageSends: ["inspectee:", "model"]}),
  585. smalltalk.HLInspectorWidget);
  586. smalltalk.addMethod(
  587. smalltalk.method({
  588. selector: "label",
  589. fn: function (){
  590. var self=this;
  591. return smalltalk.withContext(function($ctx1) {
  592. var $1;
  593. $1=_st(self._model())._label();
  594. return $1;
  595. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLInspectorWidget)})},
  596. messageSends: ["label", "model"]}),
  597. smalltalk.HLInspectorWidget);
  598. smalltalk.addMethod(
  599. smalltalk.method({
  600. selector: "model",
  601. fn: function (){
  602. var self=this;
  603. function $HLInspectorModel(){return smalltalk.HLInspectorModel||(typeof HLInspectorModel=="undefined"?nil:HLInspectorModel)}
  604. return smalltalk.withContext(function($ctx1) {
  605. var $2,$1;
  606. $2=self["@model"];
  607. if(($receiver = $2) == nil || $receiver == undefined){
  608. self._model_(_st($HLInspectorModel())._new());
  609. $1=self["@model"];
  610. } else {
  611. $1=$2;
  612. };
  613. return $1;
  614. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLInspectorWidget)})},
  615. messageSends: ["ifNil:", "model:", "new"]}),
  616. smalltalk.HLInspectorWidget);
  617. smalltalk.addMethod(
  618. smalltalk.method({
  619. selector: "model:",
  620. fn: function (aModel){
  621. var self=this;
  622. return smalltalk.withContext(function($ctx1) {
  623. var $1,$2;
  624. self["@model"]=aModel;
  625. _st(self._codeWidget())._model_(_st(aModel)._code());
  626. $1=self;
  627. _st($1)._observeCodeWidget();
  628. _st($1)._observeVariablesWidget();
  629. $2=_st($1)._observeModel();
  630. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLInspectorWidget)})},
  631. messageSends: ["model:", "code", "codeWidget", "observeCodeWidget", "observeVariablesWidget", "observeModel"]}),
  632. smalltalk.HLInspectorWidget);
  633. smalltalk.addMethod(
  634. smalltalk.method({
  635. selector: "observeCodeWidget",
  636. fn: function (){
  637. var self=this;
  638. function $HLDoItExecuted(){return smalltalk.HLDoItExecuted||(typeof HLDoItExecuted=="undefined"?nil:HLDoItExecuted)}
  639. return smalltalk.withContext(function($ctx1) {
  640. _st(_st(self._codeWidget())._announcer())._on_do_($HLDoItExecuted(),(function(){
  641. return smalltalk.withContext(function($ctx2) {
  642. return self._onDoneIt();
  643. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  644. return self}, function($ctx1) {$ctx1.fill(self,"observeCodeWidget",{},smalltalk.HLInspectorWidget)})},
  645. messageSends: ["on:do:", "onDoneIt", "announcer", "codeWidget"]}),
  646. smalltalk.HLInspectorWidget);
  647. smalltalk.addMethod(
  648. smalltalk.method({
  649. selector: "observeModel",
  650. fn: function (){
  651. var self=this;
  652. function $HLInstanceVariableSelected(){return smalltalk.HLInstanceVariableSelected||(typeof HLInstanceVariableSelected=="undefined"?nil:HLInstanceVariableSelected)}
  653. return smalltalk.withContext(function($ctx1) {
  654. _st(_st(self._model())._announcer())._on_send_to_($HLInstanceVariableSelected(),"onInstanceVariableSelected",self);
  655. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLInspectorWidget)})},
  656. messageSends: ["on:send:to:", "announcer", "model"]}),
  657. smalltalk.HLInspectorWidget);
  658. smalltalk.addMethod(
  659. smalltalk.method({
  660. selector: "observeVariablesWidget",
  661. fn: function (){
  662. var self=this;
  663. function $HLDiveRequested(){return smalltalk.HLDiveRequested||(typeof HLDiveRequested=="undefined"?nil:HLDiveRequested)}
  664. return smalltalk.withContext(function($ctx1) {
  665. _st(_st(self._variablesWidget())._announcer())._on_do_($HLDiveRequested(),(function(){
  666. return smalltalk.withContext(function($ctx2) {
  667. return self._onDive();
  668. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  669. return self}, function($ctx1) {$ctx1.fill(self,"observeVariablesWidget",{},smalltalk.HLInspectorWidget)})},
  670. messageSends: ["on:do:", "onDive", "announcer", "variablesWidget"]}),
  671. smalltalk.HLInspectorWidget);
  672. smalltalk.addMethod(
  673. smalltalk.method({
  674. selector: "onDive",
  675. fn: function (){
  676. var self=this;
  677. function $HLInspector(){return smalltalk.HLInspector||(typeof HLInspector=="undefined"?nil:HLInspector)}
  678. return smalltalk.withContext(function($ctx1) {
  679. var $1,$2;
  680. $1=_st($HLInspector())._new();
  681. _st($1)._inspect_(_st(self._model())._selectedInstVarObject());
  682. $2=_st($1)._openAsTab();
  683. return self}, function($ctx1) {$ctx1.fill(self,"onDive",{},smalltalk.HLInspectorWidget)})},
  684. messageSends: ["inspect:", "selectedInstVarObject", "model", "new", "openAsTab"]}),
  685. smalltalk.HLInspectorWidget);
  686. smalltalk.addMethod(
  687. smalltalk.method({
  688. selector: "onDoneIt",
  689. fn: function (){
  690. var self=this;
  691. return smalltalk.withContext(function($ctx1) {
  692. self._refresh();
  693. return self}, function($ctx1) {$ctx1.fill(self,"onDoneIt",{},smalltalk.HLInspectorWidget)})},
  694. messageSends: ["refresh"]}),
  695. smalltalk.HLInspectorWidget);
  696. smalltalk.addMethod(
  697. smalltalk.method({
  698. selector: "onInspectIt",
  699. fn: function (){
  700. var self=this;
  701. return smalltalk.withContext(function($ctx1) {
  702. return self}, function($ctx1) {$ctx1.fill(self,"onInspectIt",{},smalltalk.HLInspectorWidget)})},
  703. messageSends: []}),
  704. smalltalk.HLInspectorWidget);
  705. smalltalk.addMethod(
  706. smalltalk.method({
  707. selector: "onInstanceVariableSelected",
  708. fn: function (){
  709. var self=this;
  710. return smalltalk.withContext(function($ctx1) {
  711. _st(self._codeWidget())._receiver_(_st(self._model())._selectedInstVarObject());
  712. self._refreshDisplayWidget();
  713. return self}, function($ctx1) {$ctx1.fill(self,"onInstanceVariableSelected",{},smalltalk.HLInspectorWidget)})},
  714. messageSends: ["receiver:", "selectedInstVarObject", "model", "codeWidget", "refreshDisplayWidget"]}),
  715. smalltalk.HLInspectorWidget);
  716. smalltalk.addMethod(
  717. smalltalk.method({
  718. selector: "onPrintIt",
  719. fn: function (){
  720. var self=this;
  721. return smalltalk.withContext(function($ctx1) {
  722. return self}, function($ctx1) {$ctx1.fill(self,"onPrintIt",{},smalltalk.HLInspectorWidget)})},
  723. messageSends: []}),
  724. smalltalk.HLInspectorWidget);
  725. smalltalk.addMethod(
  726. smalltalk.method({
  727. selector: "refresh",
  728. fn: function (){
  729. var self=this;
  730. return smalltalk.withContext(function($ctx1) {
  731. var $1,$2;
  732. $1=self;
  733. _st($1)._refreshVariablesWidget();
  734. $2=_st($1)._refreshDisplayWidget();
  735. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLInspectorWidget)})},
  736. messageSends: ["refreshVariablesWidget", "refreshDisplayWidget"]}),
  737. smalltalk.HLInspectorWidget);
  738. smalltalk.addMethod(
  739. smalltalk.method({
  740. selector: "refreshDisplayWidget",
  741. fn: function (){
  742. var self=this;
  743. return smalltalk.withContext(function($ctx1) {
  744. _st(self._displayWidget())._refresh();
  745. return self}, function($ctx1) {$ctx1.fill(self,"refreshDisplayWidget",{},smalltalk.HLInspectorWidget)})},
  746. messageSends: ["refresh", "displayWidget"]}),
  747. smalltalk.HLInspectorWidget);
  748. smalltalk.addMethod(
  749. smalltalk.method({
  750. selector: "refreshVariablesWidget",
  751. fn: function (){
  752. var self=this;
  753. return smalltalk.withContext(function($ctx1) {
  754. _st(self._variablesWidget())._refresh();
  755. return self}, function($ctx1) {$ctx1.fill(self,"refreshVariablesWidget",{},smalltalk.HLInspectorWidget)})},
  756. messageSends: ["refresh", "variablesWidget"]}),
  757. smalltalk.HLInspectorWidget);
  758. smalltalk.addMethod(
  759. smalltalk.method({
  760. selector: "register",
  761. fn: function (){
  762. var self=this;
  763. function $HLInspector(){return smalltalk.HLInspector||(typeof HLInspector=="undefined"?nil:HLInspector)}
  764. return smalltalk.withContext(function($ctx1) {
  765. _st($HLInspector())._register_(self);
  766. return self}, function($ctx1) {$ctx1.fill(self,"register",{},smalltalk.HLInspectorWidget)})},
  767. messageSends: ["register:"]}),
  768. smalltalk.HLInspectorWidget);
  769. smalltalk.addMethod(
  770. smalltalk.method({
  771. selector: "renderContentOn:",
  772. fn: function (html){
  773. var self=this;
  774. function $HLVerticalSplitter(){return smalltalk.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
  775. function $HLHorizontalSplitter(){return smalltalk.HLHorizontalSplitter||(typeof HLHorizontalSplitter=="undefined"?nil:HLHorizontalSplitter)}
  776. return smalltalk.withContext(function($ctx1) {
  777. _st(html)._with_(_st($HLHorizontalSplitter())._with_with_(_st($HLVerticalSplitter())._with_with_(self._variablesWidget(),self._displayWidget()),self._codeWidget()));
  778. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLInspectorWidget)})},
  779. messageSends: ["with:", "with:with:", "variablesWidget", "displayWidget", "codeWidget"]}),
  780. smalltalk.HLInspectorWidget);
  781. smalltalk.addMethod(
  782. smalltalk.method({
  783. selector: "setLabel:",
  784. fn: function (aString){
  785. var self=this;
  786. return smalltalk.withContext(function($ctx1) {
  787. _st(self._model())._label_(aString);
  788. return self}, function($ctx1) {$ctx1.fill(self,"setLabel:",{aString:aString},smalltalk.HLInspectorWidget)})},
  789. messageSends: ["label:", "model"]}),
  790. smalltalk.HLInspectorWidget);
  791. smalltalk.addMethod(
  792. smalltalk.method({
  793. selector: "setVariables:",
  794. fn: function (aDictionary){
  795. var self=this;
  796. return smalltalk.withContext(function($ctx1) {
  797. _st(self._model())._variables_(aDictionary);
  798. return self}, function($ctx1) {$ctx1.fill(self,"setVariables:",{aDictionary:aDictionary},smalltalk.HLInspectorWidget)})},
  799. messageSends: ["variables:", "model"]}),
  800. smalltalk.HLInspectorWidget);
  801. smalltalk.addMethod(
  802. smalltalk.method({
  803. selector: "tabLabel",
  804. fn: function (){
  805. var self=this;
  806. return smalltalk.withContext(function($ctx1) {
  807. return "Inspector";
  808. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLInspectorWidget)})},
  809. messageSends: []}),
  810. smalltalk.HLInspectorWidget);
  811. smalltalk.addMethod(
  812. smalltalk.method({
  813. selector: "unregister",
  814. fn: function (){
  815. var self=this;
  816. function $HLInspector(){return smalltalk.HLInspector||(typeof HLInspector=="undefined"?nil:HLInspector)}
  817. return smalltalk.withContext(function($ctx1) {
  818. smalltalk.HLWidget.fn.prototype._unregister.apply(_st(self), []);
  819. _st($HLInspector())._unregister_(self);
  820. return self}, function($ctx1) {$ctx1.fill(self,"unregister",{},smalltalk.HLInspectorWidget)})},
  821. messageSends: ["unregister", "unregister:"]}),
  822. smalltalk.HLInspectorWidget);
  823. smalltalk.addMethod(
  824. smalltalk.method({
  825. selector: "variablesWidget",
  826. fn: function (){
  827. var self=this;
  828. function $HLInspectorVariablesWidget(){return smalltalk.HLInspectorVariablesWidget||(typeof HLInspectorVariablesWidget=="undefined"?nil:HLInspectorVariablesWidget)}
  829. return smalltalk.withContext(function($ctx1) {
  830. var $2,$3,$4,$1;
  831. $2=self["@variablesWidget"];
  832. if(($receiver = $2) == nil || $receiver == undefined){
  833. $3=_st($HLInspectorVariablesWidget())._new();
  834. _st($3)._model_(self._model());
  835. $4=_st($3)._yourself();
  836. self["@variablesWidget"]=$4;
  837. $1=self["@variablesWidget"];
  838. } else {
  839. $1=$2;
  840. };
  841. return $1;
  842. }, function($ctx1) {$ctx1.fill(self,"variablesWidget",{},smalltalk.HLInspectorWidget)})},
  843. messageSends: ["ifNil:", "model:", "model", "new", "yourself"]}),
  844. smalltalk.HLInspectorWidget);
  845. smalltalk.addClass('HLInspector', smalltalk.HLInspectorWidget, [], 'Helios-Inspector');
  846. smalltalk.addMethod(
  847. smalltalk.method({
  848. selector: "renderContentOn:",
  849. fn: function (html){
  850. var self=this;
  851. function $HLVerticalSplitter(){return smalltalk.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
  852. function $HLHorizontalSplitter(){return smalltalk.HLHorizontalSplitter||(typeof HLHorizontalSplitter=="undefined"?nil:HLHorizontalSplitter)}
  853. function $HLContainer(){return smalltalk.HLContainer||(typeof HLContainer=="undefined"?nil:HLContainer)}
  854. return smalltalk.withContext(function($ctx1) {
  855. _st(html)._with_(_st($HLContainer())._with_(_st($HLHorizontalSplitter())._with_with_(_st($HLVerticalSplitter())._with_with_(self._variablesWidget(),self._displayWidget()),self._codeWidget())));
  856. _st(self._variablesWidget())._focus();
  857. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLInspector)})},
  858. messageSends: ["with:", "with:with:", "variablesWidget", "displayWidget", "codeWidget", "focus"]}),
  859. smalltalk.HLInspector);
  860. smalltalk.HLInspector.klass.iVarNames = ['inspectors'];
  861. smalltalk.addMethod(
  862. smalltalk.method({
  863. selector: "canBeOpenAsTab",
  864. fn: function (){
  865. var self=this;
  866. return smalltalk.withContext(function($ctx1) {
  867. return false;
  868. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLInspector.klass)})},
  869. messageSends: []}),
  870. smalltalk.HLInspector.klass);
  871. smalltalk.addMethod(
  872. smalltalk.method({
  873. selector: "initialize",
  874. fn: function (){
  875. var self=this;
  876. return smalltalk.withContext(function($ctx1) {
  877. smalltalk.HLInspectorWidget.klass.fn.prototype._initialize.apply(_st(self), []);
  878. self._watchChanges();
  879. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLInspector.klass)})},
  880. messageSends: ["initialize", "watchChanges"]}),
  881. smalltalk.HLInspector.klass);
  882. smalltalk.addMethod(
  883. smalltalk.method({
  884. selector: "inspect:",
  885. fn: function (anObject){
  886. var self=this;
  887. return smalltalk.withContext(function($ctx1) {
  888. var $1,$2;
  889. $1=self._new();
  890. _st($1)._inspect_(anObject);
  891. $2=_st($1)._openAsTab();
  892. return self}, function($ctx1) {$ctx1.fill(self,"inspect:",{anObject:anObject},smalltalk.HLInspector.klass)})},
  893. messageSends: ["inspect:", "new", "openAsTab"]}),
  894. smalltalk.HLInspector.klass);
  895. smalltalk.addMethod(
  896. smalltalk.method({
  897. selector: "inspectors",
  898. fn: function (){
  899. var self=this;
  900. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  901. return smalltalk.withContext(function($ctx1) {
  902. var $2,$1;
  903. $2=self["@inspectors"];
  904. if(($receiver = $2) == nil || $receiver == undefined){
  905. self["@inspectors"]=_st($OrderedCollection())._new();
  906. $1=self["@inspectors"];
  907. } else {
  908. $1=$2;
  909. };
  910. return $1;
  911. }, function($ctx1) {$ctx1.fill(self,"inspectors",{},smalltalk.HLInspector.klass)})},
  912. messageSends: ["ifNil:", "new"]}),
  913. smalltalk.HLInspector.klass);
  914. smalltalk.addMethod(
  915. smalltalk.method({
  916. selector: "register:",
  917. fn: function (anInspector){
  918. var self=this;
  919. return smalltalk.withContext(function($ctx1) {
  920. _st(self._inspectors())._add_(anInspector);
  921. return self}, function($ctx1) {$ctx1.fill(self,"register:",{anInspector:anInspector},smalltalk.HLInspector.klass)})},
  922. messageSends: ["add:", "inspectors"]}),
  923. smalltalk.HLInspector.klass);
  924. smalltalk.addMethod(
  925. smalltalk.method({
  926. selector: "tabClass",
  927. fn: function (){
  928. var self=this;
  929. return smalltalk.withContext(function($ctx1) {
  930. return "inspector";
  931. }, function($ctx1) {$ctx1.fill(self,"tabClass",{},smalltalk.HLInspector.klass)})},
  932. messageSends: []}),
  933. smalltalk.HLInspector.klass);
  934. smalltalk.addMethod(
  935. smalltalk.method({
  936. selector: "tabLabel",
  937. fn: function (){
  938. var self=this;
  939. return smalltalk.withContext(function($ctx1) {
  940. return "Inspector";
  941. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLInspector.klass)})},
  942. messageSends: []}),
  943. smalltalk.HLInspector.klass);
  944. smalltalk.addMethod(
  945. smalltalk.method({
  946. selector: "tabPriority",
  947. fn: function (){
  948. var self=this;
  949. return smalltalk.withContext(function($ctx1) {
  950. return (10);
  951. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLInspector.klass)})},
  952. messageSends: []}),
  953. smalltalk.HLInspector.klass);
  954. smalltalk.addMethod(
  955. smalltalk.method({
  956. selector: "unregister:",
  957. fn: function (anInspector){
  958. var self=this;
  959. return smalltalk.withContext(function($ctx1) {
  960. _st(self._inspectors())._remove_(anInspector);
  961. return self}, function($ctx1) {$ctx1.fill(self,"unregister:",{anInspector:anInspector},smalltalk.HLInspector.klass)})},
  962. messageSends: ["remove:", "inspectors"]}),
  963. smalltalk.HLInspector.klass);
  964. smalltalk.addMethod(
  965. smalltalk.method({
  966. selector: "watchChanges",
  967. fn: function (){
  968. var self=this;
  969. return smalltalk.withContext(function($ctx1) {
  970. _st((function(){
  971. return smalltalk.withContext(function($ctx2) {
  972. return _st(self._inspectors())._do_((function(each){
  973. return smalltalk.withContext(function($ctx3) {
  974. return _st(each)._refresh();
  975. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx2)})}));
  976. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._valueWithInterval_((500));
  977. return self}, function($ctx1) {$ctx1.fill(self,"watchChanges",{},smalltalk.HLInspector.klass)})},
  978. messageSends: ["valueWithInterval:", "do:", "refresh", "inspectors"]}),
  979. smalltalk.HLInspector.klass);