Helios-Inspector.deploy.js 35 KB

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