Helios-Inspector.js 66 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161
  1. define("helios/Helios-Inspector", ["amber/boot", "helios/Helios-Core"], function($boot){
  2. var $core=$boot.api,nil=$boot.nil,$recv=$boot.asReceiver,$globals=$boot.globals;
  3. var smalltalk=$core,_st=$recv,globals=$globals;
  4. $core.addPackage('Helios-Inspector');
  5. $core.packages["Helios-Inspector"].transport = {"type":"amd","amdNamespace":"helios"};
  6. $core.addClass('HLInspectorDisplayWidget', $globals.HLNavigationListWidget, ['inspector'], 'Helios-Inspector');
  7. $core.addMethod(
  8. $core.method({
  9. selector: "inspector",
  10. protocol: 'accessing',
  11. fn: function (){
  12. var self=this;
  13. var $1;
  14. $1=self["@inspector"];
  15. return $1;
  16. },
  17. //>>excludeStart("ide", pragmas.excludeIdeData);
  18. args: [],
  19. source: "inspector\x0a\x09^ inspector",
  20. referencedClasses: [],
  21. //>>excludeEnd("ide");
  22. messageSends: []
  23. }),
  24. $globals.HLInspectorDisplayWidget);
  25. $core.addMethod(
  26. $core.method({
  27. selector: "inspector:",
  28. protocol: 'accessing',
  29. fn: function (anInspector){
  30. var self=this;
  31. self["@inspector"]=anInspector;
  32. return self;
  33. },
  34. //>>excludeStart("ide", pragmas.excludeIdeData);
  35. args: ["anInspector"],
  36. source: "inspector: anInspector\x0a\x09inspector := anInspector",
  37. referencedClasses: [],
  38. //>>excludeEnd("ide");
  39. messageSends: []
  40. }),
  41. $globals.HLInspectorDisplayWidget);
  42. $core.addMethod(
  43. $core.method({
  44. selector: "model",
  45. protocol: 'accessing',
  46. fn: function (){
  47. var self=this;
  48. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  49. return $core.withContext(function($ctx1) {
  50. //>>excludeEnd("ctx");
  51. var $1;
  52. $1=$recv(self._inspector())._model();
  53. return $1;
  54. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  55. }, function($ctx1) {$ctx1.fill(self,"model",{},$globals.HLInspectorDisplayWidget)});
  56. //>>excludeEnd("ctx");
  57. },
  58. //>>excludeStart("ide", pragmas.excludeIdeData);
  59. args: [],
  60. source: "model\x0a\x0a\x09^ self inspector model",
  61. referencedClasses: [],
  62. //>>excludeEnd("ide");
  63. messageSends: ["model", "inspector"]
  64. }),
  65. $globals.HLInspectorDisplayWidget);
  66. $core.addMethod(
  67. $core.method({
  68. selector: "renderContentOn:",
  69. protocol: 'rendering',
  70. fn: function (html){
  71. var self=this;
  72. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  73. return $core.withContext(function($ctx1) {
  74. //>>excludeEnd("ctx");
  75. $recv($recv(html)._div())._with_(self._selectionDisplayString());
  76. return self;
  77. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  78. }, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},$globals.HLInspectorDisplayWidget)});
  79. //>>excludeEnd("ctx");
  80. },
  81. //>>excludeStart("ide", pragmas.excludeIdeData);
  82. args: ["html"],
  83. source: "renderContentOn: html\x0a\x09\x0a html div with: self selectionDisplayString",
  84. referencedClasses: [],
  85. //>>excludeEnd("ide");
  86. messageSends: ["with:", "div", "selectionDisplayString"]
  87. }),
  88. $globals.HLInspectorDisplayWidget);
  89. $core.addMethod(
  90. $core.method({
  91. selector: "selectionDisplayString",
  92. protocol: 'rendering',
  93. fn: function (){
  94. var self=this;
  95. var selection;
  96. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  97. return $core.withContext(function($ctx1) {
  98. //>>excludeEnd("ctx");
  99. var $1,$5,$4,$3,$2;
  100. $1=self._model();
  101. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  102. $ctx1.sendIdx["model"]=1;
  103. //>>excludeEnd("ctx");
  104. selection=$recv($1)._selection();
  105. $5=self._model();
  106. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  107. $ctx1.sendIdx["model"]=2;
  108. //>>excludeEnd("ctx");
  109. $4=$recv($5)._variables();
  110. $3=$recv($4)._includesKey_(selection);
  111. if($core.assert($3)){
  112. $2=$recv($recv(self._model())._instVarObjectAt_(selection))._printString();
  113. } else {
  114. $2="";
  115. };
  116. return $2;
  117. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  118. }, function($ctx1) {$ctx1.fill(self,"selectionDisplayString",{selection:selection},$globals.HLInspectorDisplayWidget)});
  119. //>>excludeEnd("ctx");
  120. },
  121. //>>excludeStart("ide", pragmas.excludeIdeData);
  122. args: [],
  123. source: "selectionDisplayString\x0a\x09|selection|\x0a\x09selection := self model selection.\x0a ^ (self model variables includesKey: selection)\x0a \x09ifTrue:[ (self model instVarObjectAt: selection) printString ]\x0a \x09ifFalse:[ '' ]",
  124. referencedClasses: [],
  125. //>>excludeEnd("ide");
  126. messageSends: ["selection", "model", "ifTrue:ifFalse:", "includesKey:", "variables", "printString", "instVarObjectAt:"]
  127. }),
  128. $globals.HLInspectorDisplayWidget);
  129. $core.addClass('HLInspectorModel', $globals.HLModel, ['inspectee', 'code', 'variables', 'label', 'selection'], 'Helios-Inspector');
  130. //>>excludeStart("ide", pragmas.excludeIdeData);
  131. $globals.HLInspectorModel.comment="I am the model of the Helios inspector `HLInspectorWidget`.\x0a\x0a## API\x0a\x0aUse the method `inspect:on:` to inspect an object on an inspector.";
  132. //>>excludeEnd("ide");
  133. $core.addMethod(
  134. $core.method({
  135. selector: "code",
  136. protocol: 'accessing',
  137. fn: function (){
  138. var self=this;
  139. function $HLCodeModel(){return $globals.HLCodeModel||(typeof HLCodeModel=="undefined"?nil:HLCodeModel)}
  140. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  141. return $core.withContext(function($ctx1) {
  142. //>>excludeEnd("ctx");
  143. var $2,$1,$receiver;
  144. $2=self["@code"];
  145. if(($receiver = $2) == null || $receiver.isNil){
  146. self["@code"]=$recv($HLCodeModel())._on_(self._environment());
  147. $1=self["@code"];
  148. } else {
  149. $1=$2;
  150. };
  151. return $1;
  152. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  153. }, function($ctx1) {$ctx1.fill(self,"code",{},$globals.HLInspectorModel)});
  154. //>>excludeEnd("ctx");
  155. },
  156. //>>excludeStart("ide", pragmas.excludeIdeData);
  157. args: [],
  158. source: "code\x0a\x09\x22Answers the code model working for this workspace model\x22\x0a\x09^ code ifNil:[ code := HLCodeModel on: self environment ]",
  159. referencedClasses: ["HLCodeModel"],
  160. //>>excludeEnd("ide");
  161. messageSends: ["ifNil:", "on:", "environment"]
  162. }),
  163. $globals.HLInspectorModel);
  164. $core.addMethod(
  165. $core.method({
  166. selector: "inspect:on:",
  167. protocol: 'actions',
  168. fn: function (anObject,anInspector){
  169. var self=this;
  170. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  171. return $core.withContext(function($ctx1) {
  172. //>>excludeEnd("ctx");
  173. self["@inspectee"]=anObject;
  174. self["@variables"]=[];
  175. $recv(self["@inspectee"])._inspectOn_(anInspector);
  176. return self;
  177. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  178. }, function($ctx1) {$ctx1.fill(self,"inspect:on:",{anObject:anObject,anInspector:anInspector},$globals.HLInspectorModel)});
  179. //>>excludeEnd("ctx");
  180. },
  181. //>>excludeStart("ide", pragmas.excludeIdeData);
  182. args: ["anObject", "anInspector"],
  183. source: "inspect: anObject on: anInspector\x0a\x09inspectee := anObject.\x0a\x09variables := #().\x0a\x09inspectee inspectOn: anInspector",
  184. referencedClasses: [],
  185. //>>excludeEnd("ide");
  186. messageSends: ["inspectOn:"]
  187. }),
  188. $globals.HLInspectorModel);
  189. $core.addMethod(
  190. $core.method({
  191. selector: "inspectee",
  192. protocol: 'accessing',
  193. fn: function (){
  194. var self=this;
  195. var $1;
  196. $1=self["@inspectee"];
  197. return $1;
  198. },
  199. //>>excludeStart("ide", pragmas.excludeIdeData);
  200. args: [],
  201. source: "inspectee \x0a\x09^ inspectee",
  202. referencedClasses: [],
  203. //>>excludeEnd("ide");
  204. messageSends: []
  205. }),
  206. $globals.HLInspectorModel);
  207. $core.addMethod(
  208. $core.method({
  209. selector: "inspectee:",
  210. protocol: 'accessing',
  211. fn: function (anObject){
  212. var self=this;
  213. self["@inspectee"]=anObject;
  214. return self;
  215. },
  216. //>>excludeStart("ide", pragmas.excludeIdeData);
  217. args: ["anObject"],
  218. source: "inspectee: anObject \x0a\x09inspectee := anObject",
  219. referencedClasses: [],
  220. //>>excludeEnd("ide");
  221. messageSends: []
  222. }),
  223. $globals.HLInspectorModel);
  224. $core.addMethod(
  225. $core.method({
  226. selector: "instVarObjectAt:",
  227. protocol: 'actions',
  228. fn: function (anInstVarName){
  229. var self=this;
  230. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  231. return $core.withContext(function($ctx1) {
  232. //>>excludeEnd("ctx");
  233. var $1;
  234. $1=$recv(self._variables())._at_(anInstVarName);
  235. return $1;
  236. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  237. }, function($ctx1) {$ctx1.fill(self,"instVarObjectAt:",{anInstVarName:anInstVarName},$globals.HLInspectorModel)});
  238. //>>excludeEnd("ctx");
  239. },
  240. //>>excludeStart("ide", pragmas.excludeIdeData);
  241. args: ["anInstVarName"],
  242. source: "instVarObjectAt: anInstVarName\x0a\x09^ self variables at: anInstVarName",
  243. referencedClasses: [],
  244. //>>excludeEnd("ide");
  245. messageSends: ["at:", "variables"]
  246. }),
  247. $globals.HLInspectorModel);
  248. $core.addMethod(
  249. $core.method({
  250. selector: "label",
  251. protocol: 'accessing',
  252. fn: function (){
  253. var self=this;
  254. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  255. return $core.withContext(function($ctx1) {
  256. //>>excludeEnd("ctx");
  257. var $2,$1,$receiver;
  258. $2=self["@label"];
  259. if(($receiver = $2) == null || $receiver.isNil){
  260. $1=$recv(self._inspectee())._printString();
  261. } else {
  262. $1=$2;
  263. };
  264. return $1;
  265. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  266. }, function($ctx1) {$ctx1.fill(self,"label",{},$globals.HLInspectorModel)});
  267. //>>excludeEnd("ctx");
  268. },
  269. //>>excludeStart("ide", pragmas.excludeIdeData);
  270. args: [],
  271. source: "label\x0a ^ label ifNil: [ self inspectee printString ]",
  272. referencedClasses: [],
  273. //>>excludeEnd("ide");
  274. messageSends: ["ifNil:", "printString", "inspectee"]
  275. }),
  276. $globals.HLInspectorModel);
  277. $core.addMethod(
  278. $core.method({
  279. selector: "label:",
  280. protocol: 'accessing',
  281. fn: function (aString){
  282. var self=this;
  283. self["@label"]=aString;
  284. return self;
  285. },
  286. //>>excludeStart("ide", pragmas.excludeIdeData);
  287. args: ["aString"],
  288. source: "label: aString\x0a label := aString",
  289. referencedClasses: [],
  290. //>>excludeEnd("ide");
  291. messageSends: []
  292. }),
  293. $globals.HLInspectorModel);
  294. $core.addMethod(
  295. $core.method({
  296. selector: "selectedInstVar:",
  297. protocol: 'actions',
  298. fn: function (anInstVarName){
  299. var self=this;
  300. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  301. return $core.withContext(function($ctx1) {
  302. //>>excludeEnd("ctx");
  303. self._selection_(anInstVarName);
  304. return self;
  305. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  306. }, function($ctx1) {$ctx1.fill(self,"selectedInstVar:",{anInstVarName:anInstVarName},$globals.HLInspectorModel)});
  307. //>>excludeEnd("ctx");
  308. },
  309. //>>excludeStart("ide", pragmas.excludeIdeData);
  310. args: ["anInstVarName"],
  311. source: "selectedInstVar: anInstVarName\x0a self selection: anInstVarName",
  312. referencedClasses: [],
  313. //>>excludeEnd("ide");
  314. messageSends: ["selection:"]
  315. }),
  316. $globals.HLInspectorModel);
  317. $core.addMethod(
  318. $core.method({
  319. selector: "selectedInstVarObject",
  320. protocol: 'accessing',
  321. fn: function (){
  322. var self=this;
  323. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  324. return $core.withContext(function($ctx1) {
  325. //>>excludeEnd("ctx");
  326. var $1;
  327. $1=self._instVarObjectAt_(self._selection());
  328. return $1;
  329. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  330. }, function($ctx1) {$ctx1.fill(self,"selectedInstVarObject",{},$globals.HLInspectorModel)});
  331. //>>excludeEnd("ctx");
  332. },
  333. //>>excludeStart("ide", pragmas.excludeIdeData);
  334. args: [],
  335. source: "selectedInstVarObject\x0a\x09^ self instVarObjectAt: self selection",
  336. referencedClasses: [],
  337. //>>excludeEnd("ide");
  338. messageSends: ["instVarObjectAt:", "selection"]
  339. }),
  340. $globals.HLInspectorModel);
  341. $core.addMethod(
  342. $core.method({
  343. selector: "selection",
  344. protocol: 'accessing',
  345. fn: function (){
  346. var self=this;
  347. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  348. return $core.withContext(function($ctx1) {
  349. //>>excludeEnd("ctx");
  350. var $2,$1,$receiver;
  351. $2=self["@selection"];
  352. if(($receiver = $2) == null || $receiver.isNil){
  353. $1="";
  354. } else {
  355. $1=$2;
  356. };
  357. return $1;
  358. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  359. }, function($ctx1) {$ctx1.fill(self,"selection",{},$globals.HLInspectorModel)});
  360. //>>excludeEnd("ctx");
  361. },
  362. //>>excludeStart("ide", pragmas.excludeIdeData);
  363. args: [],
  364. source: "selection\x0a\x09^ selection ifNil:[ '' ]",
  365. referencedClasses: [],
  366. //>>excludeEnd("ide");
  367. messageSends: ["ifNil:"]
  368. }),
  369. $globals.HLInspectorModel);
  370. $core.addMethod(
  371. $core.method({
  372. selector: "selection:",
  373. protocol: 'accessing',
  374. fn: function (anObject){
  375. var self=this;
  376. function $HLInstanceVariableSelected(){return $globals.HLInstanceVariableSelected||(typeof HLInstanceVariableSelected=="undefined"?nil:HLInstanceVariableSelected)}
  377. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  378. return $core.withContext(function($ctx1) {
  379. //>>excludeEnd("ctx");
  380. self["@selection"]=anObject;
  381. $recv(self._announcer())._announce_($recv($HLInstanceVariableSelected())._on_(self["@selection"]));
  382. return self;
  383. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  384. }, function($ctx1) {$ctx1.fill(self,"selection:",{anObject:anObject},$globals.HLInspectorModel)});
  385. //>>excludeEnd("ctx");
  386. },
  387. //>>excludeStart("ide", pragmas.excludeIdeData);
  388. args: ["anObject"],
  389. source: "selection: anObject\x0a\x09selection := anObject.\x0a\x0a\x09self announcer announce: (HLInstanceVariableSelected on: selection)",
  390. referencedClasses: ["HLInstanceVariableSelected"],
  391. //>>excludeEnd("ide");
  392. messageSends: ["announce:", "announcer", "on:"]
  393. }),
  394. $globals.HLInspectorModel);
  395. $core.addMethod(
  396. $core.method({
  397. selector: "subscribe:",
  398. protocol: 'actions',
  399. fn: function (aWidget){
  400. var self=this;
  401. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  402. return $core.withContext(function($ctx1) {
  403. //>>excludeEnd("ctx");
  404. $recv(aWidget)._subscribeTo_(self._announcer());
  405. return self;
  406. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  407. }, function($ctx1) {$ctx1.fill(self,"subscribe:",{aWidget:aWidget},$globals.HLInspectorModel)});
  408. //>>excludeEnd("ctx");
  409. },
  410. //>>excludeStart("ide", pragmas.excludeIdeData);
  411. args: ["aWidget"],
  412. source: "subscribe: aWidget\x0a\x09aWidget subscribeTo: self announcer",
  413. referencedClasses: [],
  414. //>>excludeEnd("ide");
  415. messageSends: ["subscribeTo:", "announcer"]
  416. }),
  417. $globals.HLInspectorModel);
  418. $core.addMethod(
  419. $core.method({
  420. selector: "variables",
  421. protocol: 'accessing',
  422. fn: function (){
  423. var self=this;
  424. function $Dictionary(){return $globals.Dictionary||(typeof Dictionary=="undefined"?nil:Dictionary)}
  425. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  426. return $core.withContext(function($ctx1) {
  427. //>>excludeEnd("ctx");
  428. var $2,$1,$receiver;
  429. $2=self["@variables"];
  430. if(($receiver = $2) == null || $receiver.isNil){
  431. $1=$recv($Dictionary())._new();
  432. } else {
  433. $1=$2;
  434. };
  435. return $1;
  436. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  437. }, function($ctx1) {$ctx1.fill(self,"variables",{},$globals.HLInspectorModel)});
  438. //>>excludeEnd("ctx");
  439. },
  440. //>>excludeStart("ide", pragmas.excludeIdeData);
  441. args: [],
  442. source: "variables\x0a\x09^ variables ifNil: [ Dictionary new ]",
  443. referencedClasses: ["Dictionary"],
  444. //>>excludeEnd("ide");
  445. messageSends: ["ifNil:", "new"]
  446. }),
  447. $globals.HLInspectorModel);
  448. $core.addMethod(
  449. $core.method({
  450. selector: "variables:",
  451. protocol: 'accessing',
  452. fn: function (aCollection){
  453. var self=this;
  454. self["@variables"]=aCollection;
  455. return self;
  456. },
  457. //>>excludeStart("ide", pragmas.excludeIdeData);
  458. args: ["aCollection"],
  459. source: "variables: aCollection\x0a\x09variables := aCollection",
  460. referencedClasses: [],
  461. //>>excludeEnd("ide");
  462. messageSends: []
  463. }),
  464. $globals.HLInspectorModel);
  465. $core.addMethod(
  466. $core.method({
  467. selector: "on:",
  468. protocol: 'actions',
  469. fn: function (anEnvironment){
  470. var self=this;
  471. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  472. return $core.withContext(function($ctx1) {
  473. //>>excludeEnd("ctx");
  474. var $2,$3,$1;
  475. $2=self._new();
  476. $recv($2)._environment_(anEnvironment);
  477. $3=$recv($2)._yourself();
  478. $1=$3;
  479. return $1;
  480. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  481. }, function($ctx1) {$ctx1.fill(self,"on:",{anEnvironment:anEnvironment},$globals.HLInspectorModel.klass)});
  482. //>>excludeEnd("ctx");
  483. },
  484. //>>excludeStart("ide", pragmas.excludeIdeData);
  485. args: ["anEnvironment"],
  486. source: "on: anEnvironment\x0a\x0a\x09^ self new\x0a \x09environment: anEnvironment;\x0a yourself",
  487. referencedClasses: [],
  488. //>>excludeEnd("ide");
  489. messageSends: ["environment:", "new", "yourself"]
  490. }),
  491. $globals.HLInspectorModel.klass);
  492. $core.addClass('HLInspectorVariablesWidget', $globals.HLNavigationListWidget, ['announcer', 'inspector', 'list', 'diveButton'], 'Helios-Inspector');
  493. $core.addMethod(
  494. $core.method({
  495. selector: "announcer",
  496. protocol: 'accessing',
  497. fn: function (){
  498. var self=this;
  499. function $Announcer(){return $globals.Announcer||(typeof Announcer=="undefined"?nil:Announcer)}
  500. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  501. return $core.withContext(function($ctx1) {
  502. //>>excludeEnd("ctx");
  503. var $2,$1,$receiver;
  504. $2=self["@announcer"];
  505. if(($receiver = $2) == null || $receiver.isNil){
  506. self["@announcer"]=$recv($Announcer())._new();
  507. $1=self["@announcer"];
  508. } else {
  509. $1=$2;
  510. };
  511. return $1;
  512. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  513. }, function($ctx1) {$ctx1.fill(self,"announcer",{},$globals.HLInspectorVariablesWidget)});
  514. //>>excludeEnd("ctx");
  515. },
  516. //>>excludeStart("ide", pragmas.excludeIdeData);
  517. args: [],
  518. source: "announcer\x0a\x09^ announcer ifNil:[ announcer := Announcer new ]",
  519. referencedClasses: ["Announcer"],
  520. //>>excludeEnd("ide");
  521. messageSends: ["ifNil:", "new"]
  522. }),
  523. $globals.HLInspectorVariablesWidget);
  524. $core.addMethod(
  525. $core.method({
  526. selector: "bindKeys",
  527. protocol: 'actions',
  528. fn: function (){
  529. var self=this;
  530. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  531. return $core.withContext(function($ctx1) {
  532. //>>excludeEnd("ctx");
  533. $recv($recv(self._wrapper())._asJQuery())._keydown_((function(e){
  534. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  535. return $core.withContext(function($ctx2) {
  536. //>>excludeEnd("ctx");
  537. return self._handleKeyDown_(e);
  538. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  539. }, function($ctx2) {$ctx2.fillBlock({e:e},$ctx1,1)});
  540. //>>excludeEnd("ctx");
  541. }));
  542. return self;
  543. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  544. }, function($ctx1) {$ctx1.fill(self,"bindKeys",{},$globals.HLInspectorVariablesWidget)});
  545. //>>excludeEnd("ctx");
  546. },
  547. //>>excludeStart("ide", pragmas.excludeIdeData);
  548. args: [],
  549. source: "bindKeys\x0a\x09self wrapper asJQuery\x0a\x09\x09keydown: [ :e | self handleKeyDown: e ] ",
  550. referencedClasses: [],
  551. //>>excludeEnd("ide");
  552. messageSends: ["keydown:", "asJQuery", "wrapper", "handleKeyDown:"]
  553. }),
  554. $globals.HLInspectorVariablesWidget);
  555. $core.addMethod(
  556. $core.method({
  557. selector: "defaultItems",
  558. protocol: 'defaults',
  559. fn: function (){
  560. var self=this;
  561. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  562. return $core.withContext(function($ctx1) {
  563. //>>excludeEnd("ctx");
  564. var $1;
  565. $1=self._variables();
  566. return $1;
  567. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  568. }, function($ctx1) {$ctx1.fill(self,"defaultItems",{},$globals.HLInspectorVariablesWidget)});
  569. //>>excludeEnd("ctx");
  570. },
  571. //>>excludeStart("ide", pragmas.excludeIdeData);
  572. args: [],
  573. source: "defaultItems\x0a\x09^ self variables",
  574. referencedClasses: [],
  575. //>>excludeEnd("ide");
  576. messageSends: ["variables"]
  577. }),
  578. $globals.HLInspectorVariablesWidget);
  579. $core.addMethod(
  580. $core.method({
  581. selector: "dive",
  582. protocol: 'actions',
  583. fn: function (){
  584. var self=this;
  585. function $HLDiveRequested(){return $globals.HLDiveRequested||(typeof HLDiveRequested=="undefined"?nil:HLDiveRequested)}
  586. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  587. return $core.withContext(function($ctx1) {
  588. //>>excludeEnd("ctx");
  589. $recv(self._announcer())._announce_($recv($HLDiveRequested())._new());
  590. return self;
  591. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  592. }, function($ctx1) {$ctx1.fill(self,"dive",{},$globals.HLInspectorVariablesWidget)});
  593. //>>excludeEnd("ctx");
  594. },
  595. //>>excludeStart("ide", pragmas.excludeIdeData);
  596. args: [],
  597. source: "dive\x0a\x09self announcer announce: HLDiveRequested new",
  598. referencedClasses: ["HLDiveRequested"],
  599. //>>excludeEnd("ide");
  600. messageSends: ["announce:", "announcer", "new"]
  601. }),
  602. $globals.HLInspectorVariablesWidget);
  603. $core.addMethod(
  604. $core.method({
  605. selector: "handleKeyDown:",
  606. protocol: 'reactions',
  607. fn: function (anEvent){
  608. var self=this;
  609. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  610. return $core.withContext(function($ctx1) {
  611. //>>excludeEnd("ctx");
  612. var $3,$2,$4,$1,$5;
  613. $3=$recv(anEvent)._keyCode();
  614. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  615. $ctx1.sendIdx["keyCode"]=1;
  616. //>>excludeEnd("ctx");
  617. $2=$recv($3).__eq((66));
  618. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  619. $ctx1.sendIdx["="]=1;
  620. //>>excludeEnd("ctx");
  621. $1=$recv($2)._and_((function(){
  622. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  623. return $core.withContext(function($ctx2) {
  624. //>>excludeEnd("ctx");
  625. $4=$recv(anEvent)._ctrlKey();
  626. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  627. $ctx2.sendIdx["ctrlKey"]=1;
  628. //>>excludeEnd("ctx");
  629. return $recv($4)._or_((function(){
  630. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  631. return $core.withContext(function($ctx3) {
  632. //>>excludeEnd("ctx");
  633. return $recv(anEvent)._metaKey();
  634. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  635. $ctx3.sendIdx["metaKey"]=1;
  636. //>>excludeEnd("ctx");
  637. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  638. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,2)});
  639. //>>excludeEnd("ctx");
  640. }));
  641. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  642. $ctx2.sendIdx["or:"]=1;
  643. //>>excludeEnd("ctx");
  644. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  645. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  646. //>>excludeEnd("ctx");
  647. }));
  648. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  649. $ctx1.sendIdx["and:"]=1;
  650. //>>excludeEnd("ctx");
  651. if($core.assert($1)){
  652. $recv($recv($recv(self["@inspector"])._model())._instVarObjectAt_(self["@selectedItem"]))._browse();
  653. };
  654. $5=$recv($recv($recv(anEvent)._keyCode()).__eq((73)))._and_((function(){
  655. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  656. return $core.withContext(function($ctx2) {
  657. //>>excludeEnd("ctx");
  658. return $recv($recv(anEvent)._ctrlKey())._or_((function(){
  659. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  660. return $core.withContext(function($ctx3) {
  661. //>>excludeEnd("ctx");
  662. return $recv(anEvent)._metaKey();
  663. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  664. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,5)});
  665. //>>excludeEnd("ctx");
  666. }));
  667. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  668. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,4)});
  669. //>>excludeEnd("ctx");
  670. }));
  671. if($core.assert($5)){
  672. self._dive();
  673. };
  674. return self;
  675. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  676. }, function($ctx1) {$ctx1.fill(self,"handleKeyDown:",{anEvent:anEvent},$globals.HLInspectorVariablesWidget)});
  677. //>>excludeEnd("ctx");
  678. },
  679. //>>excludeStart("ide", pragmas.excludeIdeData);
  680. args: ["anEvent"],
  681. source: "handleKeyDown: anEvent\x0a\x0a\x09(anEvent keyCode = 66 and: [\x0a\x09anEvent ctrlKey or: [\x0a\x09anEvent metaKey ] ]) ifTrue: [\x0a\x09\x09(inspector model instVarObjectAt: selectedItem) browse ].\x0a\x0a\x09(anEvent keyCode = 73 and: [\x0a\x09anEvent ctrlKey or: [\x0a\x09anEvent metaKey ] ]) ifTrue: [\x0a\x09\x09self dive ].\x0a\x09\x09\x0a\x09",
  682. referencedClasses: [],
  683. //>>excludeEnd("ide");
  684. messageSends: ["ifTrue:", "and:", "=", "keyCode", "or:", "ctrlKey", "metaKey", "browse", "instVarObjectAt:", "model", "dive"]
  685. }),
  686. $globals.HLInspectorVariablesWidget);
  687. $core.addMethod(
  688. $core.method({
  689. selector: "inspector",
  690. protocol: 'accessing',
  691. fn: function (){
  692. var self=this;
  693. var $1;
  694. $1=self["@inspector"];
  695. return $1;
  696. },
  697. //>>excludeStart("ide", pragmas.excludeIdeData);
  698. args: [],
  699. source: "inspector\x0a\x09^ inspector",
  700. referencedClasses: [],
  701. //>>excludeEnd("ide");
  702. messageSends: []
  703. }),
  704. $globals.HLInspectorVariablesWidget);
  705. $core.addMethod(
  706. $core.method({
  707. selector: "inspector:",
  708. protocol: 'accessing',
  709. fn: function (anInspector){
  710. var self=this;
  711. self["@inspector"]=anInspector;
  712. return self;
  713. },
  714. //>>excludeStart("ide", pragmas.excludeIdeData);
  715. args: ["anInspector"],
  716. source: "inspector: anInspector\x0a\x09inspector := anInspector",
  717. referencedClasses: [],
  718. //>>excludeEnd("ide");
  719. messageSends: []
  720. }),
  721. $globals.HLInspectorVariablesWidget);
  722. $core.addMethod(
  723. $core.method({
  724. selector: "label",
  725. protocol: 'accessing',
  726. fn: function (){
  727. var self=this;
  728. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  729. return $core.withContext(function($ctx1) {
  730. //>>excludeEnd("ctx");
  731. var $1;
  732. $1=$recv(self._model())._label();
  733. return $1;
  734. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  735. }, function($ctx1) {$ctx1.fill(self,"label",{},$globals.HLInspectorVariablesWidget)});
  736. //>>excludeEnd("ctx");
  737. },
  738. //>>excludeStart("ide", pragmas.excludeIdeData);
  739. args: [],
  740. source: "label\x0a\x09^ self model label",
  741. referencedClasses: [],
  742. //>>excludeEnd("ide");
  743. messageSends: ["label", "model"]
  744. }),
  745. $globals.HLInspectorVariablesWidget);
  746. $core.addMethod(
  747. $core.method({
  748. selector: "model",
  749. protocol: 'accessing',
  750. fn: function (){
  751. var self=this;
  752. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  753. return $core.withContext(function($ctx1) {
  754. //>>excludeEnd("ctx");
  755. var $1;
  756. $1=$recv(self._inspector())._model();
  757. return $1;
  758. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  759. }, function($ctx1) {$ctx1.fill(self,"model",{},$globals.HLInspectorVariablesWidget)});
  760. //>>excludeEnd("ctx");
  761. },
  762. //>>excludeStart("ide", pragmas.excludeIdeData);
  763. args: [],
  764. source: "model\x0a ^ self inspector model",
  765. referencedClasses: [],
  766. //>>excludeEnd("ide");
  767. messageSends: ["model", "inspector"]
  768. }),
  769. $globals.HLInspectorVariablesWidget);
  770. $core.addMethod(
  771. $core.method({
  772. selector: "refresh",
  773. protocol: 'actions',
  774. fn: function (){
  775. var self=this;
  776. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  777. return $core.withContext(function($ctx1) {
  778. //>>excludeEnd("ctx");
  779. var $1;
  780. $1=$recv(self._variables()).__eq(self._items());
  781. if(!$core.assert($1)){
  782. self._resetItems();
  783. (
  784. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  785. $ctx1.supercall = true,
  786. //>>excludeEnd("ctx");
  787. $globals.HLInspectorVariablesWidget.superclass.fn.prototype._refresh.apply($recv(self), []));
  788. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  789. $ctx1.supercall = false;
  790. //>>excludeEnd("ctx");;
  791. };
  792. return self;
  793. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  794. }, function($ctx1) {$ctx1.fill(self,"refresh",{},$globals.HLInspectorVariablesWidget)});
  795. //>>excludeEnd("ctx");
  796. },
  797. //>>excludeStart("ide", pragmas.excludeIdeData);
  798. args: [],
  799. source: "refresh\x0a\x09self variables = self items ifFalse: [\x0a\x09\x09self resetItems.\x0a \x09super refresh ]",
  800. referencedClasses: [],
  801. //>>excludeEnd("ide");
  802. messageSends: ["ifFalse:", "=", "variables", "items", "resetItems", "refresh"]
  803. }),
  804. $globals.HLInspectorVariablesWidget);
  805. $core.addMethod(
  806. $core.method({
  807. selector: "renderButtonsOn:",
  808. protocol: 'rendering',
  809. fn: function (html){
  810. var self=this;
  811. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  812. return $core.withContext(function($ctx1) {
  813. //>>excludeEnd("ctx");
  814. var $1,$2;
  815. $1=$recv(html)._button();
  816. $recv($1)._class_("btn");
  817. $recv($1)._with_("Dive");
  818. $2=$recv($1)._onClick_((function(){
  819. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  820. return $core.withContext(function($ctx2) {
  821. //>>excludeEnd("ctx");
  822. return self._dive();
  823. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  824. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  825. //>>excludeEnd("ctx");
  826. }));
  827. self["@diveButton"]=$2;
  828. return self;
  829. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  830. }, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},$globals.HLInspectorVariablesWidget)});
  831. //>>excludeEnd("ctx");
  832. },
  833. //>>excludeStart("ide", pragmas.excludeIdeData);
  834. args: ["html"],
  835. source: "renderButtonsOn: html\x0a\x09diveButton := html button \x0a\x09\x09class: 'btn';\x0a\x09\x09with: 'Dive'; \x0a\x09\x09onClick: [ self dive ]",
  836. referencedClasses: [],
  837. //>>excludeEnd("ide");
  838. messageSends: ["class:", "button", "with:", "onClick:", "dive"]
  839. }),
  840. $globals.HLInspectorVariablesWidget);
  841. $core.addMethod(
  842. $core.method({
  843. selector: "renderContentOn:",
  844. protocol: 'rendering',
  845. fn: function (html){
  846. var self=this;
  847. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  848. return $core.withContext(function($ctx1) {
  849. //>>excludeEnd("ctx");
  850. self._renderHeadOn_(html);
  851. (
  852. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  853. $ctx1.supercall = true,
  854. //>>excludeEnd("ctx");
  855. $globals.HLInspectorVariablesWidget.superclass.fn.prototype._renderContentOn_.apply($recv(self), [html]));
  856. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  857. $ctx1.supercall = false;
  858. //>>excludeEnd("ctx");;
  859. $recv(self._wrapper())._onDblClick_((function(){
  860. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  861. return $core.withContext(function($ctx2) {
  862. //>>excludeEnd("ctx");
  863. return self._dive();
  864. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  865. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  866. //>>excludeEnd("ctx");
  867. }));
  868. self._bindKeys();
  869. return self;
  870. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  871. }, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},$globals.HLInspectorVariablesWidget)});
  872. //>>excludeEnd("ctx");
  873. },
  874. //>>excludeStart("ide", pragmas.excludeIdeData);
  875. args: ["html"],
  876. source: "renderContentOn: html\x0a\x09self renderHeadOn: html.\x0a\x09super renderContentOn: html.\x0a\x09self wrapper onDblClick: [ self dive ].\x0a\x09\x0a\x09self bindKeys",
  877. referencedClasses: [],
  878. //>>excludeEnd("ide");
  879. messageSends: ["renderHeadOn:", "renderContentOn:", "onDblClick:", "wrapper", "dive", "bindKeys"]
  880. }),
  881. $globals.HLInspectorVariablesWidget);
  882. $core.addMethod(
  883. $core.method({
  884. selector: "renderHeadOn:",
  885. protocol: 'rendering',
  886. fn: function (html){
  887. var self=this;
  888. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  889. return $core.withContext(function($ctx1) {
  890. //>>excludeEnd("ctx");
  891. var $1,$2;
  892. $1=$recv(html)._div();
  893. $recv($1)._class_("list-label");
  894. $2=$recv($1)._with_(self._label());
  895. return self;
  896. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  897. }, function($ctx1) {$ctx1.fill(self,"renderHeadOn:",{html:html},$globals.HLInspectorVariablesWidget)});
  898. //>>excludeEnd("ctx");
  899. },
  900. //>>excludeStart("ide", pragmas.excludeIdeData);
  901. args: ["html"],
  902. source: "renderHeadOn: html\x0a\x09html div \x0a\x09\x09class: 'list-label';\x0a\x09\x09with: self label",
  903. referencedClasses: [],
  904. //>>excludeEnd("ide");
  905. messageSends: ["class:", "div", "with:", "label"]
  906. }),
  907. $globals.HLInspectorVariablesWidget);
  908. $core.addMethod(
  909. $core.method({
  910. selector: "resetItems",
  911. protocol: 'actions',
  912. fn: function (){
  913. var self=this;
  914. self["@items"]=nil;
  915. return self;
  916. },
  917. //>>excludeStart("ide", pragmas.excludeIdeData);
  918. args: [],
  919. source: "resetItems\x0a\x09items := nil",
  920. referencedClasses: [],
  921. //>>excludeEnd("ide");
  922. messageSends: []
  923. }),
  924. $globals.HLInspectorVariablesWidget);
  925. $core.addMethod(
  926. $core.method({
  927. selector: "selectItem:",
  928. protocol: 'reactions',
  929. fn: function (anObject){
  930. var self=this;
  931. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  932. return $core.withContext(function($ctx1) {
  933. //>>excludeEnd("ctx");
  934. (
  935. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  936. $ctx1.supercall = true,
  937. //>>excludeEnd("ctx");
  938. $globals.HLInspectorVariablesWidget.superclass.fn.prototype._selectItem_.apply($recv(self), [anObject]));
  939. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  940. $ctx1.supercall = false;
  941. //>>excludeEnd("ctx");;
  942. $recv(self._model())._selectedInstVar_(anObject);
  943. return self;
  944. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  945. }, function($ctx1) {$ctx1.fill(self,"selectItem:",{anObject:anObject},$globals.HLInspectorVariablesWidget)});
  946. //>>excludeEnd("ctx");
  947. },
  948. //>>excludeStart("ide", pragmas.excludeIdeData);
  949. args: ["anObject"],
  950. source: "selectItem: anObject\x0a\x09super selectItem: anObject.\x0a self model selectedInstVar: anObject",
  951. referencedClasses: [],
  952. //>>excludeEnd("ide");
  953. messageSends: ["selectItem:", "selectedInstVar:", "model"]
  954. }),
  955. $globals.HLInspectorVariablesWidget);
  956. $core.addMethod(
  957. $core.method({
  958. selector: "selection",
  959. protocol: 'accessing',
  960. fn: function (){
  961. var self=this;
  962. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  963. return $core.withContext(function($ctx1) {
  964. //>>excludeEnd("ctx");
  965. var $1;
  966. $1=$recv(self._model())._selection();
  967. return $1;
  968. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  969. }, function($ctx1) {$ctx1.fill(self,"selection",{},$globals.HLInspectorVariablesWidget)});
  970. //>>excludeEnd("ctx");
  971. },
  972. //>>excludeStart("ide", pragmas.excludeIdeData);
  973. args: [],
  974. source: "selection\x0a\x09^ self model selection",
  975. referencedClasses: [],
  976. //>>excludeEnd("ide");
  977. messageSends: ["selection", "model"]
  978. }),
  979. $globals.HLInspectorVariablesWidget);
  980. $core.addMethod(
  981. $core.method({
  982. selector: "variables",
  983. protocol: 'accessing',
  984. fn: function (){
  985. var self=this;
  986. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  987. return $core.withContext(function($ctx1) {
  988. //>>excludeEnd("ctx");
  989. var $1;
  990. $1=$recv($recv(self._model())._variables())._keys();
  991. return $1;
  992. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  993. }, function($ctx1) {$ctx1.fill(self,"variables",{},$globals.HLInspectorVariablesWidget)});
  994. //>>excludeEnd("ctx");
  995. },
  996. //>>excludeStart("ide", pragmas.excludeIdeData);
  997. args: [],
  998. source: "variables\x0a\x09^ self model variables keys",
  999. referencedClasses: [],
  1000. //>>excludeEnd("ide");
  1001. messageSends: ["keys", "variables", "model"]
  1002. }),
  1003. $globals.HLInspectorVariablesWidget);
  1004. $core.addClass('HLInspectorWidget', $globals.HLWidget, ['model', 'variablesWidget', 'displayWidget', 'codeWidget'], 'Helios-Inspector');
  1005. $core.addMethod(
  1006. $core.method({
  1007. selector: "codeWidget",
  1008. protocol: 'accessing',
  1009. fn: function (){
  1010. var self=this;
  1011. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1012. return $core.withContext(function($ctx1) {
  1013. //>>excludeEnd("ctx");
  1014. var $2,$1,$receiver;
  1015. $2=self["@codeWidget"];
  1016. if(($receiver = $2) == null || $receiver.isNil){
  1017. self["@codeWidget"]=self._defaultCodeWidget();
  1018. $1=self["@codeWidget"];
  1019. } else {
  1020. $1=$2;
  1021. };
  1022. return $1;
  1023. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1024. }, function($ctx1) {$ctx1.fill(self,"codeWidget",{},$globals.HLInspectorWidget)});
  1025. //>>excludeEnd("ctx");
  1026. },
  1027. //>>excludeStart("ide", pragmas.excludeIdeData);
  1028. args: [],
  1029. source: "codeWidget\x0a\x09^ codeWidget ifNil: [\x0a\x09\x09codeWidget := self defaultCodeWidget ]",
  1030. referencedClasses: [],
  1031. //>>excludeEnd("ide");
  1032. messageSends: ["ifNil:", "defaultCodeWidget"]
  1033. }),
  1034. $globals.HLInspectorWidget);
  1035. $core.addMethod(
  1036. $core.method({
  1037. selector: "codeWidget:",
  1038. protocol: 'accessing',
  1039. fn: function (aWidget){
  1040. var self=this;
  1041. self["@codeWidget"]=aWidget;
  1042. return self;
  1043. },
  1044. //>>excludeStart("ide", pragmas.excludeIdeData);
  1045. args: ["aWidget"],
  1046. source: "codeWidget: aWidget\x0a\x09codeWidget := aWidget",
  1047. referencedClasses: [],
  1048. //>>excludeEnd("ide");
  1049. messageSends: []
  1050. }),
  1051. $globals.HLInspectorWidget);
  1052. $core.addMethod(
  1053. $core.method({
  1054. selector: "defaultCodeWidget",
  1055. protocol: 'defaults',
  1056. fn: function (){
  1057. var self=this;
  1058. function $HLCodeWidget(){return $globals.HLCodeWidget||(typeof HLCodeWidget=="undefined"?nil:HLCodeWidget)}
  1059. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1060. return $core.withContext(function($ctx1) {
  1061. //>>excludeEnd("ctx");
  1062. var $2,$3,$5,$4,$6,$1;
  1063. $2=$recv($HLCodeWidget())._new();
  1064. $3=$2;
  1065. $5=self._model();
  1066. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1067. $ctx1.sendIdx["model"]=1;
  1068. //>>excludeEnd("ctx");
  1069. $4=$recv($5)._code();
  1070. $recv($3)._model_($4);
  1071. $recv($2)._receiver_($recv(self._model())._inspectee());
  1072. $6=$recv($2)._yourself();
  1073. $1=$6;
  1074. return $1;
  1075. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1076. }, function($ctx1) {$ctx1.fill(self,"defaultCodeWidget",{},$globals.HLInspectorWidget)});
  1077. //>>excludeEnd("ctx");
  1078. },
  1079. //>>excludeStart("ide", pragmas.excludeIdeData);
  1080. args: [],
  1081. source: "defaultCodeWidget\x0a\x09^ HLCodeWidget new\x0a \x09model: self model code;\x0a \x09receiver: self model inspectee;\x0a \x09yourself",
  1082. referencedClasses: ["HLCodeWidget"],
  1083. //>>excludeEnd("ide");
  1084. messageSends: ["model:", "new", "code", "model", "receiver:", "inspectee", "yourself"]
  1085. }),
  1086. $globals.HLInspectorWidget);
  1087. $core.addMethod(
  1088. $core.method({
  1089. selector: "displayWidget",
  1090. protocol: 'accessing',
  1091. fn: function (){
  1092. var self=this;
  1093. function $HLInspectorDisplayWidget(){return $globals.HLInspectorDisplayWidget||(typeof HLInspectorDisplayWidget=="undefined"?nil:HLInspectorDisplayWidget)}
  1094. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1095. return $core.withContext(function($ctx1) {
  1096. //>>excludeEnd("ctx");
  1097. var $2,$3,$4,$1,$receiver;
  1098. $2=self["@displayWidget"];
  1099. if(($receiver = $2) == null || $receiver.isNil){
  1100. $3=$recv($HLInspectorDisplayWidget())._new();
  1101. $recv($3)._inspector_(self);
  1102. $4=$recv($3)._yourself();
  1103. self["@displayWidget"]=$4;
  1104. $1=self["@displayWidget"];
  1105. } else {
  1106. $1=$2;
  1107. };
  1108. return $1;
  1109. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1110. }, function($ctx1) {$ctx1.fill(self,"displayWidget",{},$globals.HLInspectorWidget)});
  1111. //>>excludeEnd("ctx");
  1112. },
  1113. //>>excludeStart("ide", pragmas.excludeIdeData);
  1114. args: [],
  1115. source: "displayWidget\x0a\x09^ displayWidget ifNil: [\x0a\x09\x09displayWidget := HLInspectorDisplayWidget new\x0a \x09\x09inspector: self;\x0a \x09yourself ]",
  1116. referencedClasses: ["HLInspectorDisplayWidget"],
  1117. //>>excludeEnd("ide");
  1118. messageSends: ["ifNil:", "inspector:", "new", "yourself"]
  1119. }),
  1120. $globals.HLInspectorWidget);
  1121. $core.addMethod(
  1122. $core.method({
  1123. selector: "initialize",
  1124. protocol: 'accessing',
  1125. fn: function (){
  1126. var self=this;
  1127. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1128. return $core.withContext(function($ctx1) {
  1129. //>>excludeEnd("ctx");
  1130. (
  1131. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1132. $ctx1.supercall = true,
  1133. //>>excludeEnd("ctx");
  1134. $globals.HLInspectorWidget.superclass.fn.prototype._initialize.apply($recv(self), []));
  1135. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1136. $ctx1.supercall = false;
  1137. //>>excludeEnd("ctx");;
  1138. self._register();
  1139. return self;
  1140. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1141. }, function($ctx1) {$ctx1.fill(self,"initialize",{},$globals.HLInspectorWidget)});
  1142. //>>excludeEnd("ctx");
  1143. },
  1144. //>>excludeStart("ide", pragmas.excludeIdeData);
  1145. args: [],
  1146. source: "initialize\x0a\x09super initialize.\x0a\x09self register",
  1147. referencedClasses: [],
  1148. //>>excludeEnd("ide");
  1149. messageSends: ["initialize", "register"]
  1150. }),
  1151. $globals.HLInspectorWidget);
  1152. $core.addMethod(
  1153. $core.method({
  1154. selector: "inspect:",
  1155. protocol: 'actions',
  1156. fn: function (anObject){
  1157. var self=this;
  1158. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1159. return $core.withContext(function($ctx1) {
  1160. //>>excludeEnd("ctx");
  1161. var $1;
  1162. $recv(self._model())._inspect_on_(anObject,self);
  1163. $recv(self._codeWidget())._receiver_(anObject);
  1164. self._refreshVariablesWidget();
  1165. $1=self._refreshDisplayWidget();
  1166. return self;
  1167. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1168. }, function($ctx1) {$ctx1.fill(self,"inspect:",{anObject:anObject},$globals.HLInspectorWidget)});
  1169. //>>excludeEnd("ctx");
  1170. },
  1171. //>>excludeStart("ide", pragmas.excludeIdeData);
  1172. args: ["anObject"],
  1173. source: "inspect: anObject\x0a\x09self model inspect: anObject on: self.\x0a\x09self codeWidget receiver: anObject.\x0a \x0a\x09self \x0a \x09refreshVariablesWidget;\x0a\x09\x09refreshDisplayWidget",
  1174. referencedClasses: [],
  1175. //>>excludeEnd("ide");
  1176. messageSends: ["inspect:on:", "model", "receiver:", "codeWidget", "refreshVariablesWidget", "refreshDisplayWidget"]
  1177. }),
  1178. $globals.HLInspectorWidget);
  1179. $core.addMethod(
  1180. $core.method({
  1181. selector: "inspectee",
  1182. protocol: 'accessing',
  1183. fn: function (){
  1184. var self=this;
  1185. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1186. return $core.withContext(function($ctx1) {
  1187. //>>excludeEnd("ctx");
  1188. var $1;
  1189. $1=$recv(self._model())._inspectee();
  1190. return $1;
  1191. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1192. }, function($ctx1) {$ctx1.fill(self,"inspectee",{},$globals.HLInspectorWidget)});
  1193. //>>excludeEnd("ctx");
  1194. },
  1195. //>>excludeStart("ide", pragmas.excludeIdeData);
  1196. args: [],
  1197. source: "inspectee\x0a\x09^ self model inspectee",
  1198. referencedClasses: [],
  1199. //>>excludeEnd("ide");
  1200. messageSends: ["inspectee", "model"]
  1201. }),
  1202. $globals.HLInspectorWidget);
  1203. $core.addMethod(
  1204. $core.method({
  1205. selector: "inspectee:",
  1206. protocol: 'accessing',
  1207. fn: function (anObject){
  1208. var self=this;
  1209. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1210. return $core.withContext(function($ctx1) {
  1211. //>>excludeEnd("ctx");
  1212. $recv(self._model())._inspectee_(anObject);
  1213. return self;
  1214. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1215. }, function($ctx1) {$ctx1.fill(self,"inspectee:",{anObject:anObject},$globals.HLInspectorWidget)});
  1216. //>>excludeEnd("ctx");
  1217. },
  1218. //>>excludeStart("ide", pragmas.excludeIdeData);
  1219. args: ["anObject"],
  1220. source: "inspectee: anObject\x0a\x09self model inspectee: anObject",
  1221. referencedClasses: [],
  1222. //>>excludeEnd("ide");
  1223. messageSends: ["inspectee:", "model"]
  1224. }),
  1225. $globals.HLInspectorWidget);
  1226. $core.addMethod(
  1227. $core.method({
  1228. selector: "label",
  1229. protocol: 'accessing',
  1230. fn: function (){
  1231. var self=this;
  1232. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1233. return $core.withContext(function($ctx1) {
  1234. //>>excludeEnd("ctx");
  1235. var $1;
  1236. $1=$recv(self._model())._label();
  1237. return $1;
  1238. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1239. }, function($ctx1) {$ctx1.fill(self,"label",{},$globals.HLInspectorWidget)});
  1240. //>>excludeEnd("ctx");
  1241. },
  1242. //>>excludeStart("ide", pragmas.excludeIdeData);
  1243. args: [],
  1244. source: "label\x0a ^ self model label",
  1245. referencedClasses: [],
  1246. //>>excludeEnd("ide");
  1247. messageSends: ["label", "model"]
  1248. }),
  1249. $globals.HLInspectorWidget);
  1250. $core.addMethod(
  1251. $core.method({
  1252. selector: "model",
  1253. protocol: 'accessing',
  1254. fn: function (){
  1255. var self=this;
  1256. function $HLInspectorModel(){return $globals.HLInspectorModel||(typeof HLInspectorModel=="undefined"?nil:HLInspectorModel)}
  1257. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1258. return $core.withContext(function($ctx1) {
  1259. //>>excludeEnd("ctx");
  1260. var $2,$1,$receiver;
  1261. $2=self["@model"];
  1262. if(($receiver = $2) == null || $receiver.isNil){
  1263. self._model_($recv($HLInspectorModel())._new());
  1264. $1=self["@model"];
  1265. } else {
  1266. $1=$2;
  1267. };
  1268. return $1;
  1269. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1270. }, function($ctx1) {$ctx1.fill(self,"model",{},$globals.HLInspectorWidget)});
  1271. //>>excludeEnd("ctx");
  1272. },
  1273. //>>excludeStart("ide", pragmas.excludeIdeData);
  1274. args: [],
  1275. source: "model\x0a\x09^ model ifNil: [ \x0a \x09self model: HLInspectorModel new.\x0a\x09\x09model ]",
  1276. referencedClasses: ["HLInspectorModel"],
  1277. //>>excludeEnd("ide");
  1278. messageSends: ["ifNil:", "model:", "new"]
  1279. }),
  1280. $globals.HLInspectorWidget);
  1281. $core.addMethod(
  1282. $core.method({
  1283. selector: "model:",
  1284. protocol: 'accessing',
  1285. fn: function (aModel){
  1286. var self=this;
  1287. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1288. return $core.withContext(function($ctx1) {
  1289. //>>excludeEnd("ctx");
  1290. var $1;
  1291. self["@model"]=aModel;
  1292. $recv(self._codeWidget())._model_($recv(aModel)._code());
  1293. self._observeCodeWidget();
  1294. self._observeVariablesWidget();
  1295. $1=self._observeModel();
  1296. return self;
  1297. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1298. }, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},$globals.HLInspectorWidget)});
  1299. //>>excludeEnd("ctx");
  1300. },
  1301. //>>excludeStart("ide", pragmas.excludeIdeData);
  1302. args: ["aModel"],
  1303. source: "model: aModel\x0a\x09model := aModel. \x0a self codeWidget model: aModel code.\x0a \x0a self \x0a observeCodeWidget;\x0a \x09observeVariablesWidget;\x0a observeModel",
  1304. referencedClasses: [],
  1305. //>>excludeEnd("ide");
  1306. messageSends: ["model:", "codeWidget", "code", "observeCodeWidget", "observeVariablesWidget", "observeModel"]
  1307. }),
  1308. $globals.HLInspectorWidget);
  1309. $core.addMethod(
  1310. $core.method({
  1311. selector: "observeCodeWidget",
  1312. protocol: 'actions',
  1313. fn: function (){
  1314. var self=this;
  1315. function $HLDoItExecuted(){return $globals.HLDoItExecuted||(typeof HLDoItExecuted=="undefined"?nil:HLDoItExecuted)}
  1316. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1317. return $core.withContext(function($ctx1) {
  1318. //>>excludeEnd("ctx");
  1319. $recv($recv(self._codeWidget())._announcer())._on_do_($HLDoItExecuted(),(function(){
  1320. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1321. return $core.withContext(function($ctx2) {
  1322. //>>excludeEnd("ctx");
  1323. return self._onDoneIt();
  1324. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1325. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  1326. //>>excludeEnd("ctx");
  1327. }));
  1328. return self;
  1329. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1330. }, function($ctx1) {$ctx1.fill(self,"observeCodeWidget",{},$globals.HLInspectorWidget)});
  1331. //>>excludeEnd("ctx");
  1332. },
  1333. //>>excludeStart("ide", pragmas.excludeIdeData);
  1334. args: [],
  1335. source: "observeCodeWidget\x0a\x09self codeWidget announcer \x0a \x09on: HLDoItExecuted \x0a do: [ self onDoneIt ]",
  1336. referencedClasses: ["HLDoItExecuted"],
  1337. //>>excludeEnd("ide");
  1338. messageSends: ["on:do:", "announcer", "codeWidget", "onDoneIt"]
  1339. }),
  1340. $globals.HLInspectorWidget);
  1341. $core.addMethod(
  1342. $core.method({
  1343. selector: "observeModel",
  1344. protocol: 'actions',
  1345. fn: function (){
  1346. var self=this;
  1347. function $HLInstanceVariableSelected(){return $globals.HLInstanceVariableSelected||(typeof HLInstanceVariableSelected=="undefined"?nil:HLInstanceVariableSelected)}
  1348. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1349. return $core.withContext(function($ctx1) {
  1350. //>>excludeEnd("ctx");
  1351. $recv($recv(self._model())._announcer())._on_send_to_($HLInstanceVariableSelected(),"onInstanceVariableSelected",self);
  1352. return self;
  1353. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1354. }, function($ctx1) {$ctx1.fill(self,"observeModel",{},$globals.HLInspectorWidget)});
  1355. //>>excludeEnd("ctx");
  1356. },
  1357. //>>excludeStart("ide", pragmas.excludeIdeData);
  1358. args: [],
  1359. source: "observeModel\x0a\x09self model announcer\x0a on: HLInstanceVariableSelected\x0a\x09\x09send: #onInstanceVariableSelected\x0a\x09\x09to: self",
  1360. referencedClasses: ["HLInstanceVariableSelected"],
  1361. //>>excludeEnd("ide");
  1362. messageSends: ["on:send:to:", "announcer", "model"]
  1363. }),
  1364. $globals.HLInspectorWidget);
  1365. $core.addMethod(
  1366. $core.method({
  1367. selector: "observeVariablesWidget",
  1368. protocol: 'actions',
  1369. fn: function (){
  1370. var self=this;
  1371. function $HLDiveRequested(){return $globals.HLDiveRequested||(typeof HLDiveRequested=="undefined"?nil:HLDiveRequested)}
  1372. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1373. return $core.withContext(function($ctx1) {
  1374. //>>excludeEnd("ctx");
  1375. $recv($recv(self._variablesWidget())._announcer())._on_send_to_($HLDiveRequested(),"onDive",self);
  1376. return self;
  1377. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1378. }, function($ctx1) {$ctx1.fill(self,"observeVariablesWidget",{},$globals.HLInspectorWidget)});
  1379. //>>excludeEnd("ctx");
  1380. },
  1381. //>>excludeStart("ide", pragmas.excludeIdeData);
  1382. args: [],
  1383. source: "observeVariablesWidget\x0a\x09self variablesWidget announcer \x0a on: HLDiveRequested \x0a\x09\x09send: #onDive\x0a\x09\x09to: self",
  1384. referencedClasses: ["HLDiveRequested"],
  1385. //>>excludeEnd("ide");
  1386. messageSends: ["on:send:to:", "announcer", "variablesWidget"]
  1387. }),
  1388. $globals.HLInspectorWidget);
  1389. $core.addMethod(
  1390. $core.method({
  1391. selector: "onDive",
  1392. protocol: 'reactions',
  1393. fn: function (){
  1394. var self=this;
  1395. function $HLInspector(){return $globals.HLInspector||(typeof HLInspector=="undefined"?nil:HLInspector)}
  1396. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1397. return $core.withContext(function($ctx1) {
  1398. //>>excludeEnd("ctx");
  1399. var $1,$2;
  1400. $1=$recv($HLInspector())._new();
  1401. $recv($1)._inspect_($recv(self._model())._selectedInstVarObject());
  1402. $2=$recv($1)._openAsTab();
  1403. return self;
  1404. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1405. }, function($ctx1) {$ctx1.fill(self,"onDive",{},$globals.HLInspectorWidget)});
  1406. //>>excludeEnd("ctx");
  1407. },
  1408. //>>excludeStart("ide", pragmas.excludeIdeData);
  1409. args: [],
  1410. source: "onDive\x0a\x09HLInspector new \x0a\x09\x09inspect: self model selectedInstVarObject;\x0a\x09\x09openAsTab",
  1411. referencedClasses: ["HLInspector"],
  1412. //>>excludeEnd("ide");
  1413. messageSends: ["inspect:", "new", "selectedInstVarObject", "model", "openAsTab"]
  1414. }),
  1415. $globals.HLInspectorWidget);
  1416. $core.addMethod(
  1417. $core.method({
  1418. selector: "onDoneIt",
  1419. protocol: 'reactions',
  1420. fn: function (){
  1421. var self=this;
  1422. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1423. return $core.withContext(function($ctx1) {
  1424. //>>excludeEnd("ctx");
  1425. self._refresh();
  1426. return self;
  1427. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1428. }, function($ctx1) {$ctx1.fill(self,"onDoneIt",{},$globals.HLInspectorWidget)});
  1429. //>>excludeEnd("ctx");
  1430. },
  1431. //>>excludeStart("ide", pragmas.excludeIdeData);
  1432. args: [],
  1433. source: "onDoneIt\x0a\x0a\x09self refresh",
  1434. referencedClasses: [],
  1435. //>>excludeEnd("ide");
  1436. messageSends: ["refresh"]
  1437. }),
  1438. $globals.HLInspectorWidget);
  1439. $core.addMethod(
  1440. $core.method({
  1441. selector: "onInspectIt",
  1442. protocol: 'reactions',
  1443. fn: function (){
  1444. var self=this;
  1445. return self;
  1446. },
  1447. //>>excludeStart("ide", pragmas.excludeIdeData);
  1448. args: [],
  1449. source: "onInspectIt",
  1450. referencedClasses: [],
  1451. //>>excludeEnd("ide");
  1452. messageSends: []
  1453. }),
  1454. $globals.HLInspectorWidget);
  1455. $core.addMethod(
  1456. $core.method({
  1457. selector: "onInstanceVariableSelected",
  1458. protocol: 'reactions',
  1459. fn: function (){
  1460. var self=this;
  1461. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1462. return $core.withContext(function($ctx1) {
  1463. //>>excludeEnd("ctx");
  1464. self._refreshDisplayWidget();
  1465. return self;
  1466. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1467. }, function($ctx1) {$ctx1.fill(self,"onInstanceVariableSelected",{},$globals.HLInspectorWidget)});
  1468. //>>excludeEnd("ctx");
  1469. },
  1470. //>>excludeStart("ide", pragmas.excludeIdeData);
  1471. args: [],
  1472. source: "onInstanceVariableSelected\x0a\x09self refreshDisplayWidget",
  1473. referencedClasses: [],
  1474. //>>excludeEnd("ide");
  1475. messageSends: ["refreshDisplayWidget"]
  1476. }),
  1477. $globals.HLInspectorWidget);
  1478. $core.addMethod(
  1479. $core.method({
  1480. selector: "onPrintIt",
  1481. protocol: 'reactions',
  1482. fn: function (){
  1483. var self=this;
  1484. return self;
  1485. },
  1486. //>>excludeStart("ide", pragmas.excludeIdeData);
  1487. args: [],
  1488. source: "onPrintIt",
  1489. referencedClasses: [],
  1490. //>>excludeEnd("ide");
  1491. messageSends: []
  1492. }),
  1493. $globals.HLInspectorWidget);
  1494. $core.addMethod(
  1495. $core.method({
  1496. selector: "refresh",
  1497. protocol: 'actions',
  1498. fn: function (){
  1499. var self=this;
  1500. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1501. return $core.withContext(function($ctx1) {
  1502. //>>excludeEnd("ctx");
  1503. self._inspect_(self._inspectee());
  1504. return self;
  1505. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1506. }, function($ctx1) {$ctx1.fill(self,"refresh",{},$globals.HLInspectorWidget)});
  1507. //>>excludeEnd("ctx");
  1508. },
  1509. //>>excludeStart("ide", pragmas.excludeIdeData);
  1510. args: [],
  1511. source: "refresh\x0a\x09self inspect: self inspectee",
  1512. referencedClasses: [],
  1513. //>>excludeEnd("ide");
  1514. messageSends: ["inspect:", "inspectee"]
  1515. }),
  1516. $globals.HLInspectorWidget);
  1517. $core.addMethod(
  1518. $core.method({
  1519. selector: "refreshDisplayWidget",
  1520. protocol: 'actions',
  1521. fn: function (){
  1522. var self=this;
  1523. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1524. return $core.withContext(function($ctx1) {
  1525. //>>excludeEnd("ctx");
  1526. $recv(self._displayWidget())._refresh();
  1527. return self;
  1528. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1529. }, function($ctx1) {$ctx1.fill(self,"refreshDisplayWidget",{},$globals.HLInspectorWidget)});
  1530. //>>excludeEnd("ctx");
  1531. },
  1532. //>>excludeStart("ide", pragmas.excludeIdeData);
  1533. args: [],
  1534. source: "refreshDisplayWidget\x0a\x09self displayWidget refresh",
  1535. referencedClasses: [],
  1536. //>>excludeEnd("ide");
  1537. messageSends: ["refresh", "displayWidget"]
  1538. }),
  1539. $globals.HLInspectorWidget);
  1540. $core.addMethod(
  1541. $core.method({
  1542. selector: "refreshVariablesWidget",
  1543. protocol: 'actions',
  1544. fn: function (){
  1545. var self=this;
  1546. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1547. return $core.withContext(function($ctx1) {
  1548. //>>excludeEnd("ctx");
  1549. $recv(self._variablesWidget())._refresh();
  1550. return self;
  1551. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1552. }, function($ctx1) {$ctx1.fill(self,"refreshVariablesWidget",{},$globals.HLInspectorWidget)});
  1553. //>>excludeEnd("ctx");
  1554. },
  1555. //>>excludeStart("ide", pragmas.excludeIdeData);
  1556. args: [],
  1557. source: "refreshVariablesWidget\x0a\x09self variablesWidget refresh",
  1558. referencedClasses: [],
  1559. //>>excludeEnd("ide");
  1560. messageSends: ["refresh", "variablesWidget"]
  1561. }),
  1562. $globals.HLInspectorWidget);
  1563. $core.addMethod(
  1564. $core.method({
  1565. selector: "register",
  1566. protocol: 'registration',
  1567. fn: function (){
  1568. var self=this;
  1569. function $HLInspector(){return $globals.HLInspector||(typeof HLInspector=="undefined"?nil:HLInspector)}
  1570. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1571. return $core.withContext(function($ctx1) {
  1572. //>>excludeEnd("ctx");
  1573. $recv($HLInspector())._register_(self);
  1574. return self;
  1575. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1576. }, function($ctx1) {$ctx1.fill(self,"register",{},$globals.HLInspectorWidget)});
  1577. //>>excludeEnd("ctx");
  1578. },
  1579. //>>excludeStart("ide", pragmas.excludeIdeData);
  1580. args: [],
  1581. source: "register\x0a\x09HLInspector register: self",
  1582. referencedClasses: ["HLInspector"],
  1583. //>>excludeEnd("ide");
  1584. messageSends: ["register:"]
  1585. }),
  1586. $globals.HLInspectorWidget);
  1587. $core.addMethod(
  1588. $core.method({
  1589. selector: "renderContentOn:",
  1590. protocol: 'rendering',
  1591. fn: function (html){
  1592. var self=this;
  1593. function $HLHorizontalSplitter(){return $globals.HLHorizontalSplitter||(typeof HLHorizontalSplitter=="undefined"?nil:HLHorizontalSplitter)}
  1594. function $HLVerticalSplitter(){return $globals.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
  1595. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1596. return $core.withContext(function($ctx1) {
  1597. //>>excludeEnd("ctx");
  1598. var $1;
  1599. $1=$recv($HLHorizontalSplitter())._with_with_($recv($HLVerticalSplitter())._with_with_(self._variablesWidget(),self._displayWidget()),self._codeWidget());
  1600. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1601. $ctx1.sendIdx["with:with:"]=1;
  1602. //>>excludeEnd("ctx");
  1603. $recv(html)._with_($1);
  1604. return self;
  1605. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1606. }, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},$globals.HLInspectorWidget)});
  1607. //>>excludeEnd("ctx");
  1608. },
  1609. //>>excludeStart("ide", pragmas.excludeIdeData);
  1610. args: ["html"],
  1611. source: "renderContentOn: html\x0a \x09html with: (HLHorizontalSplitter\x0a \x09with: (HLVerticalSplitter \x0a with: self variablesWidget\x0a with: self displayWidget)\x0a with: self codeWidget)",
  1612. referencedClasses: ["HLHorizontalSplitter", "HLVerticalSplitter"],
  1613. //>>excludeEnd("ide");
  1614. messageSends: ["with:", "with:with:", "variablesWidget", "displayWidget", "codeWidget"]
  1615. }),
  1616. $globals.HLInspectorWidget);
  1617. $core.addMethod(
  1618. $core.method({
  1619. selector: "setLabel:",
  1620. protocol: 'actions',
  1621. fn: function (aString){
  1622. var self=this;
  1623. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1624. return $core.withContext(function($ctx1) {
  1625. //>>excludeEnd("ctx");
  1626. $recv(self._model())._label_(aString);
  1627. return self;
  1628. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1629. }, function($ctx1) {$ctx1.fill(self,"setLabel:",{aString:aString},$globals.HLInspectorWidget)});
  1630. //>>excludeEnd("ctx");
  1631. },
  1632. //>>excludeStart("ide", pragmas.excludeIdeData);
  1633. args: ["aString"],
  1634. source: "setLabel: aString\x0a\x09self model label: aString",
  1635. referencedClasses: [],
  1636. //>>excludeEnd("ide");
  1637. messageSends: ["label:", "model"]
  1638. }),
  1639. $globals.HLInspectorWidget);
  1640. $core.addMethod(
  1641. $core.method({
  1642. selector: "setVariables:",
  1643. protocol: 'actions',
  1644. fn: function (aDictionary){
  1645. var self=this;
  1646. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1647. return $core.withContext(function($ctx1) {
  1648. //>>excludeEnd("ctx");
  1649. $recv(self._model())._variables_(aDictionary);
  1650. return self;
  1651. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1652. }, function($ctx1) {$ctx1.fill(self,"setVariables:",{aDictionary:aDictionary},$globals.HLInspectorWidget)});
  1653. //>>excludeEnd("ctx");
  1654. },
  1655. //>>excludeStart("ide", pragmas.excludeIdeData);
  1656. args: ["aDictionary"],
  1657. source: "setVariables: aDictionary\x0a\x09self model variables: aDictionary",
  1658. referencedClasses: [],
  1659. //>>excludeEnd("ide");
  1660. messageSends: ["variables:", "model"]
  1661. }),
  1662. $globals.HLInspectorWidget);
  1663. $core.addMethod(
  1664. $core.method({
  1665. selector: "tabLabel",
  1666. protocol: 'accessing',
  1667. fn: function (){
  1668. var self=this;
  1669. return "Inspector";
  1670. },
  1671. //>>excludeStart("ide", pragmas.excludeIdeData);
  1672. args: [],
  1673. source: "tabLabel\x0a ^ 'Inspector'",
  1674. referencedClasses: [],
  1675. //>>excludeEnd("ide");
  1676. messageSends: []
  1677. }),
  1678. $globals.HLInspectorWidget);
  1679. $core.addMethod(
  1680. $core.method({
  1681. selector: "unregister",
  1682. protocol: 'registration',
  1683. fn: function (){
  1684. var self=this;
  1685. function $HLInspector(){return $globals.HLInspector||(typeof HLInspector=="undefined"?nil:HLInspector)}
  1686. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1687. return $core.withContext(function($ctx1) {
  1688. //>>excludeEnd("ctx");
  1689. (
  1690. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1691. $ctx1.supercall = true,
  1692. //>>excludeEnd("ctx");
  1693. $globals.HLInspectorWidget.superclass.fn.prototype._unregister.apply($recv(self), []));
  1694. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1695. $ctx1.supercall = false;
  1696. //>>excludeEnd("ctx");;
  1697. $recv($HLInspector())._unregister_(self);
  1698. return self;
  1699. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1700. }, function($ctx1) {$ctx1.fill(self,"unregister",{},$globals.HLInspectorWidget)});
  1701. //>>excludeEnd("ctx");
  1702. },
  1703. //>>excludeStart("ide", pragmas.excludeIdeData);
  1704. args: [],
  1705. source: "unregister\x0a\x09super unregister.\x0a\x09HLInspector unregister: self",
  1706. referencedClasses: ["HLInspector"],
  1707. //>>excludeEnd("ide");
  1708. messageSends: ["unregister", "unregister:"]
  1709. }),
  1710. $globals.HLInspectorWidget);
  1711. $core.addMethod(
  1712. $core.method({
  1713. selector: "variablesWidget",
  1714. protocol: 'accessing',
  1715. fn: function (){
  1716. var self=this;
  1717. function $HLInspectorVariablesWidget(){return $globals.HLInspectorVariablesWidget||(typeof HLInspectorVariablesWidget=="undefined"?nil:HLInspectorVariablesWidget)}
  1718. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1719. return $core.withContext(function($ctx1) {
  1720. //>>excludeEnd("ctx");
  1721. var $2,$3,$4,$1,$receiver;
  1722. $2=self["@variablesWidget"];
  1723. if(($receiver = $2) == null || $receiver.isNil){
  1724. $3=$recv($HLInspectorVariablesWidget())._new();
  1725. $recv($3)._inspector_(self);
  1726. $4=$recv($3)._yourself();
  1727. self["@variablesWidget"]=$4;
  1728. $1=self["@variablesWidget"];
  1729. } else {
  1730. $1=$2;
  1731. };
  1732. return $1;
  1733. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1734. }, function($ctx1) {$ctx1.fill(self,"variablesWidget",{},$globals.HLInspectorWidget)});
  1735. //>>excludeEnd("ctx");
  1736. },
  1737. //>>excludeStart("ide", pragmas.excludeIdeData);
  1738. args: [],
  1739. source: "variablesWidget\x0a\x09^ variablesWidget ifNil: [\x0a\x09\x09variablesWidget := HLInspectorVariablesWidget new\x0a \x09\x09inspector: self;\x0a \x09yourself ]",
  1740. referencedClasses: ["HLInspectorVariablesWidget"],
  1741. //>>excludeEnd("ide");
  1742. messageSends: ["ifNil:", "inspector:", "new", "yourself"]
  1743. }),
  1744. $globals.HLInspectorWidget);
  1745. $core.addClass('HLInspector', $globals.HLInspectorWidget, [], 'Helios-Inspector');
  1746. $core.addMethod(
  1747. $core.method({
  1748. selector: "inspect:",
  1749. protocol: 'actions',
  1750. fn: function (anObject){
  1751. var self=this;
  1752. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1753. return $core.withContext(function($ctx1) {
  1754. //>>excludeEnd("ctx");
  1755. self._setTabLabel_($recv(anObject)._printString());
  1756. (
  1757. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1758. $ctx1.supercall = true,
  1759. //>>excludeEnd("ctx");
  1760. $globals.HLInspector.superclass.fn.prototype._inspect_.apply($recv(self), [anObject]));
  1761. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1762. $ctx1.supercall = false;
  1763. //>>excludeEnd("ctx");;
  1764. return self;
  1765. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1766. }, function($ctx1) {$ctx1.fill(self,"inspect:",{anObject:anObject},$globals.HLInspector)});
  1767. //>>excludeEnd("ctx");
  1768. },
  1769. //>>excludeStart("ide", pragmas.excludeIdeData);
  1770. args: ["anObject"],
  1771. source: "inspect: anObject\x0a\x09self setTabLabel: anObject printString.\x0a\x09super inspect: anObject",
  1772. referencedClasses: [],
  1773. //>>excludeEnd("ide");
  1774. messageSends: ["setTabLabel:", "printString", "inspect:"]
  1775. }),
  1776. $globals.HLInspector);
  1777. $core.addMethod(
  1778. $core.method({
  1779. selector: "renderContentOn:",
  1780. protocol: 'rendering',
  1781. fn: function (html){
  1782. var self=this;
  1783. function $HLContainer(){return $globals.HLContainer||(typeof HLContainer=="undefined"?nil:HLContainer)}
  1784. function $HLHorizontalSplitter(){return $globals.HLHorizontalSplitter||(typeof HLHorizontalSplitter=="undefined"?nil:HLHorizontalSplitter)}
  1785. function $HLVerticalSplitter(){return $globals.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
  1786. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1787. return $core.withContext(function($ctx1) {
  1788. //>>excludeEnd("ctx");
  1789. var $4,$3,$2,$1;
  1790. $4=self._variablesWidget();
  1791. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1792. $ctx1.sendIdx["variablesWidget"]=1;
  1793. //>>excludeEnd("ctx");
  1794. $3=$recv($HLVerticalSplitter())._with_with_($4,self._displayWidget());
  1795. $2=$recv($HLHorizontalSplitter())._with_with_($3,self._codeWidget());
  1796. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1797. $ctx1.sendIdx["with:with:"]=1;
  1798. //>>excludeEnd("ctx");
  1799. $1=$recv($HLContainer())._with_($2);
  1800. $recv(html)._with_($1);
  1801. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1802. $ctx1.sendIdx["with:"]=1;
  1803. //>>excludeEnd("ctx");
  1804. $recv(self._variablesWidget())._focus();
  1805. return self;
  1806. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1807. }, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},$globals.HLInspector)});
  1808. //>>excludeEnd("ctx");
  1809. },
  1810. //>>excludeStart("ide", pragmas.excludeIdeData);
  1811. args: ["html"],
  1812. source: "renderContentOn: html\x0a \x09html with: (HLContainer with: (HLHorizontalSplitter\x0a \x09with: (HLVerticalSplitter \x0a with: self variablesWidget\x0a with: self displayWidget)\x0a with: self codeWidget)).\x0a\x09\x0a\x09self variablesWidget focus",
  1813. referencedClasses: ["HLContainer", "HLHorizontalSplitter", "HLVerticalSplitter"],
  1814. //>>excludeEnd("ide");
  1815. messageSends: ["with:", "with:with:", "variablesWidget", "displayWidget", "codeWidget", "focus"]
  1816. }),
  1817. $globals.HLInspector);
  1818. $globals.HLInspector.klass.iVarNames = ['inspectors'];
  1819. $core.addMethod(
  1820. $core.method({
  1821. selector: "canBeOpenAsTab",
  1822. protocol: 'testing',
  1823. fn: function (){
  1824. var self=this;
  1825. return false;
  1826. },
  1827. //>>excludeStart("ide", pragmas.excludeIdeData);
  1828. args: [],
  1829. source: "canBeOpenAsTab\x0a\x09^ false",
  1830. referencedClasses: [],
  1831. //>>excludeEnd("ide");
  1832. messageSends: []
  1833. }),
  1834. $globals.HLInspector.klass);
  1835. $core.addMethod(
  1836. $core.method({
  1837. selector: "initialize",
  1838. protocol: 'initialization',
  1839. fn: function (){
  1840. var self=this;
  1841. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1842. return $core.withContext(function($ctx1) {
  1843. //>>excludeEnd("ctx");
  1844. (
  1845. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1846. $ctx1.supercall = true,
  1847. //>>excludeEnd("ctx");
  1848. $globals.HLInspector.klass.superclass.fn.prototype._initialize.apply($recv(self), []));
  1849. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1850. $ctx1.supercall = false;
  1851. //>>excludeEnd("ctx");;
  1852. self._watchChanges();
  1853. return self;
  1854. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1855. }, function($ctx1) {$ctx1.fill(self,"initialize",{},$globals.HLInspector.klass)});
  1856. //>>excludeEnd("ctx");
  1857. },
  1858. //>>excludeStart("ide", pragmas.excludeIdeData);
  1859. args: [],
  1860. source: "initialize\x0a\x09super initialize.\x0a\x09self watchChanges",
  1861. referencedClasses: [],
  1862. //>>excludeEnd("ide");
  1863. messageSends: ["initialize", "watchChanges"]
  1864. }),
  1865. $globals.HLInspector.klass);
  1866. $core.addMethod(
  1867. $core.method({
  1868. selector: "inspect:",
  1869. protocol: 'actions',
  1870. fn: function (anObject){
  1871. var self=this;
  1872. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1873. return $core.withContext(function($ctx1) {
  1874. //>>excludeEnd("ctx");
  1875. var $1,$2;
  1876. $1=self._new();
  1877. $recv($1)._openAsTab();
  1878. $2=$recv($1)._inspect_(anObject);
  1879. return self;
  1880. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1881. }, function($ctx1) {$ctx1.fill(self,"inspect:",{anObject:anObject},$globals.HLInspector.klass)});
  1882. //>>excludeEnd("ctx");
  1883. },
  1884. //>>excludeStart("ide", pragmas.excludeIdeData);
  1885. args: ["anObject"],
  1886. source: "inspect: anObject\x0a\x09self new\x0a\x09\x09openAsTab;\x0a\x09\x09inspect: anObject",
  1887. referencedClasses: [],
  1888. //>>excludeEnd("ide");
  1889. messageSends: ["openAsTab", "new", "inspect:"]
  1890. }),
  1891. $globals.HLInspector.klass);
  1892. $core.addMethod(
  1893. $core.method({
  1894. selector: "inspectors",
  1895. protocol: 'accessing',
  1896. fn: function (){
  1897. var self=this;
  1898. function $OrderedCollection(){return $globals.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  1899. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1900. return $core.withContext(function($ctx1) {
  1901. //>>excludeEnd("ctx");
  1902. var $2,$1,$receiver;
  1903. $2=self["@inspectors"];
  1904. if(($receiver = $2) == null || $receiver.isNil){
  1905. self["@inspectors"]=$recv($OrderedCollection())._new();
  1906. $1=self["@inspectors"];
  1907. } else {
  1908. $1=$2;
  1909. };
  1910. return $1;
  1911. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1912. }, function($ctx1) {$ctx1.fill(self,"inspectors",{},$globals.HLInspector.klass)});
  1913. //>>excludeEnd("ctx");
  1914. },
  1915. //>>excludeStart("ide", pragmas.excludeIdeData);
  1916. args: [],
  1917. source: "inspectors\x0a\x09^ inspectors ifNil: [ inspectors := OrderedCollection new ]",
  1918. referencedClasses: ["OrderedCollection"],
  1919. //>>excludeEnd("ide");
  1920. messageSends: ["ifNil:", "new"]
  1921. }),
  1922. $globals.HLInspector.klass);
  1923. $core.addMethod(
  1924. $core.method({
  1925. selector: "register:",
  1926. protocol: 'registration',
  1927. fn: function (anInspector){
  1928. var self=this;
  1929. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1930. return $core.withContext(function($ctx1) {
  1931. //>>excludeEnd("ctx");
  1932. $recv(self._inspectors())._add_(anInspector);
  1933. return self;
  1934. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1935. }, function($ctx1) {$ctx1.fill(self,"register:",{anInspector:anInspector},$globals.HLInspector.klass)});
  1936. //>>excludeEnd("ctx");
  1937. },
  1938. //>>excludeStart("ide", pragmas.excludeIdeData);
  1939. args: ["anInspector"],
  1940. source: "register: anInspector\x0a\x09self inspectors add: anInspector",
  1941. referencedClasses: [],
  1942. //>>excludeEnd("ide");
  1943. messageSends: ["add:", "inspectors"]
  1944. }),
  1945. $globals.HLInspector.klass);
  1946. $core.addMethod(
  1947. $core.method({
  1948. selector: "tabClass",
  1949. protocol: 'accessing',
  1950. fn: function (){
  1951. var self=this;
  1952. return "inspector";
  1953. },
  1954. //>>excludeStart("ide", pragmas.excludeIdeData);
  1955. args: [],
  1956. source: "tabClass\x0a\x09^ 'inspector'",
  1957. referencedClasses: [],
  1958. //>>excludeEnd("ide");
  1959. messageSends: []
  1960. }),
  1961. $globals.HLInspector.klass);
  1962. $core.addMethod(
  1963. $core.method({
  1964. selector: "tabLabel",
  1965. protocol: 'accessing',
  1966. fn: function (){
  1967. var self=this;
  1968. return "Inspector";
  1969. },
  1970. //>>excludeStart("ide", pragmas.excludeIdeData);
  1971. args: [],
  1972. source: "tabLabel\x0a\x09^ 'Inspector'",
  1973. referencedClasses: [],
  1974. //>>excludeEnd("ide");
  1975. messageSends: []
  1976. }),
  1977. $globals.HLInspector.klass);
  1978. $core.addMethod(
  1979. $core.method({
  1980. selector: "tabPriority",
  1981. protocol: 'accessing',
  1982. fn: function (){
  1983. var self=this;
  1984. return (10);
  1985. },
  1986. //>>excludeStart("ide", pragmas.excludeIdeData);
  1987. args: [],
  1988. source: "tabPriority\x0a\x09^ 10",
  1989. referencedClasses: [],
  1990. //>>excludeEnd("ide");
  1991. messageSends: []
  1992. }),
  1993. $globals.HLInspector.klass);
  1994. $core.addMethod(
  1995. $core.method({
  1996. selector: "unregister:",
  1997. protocol: 'registration',
  1998. fn: function (anInspector){
  1999. var self=this;
  2000. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2001. return $core.withContext(function($ctx1) {
  2002. //>>excludeEnd("ctx");
  2003. $recv(self._inspectors())._remove_(anInspector);
  2004. return self;
  2005. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2006. }, function($ctx1) {$ctx1.fill(self,"unregister:",{anInspector:anInspector},$globals.HLInspector.klass)});
  2007. //>>excludeEnd("ctx");
  2008. },
  2009. //>>excludeStart("ide", pragmas.excludeIdeData);
  2010. args: ["anInspector"],
  2011. source: "unregister: anInspector\x0a\x09self inspectors remove: anInspector",
  2012. referencedClasses: [],
  2013. //>>excludeEnd("ide");
  2014. messageSends: ["remove:", "inspectors"]
  2015. }),
  2016. $globals.HLInspector.klass);
  2017. $core.addMethod(
  2018. $core.method({
  2019. selector: "watchChanges",
  2020. protocol: 'initialization',
  2021. fn: function (){
  2022. var self=this;
  2023. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2024. return $core.withContext(function($ctx1) {
  2025. //>>excludeEnd("ctx");
  2026. $recv((function(){
  2027. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2028. return $core.withContext(function($ctx2) {
  2029. //>>excludeEnd("ctx");
  2030. return $recv(self._inspectors())._do_((function(each){
  2031. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2032. return $core.withContext(function($ctx3) {
  2033. //>>excludeEnd("ctx");
  2034. return $recv(each)._refresh();
  2035. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2036. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx2,2)});
  2037. //>>excludeEnd("ctx");
  2038. }));
  2039. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2040. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  2041. //>>excludeEnd("ctx");
  2042. }))._valueWithInterval_((500));
  2043. return self;
  2044. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2045. }, function($ctx1) {$ctx1.fill(self,"watchChanges",{},$globals.HLInspector.klass)});
  2046. //>>excludeEnd("ctx");
  2047. },
  2048. //>>excludeStart("ide", pragmas.excludeIdeData);
  2049. args: [],
  2050. source: "watchChanges\x0a\x09[ self inspectors do: [ :each | each refresh ] ]\x0a\x09\x09valueWithInterval: 500",
  2051. referencedClasses: [],
  2052. //>>excludeEnd("ide");
  2053. messageSends: ["valueWithInterval:", "do:", "inspectors", "refresh"]
  2054. }),
  2055. $globals.HLInspector.klass);
  2056. });