Helios-Inspector.deploy.js 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064
  1. define("amber/Helios-Inspector", ["amber_vm/smalltalk","amber_vm/nil","amber_vm/_st"], 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. });