Helios-Inspector.deploy.js 35 KB

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