| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115 | define("amber_core/Helios-References", ["amber_vm/smalltalk", "amber_vm/nil", "amber_vm/_st", "amber_core/Kernel-Objects", "amber_core/Helios-Core"], function(smalltalk,nil,_st){smalltalk.addPackage('Helios-References');smalltalk.packages["Helios-References"].transport = {"type":"amd","amdNamespace":"amber_core"};smalltalk.addClass('HLMethodReference', smalltalk.Object, ['selector', 'methodClass'], 'Helios-References');smalltalk.addMethod(smalltalk.method({selector: "initializeFromMethod:",category: 'initialization',fn: function (aCompiledMethod){var self=this;return smalltalk.withContext(function($ctx1) { var $1,$2;$1=self;_st($1)._selector_(_st(aCompiledMethod)._selector());$2=_st($1)._methodClass_(_st(aCompiledMethod)._methodClass());return self}, function($ctx1) {$ctx1.fill(self,"initializeFromMethod:",{aCompiledMethod:aCompiledMethod},smalltalk.HLMethodReference)})},args: ["aCompiledMethod"],source: "initializeFromMethod: aCompiledMethod\x0a\x09self\x0a\x09\x09selector: aCompiledMethod selector;\x0a\x09\x09methodClass: aCompiledMethod methodClass",messageSends: ["selector:", "selector", "methodClass:", "methodClass"],referencedClasses: []}),smalltalk.HLMethodReference);smalltalk.addMethod(smalltalk.method({selector: "method",category: 'accessing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { var $1;$1=_st(self._methodClass())._methodAt_(self._selector());return $1;}, function($ctx1) {$ctx1.fill(self,"method",{},smalltalk.HLMethodReference)})},args: [],source: "method\x0a\x09^ self methodClass methodAt: self selector",messageSends: ["methodAt:", "selector", "methodClass"],referencedClasses: []}),smalltalk.HLMethodReference);smalltalk.addMethod(smalltalk.method({selector: "methodClass",category: 'accessing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { var $1;$1=self["@methodClass"];return $1;}, function($ctx1) {$ctx1.fill(self,"methodClass",{},smalltalk.HLMethodReference)})},args: [],source: "methodClass\x0a\x09^ methodClass",messageSends: [],referencedClasses: []}),smalltalk.HLMethodReference);smalltalk.addMethod(smalltalk.method({selector: "methodClass:",category: 'accessing',fn: function (aClass){var self=this;return smalltalk.withContext(function($ctx1) { self["@methodClass"]=aClass;return self}, function($ctx1) {$ctx1.fill(self,"methodClass:",{aClass:aClass},smalltalk.HLMethodReference)})},args: ["aClass"],source: "methodClass: aClass\x0a\x09methodClass := aClass",messageSends: [],referencedClasses: []}),smalltalk.HLMethodReference);smalltalk.addMethod(smalltalk.method({selector: "selector",category: 'accessing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { var $1;$1=self["@selector"];return $1;}, function($ctx1) {$ctx1.fill(self,"selector",{},smalltalk.HLMethodReference)})},args: [],source: "selector\x0a\x09^ selector",messageSends: [],referencedClasses: []}),smalltalk.HLMethodReference);smalltalk.addMethod(smalltalk.method({selector: "selector:",category: 'accessing',fn: function (aString){var self=this;return smalltalk.withContext(function($ctx1) { self["@selector"]=aString;return self}, function($ctx1) {$ctx1.fill(self,"selector:",{aString:aString},smalltalk.HLMethodReference)})},args: ["aString"],source: "selector: aString\x0a\x09selector := aString",messageSends: [],referencedClasses: []}),smalltalk.HLMethodReference);smalltalk.addMethod(smalltalk.method({selector: "source",category: 'accessing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { var $1;$1=_st(self._method())._source();return $1;}, function($ctx1) {$ctx1.fill(self,"source",{},smalltalk.HLMethodReference)})},args: [],source: "source\x0a\x09^ self method source",messageSends: ["source", "method"],referencedClasses: []}),smalltalk.HLMethodReference);smalltalk.addMethod(smalltalk.method({selector: "on:",category: 'instance creation',fn: function (aCompiledMethod){var self=this;return smalltalk.withContext(function($ctx1) { var $2,$3,$1;$2=self._new();_st($2)._initializeFromMethod_(aCompiledMethod);$3=_st($2)._yourself();$1=$3;return $1;}, function($ctx1) {$ctx1.fill(self,"on:",{aCompiledMethod:aCompiledMethod},smalltalk.HLMethodReference.klass)})},args: ["aCompiledMethod"],source: "on: aCompiledMethod\x0a\x09^ self new\x0a\x09\x09initializeFromMethod: aCompiledMethod;\x0a\x09\x09yourself",messageSends: ["initializeFromMethod:", "new", "yourself"],referencedClasses: []}),smalltalk.HLMethodReference.klass);smalltalk.addClass('HLReferences', smalltalk.HLWidget, ['model', 'sendersListWidget', 'implementorsListWidget', 'classReferencesListWidget', 'regexpListWidget', 'sourceCodeWidget'], 'Helios-References');smalltalk.addMethod(smalltalk.method({selector: "classReferencesListWidget",category: 'accessing',fn: function (){var self=this;function $HLClassReferencesListWidget(){return smalltalk.HLClassReferencesListWidget||(typeof HLClassReferencesListWidget=="undefined"?nil:HLClassReferencesListWidget)}return smalltalk.withContext(function($ctx1) { var $2,$1;$2=self["@classReferencesListWidget"];if(($receiver = $2) == nil || $receiver == undefined){self["@classReferencesListWidget"]=_st($HLClassReferencesListWidget())._on_(self._model());self["@classReferencesListWidget"];$1=_st(self["@classReferencesListWidget"])._next_(self._regexpListWidget());} else {$1=$2;};return $1;}, function($ctx1) {$ctx1.fill(self,"classReferencesListWidget",{},smalltalk.HLReferences)})},args: [],source: "classReferencesListWidget\x0a\x09^ classReferencesListWidget ifNil: [\x0a      \x09classReferencesListWidget := HLClassReferencesListWidget on: self model.\x0a\x09\x09classReferencesListWidget next: self regexpListWidget ]",messageSends: ["ifNil:", "on:", "model", "next:", "regexpListWidget"],referencedClasses: ["HLClassReferencesListWidget"]}),smalltalk.HLReferences);smalltalk.addMethod(smalltalk.method({selector: "implementorsListWidget",category: 'accessing',fn: function (){var self=this;function $HLImplementorsListWidget(){return smalltalk.HLImplementorsListWidget||(typeof HLImplementorsListWidget=="undefined"?nil:HLImplementorsListWidget)}return smalltalk.withContext(function($ctx1) { var $2,$1;$2=self["@implementorsListWidget"];if(($receiver = $2) == nil || $receiver == undefined){self["@implementorsListWidget"]=_st($HLImplementorsListWidget())._on_(self._model());self["@implementorsListWidget"];$1=_st(self["@implementorsListWidget"])._next_(self._classReferencesListWidget());} else {$1=$2;};return $1;}, function($ctx1) {$ctx1.fill(self,"implementorsListWidget",{},smalltalk.HLReferences)})},args: [],source: "implementorsListWidget\x0a\x09^ implementorsListWidget ifNil: [\x0a      \x09implementorsListWidget := HLImplementorsListWidget on: self model.\x0a\x09\x09implementorsListWidget next: self classReferencesListWidget ]",messageSends: ["ifNil:", "on:", "model", "next:", "classReferencesListWidget"],referencedClasses: ["HLImplementorsListWidget"]}),smalltalk.HLReferences);smalltalk.addMethod(smalltalk.method({selector: "model",category: 'accessing',fn: function (){var self=this;function $HLReferencesModel(){return smalltalk.HLReferencesModel||(typeof HLReferencesModel=="undefined"?nil:HLReferencesModel)}return smalltalk.withContext(function($ctx1) { var $2,$3,$4,$1;$2=self["@model"];if(($receiver = $2) == nil || $receiver == undefined){$3=_st($HLReferencesModel())._new();_st($3)._environment_(_st(self._manager())._environment());$4=_st($3)._yourself();self["@model"]=$4;$1=self["@model"];} else {$1=$2;};return $1;}, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLReferences)})},args: [],source: "model\x0a\x09^ model ifNil: [\x0a\x09\x09model := (HLReferencesModel new\x0a\x09\x09\x09environment: self manager environment;\x0a\x09\x09\x09yourself) ]",messageSends: ["ifNil:", "environment:", "environment", "manager", "new", "yourself"],referencedClasses: ["HLReferencesModel"]}),smalltalk.HLReferences);smalltalk.addMethod(smalltalk.method({selector: "model:",category: 'accessing',fn: function (aModel){var self=this;return smalltalk.withContext(function($ctx1) { self["@model"]=aModel;return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLReferences)})},args: ["aModel"],source: "model: aModel\x0a\x09model := aModel",messageSends: [],referencedClasses: []}),smalltalk.HLReferences);smalltalk.addMethod(smalltalk.method({selector: "regexpListWidget",category: 'accessing',fn: function (){var self=this;function $HLRegexpListWidget(){return smalltalk.HLRegexpListWidget||(typeof HLRegexpListWidget=="undefined"?nil:HLRegexpListWidget)}return smalltalk.withContext(function($ctx1) { var $2,$1;$2=self["@regexpListWidget"];if(($receiver = $2) == nil || $receiver == undefined){self["@regexpListWidget"]=_st($HLRegexpListWidget())._on_(self._model());self["@regexpListWidget"];$1=_st(self["@regexpListWidget"])._next_(self._sourceCodeWidget());} else {$1=$2;};return $1;}, function($ctx1) {$ctx1.fill(self,"regexpListWidget",{},smalltalk.HLReferences)})},args: [],source: "regexpListWidget\x0a\x09^ regexpListWidget ifNil: [\x0a      \x09regexpListWidget := HLRegexpListWidget on: self model.\x0a\x09\x09regexpListWidget next: self sourceCodeWidget ]",messageSends: ["ifNil:", "on:", "model", "next:", "sourceCodeWidget"],referencedClasses: ["HLRegexpListWidget"]}),smalltalk.HLReferences);smalltalk.addMethod(smalltalk.method({selector: "registerBindingsOn:",category: 'actions',fn: function (aBindingGroup){var self=this;function $HLToolCommand(){return smalltalk.HLToolCommand||(typeof HLToolCommand=="undefined"?nil:HLToolCommand)}return smalltalk.withContext(function($ctx1) { _st($HLToolCommand())._registerConcreteClassesOn_for_(aBindingGroup,self._model());return self}, function($ctx1) {$ctx1.fill(self,"registerBindingsOn:",{aBindingGroup:aBindingGroup},smalltalk.HLReferences)})},args: ["aBindingGroup"],source: "registerBindingsOn: aBindingGroup\x0a\x09HLToolCommand \x0a\x09\x09registerConcreteClassesOn: aBindingGroup \x0a\x09\x09for: self model",messageSends: ["registerConcreteClassesOn:for:", "model"],referencedClasses: ["HLToolCommand"]}),smalltalk.HLReferences);smalltalk.addMethod(smalltalk.method({selector: "renderContentOn:",category: 'rendering',fn: function (html){var self=this;function $HLVerticalSplitter(){return smalltalk.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}function $HLHorizontalSplitter(){return smalltalk.HLHorizontalSplitter||(typeof HLHorizontalSplitter=="undefined"?nil:HLHorizontalSplitter)}function $HLContainer(){return smalltalk.HLContainer||(typeof HLContainer=="undefined"?nil:HLContainer)}return smalltalk.withContext(function($ctx1) { _st(html)._with_(_st($HLContainer())._with_(_st($HLHorizontalSplitter())._with_with_(_st($HLVerticalSplitter())._with_with_(_st($HLVerticalSplitter())._with_with_(self._sendersListWidget(),self._implementorsListWidget()),_st($HLVerticalSplitter())._with_with_(self._classReferencesListWidget(),self._regexpListWidget())),self._sourceCodeWidget())));_st(self._sendersListWidget())._focus();return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLReferences)})},args: ["html"],source: "renderContentOn: html\x0a\x09html with: (HLContainer with: (HLHorizontalSplitter \x0a    \x09with: (HLVerticalSplitter\x0a        \x09with: (HLVerticalSplitter\x0a            \x09with: self sendersListWidget\x0a                with: self implementorsListWidget)\x0a            with: (HLVerticalSplitter\x0a            \x09with: self classReferencesListWidget\x0a                with: self regexpListWidget)) \x0a        with: self sourceCodeWidget)).\x0a\x09\x0a\x09self sendersListWidget focus",messageSends: ["with:", "with:with:", "sendersListWidget", "implementorsListWidget", "classReferencesListWidget", "regexpListWidget", "sourceCodeWidget", "focus"],referencedClasses: ["HLVerticalSplitter", "HLHorizontalSplitter", "HLContainer"]}),smalltalk.HLReferences);smalltalk.addMethod(smalltalk.method({selector: "search:",category: 'actions',fn: function (aString){var self=this;return smalltalk.withContext(function($ctx1) { _st(self._model())._search_(aString);return self}, function($ctx1) {$ctx1.fill(self,"search:",{aString:aString},smalltalk.HLReferences)})},args: ["aString"],source: "search: aString\x0a\x09self model search: aString",messageSends: ["search:", "model"],referencedClasses: []}),smalltalk.HLReferences);smalltalk.addMethod(smalltalk.method({selector: "sendersListWidget",category: 'accessing',fn: function (){var self=this;function $HLSendersListWidget(){return smalltalk.HLSendersListWidget||(typeof HLSendersListWidget=="undefined"?nil:HLSendersListWidget)}return smalltalk.withContext(function($ctx1) { var $2,$1;$2=self["@sendersListWidget"];if(($receiver = $2) == nil || $receiver == undefined){self["@sendersListWidget"]=_st($HLSendersListWidget())._on_(self._model());self["@sendersListWidget"];$1=_st(self["@sendersListWidget"])._next_(self._implementorsListWidget());} else {$1=$2;};return $1;}, function($ctx1) {$ctx1.fill(self,"sendersListWidget",{},smalltalk.HLReferences)})},args: [],source: "sendersListWidget\x0a\x09^ sendersListWidget ifNil: [\x0a      \x09sendersListWidget := HLSendersListWidget on: self model.\x0a\x09\x09sendersListWidget next: self implementorsListWidget ]",messageSends: ["ifNil:", "on:", "model", "next:", "implementorsListWidget"],referencedClasses: ["HLSendersListWidget"]}),smalltalk.HLReferences);smalltalk.addMethod(smalltalk.method({selector: "sourceCodeWidget",category: 'accessing',fn: function (){var self=this;function $HLBrowserCodeWidget(){return smalltalk.HLBrowserCodeWidget||(typeof HLBrowserCodeWidget=="undefined"?nil:HLBrowserCodeWidget)}return smalltalk.withContext(function($ctx1) { var $2,$3,$4,$1;$2=self["@sourceCodeWidget"];if(($receiver = $2) == nil || $receiver == undefined){$3=_st($HLBrowserCodeWidget())._new();_st($3)._browserModel_(self._model());$4=_st($3)._yourself();self["@sourceCodeWidget"]=$4;$1=self["@sourceCodeWidget"];} else {$1=$2;};return $1;}, function($ctx1) {$ctx1.fill(self,"sourceCodeWidget",{},smalltalk.HLReferences)})},args: [],source: "sourceCodeWidget\x0a\x09^ sourceCodeWidget ifNil: [\x0a      \x09sourceCodeWidget := HLBrowserCodeWidget new\x0a\x09\x09\x09browserModel: self model;\x0a\x09\x09\x09yourself ]",messageSends: ["ifNil:", "browserModel:", "model", "new", "yourself"],referencedClasses: ["HLBrowserCodeWidget"]}),smalltalk.HLReferences);smalltalk.addMethod(smalltalk.method({selector: "canBeOpenAsTab",category: 'testing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { return false;}, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLReferences.klass)})},args: [],source: "canBeOpenAsTab\x0a\x09^ false",messageSends: [],referencedClasses: []}),smalltalk.HLReferences.klass);smalltalk.addMethod(smalltalk.method({selector: "tabClass",category: 'accessing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { return "references";}, function($ctx1) {$ctx1.fill(self,"tabClass",{},smalltalk.HLReferences.klass)})},args: [],source: "tabClass\x0a\x09^ 'references'",messageSends: [],referencedClasses: []}),smalltalk.HLReferences.klass);smalltalk.addMethod(smalltalk.method({selector: "tabLabel",category: 'accessing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { return "References";}, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLReferences.klass)})},args: [],source: "tabLabel\x0a\x09^ 'References'",messageSends: [],referencedClasses: []}),smalltalk.HLReferences.klass);smalltalk.addMethod(smalltalk.method({selector: "tabPriority",category: 'accessing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { return (100);}, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLReferences.klass)})},args: [],source: "tabPriority\x0a\x09^ 100",messageSends: [],referencedClasses: []}),smalltalk.HLReferences.klass);smalltalk.addClass('HLReferencesListWidget', smalltalk.HLToolListWidget, [], 'Helios-References');smalltalk.addMethod(smalltalk.method({selector: "activateListItem:",category: 'actions',fn: function (anItem){var self=this;return smalltalk.withContext(function($ctx1) { _st(self._model())._withChangesDo_((function(){return smalltalk.withContext(function($ctx2) {return smalltalk.HLReferencesListWidget.superclass.fn.prototype._activateListItem_.apply(_st(self), [anItem]);}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));return self}, function($ctx1) {$ctx1.fill(self,"activateListItem:",{anItem:anItem},smalltalk.HLReferencesListWidget)})},args: ["anItem"],source: "activateListItem: anItem\x0a\x09self model withChangesDo: [ super activateListItem: anItem ]",messageSends: ["withChangesDo:", "activateListItem:", "model"],referencedClasses: []}),smalltalk.HLReferencesListWidget);smalltalk.addMethod(smalltalk.method({selector: "commandCategory",category: 'accessing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { return "Methods";}, function($ctx1) {$ctx1.fill(self,"commandCategory",{},smalltalk.HLReferencesListWidget)})},args: [],source: "commandCategory\x0a\x09^ 'Methods'",messageSends: [],referencedClasses: []}),smalltalk.HLReferencesListWidget);smalltalk.addMethod(smalltalk.method({selector: "label",category: 'accessing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { return "List";}, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLReferencesListWidget)})},args: [],source: "label\x0a\x09^ 'List'",messageSends: [],referencedClasses: []}),smalltalk.HLReferencesListWidget);smalltalk.addMethod(smalltalk.method({selector: "observeModel",category: 'actions',fn: function (){var self=this;function $HLSearchReferences(){return smalltalk.HLSearchReferences||(typeof HLSearchReferences=="undefined"?nil:HLSearchReferences)}function $HLMethodSelected(){return smalltalk.HLMethodSelected||(typeof HLMethodSelected=="undefined"?nil:HLMethodSelected)}return smalltalk.withContext(function($ctx1) { var $1,$2;$1=_st(self._model())._announcer();_st($1)._on_do_($HLSearchReferences(),(function(ann){return smalltalk.withContext(function($ctx2) {return self._onSearchReferences_(_st(ann)._searchString());}, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));$2=_st($1)._on_do_($HLMethodSelected(),(function(ann){return smalltalk.withContext(function($ctx2) {return self._onMethodSelected_(_st(ann)._item());}, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLReferencesListWidget)})},args: [],source: "observeModel\x0a\x09self model announcer\x0a\x09\x09on: HLSearchReferences\x0a\x09\x09do: [ :ann | self onSearchReferences: ann searchString ];\x0a\x09\x09on: HLMethodSelected\x0a\x09\x09do: [ :ann | self onMethodSelected: ann item ]",messageSends: ["on:do:", "onSearchReferences:", "searchString", "announcer", "model", "onMethodSelected:", "item"],referencedClasses: ["HLSearchReferences", "HLMethodSelected"]}),smalltalk.HLReferencesListWidget);smalltalk.addMethod(smalltalk.method({selector: "onMethodSelected:",category: 'reactions',fn: function (aMethod){var self=this;return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5;var $early={};try {$1=aMethod;if(($receiver = $1) == nil || $receiver == undefined){$2=self;return $2;} else {$1;};_st(self._items())._detect_ifNone_((function(each){return smalltalk.withContext(function($ctx2) {return _st(each).__eq(_st(aMethod)._selector());}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){return smalltalk.withContext(function($ctx2) {$3=self;throw $early=[$3];}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));$4=self;_st($4)._selectedItem_(_st(aMethod)._selector());$5=_st($4)._activateItem_(_st(aMethod)._selector());return self}catch(e) {if(e===$early)return e[0]; throw e}}, function($ctx1) {$ctx1.fill(self,"onMethodSelected:",{aMethod:aMethod},smalltalk.HLReferencesListWidget)})},args: ["aMethod"],source: "onMethodSelected: aMethod\x0a\x09aMethod ifNil: [ ^ self ].\x0a\x09self items detect: [ :each | each = aMethod selector ] ifNone: [ ^ self ].\x0a\x09\x0a\x09self \x0a\x09\x09selectedItem: aMethod selector;\x0a\x09\x09activateItem: aMethod selector",messageSends: ["ifNil:", "detect:ifNone:", "=", "selector", "items", "selectedItem:", "activateItem:"],referencedClasses: []}),smalltalk.HLReferencesListWidget);smalltalk.addMethod(smalltalk.method({selector: "onSearchReferences:",category: 'reactions',fn: function (aString){var self=this;return smalltalk.withContext(function($ctx1) { self._subclassResponsibility();return self}, function($ctx1) {$ctx1.fill(self,"onSearchReferences:",{aString:aString},smalltalk.HLReferencesListWidget)})},args: ["aString"],source: "onSearchReferences: aString\x0a\x09self subclassResponsibility",messageSends: ["subclassResponsibility"],referencedClasses: []}),smalltalk.HLReferencesListWidget);smalltalk.addMethod(smalltalk.method({selector: "renderItemLabel:on:",category: 'rendering',fn: function (aMethod,html){var self=this;return smalltalk.withContext(function($ctx1) { _st(html)._with_(_st(_st(_st(_st(aMethod)._methodClass())._name()).__comma(" >> #")).__comma(_st(aMethod)._selector()));return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aMethod:aMethod,html:html},smalltalk.HLReferencesListWidget)})},args: ["aMethod", "html"],source: "renderItemLabel: aMethod on: html\x0a\x09html with: aMethod methodClass name, ' >> #', aMethod selector",messageSends: ["with:", ",", "selector", "name", "methodClass"],referencedClasses: []}),smalltalk.HLReferencesListWidget);smalltalk.addMethod(smalltalk.method({selector: "selectItem:",category: 'actions',fn: function (aMethod){var self=this;return smalltalk.withContext(function($ctx1) { _st(self._model())._selectedMethod_(aMethod);return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aMethod:aMethod},smalltalk.HLReferencesListWidget)})},args: ["aMethod"],source: "selectItem: aMethod\x0a\x09self model selectedMethod: aMethod",messageSends: ["selectedMethod:", "model"],referencedClasses: []}),smalltalk.HLReferencesListWidget);smalltalk.addMethod(smalltalk.method({selector: "on:",category: 'instance creation',fn: function (aModel){var self=this;return smalltalk.withContext(function($ctx1) { var $2,$3,$1;$2=self._new();_st($2)._model_(aModel);$3=_st($2)._yourself();$1=$3;return $1;}, function($ctx1) {$ctx1.fill(self,"on:",{aModel:aModel},smalltalk.HLReferencesListWidget.klass)})},args: ["aModel"],source: "on: aModel\x0a\x09^ self new \x0a\x09\x09model: aModel; \x0a\x09\x09yourself",messageSends: ["model:", "new", "yourself"],referencedClasses: []}),smalltalk.HLReferencesListWidget.klass);smalltalk.addClass('HLClassReferencesListWidget', smalltalk.HLReferencesListWidget, [], 'Helios-References');smalltalk.addMethod(smalltalk.method({selector: "label",category: 'accessing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { return "Class references";}, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLClassReferencesListWidget)})},args: [],source: "label\x0a\x09^ 'Class references'",messageSends: [],referencedClasses: []}),smalltalk.HLClassReferencesListWidget);smalltalk.addMethod(smalltalk.method({selector: "onSearchReferences:",category: 'reactions',fn: function (aString){var self=this;return smalltalk.withContext(function($ctx1) { self._selectItem_(nil);self._items_(_st(self._model())._classReferencesOf_(aString));self._refresh();return self}, function($ctx1) {$ctx1.fill(self,"onSearchReferences:",{aString:aString},smalltalk.HLClassReferencesListWidget)})},args: ["aString"],source: "onSearchReferences: aString\x0a\x09self selectItem: nil.\x0a\x09self items: (self model classReferencesOf: aString).\x0a\x09self refresh",messageSends: ["selectItem:", "items:", "classReferencesOf:", "model", "refresh"],referencedClasses: []}),smalltalk.HLClassReferencesListWidget);smalltalk.addClass('HLImplementorsListWidget', smalltalk.HLReferencesListWidget, [], 'Helios-References');smalltalk.addMethod(smalltalk.method({selector: "label",category: 'accessing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { return "Implementors";}, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLImplementorsListWidget)})},args: [],source: "label\x0a\x09^ 'Implementors'",messageSends: [],referencedClasses: []}),smalltalk.HLImplementorsListWidget);smalltalk.addMethod(smalltalk.method({selector: "onSearchReferences:",category: 'reactions',fn: function (aString){var self=this;return smalltalk.withContext(function($ctx1) { self._selectItem_(nil);self._items_(_st(self._model())._implementorsOf_(aString));self._refresh();return self}, function($ctx1) {$ctx1.fill(self,"onSearchReferences:",{aString:aString},smalltalk.HLImplementorsListWidget)})},args: ["aString"],source: "onSearchReferences: aString\x0a\x09self selectItem: nil.\x0a\x09self items: (self model implementorsOf: aString).\x0a\x09self refresh",messageSends: ["selectItem:", "items:", "implementorsOf:", "model", "refresh"],referencedClasses: []}),smalltalk.HLImplementorsListWidget);smalltalk.addClass('HLRegexpListWidget', smalltalk.HLReferencesListWidget, [], 'Helios-References');smalltalk.addMethod(smalltalk.method({selector: "label",category: 'accessing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { return "Source search";}, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLRegexpListWidget)})},args: [],source: "label\x0a\x09^ 'Source search'",messageSends: [],referencedClasses: []}),smalltalk.HLRegexpListWidget);smalltalk.addMethod(smalltalk.method({selector: "onSearchReferences:",category: 'reactions',fn: function (aString){var self=this;return smalltalk.withContext(function($ctx1) { self._selectItem_(nil);self._items_(_st(self._model())._regexpReferencesOf_(aString));self._refresh();return self}, function($ctx1) {$ctx1.fill(self,"onSearchReferences:",{aString:aString},smalltalk.HLRegexpListWidget)})},args: ["aString"],source: "onSearchReferences: aString\x0a\x09self selectItem: nil.\x0a\x09self items: (self model regexpReferencesOf: aString).\x0a\x09self refresh",messageSends: ["selectItem:", "items:", "regexpReferencesOf:", "model", "refresh"],referencedClasses: []}),smalltalk.HLRegexpListWidget);smalltalk.addClass('HLSendersListWidget', smalltalk.HLReferencesListWidget, [], 'Helios-References');smalltalk.addMethod(smalltalk.method({selector: "label",category: 'accessing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { return "Senders";}, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLSendersListWidget)})},args: [],source: "label\x0a\x09^ 'Senders'",messageSends: [],referencedClasses: []}),smalltalk.HLSendersListWidget);smalltalk.addMethod(smalltalk.method({selector: "onSearchReferences:",category: 'reactions',fn: function (aString){var self=this;return smalltalk.withContext(function($ctx1) { self._selectItem_(nil);self._items_(_st(self._model())._sendersOf_(aString));self._refresh();return self}, function($ctx1) {$ctx1.fill(self,"onSearchReferences:",{aString:aString},smalltalk.HLSendersListWidget)})},args: ["aString"],source: "onSearchReferences: aString\x0a\x09self selectItem: nil.\x0a\x09self items: (self model sendersOf: aString).\x0a\x09self refresh",messageSends: ["selectItem:", "items:", "sendersOf:", "model", "refresh"],referencedClasses: []}),smalltalk.HLSendersListWidget);smalltalk.addClass('HLReferencesModel', smalltalk.HLToolModel, ['methodsCache', 'classesAndMetaclassesCache'], 'Helios-References');smalltalk.addMethod(smalltalk.method({selector: "allMethods",category: 'accessing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { var $1;$1=self._methodsCache();return $1;}, function($ctx1) {$ctx1.fill(self,"allMethods",{},smalltalk.HLReferencesModel)})},args: [],source: "allMethods\x0a\x09^ self methodsCache",messageSends: ["methodsCache"],referencedClasses: []}),smalltalk.HLReferencesModel);smalltalk.addMethod(smalltalk.method({selector: "allSelectors",category: 'accessing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { var $1;$1=_st(_st(self._allMethods())._collect_((function(each){return smalltalk.withContext(function($ctx2) {return _st(each)._selector();}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._asSet();return $1;}, function($ctx1) {$ctx1.fill(self,"allSelectors",{},smalltalk.HLReferencesModel)})},args: [],source: "allSelectors\x0a\x09^ (self allMethods \x0a\x09\x09collect: [ :each | each selector ])\x0a\x09\x09asSet",messageSends: ["asSet", "collect:", "selector", "allMethods"],referencedClasses: []}),smalltalk.HLReferencesModel);smalltalk.addMethod(smalltalk.method({selector: "classReferencesOf:",category: 'accessing',fn: function (aString){var self=this;var references;function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}return smalltalk.withContext(function($ctx1) { var $1,$2;references=_st($OrderedCollection())._new();_st(self._classesAndMetaclasses())._do_((function(each){return smalltalk.withContext(function($ctx2) {return _st(_st(_st(each)._methodDictionary())._values())._do_((function(method){return smalltalk.withContext(function($ctx3) {$1=_st(_st(method)._referencedClasses())._includes_(aString);if(smalltalk.assert($1)){return _st(references)._add_(method);};}, function($ctx3) {$ctx3.fillBlock({method:method},$ctx2)})}));}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));$2=references;return $2;}, function($ctx1) {$ctx1.fill(self,"classReferencesOf:",{aString:aString,references:references},smalltalk.HLReferencesModel)})},args: ["aString"],source: "classReferencesOf: aString\x0a\x09\x22Answer all methods referencing the class named aString\x22\x0a\x09\x0a\x09| references |\x0a\x09\x0a\x09references := OrderedCollection new.\x0a\x09\x0a\x09self classesAndMetaclasses do: [ :each |\x0a\x09\x09each methodDictionary values do: [ :method |\x0a\x09\x09\x09(method referencedClasses includes: aString) ifTrue: [\x0a\x09\x09\x09\x09references add: method ] ] ].\x0a\x09\x09\x09\x09\x0a\x09^ references",messageSends: ["new", "do:", "ifTrue:", "add:", "includes:", "referencedClasses", "values", "methodDictionary", "classesAndMetaclasses"],referencedClasses: ["OrderedCollection"]}),smalltalk.HLReferencesModel);smalltalk.addMethod(smalltalk.method({selector: "classesAndMetaclasses",category: 'accessing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { var $1;$1=self._classesAndMetaclassesCache();return $1;}, function($ctx1) {$ctx1.fill(self,"classesAndMetaclasses",{},smalltalk.HLReferencesModel)})},args: [],source: "classesAndMetaclasses\x0a\x09^ self classesAndMetaclassesCache",messageSends: ["classesAndMetaclassesCache"],referencedClasses: []}),smalltalk.HLReferencesModel);smalltalk.addMethod(smalltalk.method({selector: "classesAndMetaclassesCache",category: 'cache',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { var $1,$2;$1=self["@classesAndMetaclassesCache"];if(($receiver = $1) == nil || $receiver == undefined){self._updateClassesAndMetaclassesCache();} else {$1;};$2=self["@classesAndMetaclassesCache"];return $2;}, function($ctx1) {$ctx1.fill(self,"classesAndMetaclassesCache",{},smalltalk.HLReferencesModel)})},args: [],source: "classesAndMetaclassesCache\x0a\x09classesAndMetaclassesCache ifNil: [ self updateClassesAndMetaclassesCache ].\x0a\x09\x0a\x09^ classesAndMetaclassesCache",messageSends: ["ifNil:", "updateClassesAndMetaclassesCache"],referencedClasses: []}),smalltalk.HLReferencesModel);smalltalk.addMethod(smalltalk.method({selector: "implementorsOf:",category: 'accessing',fn: function (aString){var self=this;return smalltalk.withContext(function($ctx1) { var $1;$1=_st(_st(self._allMethods())._select_((function(each){return smalltalk.withContext(function($ctx2) {return _st(_st(each)._selector()).__eq(aString);}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._collect_((function(each){return smalltalk.withContext(function($ctx2) {return self._methodReferenceOn_(each);}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));return $1;}, function($ctx1) {$ctx1.fill(self,"implementorsOf:",{aString:aString},smalltalk.HLReferencesModel)})},args: ["aString"],source: "implementorsOf: aString\x0a\x09^ (self allMethods select: [ :each |\x0a\x09\x09each selector = aString ])\x0a\x09\x09\x09collect: [ :each | self methodReferenceOn: each ]",messageSends: ["collect:", "methodReferenceOn:", "select:", "=", "selector", "allMethods"],referencedClasses: []}),smalltalk.HLReferencesModel);smalltalk.addMethod(smalltalk.method({selector: "isReferencesModel",category: 'testing',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { return true;}, function($ctx1) {$ctx1.fill(self,"isReferencesModel",{},smalltalk.HLReferencesModel)})},args: [],source: "isReferencesModel\x0a\x09^ true",messageSends: [],referencedClasses: []}),smalltalk.HLReferencesModel);smalltalk.addMethod(smalltalk.method({selector: "methodReferenceOn:",category: 'accessing',fn: function (aCompiledMethod){var self=this;function $HLMethodReference(){return smalltalk.HLMethodReference||(typeof HLMethodReference=="undefined"?nil:HLMethodReference)}return smalltalk.withContext(function($ctx1) { var $1;$1=_st($HLMethodReference())._on_(aCompiledMethod);return $1;}, function($ctx1) {$ctx1.fill(self,"methodReferenceOn:",{aCompiledMethod:aCompiledMethod},smalltalk.HLReferencesModel)})},args: ["aCompiledMethod"],source: "methodReferenceOn: aCompiledMethod\x0a\x09^ HLMethodReference on: aCompiledMethod",messageSends: ["on:"],referencedClasses: ["HLMethodReference"]}),smalltalk.HLReferencesModel);smalltalk.addMethod(smalltalk.method({selector: "methodsCache",category: 'cache',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { var $1,$2;$1=self["@methodsCache"];if(($receiver = $1) == nil || $receiver == undefined){self._updateMethodsCache();} else {$1;};$2=self["@methodsCache"];return $2;}, function($ctx1) {$ctx1.fill(self,"methodsCache",{},smalltalk.HLReferencesModel)})},args: [],source: "methodsCache\x0a\x09methodsCache ifNil: [ self updateMethodsCache ].\x0a\x09\x0a\x09^ methodsCache",messageSends: ["ifNil:", "updateMethodsCache"],referencedClasses: []}),smalltalk.HLReferencesModel);smalltalk.addMethod(smalltalk.method({selector: "regexpReferencesOf:",category: 'accessing',fn: function (aString){var self=this;return smalltalk.withContext(function($ctx1) { var $1;$1=_st(_st(self._allMethods())._select_((function(each){return smalltalk.withContext(function($ctx2) {return _st(_st(each)._source())._match_(aString);}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._collect_((function(each){return smalltalk.withContext(function($ctx2) {return self._methodReferenceOn_(each);}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));return $1;}, function($ctx1) {$ctx1.fill(self,"regexpReferencesOf:",{aString:aString},smalltalk.HLReferencesModel)})},args: ["aString"],source: "regexpReferencesOf: aString\x0a\x09^ (self allMethods select: [ :each |\x0a\x09\x09each source match: aString ])\x0a\x09\x09\x09collect: [ :each | self methodReferenceOn: each ]",messageSends: ["collect:", "methodReferenceOn:", "select:", "match:", "source", "allMethods"],referencedClasses: []}),smalltalk.HLReferencesModel);smalltalk.addMethod(smalltalk.method({selector: "search:",category: 'actions',fn: function (aString){var self=this;function $HLSearchReferences(){return smalltalk.HLSearchReferences||(typeof HLSearchReferences=="undefined"?nil:HLSearchReferences)}return smalltalk.withContext(function($ctx1) { var $1,$2;self._updateCaches();$1=_st($HLSearchReferences())._new();_st($1)._searchString_(aString);$2=_st($1)._yourself();_st(self._announcer())._announce_($2);return self}, function($ctx1) {$ctx1.fill(self,"search:",{aString:aString},smalltalk.HLReferencesModel)})},args: ["aString"],source: "search: aString\x0a\x09self updateCaches.\x0a\x09\x0a\x09self announcer announce: (HLSearchReferences new\x0a\x09\x09searchString: aString;\x0a\x09\x09yourself)",messageSends: ["updateCaches", "announce:", "searchString:", "new", "yourself", "announcer"],referencedClasses: ["HLSearchReferences"]}),smalltalk.HLReferencesModel);smalltalk.addMethod(smalltalk.method({selector: "sendersOf:",category: 'accessing',fn: function (aString){var self=this;return smalltalk.withContext(function($ctx1) { var $1;$1=_st(_st(self._allMethods())._select_((function(each){return smalltalk.withContext(function($ctx2) {return _st(_st(each)._messageSends())._includes_(aString);}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._collect_((function(each){return smalltalk.withContext(function($ctx2) {return self._methodReferenceOn_(each);}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));return $1;}, function($ctx1) {$ctx1.fill(self,"sendersOf:",{aString:aString},smalltalk.HLReferencesModel)})},args: ["aString"],source: "sendersOf: aString\x0a\x09^ (self allMethods select: [ :each |\x0a\x09\x09each messageSends includes: aString ])\x0a\x09\x09\x09collect: [ :each | self methodReferenceOn: each ]",messageSends: ["collect:", "methodReferenceOn:", "select:", "includes:", "messageSends", "allMethods"],referencedClasses: []}),smalltalk.HLReferencesModel);smalltalk.addMethod(smalltalk.method({selector: "updateCaches",category: 'cache',fn: function (){var self=this;return smalltalk.withContext(function($ctx1) { var $1,$2;$1=self;_st($1)._updateClassesAndMetaclassesCache();$2=_st($1)._updateMethodsCache();return self}, function($ctx1) {$ctx1.fill(self,"updateCaches",{},smalltalk.HLReferencesModel)})},args: [],source: "updateCaches\x0a\x09self \x0a\x09\x09updateClassesAndMetaclassesCache;\x0a\x09\x09updateMethodsCache",messageSends: ["updateClassesAndMetaclassesCache", "updateMethodsCache"],referencedClasses: []}),smalltalk.HLReferencesModel);smalltalk.addMethod(smalltalk.method({selector: "updateClassesAndMetaclassesCache",category: 'cache',fn: function (){var self=this;function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}return smalltalk.withContext(function($ctx1) { var $1,$2;self["@classesAndMetaclassesCache"]=_st(_st(self._environment())._classes())._inject_into_(_st($OrderedCollection())._new(),(function(acc,each){return smalltalk.withContext(function($ctx2) {$1=acc;_st($1)._add_(each);_st($1)._add_(_st(each)._class());$2=_st($1)._yourself();return $2;}, function($ctx2) {$ctx2.fillBlock({acc:acc,each:each},$ctx1)})}));return self}, function($ctx1) {$ctx1.fill(self,"updateClassesAndMetaclassesCache",{},smalltalk.HLReferencesModel)})},args: [],source: "updateClassesAndMetaclassesCache\x0a\x09classesAndMetaclassesCache := self environment classes \x0a\x09\x09inject: OrderedCollection new \x0a\x09\x09into: [ :acc :each |\x0a\x09\x09\x09acc \x0a\x09\x09\x09\x09add: each; \x0a\x09\x09\x09\x09add: each class;\x0a\x09\x09\x09\x09yourself ]",messageSends: ["inject:into:", "new", "add:", "class", "yourself", "classes", "environment"],referencedClasses: ["OrderedCollection"]}),smalltalk.HLReferencesModel);smalltalk.addMethod(smalltalk.method({selector: "updateMethodsCache",category: 'cache',fn: function (){var self=this;function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}return smalltalk.withContext(function($ctx1) { self["@methodsCache"]=_st(self._classesAndMetaclasses())._inject_into_(_st($OrderedCollection())._new(),(function(acc,each){return smalltalk.withContext(function($ctx2) {return _st(acc).__comma(_st(each)._methods());}, function($ctx2) {$ctx2.fillBlock({acc:acc,each:each},$ctx1)})}));return self}, function($ctx1) {$ctx1.fill(self,"updateMethodsCache",{},smalltalk.HLReferencesModel)})},args: [],source: "updateMethodsCache\x0a\x09methodsCache := self classesAndMetaclasses\x0a\x09\x09inject: OrderedCollection new\x0a\x09\x09into: [ :acc :each |\x0a\x09\x09\x09acc, each methods ]",messageSends: ["inject:into:", "new", ",", "methods", "classesAndMetaclasses"],referencedClasses: ["OrderedCollection"]}),smalltalk.HLReferencesModel);});
 |