Helios-Inspector.deploy.js 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060
  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.HLInspectorVariablesWidget.superclass.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.HLInspectorVariablesWidget.superclass.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.HLInspectorVariablesWidget.superclass.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.HLInspectorWidget.superclass.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. self._inspect_(self._inspectee());
  732. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLInspectorWidget)})},
  733. messageSends: ["inspect:", "inspectee"]}),
  734. smalltalk.HLInspectorWidget);
  735. smalltalk.addMethod(
  736. smalltalk.method({
  737. selector: "refreshDisplayWidget",
  738. fn: function (){
  739. var self=this;
  740. return smalltalk.withContext(function($ctx1) {
  741. _st(self._displayWidget())._refresh();
  742. return self}, function($ctx1) {$ctx1.fill(self,"refreshDisplayWidget",{},smalltalk.HLInspectorWidget)})},
  743. messageSends: ["refresh", "displayWidget"]}),
  744. smalltalk.HLInspectorWidget);
  745. smalltalk.addMethod(
  746. smalltalk.method({
  747. selector: "refreshVariablesWidget",
  748. fn: function (){
  749. var self=this;
  750. return smalltalk.withContext(function($ctx1) {
  751. _st(self._variablesWidget())._refresh();
  752. return self}, function($ctx1) {$ctx1.fill(self,"refreshVariablesWidget",{},smalltalk.HLInspectorWidget)})},
  753. messageSends: ["refresh", "variablesWidget"]}),
  754. smalltalk.HLInspectorWidget);
  755. smalltalk.addMethod(
  756. smalltalk.method({
  757. selector: "register",
  758. fn: function (){
  759. var self=this;
  760. function $HLInspector(){return smalltalk.HLInspector||(typeof HLInspector=="undefined"?nil:HLInspector)}
  761. return smalltalk.withContext(function($ctx1) {
  762. _st($HLInspector())._register_(self);
  763. return self}, function($ctx1) {$ctx1.fill(self,"register",{},smalltalk.HLInspectorWidget)})},
  764. messageSends: ["register:"]}),
  765. smalltalk.HLInspectorWidget);
  766. smalltalk.addMethod(
  767. smalltalk.method({
  768. selector: "renderContentOn:",
  769. fn: function (html){
  770. var self=this;
  771. function $HLVerticalSplitter(){return smalltalk.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
  772. function $HLHorizontalSplitter(){return smalltalk.HLHorizontalSplitter||(typeof HLHorizontalSplitter=="undefined"?nil:HLHorizontalSplitter)}
  773. return smalltalk.withContext(function($ctx1) {
  774. _st(html)._with_(_st($HLHorizontalSplitter())._with_with_(_st($HLVerticalSplitter())._with_with_(self._variablesWidget(),self._displayWidget()),self._codeWidget()));
  775. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLInspectorWidget)})},
  776. messageSends: ["with:", "with:with:", "variablesWidget", "displayWidget", "codeWidget"]}),
  777. smalltalk.HLInspectorWidget);
  778. smalltalk.addMethod(
  779. smalltalk.method({
  780. selector: "setLabel:",
  781. fn: function (aString){
  782. var self=this;
  783. return smalltalk.withContext(function($ctx1) {
  784. _st(self._model())._label_(aString);
  785. return self}, function($ctx1) {$ctx1.fill(self,"setLabel:",{aString:aString},smalltalk.HLInspectorWidget)})},
  786. messageSends: ["label:", "model"]}),
  787. smalltalk.HLInspectorWidget);
  788. smalltalk.addMethod(
  789. smalltalk.method({
  790. selector: "setVariables:",
  791. fn: function (aDictionary){
  792. var self=this;
  793. return smalltalk.withContext(function($ctx1) {
  794. _st(self._model())._variables_(aDictionary);
  795. return self}, function($ctx1) {$ctx1.fill(self,"setVariables:",{aDictionary:aDictionary},smalltalk.HLInspectorWidget)})},
  796. messageSends: ["variables:", "model"]}),
  797. smalltalk.HLInspectorWidget);
  798. smalltalk.addMethod(
  799. smalltalk.method({
  800. selector: "tabLabel",
  801. fn: function (){
  802. var self=this;
  803. return smalltalk.withContext(function($ctx1) {
  804. return "Inspector";
  805. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLInspectorWidget)})},
  806. messageSends: []}),
  807. smalltalk.HLInspectorWidget);
  808. smalltalk.addMethod(
  809. smalltalk.method({
  810. selector: "unregister",
  811. fn: function (){
  812. var self=this;
  813. function $HLInspector(){return smalltalk.HLInspector||(typeof HLInspector=="undefined"?nil:HLInspector)}
  814. return smalltalk.withContext(function($ctx1) {
  815. smalltalk.HLInspectorWidget.superclass.fn.prototype._unregister.apply(_st(self), []);
  816. _st($HLInspector())._unregister_(self);
  817. return self}, function($ctx1) {$ctx1.fill(self,"unregister",{},smalltalk.HLInspectorWidget)})},
  818. messageSends: ["unregister", "unregister:"]}),
  819. smalltalk.HLInspectorWidget);
  820. smalltalk.addMethod(
  821. smalltalk.method({
  822. selector: "variablesWidget",
  823. fn: function (){
  824. var self=this;
  825. function $HLInspectorVariablesWidget(){return smalltalk.HLInspectorVariablesWidget||(typeof HLInspectorVariablesWidget=="undefined"?nil:HLInspectorVariablesWidget)}
  826. return smalltalk.withContext(function($ctx1) {
  827. var $2,$3,$4,$1;
  828. $2=self["@variablesWidget"];
  829. if(($receiver = $2) == nil || $receiver == undefined){
  830. $3=_st($HLInspectorVariablesWidget())._new();
  831. _st($3)._model_(self._model());
  832. $4=_st($3)._yourself();
  833. self["@variablesWidget"]=$4;
  834. $1=self["@variablesWidget"];
  835. } else {
  836. $1=$2;
  837. };
  838. return $1;
  839. }, function($ctx1) {$ctx1.fill(self,"variablesWidget",{},smalltalk.HLInspectorWidget)})},
  840. messageSends: ["ifNil:", "model:", "model", "new", "yourself"]}),
  841. smalltalk.HLInspectorWidget);
  842. smalltalk.addClass('HLInspector', smalltalk.HLInspectorWidget, [], 'Helios-Inspector');
  843. smalltalk.addMethod(
  844. smalltalk.method({
  845. selector: "renderContentOn:",
  846. fn: function (html){
  847. var self=this;
  848. function $HLVerticalSplitter(){return smalltalk.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
  849. function $HLHorizontalSplitter(){return smalltalk.HLHorizontalSplitter||(typeof HLHorizontalSplitter=="undefined"?nil:HLHorizontalSplitter)}
  850. function $HLContainer(){return smalltalk.HLContainer||(typeof HLContainer=="undefined"?nil:HLContainer)}
  851. return smalltalk.withContext(function($ctx1) {
  852. _st(html)._with_(_st($HLContainer())._with_(_st($HLHorizontalSplitter())._with_with_(_st($HLVerticalSplitter())._with_with_(self._variablesWidget(),self._displayWidget()),self._codeWidget())));
  853. _st(self._variablesWidget())._focus();
  854. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLInspector)})},
  855. messageSends: ["with:", "with:with:", "variablesWidget", "displayWidget", "codeWidget", "focus"]}),
  856. smalltalk.HLInspector);
  857. smalltalk.HLInspector.klass.iVarNames = ['inspectors'];
  858. smalltalk.addMethod(
  859. smalltalk.method({
  860. selector: "canBeOpenAsTab",
  861. fn: function (){
  862. var self=this;
  863. return smalltalk.withContext(function($ctx1) {
  864. return false;
  865. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLInspector.klass)})},
  866. messageSends: []}),
  867. smalltalk.HLInspector.klass);
  868. smalltalk.addMethod(
  869. smalltalk.method({
  870. selector: "initialize",
  871. fn: function (){
  872. var self=this;
  873. return smalltalk.withContext(function($ctx1) {
  874. smalltalk.HLInspector.klass.superclass.fn.prototype._initialize.apply(_st(self), []);
  875. self._watchChanges();
  876. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLInspector.klass)})},
  877. messageSends: ["initialize", "watchChanges"]}),
  878. smalltalk.HLInspector.klass);
  879. smalltalk.addMethod(
  880. smalltalk.method({
  881. selector: "inspect:",
  882. fn: function (anObject){
  883. var self=this;
  884. return smalltalk.withContext(function($ctx1) {
  885. var $1,$2;
  886. $1=self._new();
  887. _st($1)._inspect_(anObject);
  888. $2=_st($1)._openAsTab();
  889. return self}, function($ctx1) {$ctx1.fill(self,"inspect:",{anObject:anObject},smalltalk.HLInspector.klass)})},
  890. messageSends: ["inspect:", "new", "openAsTab"]}),
  891. smalltalk.HLInspector.klass);
  892. smalltalk.addMethod(
  893. smalltalk.method({
  894. selector: "inspectors",
  895. fn: function (){
  896. var self=this;
  897. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  898. return smalltalk.withContext(function($ctx1) {
  899. var $2,$1;
  900. $2=self["@inspectors"];
  901. if(($receiver = $2) == nil || $receiver == undefined){
  902. self["@inspectors"]=_st($OrderedCollection())._new();
  903. $1=self["@inspectors"];
  904. } else {
  905. $1=$2;
  906. };
  907. return $1;
  908. }, function($ctx1) {$ctx1.fill(self,"inspectors",{},smalltalk.HLInspector.klass)})},
  909. messageSends: ["ifNil:", "new"]}),
  910. smalltalk.HLInspector.klass);
  911. smalltalk.addMethod(
  912. smalltalk.method({
  913. selector: "register:",
  914. fn: function (anInspector){
  915. var self=this;
  916. return smalltalk.withContext(function($ctx1) {
  917. _st(self._inspectors())._add_(anInspector);
  918. return self}, function($ctx1) {$ctx1.fill(self,"register:",{anInspector:anInspector},smalltalk.HLInspector.klass)})},
  919. messageSends: ["add:", "inspectors"]}),
  920. smalltalk.HLInspector.klass);
  921. smalltalk.addMethod(
  922. smalltalk.method({
  923. selector: "tabClass",
  924. fn: function (){
  925. var self=this;
  926. return smalltalk.withContext(function($ctx1) {
  927. return "inspector";
  928. }, function($ctx1) {$ctx1.fill(self,"tabClass",{},smalltalk.HLInspector.klass)})},
  929. messageSends: []}),
  930. smalltalk.HLInspector.klass);
  931. smalltalk.addMethod(
  932. smalltalk.method({
  933. selector: "tabLabel",
  934. fn: function (){
  935. var self=this;
  936. return smalltalk.withContext(function($ctx1) {
  937. return "Inspector";
  938. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLInspector.klass)})},
  939. messageSends: []}),
  940. smalltalk.HLInspector.klass);
  941. smalltalk.addMethod(
  942. smalltalk.method({
  943. selector: "tabPriority",
  944. fn: function (){
  945. var self=this;
  946. return smalltalk.withContext(function($ctx1) {
  947. return (10);
  948. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLInspector.klass)})},
  949. messageSends: []}),
  950. smalltalk.HLInspector.klass);
  951. smalltalk.addMethod(
  952. smalltalk.method({
  953. selector: "unregister:",
  954. fn: function (anInspector){
  955. var self=this;
  956. return smalltalk.withContext(function($ctx1) {
  957. _st(self._inspectors())._remove_(anInspector);
  958. return self}, function($ctx1) {$ctx1.fill(self,"unregister:",{anInspector:anInspector},smalltalk.HLInspector.klass)})},
  959. messageSends: ["remove:", "inspectors"]}),
  960. smalltalk.HLInspector.klass);
  961. smalltalk.addMethod(
  962. smalltalk.method({
  963. selector: "watchChanges",
  964. fn: function (){
  965. var self=this;
  966. return smalltalk.withContext(function($ctx1) {
  967. _st((function(){
  968. return smalltalk.withContext(function($ctx2) {
  969. return _st(self._inspectors())._do_((function(each){
  970. return smalltalk.withContext(function($ctx3) {
  971. return _st(each)._refresh();
  972. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx2)})}));
  973. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._valueWithInterval_((500));
  974. return self}, function($ctx1) {$ctx1.fill(self,"watchChanges",{},smalltalk.HLInspector.klass)})},
  975. messageSends: ["valueWithInterval:", "do:", "refresh", "inspectors"]}),
  976. smalltalk.HLInspector.klass);