2
0

Helios-Inspector.deploy.js 35 KB

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