Helios-Workspace.deploy.js 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322
  1. smalltalk.addPackage('Helios-Workspace');
  2. smalltalk.addClass('HLCodeModel', smalltalk.Object, ['announcer', 'environment', 'receiver'], 'Helios-Workspace');
  3. smalltalk.addMethod(
  4. smalltalk.method({
  5. selector: "announcer",
  6. fn: function (){
  7. var self=this;
  8. function $Announcer(){return smalltalk.Announcer||(typeof Announcer=="undefined"?nil:Announcer)}
  9. return smalltalk.withContext(function($ctx1) {
  10. var $2,$1;
  11. $2=self["@announcer"];
  12. if(($receiver = $2) == nil || $receiver == undefined){
  13. self["@announcer"]=_st($Announcer())._new();
  14. $1=self["@announcer"];
  15. } else {
  16. $1=$2;
  17. };
  18. return $1;
  19. }, function($ctx1) {$ctx1.fill(self,"announcer",{},smalltalk.HLCodeModel)})},
  20. messageSends: ["ifNil:", "new"]}),
  21. smalltalk.HLCodeModel);
  22. smalltalk.addMethod(
  23. smalltalk.method({
  24. selector: "defaultReceiver",
  25. fn: function (){
  26. var self=this;
  27. function $DoIt(){return smalltalk.DoIt||(typeof DoIt=="undefined"?nil:DoIt)}
  28. return smalltalk.withContext(function($ctx1) {
  29. var $1;
  30. $1=_st($DoIt())._new();
  31. return $1;
  32. }, function($ctx1) {$ctx1.fill(self,"defaultReceiver",{},smalltalk.HLCodeModel)})},
  33. messageSends: ["new"]}),
  34. smalltalk.HLCodeModel);
  35. smalltalk.addMethod(
  36. smalltalk.method({
  37. selector: "doIt:",
  38. fn: function (someCode){
  39. var self=this;
  40. return smalltalk.withContext(function($ctx1) {
  41. var $1;
  42. $1=_st(_st(self)._environment())._eval_on_(someCode,_st(self)._receiver());
  43. return $1;
  44. }, function($ctx1) {$ctx1.fill(self,"doIt:",{someCode:someCode},smalltalk.HLCodeModel)})},
  45. messageSends: ["eval:on:", "receiver", "environment"]}),
  46. smalltalk.HLCodeModel);
  47. smalltalk.addMethod(
  48. smalltalk.method({
  49. selector: "environment",
  50. fn: function (){
  51. var self=this;
  52. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  53. return smalltalk.withContext(function($ctx1) {
  54. var $2,$1;
  55. $2=self["@environment"];
  56. if(($receiver = $2) == nil || $receiver == undefined){
  57. $1=_st(_st($HLManager())._current())._environment();
  58. } else {
  59. $1=$2;
  60. };
  61. return $1;
  62. }, function($ctx1) {$ctx1.fill(self,"environment",{},smalltalk.HLCodeModel)})},
  63. messageSends: ["ifNil:", "environment", "current"]}),
  64. smalltalk.HLCodeModel);
  65. smalltalk.addMethod(
  66. smalltalk.method({
  67. selector: "environment:",
  68. fn: function (anEnvironment){
  69. var self=this;
  70. return smalltalk.withContext(function($ctx1) {
  71. self["@environment"]=anEnvironment;
  72. return self}, function($ctx1) {$ctx1.fill(self,"environment:",{anEnvironment:anEnvironment},smalltalk.HLCodeModel)})},
  73. messageSends: []}),
  74. smalltalk.HLCodeModel);
  75. smalltalk.addMethod(
  76. smalltalk.method({
  77. selector: "receiver",
  78. fn: function (){
  79. var self=this;
  80. return smalltalk.withContext(function($ctx1) {
  81. var $2,$1;
  82. $2=self["@receiver"];
  83. if(($receiver = $2) == nil || $receiver == undefined){
  84. self["@receiver"]=_st(self)._defaultReceiver();
  85. $1=self["@receiver"];
  86. } else {
  87. $1=$2;
  88. };
  89. return $1;
  90. }, function($ctx1) {$ctx1.fill(self,"receiver",{},smalltalk.HLCodeModel)})},
  91. messageSends: ["ifNil:", "defaultReceiver"]}),
  92. smalltalk.HLCodeModel);
  93. smalltalk.addMethod(
  94. smalltalk.method({
  95. selector: "receiver:",
  96. fn: function (anObject){
  97. var self=this;
  98. return smalltalk.withContext(function($ctx1) {
  99. self["@receiver"]=anObject;
  100. return self}, function($ctx1) {$ctx1.fill(self,"receiver:",{anObject:anObject},smalltalk.HLCodeModel)})},
  101. messageSends: []}),
  102. smalltalk.HLCodeModel);
  103. smalltalk.addMethod(
  104. smalltalk.method({
  105. selector: "subscribe:",
  106. fn: function (aWidget){
  107. var self=this;
  108. return smalltalk.withContext(function($ctx1) {
  109. _st(aWidget)._subscribeTo_(_st(self)._announcer());
  110. return self}, function($ctx1) {$ctx1.fill(self,"subscribe:",{aWidget:aWidget},smalltalk.HLCodeModel)})},
  111. messageSends: ["subscribeTo:", "announcer"]}),
  112. smalltalk.HLCodeModel);
  113. smalltalk.addMethod(
  114. smalltalk.method({
  115. selector: "on:",
  116. fn: function (anEnvironment){
  117. var self=this;
  118. return smalltalk.withContext(function($ctx1) {
  119. var $2,$3,$1;
  120. $2=_st(self)._new();
  121. _st($2)._environment_(anEnvironment);
  122. $3=_st($2)._yourself();
  123. $1=$3;
  124. return $1;
  125. }, function($ctx1) {$ctx1.fill(self,"on:",{anEnvironment:anEnvironment},smalltalk.HLCodeModel.klass)})},
  126. messageSends: ["environment:", "new", "yourself"]}),
  127. smalltalk.HLCodeModel.klass);
  128. smalltalk.addClass('HLCodeWidget', smalltalk.HLWidget, ['model', 'wrapper', 'code', 'editor'], 'Helios-Workspace');
  129. smalltalk.addMethod(
  130. smalltalk.method({
  131. selector: "announcer",
  132. fn: function (){
  133. var self=this;
  134. return smalltalk.withContext(function($ctx1) {
  135. var $1;
  136. $1=_st(_st(self)._model())._announcer();
  137. return $1;
  138. }, function($ctx1) {$ctx1.fill(self,"announcer",{},smalltalk.HLCodeWidget)})},
  139. messageSends: ["announcer", "model"]}),
  140. smalltalk.HLCodeWidget);
  141. smalltalk.addMethod(
  142. smalltalk.method({
  143. selector: "canHaveFocus",
  144. fn: function (){
  145. var self=this;
  146. return smalltalk.withContext(function($ctx1) {
  147. return true;
  148. }, function($ctx1) {$ctx1.fill(self,"canHaveFocus",{},smalltalk.HLCodeWidget)})},
  149. messageSends: []}),
  150. smalltalk.HLCodeWidget);
  151. smalltalk.addMethod(
  152. smalltalk.method({
  153. selector: "clear",
  154. fn: function (){
  155. var self=this;
  156. return smalltalk.withContext(function($ctx1) {
  157. _st(self)._contents_("");
  158. return self}, function($ctx1) {$ctx1.fill(self,"clear",{},smalltalk.HLCodeWidget)})},
  159. messageSends: ["contents:"]}),
  160. smalltalk.HLCodeWidget);
  161. smalltalk.addMethod(
  162. smalltalk.method({
  163. selector: "configureEditor",
  164. fn: function (){
  165. var self=this;
  166. return smalltalk.withContext(function($ctx1) {
  167. _st(_st(self)._editor())._at_put_("amberCodeWidget",self);
  168. return self}, function($ctx1) {$ctx1.fill(self,"configureEditor",{},smalltalk.HLCodeWidget)})},
  169. messageSends: ["at:put:", "editor"]}),
  170. smalltalk.HLCodeWidget);
  171. smalltalk.addMethod(
  172. smalltalk.method({
  173. selector: "contents",
  174. fn: function (){
  175. var self=this;
  176. return smalltalk.withContext(function($ctx1) {
  177. var $1;
  178. $1=_st(self["@editor"])._getValue();
  179. return $1;
  180. }, function($ctx1) {$ctx1.fill(self,"contents",{},smalltalk.HLCodeWidget)})},
  181. messageSends: ["getValue"]}),
  182. smalltalk.HLCodeWidget);
  183. smalltalk.addMethod(
  184. smalltalk.method({
  185. selector: "contents:",
  186. fn: function (aString){
  187. var self=this;
  188. return smalltalk.withContext(function($ctx1) {
  189. _st(self["@editor"])._setValue_(aString);
  190. return self}, function($ctx1) {$ctx1.fill(self,"contents:",{aString:aString},smalltalk.HLCodeWidget)})},
  191. messageSends: ["setValue:"]}),
  192. smalltalk.HLCodeWidget);
  193. smalltalk.addMethod(
  194. smalltalk.method({
  195. selector: "currentLine",
  196. fn: function (){
  197. var self=this;
  198. return smalltalk.withContext(function($ctx1) {
  199. var $1;
  200. $1=_st(self["@editor"])._getLine_(_st(_st(self["@editor"])._getCursor())._line());
  201. return $1;
  202. }, function($ctx1) {$ctx1.fill(self,"currentLine",{},smalltalk.HLCodeWidget)})},
  203. messageSends: ["getLine:", "line", "getCursor"]}),
  204. smalltalk.HLCodeWidget);
  205. smalltalk.addMethod(
  206. smalltalk.method({
  207. selector: "currentLineOrSelection",
  208. fn: function (){
  209. var self=this;
  210. return smalltalk.withContext(function($ctx1) {
  211. var $2,$1;
  212. $2=_st(self["@editor"])._somethingSelected();
  213. if(smalltalk.assert($2)){
  214. $1=_st(self)._selection();
  215. } else {
  216. $1=_st(self)._currentLine();
  217. };
  218. return $1;
  219. }, function($ctx1) {$ctx1.fill(self,"currentLineOrSelection",{},smalltalk.HLCodeWidget)})},
  220. messageSends: ["ifFalse:ifTrue:", "currentLine", "selection", "somethingSelected"]}),
  221. smalltalk.HLCodeWidget);
  222. smalltalk.addMethod(
  223. smalltalk.method({
  224. selector: "doIt",
  225. fn: function (){
  226. var self=this;
  227. var result;
  228. function $HLDoItRequested(){return smalltalk.HLDoItRequested||(typeof HLDoItRequested=="undefined"?nil:HLDoItRequested)}
  229. function $HLDoItExecuted(){return smalltalk.HLDoItExecuted||(typeof HLDoItExecuted=="undefined"?nil:HLDoItExecuted)}
  230. return smalltalk.withContext(function($ctx1) {
  231. var $1;
  232. _st(_st(self)._announcer())._announce_(_st($HLDoItRequested())._on_(self["@model"]));
  233. result=_st(self["@model"])._doIt_(_st(self)._currentLineOrSelection());
  234. _st(_st(self)._announcer())._announce_(_st($HLDoItExecuted())._on_(self["@model"]));
  235. $1=result;
  236. return $1;
  237. }, function($ctx1) {$ctx1.fill(self,"doIt",{result:result},smalltalk.HLCodeWidget)})},
  238. messageSends: ["announce:", "on:", "announcer", "doIt:", "currentLineOrSelection"]}),
  239. smalltalk.HLCodeWidget);
  240. smalltalk.addMethod(
  241. smalltalk.method({
  242. selector: "editor",
  243. fn: function (){
  244. var self=this;
  245. return smalltalk.withContext(function($ctx1) {
  246. var $1;
  247. $1=self["@editor"];
  248. return $1;
  249. }, function($ctx1) {$ctx1.fill(self,"editor",{},smalltalk.HLCodeWidget)})},
  250. messageSends: []}),
  251. smalltalk.HLCodeWidget);
  252. smalltalk.addMethod(
  253. smalltalk.method({
  254. selector: "focus",
  255. fn: function (){
  256. var self=this;
  257. return smalltalk.withContext(function($ctx1) {
  258. _st(self["@editor"])._focus();
  259. return self}, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLCodeWidget)})},
  260. messageSends: ["focus"]}),
  261. smalltalk.HLCodeWidget);
  262. smalltalk.addMethod(
  263. smalltalk.method({
  264. selector: "hasFocus",
  265. fn: function (){
  266. var self=this;
  267. return smalltalk.withContext(function($ctx1) {
  268. var $1;
  269. $1=_st(_st(self["@code"])._asJQuery())._is_(":active");
  270. return $1;
  271. }, function($ctx1) {$ctx1.fill(self,"hasFocus",{},smalltalk.HLCodeWidget)})},
  272. messageSends: ["is:", "asJQuery"]}),
  273. smalltalk.HLCodeWidget);
  274. smalltalk.addMethod(
  275. smalltalk.method({
  276. selector: "inspectIt",
  277. fn: function (){
  278. var self=this;
  279. var newInspector;
  280. function $HLInspectItRequested(){return smalltalk.HLInspectItRequested||(typeof HLInspectItRequested=="undefined"?nil:HLInspectItRequested)}
  281. return smalltalk.withContext(function($ctx1) {
  282. _st(_st(self)._announcer())._announce_(_st($HLInspectItRequested())._on_(self["@model"]));
  283. newInspector=_st(self)._makeInspectorOn_(_st(self)._doIt());
  284. _st(newInspector)._open();
  285. return self}, function($ctx1) {$ctx1.fill(self,"inspectIt",{newInspector:newInspector},smalltalk.HLCodeWidget)})},
  286. messageSends: ["announce:", "on:", "announcer", "makeInspectorOn:", "doIt", "open"]}),
  287. smalltalk.HLCodeWidget);
  288. smalltalk.addMethod(
  289. smalltalk.method({
  290. selector: "makeInspectorOn:",
  291. fn: function (anObject){
  292. var self=this;
  293. function $HLInspector(){return smalltalk.HLInspector||(typeof HLInspector=="undefined"?nil:HLInspector)}
  294. return smalltalk.withContext(function($ctx1) {
  295. var $2,$3,$1;
  296. $2=_st($HLInspector())._new();
  297. _st($2)._inspect_(anObject);
  298. $3=_st($2)._yourself();
  299. $1=$3;
  300. return $1;
  301. }, function($ctx1) {$ctx1.fill(self,"makeInspectorOn:",{anObject:anObject},smalltalk.HLCodeWidget)})},
  302. messageSends: ["inspect:", "new", "yourself"]}),
  303. smalltalk.HLCodeWidget);
  304. smalltalk.addMethod(
  305. smalltalk.method({
  306. selector: "messageHintFor:token:",
  307. fn: function (anEditor,aToken){
  308. var self=this;
  309. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  310. return smalltalk.withContext(function($ctx1) {
  311. var $1;
  312. $1=_st(_st(_st(_st(_st(_st(_st($Smalltalk())._current())._at_("allSelectors"))._value())._asSet())._asArray())._select_((function(each){
  313. return smalltalk.withContext(function($ctx2) {
  314. return _st(each)._includesSubString_(_st(aToken)._string());
  315. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._reject_((function(each){
  316. return smalltalk.withContext(function($ctx2) {
  317. return _st(each).__eq(_st(aToken)._string());
  318. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  319. return $1;
  320. }, function($ctx1) {$ctx1.fill(self,"messageHintFor:token:",{anEditor:anEditor,aToken:aToken},smalltalk.HLCodeWidget)})},
  321. messageSends: ["reject:", "=", "string", "select:", "includesSubString:", "asArray", "asSet", "value", "at:", "current"]}),
  322. smalltalk.HLCodeWidget);
  323. smalltalk.addMethod(
  324. smalltalk.method({
  325. selector: "model",
  326. fn: function (){
  327. var self=this;
  328. function $HLCodeModel(){return smalltalk.HLCodeModel||(typeof HLCodeModel=="undefined"?nil:HLCodeModel)}
  329. return smalltalk.withContext(function($ctx1) {
  330. var $2,$1;
  331. $2=self["@model"];
  332. if(($receiver = $2) == nil || $receiver == undefined){
  333. self["@model"]=_st($HLCodeModel())._new();
  334. $1=self["@model"];
  335. } else {
  336. $1=$2;
  337. };
  338. return $1;
  339. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLCodeWidget)})},
  340. messageSends: ["ifNil:", "new"]}),
  341. smalltalk.HLCodeWidget);
  342. smalltalk.addMethod(
  343. smalltalk.method({
  344. selector: "model:",
  345. fn: function (aModel){
  346. var self=this;
  347. return smalltalk.withContext(function($ctx1) {
  348. self["@model"]=aModel;
  349. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLCodeWidget)})},
  350. messageSends: []}),
  351. smalltalk.HLCodeWidget);
  352. smalltalk.addMethod(
  353. smalltalk.method({
  354. selector: "onDoIt",
  355. fn: function (){
  356. var self=this;
  357. return smalltalk.withContext(function($ctx1) {
  358. _st(self)._doIt();
  359. return self}, function($ctx1) {$ctx1.fill(self,"onDoIt",{},smalltalk.HLCodeWidget)})},
  360. messageSends: ["doIt"]}),
  361. smalltalk.HLCodeWidget);
  362. smalltalk.addMethod(
  363. smalltalk.method({
  364. selector: "onInspectIt",
  365. fn: function (){
  366. var self=this;
  367. return smalltalk.withContext(function($ctx1) {
  368. _st(self)._inspectIt();
  369. return self}, function($ctx1) {$ctx1.fill(self,"onInspectIt",{},smalltalk.HLCodeWidget)})},
  370. messageSends: ["inspectIt"]}),
  371. smalltalk.HLCodeWidget);
  372. smalltalk.addMethod(
  373. smalltalk.method({
  374. selector: "onPrintIt",
  375. fn: function (){
  376. var self=this;
  377. return smalltalk.withContext(function($ctx1) {
  378. _st(self)._printIt();
  379. return self}, function($ctx1) {$ctx1.fill(self,"onPrintIt",{},smalltalk.HLCodeWidget)})},
  380. messageSends: ["printIt"]}),
  381. smalltalk.HLCodeWidget);
  382. smalltalk.addMethod(
  383. smalltalk.method({
  384. selector: "onSaveIt",
  385. fn: function (){
  386. var self=this;
  387. return smalltalk.withContext(function($ctx1) {
  388. return self}, function($ctx1) {$ctx1.fill(self,"onSaveIt",{},smalltalk.HLCodeWidget)})},
  389. messageSends: []}),
  390. smalltalk.HLCodeWidget);
  391. smalltalk.addMethod(
  392. smalltalk.method({
  393. selector: "print:",
  394. fn: function (aString){
  395. var self=this;
  396. var start,stop,currentLine;
  397. function $HashedCollection(){return smalltalk.HashedCollection||(typeof HashedCollection=="undefined"?nil:HashedCollection)}
  398. return smalltalk.withContext(function($ctx1) {
  399. currentLine=_st(_st(self["@editor"])._getCursor_(false))._line();
  400. start=_st($HashedCollection())._new();
  401. _st(start)._at_put_("line",currentLine);
  402. _st(start)._at_put_("ch",_st(_st(self["@editor"])._getCursor_(false))._ch());
  403. _st(_st(self["@editor"])._getSelection())._ifEmpty_((function(){
  404. return smalltalk.withContext(function($ctx2) {
  405. _st(start)._at_put_("ch",_st(_st(self["@editor"])._getLine_(currentLine))._size());
  406. return _st(self["@editor"])._setSelection_end_(smalltalk.HashedCollection._fromPairs_([_st("line").__minus_gt(currentLine),_st("ch").__minus_gt((0))]),start);
  407. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  408. stop=_st($HashedCollection())._new();
  409. _st(stop)._at_put_("line",currentLine);
  410. _st(stop)._at_put_("ch",_st(_st(_st(start)._at_("ch")).__plus(_st(aString)._size())).__plus((2)));
  411. _st(self["@editor"])._replaceSelection_(_st(_st(_st(_st(self["@editor"])._getSelection()).__comma(" ")).__comma(aString)).__comma(" "));
  412. _st(self["@editor"])._setCursor_(_st(self["@editor"])._getCursor_(true));
  413. _st(self["@editor"])._setSelection_end_(stop,start);
  414. return self}, function($ctx1) {$ctx1.fill(self,"print:",{aString:aString,start:start,stop:stop,currentLine:currentLine},smalltalk.HLCodeWidget)})},
  415. messageSends: ["line", "getCursor:", "new", "at:put:", "ch", "ifEmpty:", "size", "getLine:", "setSelection:end:", "->", "getSelection", "+", "at:", "replaceSelection:", ",", "setCursor:"]}),
  416. smalltalk.HLCodeWidget);
  417. smalltalk.addMethod(
  418. smalltalk.method({
  419. selector: "printIt",
  420. fn: function (){
  421. var self=this;
  422. var result;
  423. function $HLPrintItRequested(){return smalltalk.HLPrintItRequested||(typeof HLPrintItRequested=="undefined"?nil:HLPrintItRequested)}
  424. return smalltalk.withContext(function($ctx1) {
  425. result=_st(self)._doIt();
  426. _st(_st(self)._announcer())._announce_(_st($HLPrintItRequested())._on_(self["@model"]));
  427. _st(self)._print_(_st(result)._printString());
  428. _st(self)._focus();
  429. return self}, function($ctx1) {$ctx1.fill(self,"printIt",{result:result},smalltalk.HLCodeWidget)})},
  430. messageSends: ["doIt", "announce:", "on:", "announcer", "print:", "printString", "focus"]}),
  431. smalltalk.HLCodeWidget);
  432. smalltalk.addMethod(
  433. smalltalk.method({
  434. selector: "receiver",
  435. fn: function (){
  436. var self=this;
  437. return smalltalk.withContext(function($ctx1) {
  438. var $1;
  439. $1=_st(_st(self)._model())._receiver();
  440. return $1;
  441. }, function($ctx1) {$ctx1.fill(self,"receiver",{},smalltalk.HLCodeWidget)})},
  442. messageSends: ["receiver", "model"]}),
  443. smalltalk.HLCodeWidget);
  444. smalltalk.addMethod(
  445. smalltalk.method({
  446. selector: "receiver:",
  447. fn: function (anObject){
  448. var self=this;
  449. return smalltalk.withContext(function($ctx1) {
  450. _st(_st(self)._model())._receiver_(anObject);
  451. return self}, function($ctx1) {$ctx1.fill(self,"receiver:",{anObject:anObject},smalltalk.HLCodeWidget)})},
  452. messageSends: ["receiver:", "model"]}),
  453. smalltalk.HLCodeWidget);
  454. smalltalk.addMethod(
  455. smalltalk.method({
  456. selector: "renderContentOn:",
  457. fn: function (html){
  458. var self=this;
  459. return smalltalk.withContext(function($ctx1) {
  460. self["@code"]=_st(html)._textarea();
  461. _st(self)._setEditorOn_(_st(self["@code"])._element());
  462. _st(self)._configureEditor();
  463. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLCodeWidget)})},
  464. messageSends: ["textarea", "setEditorOn:", "element", "configureEditor"]}),
  465. smalltalk.HLCodeWidget);
  466. smalltalk.addMethod(
  467. smalltalk.method({
  468. selector: "saveIt",
  469. fn: function (){
  470. var self=this;
  471. return smalltalk.withContext(function($ctx1) {
  472. return self}, function($ctx1) {$ctx1.fill(self,"saveIt",{},smalltalk.HLCodeWidget)})},
  473. messageSends: []}),
  474. smalltalk.HLCodeWidget);
  475. smalltalk.addMethod(
  476. smalltalk.method({
  477. selector: "selection",
  478. fn: function (){
  479. var self=this;
  480. return smalltalk.withContext(function($ctx1) {
  481. var $1;
  482. $1=_st(self["@editor"])._getSelection();
  483. return $1;
  484. }, function($ctx1) {$ctx1.fill(self,"selection",{},smalltalk.HLCodeWidget)})},
  485. messageSends: ["getSelection"]}),
  486. smalltalk.HLCodeWidget);
  487. smalltalk.addMethod(
  488. smalltalk.method({
  489. selector: "selectionEnd",
  490. fn: function (){
  491. var self=this;
  492. return smalltalk.withContext(function($ctx1) {
  493. var $1;
  494. $1=_st(_st(self["@code"])._element())._selectionEnd();
  495. return $1;
  496. }, function($ctx1) {$ctx1.fill(self,"selectionEnd",{},smalltalk.HLCodeWidget)})},
  497. messageSends: ["selectionEnd", "element"]}),
  498. smalltalk.HLCodeWidget);
  499. smalltalk.addMethod(
  500. smalltalk.method({
  501. selector: "selectionEnd:",
  502. fn: function (anInteger){
  503. var self=this;
  504. return smalltalk.withContext(function($ctx1) {
  505. _st(_st(self["@code"])._element())._selectionEnd_(anInteger);
  506. return self}, function($ctx1) {$ctx1.fill(self,"selectionEnd:",{anInteger:anInteger},smalltalk.HLCodeWidget)})},
  507. messageSends: ["selectionEnd:", "element"]}),
  508. smalltalk.HLCodeWidget);
  509. smalltalk.addMethod(
  510. smalltalk.method({
  511. selector: "selectionStart",
  512. fn: function (){
  513. var self=this;
  514. return smalltalk.withContext(function($ctx1) {
  515. var $1;
  516. $1=_st(_st(self["@code"])._element())._selectionStart();
  517. return $1;
  518. }, function($ctx1) {$ctx1.fill(self,"selectionStart",{},smalltalk.HLCodeWidget)})},
  519. messageSends: ["selectionStart", "element"]}),
  520. smalltalk.HLCodeWidget);
  521. smalltalk.addMethod(
  522. smalltalk.method({
  523. selector: "selectionStart:",
  524. fn: function (anInteger){
  525. var self=this;
  526. return smalltalk.withContext(function($ctx1) {
  527. _st(_st(self["@code"])._element())._selectionStart_(anInteger);
  528. return self}, function($ctx1) {$ctx1.fill(self,"selectionStart:",{anInteger:anInteger},smalltalk.HLCodeWidget)})},
  529. messageSends: ["selectionStart:", "element"]}),
  530. smalltalk.HLCodeWidget);
  531. smalltalk.addMethod(
  532. smalltalk.method({
  533. selector: "setEditorOn:",
  534. fn: function (aTextarea){
  535. var self=this;
  536. return smalltalk.withContext(function($ctx1) {
  537. self['@editor'] = CodeMirror.fromTextArea(aTextarea, {
  538. theme: 'amber',
  539. lineNumbers: true,
  540. enterMode: 'flat',
  541. indentWithTabs: true,
  542. indentUnit: 4,
  543. matchBrackets: true,
  544. electricChars: false,
  545. keyMap: 'Amber',
  546. extraKeys: {"Shift-Space": "autocomplete"}
  547. });
  548. return self}, function($ctx1) {$ctx1.fill(self,"setEditorOn:",{aTextarea:aTextarea},smalltalk.HLCodeWidget)})},
  549. messageSends: []}),
  550. smalltalk.HLCodeWidget);
  551. smalltalk.addMethod(
  552. smalltalk.method({
  553. selector: "variableHintFor:token:",
  554. fn: function (anEditor,aToken){
  555. var self=this;
  556. var variables,classNames,pseudoVariables;
  557. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  558. return smalltalk.withContext(function($ctx1) {
  559. var $1;
  560. variables=_st(_st(_st(_st(window)._jQuery_(_st(_st(anEditor)._display())._wrapper()))._find_("span.cm-variable"))._get())._collect_((function(each){
  561. return smalltalk.withContext(function($ctx2) {
  562. return _st(_st(window)._jQuery_(each))._html();
  563. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  564. classNames=_st(_st(_st($Smalltalk())._current())._classes())._collect_((function(each){
  565. return smalltalk.withContext(function($ctx2) {
  566. return _st(each)._name();
  567. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  568. pseudoVariables=_st(_st($Smalltalk())._current())._pseudoVariableNames();
  569. $1=_st(_st(_st(_st(_st(_st(variables).__comma(classNames)).__comma(pseudoVariables))._asSet())._asArray())._select_((function(each){
  570. return smalltalk.withContext(function($ctx2) {
  571. return _st(each)._includesSubString_(_st(aToken)._string());
  572. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._reject_((function(each){
  573. return smalltalk.withContext(function($ctx2) {
  574. return _st(each).__eq(_st(aToken)._string());
  575. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  576. return $1;
  577. }, function($ctx1) {$ctx1.fill(self,"variableHintFor:token:",{anEditor:anEditor,aToken:aToken,variables:variables,classNames:classNames,pseudoVariables:pseudoVariables},smalltalk.HLCodeWidget)})},
  578. messageSends: ["collect:", "html", "jQuery:", "get", "find:", "wrapper", "display", "name", "classes", "current", "pseudoVariableNames", "reject:", "=", "string", "select:", "includesSubString:", "asArray", "asSet", ","]}),
  579. smalltalk.HLCodeWidget);
  580. smalltalk.addMethod(
  581. smalltalk.method({
  582. selector: "hintFor:options:",
  583. fn: function (anEditor,options){
  584. var self=this;
  585. var cursor,token,completions;
  586. function $CodeMirror(){return smalltalk.CodeMirror||(typeof CodeMirror=="undefined"?nil:CodeMirror)}
  587. function $HLCodeWidget(){return smalltalk.HLCodeWidget||(typeof HLCodeWidget=="undefined"?nil:HLCodeWidget)}
  588. return smalltalk.withContext(function($ctx1) {
  589. var $1,$2;
  590. cursor=_st(anEditor)._getCursor();
  591. token=_st(anEditor)._getTokenAt_(cursor);
  592. _st(token)._at_put_("state",_st(_st(_st($CodeMirror())._basicAt_("innerMode"))._value_value_(_st(anEditor)._getMode(),_st(token)._at_("state")))._state());
  593. $1=_st(_st(token)._type()).__eq("variable");
  594. if(smalltalk.assert($1)){
  595. completions=_st($HLCodeWidget())._variableHintFor_token_(anEditor,token);
  596. } else {
  597. completions=_st($HLCodeWidget())._messageHintFor_token_(anEditor,token);
  598. };
  599. $2=smalltalk.HashedCollection._fromPairs_([_st("list").__minus_gt(completions),_st("from").__minus_gt(_st(_st($CodeMirror())._basicAt_("Pos"))._value_value_(_st(cursor)._line(),_st(token)._end())),_st("to").__minus_gt(_st(_st($CodeMirror())._basicAt_("Pos"))._value_value_(_st(cursor)._line(),_st(token)._start()))]);
  600. return $2;
  601. }, function($ctx1) {$ctx1.fill(self,"hintFor:options:",{anEditor:anEditor,options:options,cursor:cursor,token:token,completions:completions},smalltalk.HLCodeWidget.klass)})},
  602. messageSends: ["getCursor", "getTokenAt:", "at:put:", "state", "value:value:", "getMode", "at:", "basicAt:", "ifTrue:ifFalse:", "variableHintFor:token:", "messageHintFor:token:", "=", "type", "->", "line", "end", "start"]}),
  603. smalltalk.HLCodeWidget.klass);
  604. smalltalk.addMethod(
  605. smalltalk.method({
  606. selector: "initialize",
  607. fn: function (){
  608. var self=this;
  609. return smalltalk.withContext(function($ctx1) {
  610. var $1,$2;
  611. smalltalk.HLWidget.klass.fn.prototype._initialize.apply(_st(self), []);
  612. $1=self;
  613. _st($1)._setupCodeMirror();
  614. _st($1)._setupCommands();
  615. $2=_st($1)._setupKeyMaps();
  616. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLCodeWidget.klass)})},
  617. messageSends: ["initialize", "setupCodeMirror", "setupCommands", "setupKeyMaps"]}),
  618. smalltalk.HLCodeWidget.klass);
  619. smalltalk.addMethod(
  620. smalltalk.method({
  621. selector: "keyMap",
  622. fn: function (){
  623. var self=this;
  624. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  625. return smalltalk.withContext(function($ctx1) {
  626. var $2,$1;
  627. $2=_st(_st(_st($HLManager())._current())._keyBinder())._systemIsMac();
  628. if(smalltalk.assert($2)){
  629. $1=_st(self)._macKeyMap();
  630. } else {
  631. $1=_st(self)._pcKeyMap();
  632. };
  633. return $1;
  634. }, function($ctx1) {$ctx1.fill(self,"keyMap",{},smalltalk.HLCodeWidget.klass)})},
  635. messageSends: ["ifTrue:ifFalse:", "macKeyMap", "pcKeyMap", "systemIsMac", "keyBinder", "current"]}),
  636. smalltalk.HLCodeWidget.klass);
  637. smalltalk.addMethod(
  638. smalltalk.method({
  639. selector: "macKeyMap",
  640. fn: function (){
  641. var self=this;
  642. return smalltalk.withContext(function($ctx1) {
  643. var $1;
  644. $1=smalltalk.HashedCollection._fromPairs_([_st("Alt-Backspace").__minus_gt("delWordBefore"),_st("Alt-Delete").__minus_gt("delWordAfter"),_st("Alt-Left").__minus_gt("goWordBoundaryLeft"),_st("Alt-Right").__minus_gt("goWordBoundaryRight"),_st("Cmd-A").__minus_gt("selectAll"),_st("Cmd-Alt-F").__minus_gt("replace"),_st("Cmd-D").__minus_gt("doIt"),_st("Cmd-Down").__minus_gt("goDocEnd"),_st("Cmd-End").__minus_gt("goDocEnd"),_st("Cmd-F").__minus_gt("find"),_st("Cmd-G").__minus_gt("findNext"),_st("Cmd-I").__minus_gt("inspectIt"),_st("Cmd-Left").__minus_gt("goLineStart"),_st("Cmd-P").__minus_gt("printIt"),_st("Cmd-Right").__minus_gt("goLineEnd"),_st("Cmd-S").__minus_gt("saveIt"),_st("Cmd-Up").__minus_gt("goDocStart"),_st("Cmd-Y").__minus_gt("redo"),_st("Cmd-Z").__minus_gt("undo"),_st("Cmd-[").__minus_gt("indentLess"),_st("Cmd-]").__minus_gt("indentMore"),_st("Ctrl-Alt-Backspace").__minus_gt("delWordAfter"),_st("Shift-Cmd-Alt-F").__minus_gt("replaceAll"),_st("Shift-Cmd-G").__minus_gt("findPrev"),_st("Shift-Cmd-Z").__minus_gt("redo"),_st("fallthrough").__minus_gt(["basic","emacsy"])]);
  645. return $1;
  646. }, function($ctx1) {$ctx1.fill(self,"macKeyMap",{},smalltalk.HLCodeWidget.klass)})},
  647. messageSends: ["->"]}),
  648. smalltalk.HLCodeWidget.klass);
  649. smalltalk.addMethod(
  650. smalltalk.method({
  651. selector: "messageHintFor:token:",
  652. fn: function (anEditor,aToken){
  653. var self=this;
  654. return smalltalk.withContext(function($ctx1) {
  655. var $1;
  656. $1=_st(_st(anEditor)._at_("amberCodeWidget"))._messageHintFor_token_(anEditor,aToken);
  657. return $1;
  658. }, function($ctx1) {$ctx1.fill(self,"messageHintFor:token:",{anEditor:anEditor,aToken:aToken},smalltalk.HLCodeWidget.klass)})},
  659. messageSends: ["messageHintFor:token:", "at:"]}),
  660. smalltalk.HLCodeWidget.klass);
  661. smalltalk.addMethod(
  662. smalltalk.method({
  663. selector: "pcKeyMap",
  664. fn: function (){
  665. var self=this;
  666. return smalltalk.withContext(function($ctx1) {
  667. var $1;
  668. $1=[_st("Alt-Left").__minus_gt("goLineStart"),_st("Alt-Right").__minus_gt("goLineEnd"),_st("Alt-Up").__minus_gt("goDocStart"),_st("Ctrl-A").__minus_gt("selectAll"),_st("Ctrl-Backspace").__minus_gt("delWordBefore"),_st("Ctrl-D").__minus_gt("doIt"),_st("Ctrl-Delete").__minus_gt("delWordAfter"),_st("Ctrl-Down").__minus_gt("goDocEnd"),_st("Ctrl-End").__minus_gt("goDocEnd"),_st("Ctrl-F").__minus_gt("find"),_st("Ctrl-G").__minus_gt("findNext"),_st("Ctrl-I").__minus_gt("inspectIt"),_st("Ctrl-Home").__minus_gt("goDocStart"),_st("Ctrl-Left").__minus_gt("goWordBoundaryLeft"),_st("Ctrl-P").__minus_gt("printIt"),_st("Ctrl-Right").__minus_gt("goWordBoundaryRight"),_st("Ctrl-S").__minus_gt("saveIt"),_st("Ctrl-Y").__minus_gt("redo"),_st("Ctrl-Z").__minus_gt("undo"),_st("Ctrl-[").__minus_gt("indentLess"),_st("Ctrl-]").__minus_gt("indentMore"),_st("Shift-Ctrl-F").__minus_gt("replace"),_st("Shift-Ctrl-G").__minus_gt("findPrev"),_st("Shift-Ctrl-R").__minus_gt("replaceAll"),_st("Shift-Ctrl-Z").__minus_gt("redo"),_st("fallthrough").__minus_gt(["basic"])];
  669. return $1;
  670. }, function($ctx1) {$ctx1.fill(self,"pcKeyMap",{},smalltalk.HLCodeWidget.klass)})},
  671. messageSends: ["->"]}),
  672. smalltalk.HLCodeWidget.klass);
  673. smalltalk.addMethod(
  674. smalltalk.method({
  675. selector: "setupCodeMirror",
  676. fn: function (){
  677. var self=this;
  678. return smalltalk.withContext(function($ctx1) {
  679. CodeMirror.keyMap.default.fallthrough = ["basic"];
  680. CodeMirror.commands.autocomplete = function(cm) {
  681. CodeMirror.showHint(cm, self._hintFor_options_);
  682. }
  683. ;
  684. return self}, function($ctx1) {$ctx1.fill(self,"setupCodeMirror",{},smalltalk.HLCodeWidget.klass)})},
  685. messageSends: []}),
  686. smalltalk.HLCodeWidget.klass);
  687. smalltalk.addMethod(
  688. smalltalk.method({
  689. selector: "setupCommands",
  690. fn: function (){
  691. var self=this;
  692. function $CodeMirror(){return smalltalk.CodeMirror||(typeof CodeMirror=="undefined"?nil:CodeMirror)}
  693. return smalltalk.withContext(function($ctx1) {
  694. var $1,$2;
  695. $1=_st($CodeMirror())._basicAt_("commands");
  696. _st($1)._at_put_("doIt",(function(cm){
  697. return smalltalk.withContext(function($ctx2) {
  698. return _st(_st(cm)._amberCodeWidget())._doIt();
  699. }, function($ctx2) {$ctx2.fillBlock({cm:cm},$ctx1)})}));
  700. _st($1)._at_put_("inspectIt",(function(cm){
  701. return smalltalk.withContext(function($ctx2) {
  702. return _st(_st(cm)._amberCodeWidget())._inspectIt();
  703. }, function($ctx2) {$ctx2.fillBlock({cm:cm},$ctx1)})}));
  704. _st($1)._at_put_("printIt",(function(cm){
  705. return smalltalk.withContext(function($ctx2) {
  706. return _st(_st(cm)._amberCodeWidget())._printIt();
  707. }, function($ctx2) {$ctx2.fillBlock({cm:cm},$ctx1)})}));
  708. $2=_st($1)._at_put_("saveIt",(function(cm){
  709. return smalltalk.withContext(function($ctx2) {
  710. return _st(_st(cm)._amberCodeWidget())._saveIt();
  711. }, function($ctx2) {$ctx2.fillBlock({cm:cm},$ctx1)})}));
  712. return self}, function($ctx1) {$ctx1.fill(self,"setupCommands",{},smalltalk.HLCodeWidget.klass)})},
  713. messageSends: ["at:put:", "doIt", "amberCodeWidget", "basicAt:", "inspectIt", "printIt", "saveIt"]}),
  714. smalltalk.HLCodeWidget.klass);
  715. smalltalk.addMethod(
  716. smalltalk.method({
  717. selector: "setupKeyMaps",
  718. fn: function (){
  719. var self=this;
  720. return smalltalk.withContext(function($ctx1) {
  721. CodeMirror.keyMap['Amber'] = self._keyMap();
  722. return self}, function($ctx1) {$ctx1.fill(self,"setupKeyMaps",{},smalltalk.HLCodeWidget.klass)})},
  723. messageSends: []}),
  724. smalltalk.HLCodeWidget.klass);
  725. smalltalk.addMethod(
  726. smalltalk.method({
  727. selector: "variableHintFor:token:",
  728. fn: function (anEditor,aToken){
  729. var self=this;
  730. return smalltalk.withContext(function($ctx1) {
  731. var $1;
  732. $1=_st(_st(anEditor)._at_("amberCodeWidget"))._variableHintFor_token_(anEditor,aToken);
  733. return $1;
  734. }, function($ctx1) {$ctx1.fill(self,"variableHintFor:token:",{anEditor:anEditor,aToken:aToken},smalltalk.HLCodeWidget.klass)})},
  735. messageSends: ["variableHintFor:token:", "at:"]}),
  736. smalltalk.HLCodeWidget.klass);
  737. smalltalk.addClass('HLSourceCodeWidget', smalltalk.HLCodeWidget, ['browserModel', 'methodContents'], 'Helios-Workspace');
  738. smalltalk.addMethod(
  739. smalltalk.method({
  740. selector: "browserModel",
  741. fn: function (){
  742. var self=this;
  743. return smalltalk.withContext(function($ctx1) {
  744. var $1;
  745. $1=self["@browserModel"];
  746. return $1;
  747. }, function($ctx1) {$ctx1.fill(self,"browserModel",{},smalltalk.HLSourceCodeWidget)})},
  748. messageSends: []}),
  749. smalltalk.HLSourceCodeWidget);
  750. smalltalk.addMethod(
  751. smalltalk.method({
  752. selector: "browserModel:",
  753. fn: function (aBrowserModel){
  754. var self=this;
  755. return smalltalk.withContext(function($ctx1) {
  756. var $1,$2;
  757. self["@browserModel"]=aBrowserModel;
  758. $1=self;
  759. _st($1)._observeSystem();
  760. $2=_st($1)._observeBrowserModel();
  761. return self}, function($ctx1) {$ctx1.fill(self,"browserModel:",{aBrowserModel:aBrowserModel},smalltalk.HLSourceCodeWidget)})},
  762. messageSends: ["observeSystem", "observeBrowserModel"]}),
  763. smalltalk.HLSourceCodeWidget);
  764. smalltalk.addMethod(
  765. smalltalk.method({
  766. selector: "hasModification",
  767. fn: function (){
  768. var self=this;
  769. return smalltalk.withContext(function($ctx1) {
  770. var $1;
  771. $1=_st(_st(_st(self)._methodContents()).__eq(_st(self)._contents()))._not();
  772. return $1;
  773. }, function($ctx1) {$ctx1.fill(self,"hasModification",{},smalltalk.HLSourceCodeWidget)})},
  774. messageSends: ["not", "=", "contents", "methodContents"]}),
  775. smalltalk.HLSourceCodeWidget);
  776. smalltalk.addMethod(
  777. smalltalk.method({
  778. selector: "methodContents",
  779. fn: function (){
  780. var self=this;
  781. return smalltalk.withContext(function($ctx1) {
  782. var $1;
  783. $1=self["@methodContents"];
  784. return $1;
  785. }, function($ctx1) {$ctx1.fill(self,"methodContents",{},smalltalk.HLSourceCodeWidget)})},
  786. messageSends: []}),
  787. smalltalk.HLSourceCodeWidget);
  788. smalltalk.addMethod(
  789. smalltalk.method({
  790. selector: "methodContents:",
  791. fn: function (aString){
  792. var self=this;
  793. return smalltalk.withContext(function($ctx1) {
  794. self["@methodContents"]=aString;
  795. return self}, function($ctx1) {$ctx1.fill(self,"methodContents:",{aString:aString},smalltalk.HLSourceCodeWidget)})},
  796. messageSends: []}),
  797. smalltalk.HLSourceCodeWidget);
  798. smalltalk.addMethod(
  799. smalltalk.method({
  800. selector: "observeBrowserModel",
  801. fn: function (){
  802. var self=this;
  803. function $HLSaveSourceCode(){return smalltalk.HLSaveSourceCode||(typeof HLSaveSourceCode=="undefined"?nil:HLSaveSourceCode)}
  804. function $HLParseErrorRaised(){return smalltalk.HLParseErrorRaised||(typeof HLParseErrorRaised=="undefined"?nil:HLParseErrorRaised)}
  805. function $HLCompileErrorRaised(){return smalltalk.HLCompileErrorRaised||(typeof HLCompileErrorRaised=="undefined"?nil:HLCompileErrorRaised)}
  806. function $HLUnknownVariableErrorRaised(){return smalltalk.HLUnknownVariableErrorRaised||(typeof HLUnknownVariableErrorRaised=="undefined"?nil:HLUnknownVariableErrorRaised)}
  807. function $HLInstVarAdded(){return smalltalk.HLInstVarAdded||(typeof HLInstVarAdded=="undefined"?nil:HLInstVarAdded)}
  808. function $HLMethodSelected(){return smalltalk.HLMethodSelected||(typeof HLMethodSelected=="undefined"?nil:HLMethodSelected)}
  809. function $HLClassSelected(){return smalltalk.HLClassSelected||(typeof HLClassSelected=="undefined"?nil:HLClassSelected)}
  810. function $HLProtocolSelected(){return smalltalk.HLProtocolSelected||(typeof HLProtocolSelected=="undefined"?nil:HLProtocolSelected)}
  811. function $HLSourceCodeFocusRequested(){return smalltalk.HLSourceCodeFocusRequested||(typeof HLSourceCodeFocusRequested=="undefined"?nil:HLSourceCodeFocusRequested)}
  812. return smalltalk.withContext(function($ctx1) {
  813. var $1,$2;
  814. $1=_st(_st(self)._browserModel())._announcer();
  815. _st($1)._on_do_($HLSaveSourceCode(),(function(ann){
  816. return smalltalk.withContext(function($ctx2) {
  817. return _st(self)._onSaveIt();
  818. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  819. _st($1)._on_do_($HLParseErrorRaised(),(function(ann){
  820. return smalltalk.withContext(function($ctx2) {
  821. return _st(self)._onParseError_(ann);
  822. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  823. _st($1)._on_do_($HLCompileErrorRaised(),(function(ann){
  824. return smalltalk.withContext(function($ctx2) {
  825. return _st(self)._onCompileError_(_st(ann)._error());
  826. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  827. _st($1)._on_do_($HLUnknownVariableErrorRaised(),(function(ann){
  828. return smalltalk.withContext(function($ctx2) {
  829. return _st(self)._onUnknownVariableError_(_st(ann)._error());
  830. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  831. _st($1)._on_do_($HLInstVarAdded(),(function(ann){
  832. return smalltalk.withContext(function($ctx2) {
  833. return _st(self)._onInstVarAdded();
  834. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  835. _st($1)._on_do_($HLMethodSelected(),(function(ann){
  836. return smalltalk.withContext(function($ctx2) {
  837. return _st(self)._onMethodSelected_(_st(ann)._item());
  838. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  839. _st($1)._on_do_($HLClassSelected(),(function(ann){
  840. return smalltalk.withContext(function($ctx2) {
  841. return _st(self)._onClassSelected_(_st(ann)._item());
  842. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  843. _st($1)._on_do_($HLProtocolSelected(),(function(ann){
  844. return smalltalk.withContext(function($ctx2) {
  845. return _st(self)._onProtocolSelected_(_st(ann)._item());
  846. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  847. $2=_st($1)._on_do_($HLSourceCodeFocusRequested(),(function(ann){
  848. return smalltalk.withContext(function($ctx2) {
  849. return _st(self)._onSourceCodeFocusRequested();
  850. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  851. return self}, function($ctx1) {$ctx1.fill(self,"observeBrowserModel",{},smalltalk.HLSourceCodeWidget)})},
  852. messageSends: ["on:do:", "onSaveIt", "announcer", "browserModel", "onParseError:", "onCompileError:", "error", "onUnknownVariableError:", "onInstVarAdded", "onMethodSelected:", "item", "onClassSelected:", "onProtocolSelected:", "onSourceCodeFocusRequested"]}),
  853. smalltalk.HLSourceCodeWidget);
  854. smalltalk.addMethod(
  855. smalltalk.method({
  856. selector: "observeSystem",
  857. fn: function (){
  858. var self=this;
  859. function $MethodModified(){return smalltalk.MethodModified||(typeof MethodModified=="undefined"?nil:MethodModified)}
  860. function $HLMethodSelected(){return smalltalk.HLMethodSelected||(typeof HLMethodSelected=="undefined"?nil:HLMethodSelected)}
  861. function $HLClassSelected(){return smalltalk.HLClassSelected||(typeof HLClassSelected=="undefined"?nil:HLClassSelected)}
  862. function $HLProtocolSelected(){return smalltalk.HLProtocolSelected||(typeof HLProtocolSelected=="undefined"?nil:HLProtocolSelected)}
  863. function $HLSourceCodeFocusRequested(){return smalltalk.HLSourceCodeFocusRequested||(typeof HLSourceCodeFocusRequested=="undefined"?nil:HLSourceCodeFocusRequested)}
  864. return smalltalk.withContext(function($ctx1) {
  865. var $1,$2;
  866. $1=_st(_st(self)._browserModel())._systemAnnouncer();
  867. _st($1)._on_do_($MethodModified(),(function(ann){
  868. return smalltalk.withContext(function($ctx2) {
  869. return _st(self)._onMethodModified_(_st(ann)._method());
  870. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  871. _st($1)._on_do_($HLMethodSelected(),(function(ann){
  872. return smalltalk.withContext(function($ctx2) {
  873. return _st(self)._onMethodSelected_(_st(ann)._item());
  874. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  875. _st($1)._on_do_($HLClassSelected(),(function(ann){
  876. return smalltalk.withContext(function($ctx2) {
  877. return _st(self)._onClassSelected_(_st(ann)._item());
  878. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  879. _st($1)._on_do_($HLProtocolSelected(),(function(ann){
  880. return smalltalk.withContext(function($ctx2) {
  881. return _st(self)._onProtocolSelected_(_st(ann)._item());
  882. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  883. $2=_st($1)._on_do_($HLSourceCodeFocusRequested(),(function(ann){
  884. return smalltalk.withContext(function($ctx2) {
  885. return _st(self)._onSourceCodeFocusRequested();
  886. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
  887. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLSourceCodeWidget)})},
  888. messageSends: ["on:do:", "onMethodModified:", "method", "systemAnnouncer", "browserModel", "onMethodSelected:", "item", "onClassSelected:", "onProtocolSelected:", "onSourceCodeFocusRequested"]}),
  889. smalltalk.HLSourceCodeWidget);
  890. smalltalk.addMethod(
  891. smalltalk.method({
  892. selector: "onClassSelected:",
  893. fn: function (aClass){
  894. var self=this;
  895. return smalltalk.withContext(function($ctx1) {
  896. var $1,$2;
  897. $1=aClass;
  898. if(($receiver = $1) == nil || $receiver == undefined){
  899. $2=_st(self)._contents_("");
  900. return $2;
  901. } else {
  902. $1;
  903. };
  904. _st(self)._contents_(_st(aClass)._definition());
  905. return self}, function($ctx1) {$ctx1.fill(self,"onClassSelected:",{aClass:aClass},smalltalk.HLSourceCodeWidget)})},
  906. messageSends: ["ifNil:", "contents:", "definition"]}),
  907. smalltalk.HLSourceCodeWidget);
  908. smalltalk.addMethod(
  909. smalltalk.method({
  910. selector: "onCompileError:",
  911. fn: function (anError){
  912. var self=this;
  913. return smalltalk.withContext(function($ctx1) {
  914. _st(self)._alert_(_st(anError)._messageText());
  915. return self}, function($ctx1) {$ctx1.fill(self,"onCompileError:",{anError:anError},smalltalk.HLSourceCodeWidget)})},
  916. messageSends: ["alert:", "messageText"]}),
  917. smalltalk.HLSourceCodeWidget);
  918. smalltalk.addMethod(
  919. smalltalk.method({
  920. selector: "onInstVarAdded",
  921. fn: function (){
  922. var self=this;
  923. return smalltalk.withContext(function($ctx1) {
  924. _st(_st(self)._browserModel())._save_(_st(self)._contents());
  925. return self}, function($ctx1) {$ctx1.fill(self,"onInstVarAdded",{},smalltalk.HLSourceCodeWidget)})},
  926. messageSends: ["save:", "contents", "browserModel"]}),
  927. smalltalk.HLSourceCodeWidget);
  928. smalltalk.addMethod(
  929. smalltalk.method({
  930. selector: "onMethodModified:",
  931. fn: function (aMethod){
  932. var self=this;
  933. return smalltalk.withContext(function($ctx1) {
  934. var $1,$2,$3,$4,$5,$6;
  935. $1=_st(_st(_st(self)._browserModel())._selectedClass()).__eq(_st(aMethod)._methodClass());
  936. if(! smalltalk.assert($1)){
  937. $2=self;
  938. return $2;
  939. };
  940. $3=_st(_st(self)._browserModel())._selectedMethod();
  941. if(($receiver = $3) == nil || $receiver == undefined){
  942. $4=self;
  943. return $4;
  944. } else {
  945. $3;
  946. };
  947. $5=_st(_st(_st(_st(self)._browserModel())._selectedMethod())._selector()).__eq(_st(aMethod)._selector());
  948. if(! smalltalk.assert($5)){
  949. $6=self;
  950. return $6;
  951. };
  952. _st(self)._refresh();
  953. return self}, function($ctx1) {$ctx1.fill(self,"onMethodModified:",{aMethod:aMethod},smalltalk.HLSourceCodeWidget)})},
  954. messageSends: ["ifFalse:", "=", "methodClass", "selectedClass", "browserModel", "ifNil:", "selectedMethod", "selector", "refresh"]}),
  955. smalltalk.HLSourceCodeWidget);
  956. smalltalk.addMethod(
  957. smalltalk.method({
  958. selector: "onMethodSelected:",
  959. fn: function (aCompiledMethod){
  960. var self=this;
  961. return smalltalk.withContext(function($ctx1) {
  962. var $1,$2;
  963. $1=aCompiledMethod;
  964. if(($receiver = $1) == nil || $receiver == undefined){
  965. $2=_st(self)._contents_("");
  966. return $2;
  967. } else {
  968. $1;
  969. };
  970. _st(self)._contents_(_st(aCompiledMethod)._source());
  971. return self}, function($ctx1) {$ctx1.fill(self,"onMethodSelected:",{aCompiledMethod:aCompiledMethod},smalltalk.HLSourceCodeWidget)})},
  972. messageSends: ["ifNil:", "contents:", "source"]}),
  973. smalltalk.HLSourceCodeWidget);
  974. smalltalk.addMethod(
  975. smalltalk.method({
  976. selector: "onParseError:",
  977. fn: function (anAnnouncement){
  978. var self=this;
  979. var lineIndex,newContents;
  980. function $String(){return smalltalk.String||(typeof String=="undefined"?nil:String)}
  981. return smalltalk.withContext(function($ctx1) {
  982. var $1,$2,$3;
  983. lineIndex=(1);
  984. _st(self)._contents_(_st($String())._streamContents_((function(stream){
  985. return smalltalk.withContext(function($ctx2) {
  986. return _st(_st(self)._contents())._linesDo_((function(each){
  987. return smalltalk.withContext(function($ctx3) {
  988. $1=_st(lineIndex).__eq(_st(anAnnouncement)._line());
  989. if(smalltalk.assert($1)){
  990. $2=stream;
  991. _st($2)._nextPutAll_(_st(each)._copyFrom_to_((1),_st(anAnnouncement)._column()));
  992. _st($2)._nextPutAll_("<- ");
  993. _st($2)._nextPutAll_(_st(anAnnouncement)._message());
  994. _st($2)._nextPutAll_(" ");
  995. $3=_st($2)._nextPutAll_(_st(each)._copyFrom_to_(_st(_st(anAnnouncement)._column()).__plus((1)),_st(each)._size()));
  996. $3;
  997. } else {
  998. _st(stream)._nextPutAll_(each);
  999. };
  1000. _st(stream)._nextPutAll_(_st($String())._cr());
  1001. lineIndex=_st(lineIndex).__plus((1));
  1002. return lineIndex;
  1003. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx1)})}));
  1004. }, function($ctx2) {$ctx2.fillBlock({stream:stream},$ctx1)})})));
  1005. return self}, function($ctx1) {$ctx1.fill(self,"onParseError:",{anAnnouncement:anAnnouncement,lineIndex:lineIndex,newContents:newContents},smalltalk.HLSourceCodeWidget)})},
  1006. messageSends: ["contents:", "streamContents:", "linesDo:", "ifTrue:ifFalse:", "nextPutAll:", "copyFrom:to:", "column", "message", "+", "size", "=", "line", "cr", "contents"]}),
  1007. smalltalk.HLSourceCodeWidget);
  1008. smalltalk.addMethod(
  1009. smalltalk.method({
  1010. selector: "onProtocolSelected:",
  1011. fn: function (aString){
  1012. var self=this;
  1013. return smalltalk.withContext(function($ctx1) {
  1014. var $1,$2;
  1015. $1=_st(_st(self)._browserModel())._selectedClass();
  1016. if(($receiver = $1) == nil || $receiver == undefined){
  1017. $2=_st(self)._contents_("");
  1018. return $2;
  1019. } else {
  1020. $1;
  1021. };
  1022. _st(self)._contents_(_st(_st(_st(self)._browserModel())._selectedClass())._definition());
  1023. return self}, function($ctx1) {$ctx1.fill(self,"onProtocolSelected:",{aString:aString},smalltalk.HLSourceCodeWidget)})},
  1024. messageSends: ["ifNil:", "contents:", "selectedClass", "browserModel", "definition"]}),
  1025. smalltalk.HLSourceCodeWidget);
  1026. smalltalk.addMethod(
  1027. smalltalk.method({
  1028. selector: "onSaveIt",
  1029. fn: function (){
  1030. var self=this;
  1031. return smalltalk.withContext(function($ctx1) {
  1032. _st(_st(self)._browserModel())._save_(_st(self)._contents());
  1033. return self}, function($ctx1) {$ctx1.fill(self,"onSaveIt",{},smalltalk.HLSourceCodeWidget)})},
  1034. messageSends: ["save:", "contents", "browserModel"]}),
  1035. smalltalk.HLSourceCodeWidget);
  1036. smalltalk.addMethod(
  1037. smalltalk.method({
  1038. selector: "onSourceCodeFocusRequested",
  1039. fn: function (){
  1040. var self=this;
  1041. return smalltalk.withContext(function($ctx1) {
  1042. _st(self)._focus();
  1043. return self}, function($ctx1) {$ctx1.fill(self,"onSourceCodeFocusRequested",{},smalltalk.HLSourceCodeWidget)})},
  1044. messageSends: ["focus"]}),
  1045. smalltalk.HLSourceCodeWidget);
  1046. smalltalk.addMethod(
  1047. smalltalk.method({
  1048. selector: "onUnknownVariableError:",
  1049. fn: function (anError){
  1050. var self=this;
  1051. var confirm;
  1052. function $String(){return smalltalk.String||(typeof String=="undefined"?nil:String)}
  1053. return smalltalk.withContext(function($ctx1) {
  1054. var $1,$2,$3,$4;
  1055. confirm=_st(self)._confirm_(_st($String())._streamContents_((function(stream){
  1056. return smalltalk.withContext(function($ctx2) {
  1057. $1=stream;
  1058. _st($1)._nextPutAll_(_st(anError)._messageText());
  1059. _st($1)._nextPutAll_(_st($String())._cr());
  1060. $2=_st($1)._nextPutAll_("Would you like to define an instance variable?");
  1061. return $2;
  1062. }, function($ctx2) {$ctx2.fillBlock({stream:stream},$ctx1)})})));
  1063. $3=confirm;
  1064. if(! smalltalk.assert($3)){
  1065. $4=self;
  1066. return $4;
  1067. };
  1068. _st(_st(self)._browserModel())._addInstVarNamed_(_st(anError)._variableName());
  1069. return self}, function($ctx1) {$ctx1.fill(self,"onUnknownVariableError:",{anError:anError,confirm:confirm},smalltalk.HLSourceCodeWidget)})},
  1070. messageSends: ["confirm:", "streamContents:", "nextPutAll:", "messageText", "cr", "ifFalse:", "addInstVarNamed:", "variableName", "browserModel"]}),
  1071. smalltalk.HLSourceCodeWidget);
  1072. smalltalk.addMethod(
  1073. smalltalk.method({
  1074. selector: "previous",
  1075. fn: function (){
  1076. var self=this;
  1077. return smalltalk.withContext(function($ctx1) {
  1078. return self}, function($ctx1) {$ctx1.fill(self,"previous",{},smalltalk.HLSourceCodeWidget)})},
  1079. messageSends: []}),
  1080. smalltalk.HLSourceCodeWidget);
  1081. smalltalk.addMethod(
  1082. smalltalk.method({
  1083. selector: "previous:",
  1084. fn: function (aWidget){
  1085. var self=this;
  1086. return smalltalk.withContext(function($ctx1) {
  1087. return self}, function($ctx1) {$ctx1.fill(self,"previous:",{aWidget:aWidget},smalltalk.HLSourceCodeWidget)})},
  1088. messageSends: []}),
  1089. smalltalk.HLSourceCodeWidget);
  1090. smalltalk.addMethod(
  1091. smalltalk.method({
  1092. selector: "refresh",
  1093. fn: function (){
  1094. var self=this;
  1095. return smalltalk.withContext(function($ctx1) {
  1096. var $1,$2,$3,$4;
  1097. $1=_st(self)._hasModification();
  1098. if(smalltalk.assert($1)){
  1099. $2=self;
  1100. return $2;
  1101. };
  1102. $3=_st(self)._hasFocus();
  1103. if(smalltalk.assert($3)){
  1104. $4=self;
  1105. return $4;
  1106. };
  1107. _st(self)._contents_(_st(_st(_st(self)._model())._selectedMethod())._source());
  1108. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLSourceCodeWidget)})},
  1109. messageSends: ["ifTrue:", "hasModification", "hasFocus", "contents:", "source", "selectedMethod", "model"]}),
  1110. smalltalk.HLSourceCodeWidget);
  1111. smalltalk.addMethod(
  1112. smalltalk.method({
  1113. selector: "saveIt",
  1114. fn: function (){
  1115. var self=this;
  1116. return smalltalk.withContext(function($ctx1) {
  1117. _st(_st(self)._browserModel())._saveSourceCode();
  1118. return self}, function($ctx1) {$ctx1.fill(self,"saveIt",{},smalltalk.HLSourceCodeWidget)})},
  1119. messageSends: ["saveSourceCode", "browserModel"]}),
  1120. smalltalk.HLSourceCodeWidget);
  1121. smalltalk.addMethod(
  1122. smalltalk.method({
  1123. selector: "canBeOpenAsTab",
  1124. fn: function (){
  1125. var self=this;
  1126. return smalltalk.withContext(function($ctx1) {
  1127. return false;
  1128. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLSourceCodeWidget.klass)})},
  1129. messageSends: []}),
  1130. smalltalk.HLSourceCodeWidget.klass);
  1131. smalltalk.addMethod(
  1132. smalltalk.method({
  1133. selector: "on:",
  1134. fn: function (aBrowserModel){
  1135. var self=this;
  1136. return smalltalk.withContext(function($ctx1) {
  1137. var $2,$3,$1;
  1138. $2=_st(self)._new();
  1139. _st($2)._browserModel_(aBrowserModel);
  1140. $3=_st($2)._yourself();
  1141. $1=$3;
  1142. return $1;
  1143. }, function($ctx1) {$ctx1.fill(self,"on:",{aBrowserModel:aBrowserModel},smalltalk.HLSourceCodeWidget.klass)})},
  1144. messageSends: ["browserModel:", "new", "yourself"]}),
  1145. smalltalk.HLSourceCodeWidget.klass);
  1146. smalltalk.addClass('HLWorkspace', smalltalk.HLWidget, ['codeWidget'], 'Helios-Workspace');
  1147. smalltalk.addMethod(
  1148. smalltalk.method({
  1149. selector: "canHaveFocus",
  1150. fn: function (){
  1151. var self=this;
  1152. return smalltalk.withContext(function($ctx1) {
  1153. return true;
  1154. }, function($ctx1) {$ctx1.fill(self,"canHaveFocus",{},smalltalk.HLWorkspace)})},
  1155. messageSends: []}),
  1156. smalltalk.HLWorkspace);
  1157. smalltalk.addMethod(
  1158. smalltalk.method({
  1159. selector: "codeWidget",
  1160. fn: function (){
  1161. var self=this;
  1162. function $HLCodeWidget(){return smalltalk.HLCodeWidget||(typeof HLCodeWidget=="undefined"?nil:HLCodeWidget)}
  1163. return smalltalk.withContext(function($ctx1) {
  1164. var $2,$1;
  1165. $2=self["@codeWidget"];
  1166. if(($receiver = $2) == nil || $receiver == undefined){
  1167. self["@codeWidget"]=_st($HLCodeWidget())._new();
  1168. $1=self["@codeWidget"];
  1169. } else {
  1170. $1=$2;
  1171. };
  1172. return $1;
  1173. }, function($ctx1) {$ctx1.fill(self,"codeWidget",{},smalltalk.HLWorkspace)})},
  1174. messageSends: ["ifNil:", "new"]}),
  1175. smalltalk.HLWorkspace);
  1176. smalltalk.addMethod(
  1177. smalltalk.method({
  1178. selector: "focus",
  1179. fn: function (){
  1180. var self=this;
  1181. return smalltalk.withContext(function($ctx1) {
  1182. var $1;
  1183. $1=_st(_st(self)._codeWidget())._focus();
  1184. return $1;
  1185. }, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLWorkspace)})},
  1186. messageSends: ["focus", "codeWidget"]}),
  1187. smalltalk.HLWorkspace);
  1188. smalltalk.addMethod(
  1189. smalltalk.method({
  1190. selector: "renderContentOn:",
  1191. fn: function (html){
  1192. var self=this;
  1193. function $HLContainer(){return smalltalk.HLContainer||(typeof HLContainer=="undefined"?nil:HLContainer)}
  1194. return smalltalk.withContext(function($ctx1) {
  1195. _st(html)._with_(_st($HLContainer())._with_(_st(self)._codeWidget()));
  1196. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLWorkspace)})},
  1197. messageSends: ["with:", "codeWidget"]}),
  1198. smalltalk.HLWorkspace);
  1199. smalltalk.addMethod(
  1200. smalltalk.method({
  1201. selector: "canBeOpenAsTab",
  1202. fn: function (){
  1203. var self=this;
  1204. return smalltalk.withContext(function($ctx1) {
  1205. return true;
  1206. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLWorkspace.klass)})},
  1207. messageSends: []}),
  1208. smalltalk.HLWorkspace.klass);
  1209. smalltalk.addMethod(
  1210. smalltalk.method({
  1211. selector: "tabLabel",
  1212. fn: function (){
  1213. var self=this;
  1214. return smalltalk.withContext(function($ctx1) {
  1215. return "Workspace";
  1216. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLWorkspace.klass)})},
  1217. messageSends: []}),
  1218. smalltalk.HLWorkspace.klass);
  1219. smalltalk.addMethod(
  1220. smalltalk.method({
  1221. selector: "tabPriority",
  1222. fn: function (){
  1223. var self=this;
  1224. return smalltalk.withContext(function($ctx1) {
  1225. var $1;
  1226. $1=(10);
  1227. return $1;
  1228. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLWorkspace.klass)})},
  1229. messageSends: []}),
  1230. smalltalk.HLWorkspace.klass);