Helios-Inspector.js 38 KB

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