Helios-Announcements.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774
  1. define("helios/Helios-Announcements", ["amber/boot", "amber_core/Kernel-Objects"], function($boot){
  2. var smalltalk=$boot.vm,nil=$boot.nil,_st=$boot.asReceiver,globals=$boot.globals;
  3. smalltalk.addPackage('Helios-Announcements');
  4. smalltalk.packages["Helios-Announcements"].transport = {"type":"amd","amdNamespace":"helios"};
  5. smalltalk.addClass('HLAboutToChange', globals.Object, ['actionBlock'], 'Helios-Announcements');
  6. globals.HLAboutToChange.comment="I am announced whenever a change of context is about to be made, and unsaved changes could be lost.\x0a\x0aI am used within `HLModel` to handle such user actions. See `HLModel >> withChangesDo:`.";
  7. smalltalk.addMethod(
  8. smalltalk.method({
  9. selector: "actionBlock",
  10. protocol: 'accessing',
  11. fn: function (){
  12. var self=this;
  13. var $1;
  14. $1=self["@actionBlock"];
  15. return $1;
  16. },
  17. args: [],
  18. source: "actionBlock\x0a\x09^ actionBlock",
  19. messageSends: [],
  20. referencedClasses: []
  21. }),
  22. globals.HLAboutToChange);
  23. smalltalk.addMethod(
  24. smalltalk.method({
  25. selector: "actionBlock:",
  26. protocol: 'accessing',
  27. fn: function (aBlock){
  28. var self=this;
  29. self["@actionBlock"]=aBlock;
  30. return self},
  31. args: ["aBlock"],
  32. source: "actionBlock: aBlock\x0a\x09actionBlock := aBlock",
  33. messageSends: [],
  34. referencedClasses: []
  35. }),
  36. globals.HLAboutToChange);
  37. smalltalk.addClass('HLAnnouncement', globals.Object, [], 'Helios-Announcements');
  38. globals.HLAnnouncement.comment="I am the root of the announcement class hierarchy used in the Helios UI.";
  39. smalltalk.addMethod(
  40. smalltalk.method({
  41. selector: "heliosClass",
  42. protocol: 'helios',
  43. fn: function (){
  44. var self=this;
  45. return "announcement";
  46. },
  47. args: [],
  48. source: "heliosClass\x0a\x09^ 'announcement'",
  49. messageSends: [],
  50. referencedClasses: []
  51. }),
  52. globals.HLAnnouncement.klass);
  53. smalltalk.addClass('HLCodeHandled', globals.HLAnnouncement, ['code'], 'Helios-Announcements');
  54. globals.HLCodeHandled.comment="I am the root class of announcements emitted by `HLCodeWidget`s";
  55. smalltalk.addMethod(
  56. smalltalk.method({
  57. selector: "code",
  58. protocol: 'accessing',
  59. fn: function (){
  60. var self=this;
  61. var $1;
  62. $1=self["@code"];
  63. return $1;
  64. },
  65. args: [],
  66. source: "code\x0a\x0a\x09^ code",
  67. messageSends: [],
  68. referencedClasses: []
  69. }),
  70. globals.HLCodeHandled);
  71. smalltalk.addMethod(
  72. smalltalk.method({
  73. selector: "code:",
  74. protocol: 'accessing',
  75. fn: function (aModel){
  76. var self=this;
  77. self["@code"]=aModel;
  78. return self},
  79. args: ["aModel"],
  80. source: "code: aModel\x0a\x0a\x09code := aModel",
  81. messageSends: [],
  82. referencedClasses: []
  83. }),
  84. globals.HLCodeHandled);
  85. smalltalk.addMethod(
  86. smalltalk.method({
  87. selector: "on:",
  88. protocol: 'actions',
  89. fn: function (aCodeModel){
  90. var self=this;
  91. return smalltalk.withContext(function($ctx1) {
  92. var $2,$3,$1;
  93. $2=self._new();
  94. _st($2)._code_(aCodeModel);
  95. $3=_st($2)._yourself();
  96. $1=$3;
  97. return $1;
  98. }, function($ctx1) {$ctx1.fill(self,"on:",{aCodeModel:aCodeModel},globals.HLCodeHandled.klass)})},
  99. args: ["aCodeModel"],
  100. source: "on: aCodeModel\x0a\x0a\x09^ self new \x0a \x09code: aCodeModel;\x0a yourself",
  101. messageSends: ["code:", "new", "yourself"],
  102. referencedClasses: []
  103. }),
  104. globals.HLCodeHandled.klass);
  105. smalltalk.addClass('HLDoItExecuted', globals.HLCodeHandled, [], 'Helios-Announcements');
  106. globals.HLDoItExecuted.comment="I am emitted by a `HLCodeWidget` after a DoIt has been executed.";
  107. smalltalk.addClass('HLDebuggerAnnouncement', globals.HLAnnouncement, ['context'], 'Helios-Announcements');
  108. globals.HLDebuggerAnnouncement.comment="I am the root class of debugger announcements, and hold onto the debugged `context`.";
  109. smalltalk.addMethod(
  110. smalltalk.method({
  111. selector: "context",
  112. protocol: 'accessing',
  113. fn: function (){
  114. var self=this;
  115. var $1;
  116. $1=self["@context"];
  117. return $1;
  118. },
  119. args: [],
  120. source: "context\x0a\x09^ context",
  121. messageSends: [],
  122. referencedClasses: []
  123. }),
  124. globals.HLDebuggerAnnouncement);
  125. smalltalk.addMethod(
  126. smalltalk.method({
  127. selector: "context:",
  128. protocol: 'accessing',
  129. fn: function (aContext){
  130. var self=this;
  131. self["@context"]=aContext;
  132. return self},
  133. args: ["aContext"],
  134. source: "context: aContext\x0a\x09context := aContext",
  135. messageSends: [],
  136. referencedClasses: []
  137. }),
  138. globals.HLDebuggerAnnouncement);
  139. smalltalk.addClass('HLDebuggerContextSelected', globals.HLDebuggerAnnouncement, [], 'Helios-Announcements');
  140. globals.HLDebuggerContextSelected.comment="I am announced when a new context is selected in a debugger, to update the user interface.";
  141. smalltalk.addMethod(
  142. smalltalk.method({
  143. selector: "context",
  144. protocol: 'accessing',
  145. fn: function (){
  146. var self=this;
  147. var $1;
  148. $1=self["@context"];
  149. return $1;
  150. },
  151. args: [],
  152. source: "context\x0a\x09^ context",
  153. messageSends: [],
  154. referencedClasses: []
  155. }),
  156. globals.HLDebuggerContextSelected);
  157. smalltalk.addMethod(
  158. smalltalk.method({
  159. selector: "context:",
  160. protocol: 'accessing',
  161. fn: function (aContext){
  162. var self=this;
  163. self["@context"]=aContext;
  164. return self},
  165. args: ["aContext"],
  166. source: "context: aContext\x0a\x09context := aContext",
  167. messageSends: [],
  168. referencedClasses: []
  169. }),
  170. globals.HLDebuggerContextSelected);
  171. smalltalk.addClass('HLDebuggerProceeded', globals.HLDebuggerAnnouncement, [], 'Helios-Announcements');
  172. smalltalk.addClass('HLDebuggerStepped', globals.HLDebuggerAnnouncement, [], 'Helios-Announcements');
  173. smalltalk.addClass('HLDebuggerWhere', globals.HLDebuggerAnnouncement, [], 'Helios-Announcements');
  174. smalltalk.addClass('HLDiveRequested', globals.HLAnnouncement, [], 'Helios-Announcements');
  175. smalltalk.addClass('HLEditComment', globals.HLAnnouncement, [], 'Helios-Announcements');
  176. smalltalk.addClass('HLErrorRaised', globals.HLAnnouncement, ['error'], 'Helios-Announcements');
  177. smalltalk.addMethod(
  178. smalltalk.method({
  179. selector: "error",
  180. protocol: 'accessing',
  181. fn: function (){
  182. var self=this;
  183. var $1;
  184. $1=self["@error"];
  185. return $1;
  186. },
  187. args: [],
  188. source: "error\x0a\x09^ error",
  189. messageSends: [],
  190. referencedClasses: []
  191. }),
  192. globals.HLErrorRaised);
  193. smalltalk.addMethod(
  194. smalltalk.method({
  195. selector: "error:",
  196. protocol: 'accessing',
  197. fn: function (anError){
  198. var self=this;
  199. self["@error"]=anError;
  200. return self},
  201. args: ["anError"],
  202. source: "error: anError\x0a\x09error := anError",
  203. messageSends: [],
  204. referencedClasses: []
  205. }),
  206. globals.HLErrorRaised);
  207. smalltalk.addClass('HLCompileErrorRaised', globals.HLErrorRaised, [], 'Helios-Announcements');
  208. smalltalk.addClass('HLParseErrorRaised', globals.HLErrorRaised, ['line', 'column', 'message'], 'Helios-Announcements');
  209. smalltalk.addMethod(
  210. smalltalk.method({
  211. selector: "column",
  212. protocol: 'accessing',
  213. fn: function (){
  214. var self=this;
  215. var $1;
  216. $1=self["@column"];
  217. return $1;
  218. },
  219. args: [],
  220. source: "column\x0a\x09^ column",
  221. messageSends: [],
  222. referencedClasses: []
  223. }),
  224. globals.HLParseErrorRaised);
  225. smalltalk.addMethod(
  226. smalltalk.method({
  227. selector: "column:",
  228. protocol: 'accessing',
  229. fn: function (anInteger){
  230. var self=this;
  231. self["@column"]=anInteger;
  232. return self},
  233. args: ["anInteger"],
  234. source: "column: anInteger\x0a\x09column := anInteger",
  235. messageSends: [],
  236. referencedClasses: []
  237. }),
  238. globals.HLParseErrorRaised);
  239. smalltalk.addMethod(
  240. smalltalk.method({
  241. selector: "line",
  242. protocol: 'accessing',
  243. fn: function (){
  244. var self=this;
  245. var $1;
  246. $1=self["@line"];
  247. return $1;
  248. },
  249. args: [],
  250. source: "line\x0a\x09^ line",
  251. messageSends: [],
  252. referencedClasses: []
  253. }),
  254. globals.HLParseErrorRaised);
  255. smalltalk.addMethod(
  256. smalltalk.method({
  257. selector: "line:",
  258. protocol: 'accessing',
  259. fn: function (anInteger){
  260. var self=this;
  261. self["@line"]=anInteger;
  262. return self},
  263. args: ["anInteger"],
  264. source: "line: anInteger\x0a\x09line := anInteger",
  265. messageSends: [],
  266. referencedClasses: []
  267. }),
  268. globals.HLParseErrorRaised);
  269. smalltalk.addMethod(
  270. smalltalk.method({
  271. selector: "message",
  272. protocol: 'accessing',
  273. fn: function (){
  274. var self=this;
  275. var $1;
  276. $1=self["@message"];
  277. return $1;
  278. },
  279. args: [],
  280. source: "message\x0a\x09^ message",
  281. messageSends: [],
  282. referencedClasses: []
  283. }),
  284. globals.HLParseErrorRaised);
  285. smalltalk.addMethod(
  286. smalltalk.method({
  287. selector: "message:",
  288. protocol: 'accessing',
  289. fn: function (aString){
  290. var self=this;
  291. self["@message"]=aString;
  292. return self},
  293. args: ["aString"],
  294. source: "message: aString\x0a\x09message := aString",
  295. messageSends: [],
  296. referencedClasses: []
  297. }),
  298. globals.HLParseErrorRaised);
  299. smalltalk.addClass('HLUnknownVariableErrorRaised', globals.HLErrorRaised, [], 'Helios-Announcements');
  300. smalltalk.addClass('HLFocusRequested', globals.HLAnnouncement, [], 'Helios-Announcements');
  301. smalltalk.addClass('HLClassesFocusRequested', globals.HLFocusRequested, [], 'Helios-Announcements');
  302. smalltalk.addClass('HLDocumentationFocusRequested', globals.HLFocusRequested, [], 'Helios-Announcements');
  303. smalltalk.addClass('HLMethodsFocusRequested', globals.HLFocusRequested, [], 'Helios-Announcements');
  304. smalltalk.addClass('HLPackagesFocusRequested', globals.HLFocusRequested, [], 'Helios-Announcements');
  305. smalltalk.addClass('HLProtocolsFocusRequested', globals.HLFocusRequested, [], 'Helios-Announcements');
  306. smalltalk.addClass('HLSourceCodeFocusRequested', globals.HLFocusRequested, [], 'Helios-Announcements');
  307. smalltalk.addClass('HLInstVarAdded', globals.HLAnnouncement, ['theClass', 'variableName'], 'Helios-Announcements');
  308. smalltalk.addMethod(
  309. smalltalk.method({
  310. selector: "theClass",
  311. protocol: 'accessing',
  312. fn: function (){
  313. var self=this;
  314. var $1;
  315. $1=self["@theClass"];
  316. return $1;
  317. },
  318. args: [],
  319. source: "theClass\x0a\x09^ theClass",
  320. messageSends: [],
  321. referencedClasses: []
  322. }),
  323. globals.HLInstVarAdded);
  324. smalltalk.addMethod(
  325. smalltalk.method({
  326. selector: "theClass:",
  327. protocol: 'accessing',
  328. fn: function (aClass){
  329. var self=this;
  330. self["@theClass"]=aClass;
  331. return self},
  332. args: ["aClass"],
  333. source: "theClass: aClass\x0a\x09theClass := aClass",
  334. messageSends: [],
  335. referencedClasses: []
  336. }),
  337. globals.HLInstVarAdded);
  338. smalltalk.addMethod(
  339. smalltalk.method({
  340. selector: "variableName",
  341. protocol: 'accessing',
  342. fn: function (){
  343. var self=this;
  344. var $1;
  345. $1=self["@variableName"];
  346. return $1;
  347. },
  348. args: [],
  349. source: "variableName\x0a\x09^ variableName",
  350. messageSends: [],
  351. referencedClasses: []
  352. }),
  353. globals.HLInstVarAdded);
  354. smalltalk.addMethod(
  355. smalltalk.method({
  356. selector: "variableName:",
  357. protocol: 'accessing',
  358. fn: function (aString){
  359. var self=this;
  360. self["@variableName"]=aString;
  361. return self},
  362. args: ["aString"],
  363. source: "variableName: aString\x0a\x09variableName := aString",
  364. messageSends: [],
  365. referencedClasses: []
  366. }),
  367. globals.HLInstVarAdded);
  368. smalltalk.addClass('HLItemSelected', globals.HLAnnouncement, ['item'], 'Helios-Announcements');
  369. smalltalk.addMethod(
  370. smalltalk.method({
  371. selector: "item",
  372. protocol: 'accessing',
  373. fn: function (){
  374. var self=this;
  375. var $1;
  376. $1=self["@item"];
  377. return $1;
  378. },
  379. args: [],
  380. source: "item\x0a\x09^ item",
  381. messageSends: [],
  382. referencedClasses: []
  383. }),
  384. globals.HLItemSelected);
  385. smalltalk.addMethod(
  386. smalltalk.method({
  387. selector: "item:",
  388. protocol: 'accessing',
  389. fn: function (anObject){
  390. var self=this;
  391. self["@item"]=anObject;
  392. return self},
  393. args: ["anObject"],
  394. source: "item: anObject\x0a\x09item := anObject",
  395. messageSends: [],
  396. referencedClasses: []
  397. }),
  398. globals.HLItemSelected);
  399. smalltalk.addMethod(
  400. smalltalk.method({
  401. selector: "on:",
  402. protocol: 'instance creation',
  403. fn: function (anItem){
  404. var self=this;
  405. return smalltalk.withContext(function($ctx1) {
  406. var $2,$3,$1;
  407. $2=self._new();
  408. _st($2)._item_(anItem);
  409. $3=_st($2)._yourself();
  410. $1=$3;
  411. return $1;
  412. }, function($ctx1) {$ctx1.fill(self,"on:",{anItem:anItem},globals.HLItemSelected.klass)})},
  413. args: ["anItem"],
  414. source: "on: anItem\x0a\x09^ self new\x0a \x09item: anItem;\x0a yourself",
  415. messageSends: ["item:", "new", "yourself"],
  416. referencedClasses: []
  417. }),
  418. globals.HLItemSelected.klass);
  419. smalltalk.addClass('HLClassSelected', globals.HLItemSelected, [], 'Helios-Announcements');
  420. smalltalk.addClass('HLInstanceVariableSelected', globals.HLItemSelected, [], 'Helios-Announcements');
  421. smalltalk.addClass('HLMethodSelected', globals.HLItemSelected, [], 'Helios-Announcements');
  422. smalltalk.addClass('HLPackageSelected', globals.HLItemSelected, [], 'Helios-Announcements');
  423. smalltalk.addClass('HLProtocolSelected', globals.HLItemSelected, [], 'Helios-Announcements');
  424. smalltalk.addClass('HLItemUnselected', globals.HLAnnouncement, ['item'], 'Helios-Announcements');
  425. smalltalk.addMethod(
  426. smalltalk.method({
  427. selector: "item",
  428. protocol: 'accessing',
  429. fn: function (){
  430. var self=this;
  431. var $1;
  432. $1=self["@item"];
  433. return $1;
  434. },
  435. args: [],
  436. source: "item\x0a\x09^ item",
  437. messageSends: [],
  438. referencedClasses: []
  439. }),
  440. globals.HLItemUnselected);
  441. smalltalk.addMethod(
  442. smalltalk.method({
  443. selector: "item:",
  444. protocol: 'accessing',
  445. fn: function (anObject){
  446. var self=this;
  447. self["@item"]=anObject;
  448. return self},
  449. args: ["anObject"],
  450. source: "item: anObject\x0a\x09item := anObject",
  451. messageSends: [],
  452. referencedClasses: []
  453. }),
  454. globals.HLItemUnselected);
  455. smalltalk.addMethod(
  456. smalltalk.method({
  457. selector: "on:",
  458. protocol: 'instance creation',
  459. fn: function (anItem){
  460. var self=this;
  461. return smalltalk.withContext(function($ctx1) {
  462. var $2,$3,$1;
  463. $2=self._new();
  464. _st($2)._item_(anItem);
  465. $3=_st($2)._yourself();
  466. $1=$3;
  467. return $1;
  468. }, function($ctx1) {$ctx1.fill(self,"on:",{anItem:anItem},globals.HLItemUnselected.klass)})},
  469. args: ["anItem"],
  470. source: "on: anItem\x0a\x09^ self new\x0a \x09item: anItem;\x0a yourself",
  471. messageSends: ["item:", "new", "yourself"],
  472. referencedClasses: []
  473. }),
  474. globals.HLItemUnselected.klass);
  475. smalltalk.addClass('HLClassUnselected', globals.HLItemUnselected, [], 'Helios-Announcements');
  476. smalltalk.addClass('HLPackageUnselected', globals.HLItemUnselected, [], 'Helios-Announcements');
  477. smalltalk.addClass('HLRunTests', globals.HLAnnouncement, ['testSuiteRunner'], 'Helios-Announcements');
  478. smalltalk.addMethod(
  479. smalltalk.method({
  480. selector: "testSuiteRunner",
  481. protocol: 'accessing',
  482. fn: function (){
  483. var self=this;
  484. var $1;
  485. $1=self["@testSuiteRunner"];
  486. return $1;
  487. },
  488. args: [],
  489. source: "testSuiteRunner\x0a\x09^ testSuiteRunner",
  490. messageSends: [],
  491. referencedClasses: []
  492. }),
  493. globals.HLRunTests);
  494. smalltalk.addMethod(
  495. smalltalk.method({
  496. selector: "testSuiteRunner:",
  497. protocol: 'accessing',
  498. fn: function (anObject){
  499. var self=this;
  500. self["@testSuiteRunner"]=anObject;
  501. return self},
  502. args: ["anObject"],
  503. source: "testSuiteRunner: anObject\x0a\x09testSuiteRunner := anObject",
  504. messageSends: [],
  505. referencedClasses: []
  506. }),
  507. globals.HLRunTests);
  508. smalltalk.addMethod(
  509. smalltalk.method({
  510. selector: "on:",
  511. protocol: 'instance creation',
  512. fn: function (aTestSuiteRunner){
  513. var self=this;
  514. return smalltalk.withContext(function($ctx1) {
  515. var $2,$3,$1;
  516. $2=self._new();
  517. _st($2)._testSuiteRunner_(aTestSuiteRunner);
  518. $3=_st($2)._yourself();
  519. $1=$3;
  520. return $1;
  521. }, function($ctx1) {$ctx1.fill(self,"on:",{aTestSuiteRunner:aTestSuiteRunner},globals.HLRunTests.klass)})},
  522. args: ["aTestSuiteRunner"],
  523. source: "on: aTestSuiteRunner\x0a\x09^self new\x0a\x09\x09testSuiteRunner: aTestSuiteRunner;\x0a\x09\x09yourself",
  524. messageSends: ["testSuiteRunner:", "new", "yourself"],
  525. referencedClasses: []
  526. }),
  527. globals.HLRunTests.klass);
  528. smalltalk.addClass('HLSaveSourceCode', globals.HLAnnouncement, [], 'Helios-Announcements');
  529. smalltalk.addClass('HLSearchReferences', globals.HLAnnouncement, ['searchString'], 'Helios-Announcements');
  530. smalltalk.addMethod(
  531. smalltalk.method({
  532. selector: "searchString",
  533. protocol: 'accessing',
  534. fn: function (){
  535. var self=this;
  536. var $1;
  537. $1=self["@searchString"];
  538. return $1;
  539. },
  540. args: [],
  541. source: "searchString\x0a\x09^ searchString",
  542. messageSends: [],
  543. referencedClasses: []
  544. }),
  545. globals.HLSearchReferences);
  546. smalltalk.addMethod(
  547. smalltalk.method({
  548. selector: "searchString:",
  549. protocol: 'accessing',
  550. fn: function (aString){
  551. var self=this;
  552. self["@searchString"]=aString;
  553. return self},
  554. args: ["aString"],
  555. source: "searchString: aString\x0a\x09searchString := aString",
  556. messageSends: [],
  557. referencedClasses: []
  558. }),
  559. globals.HLSearchReferences);
  560. smalltalk.addClass('HLShowCommentToggled', globals.HLAnnouncement, [], 'Helios-Announcements');
  561. smalltalk.addClass('HLShowInstanceToggled', globals.HLAnnouncement, [], 'Helios-Announcements');
  562. smalltalk.addClass('HLShowTemplate', globals.HLAnnouncement, ['template'], 'Helios-Announcements');
  563. smalltalk.addMethod(
  564. smalltalk.method({
  565. selector: "template",
  566. protocol: 'accessing',
  567. fn: function (){
  568. var self=this;
  569. var $1;
  570. $1=self["@template"];
  571. return $1;
  572. },
  573. args: [],
  574. source: "template\x0a\x09^ template",
  575. messageSends: [],
  576. referencedClasses: []
  577. }),
  578. globals.HLShowTemplate);
  579. smalltalk.addMethod(
  580. smalltalk.method({
  581. selector: "template:",
  582. protocol: 'accessing',
  583. fn: function (aString){
  584. var self=this;
  585. self["@template"]=aString;
  586. return self},
  587. args: ["aString"],
  588. source: "template: aString\x0a\x09template := aString",
  589. messageSends: [],
  590. referencedClasses: []
  591. }),
  592. globals.HLShowTemplate);
  593. smalltalk.addClass('HLSourceCodeSaved', globals.HLAnnouncement, [], 'Helios-Announcements');
  594. smalltalk.addClass('HLTabLabelChanged', globals.HLAnnouncement, ['label', 'widget'], 'Helios-Announcements');
  595. smalltalk.addMethod(
  596. smalltalk.method({
  597. selector: "label",
  598. protocol: 'accessing',
  599. fn: function (){
  600. var self=this;
  601. var $1;
  602. $1=self["@label"];
  603. return $1;
  604. },
  605. args: [],
  606. source: "label\x0a\x09^ label",
  607. messageSends: [],
  608. referencedClasses: []
  609. }),
  610. globals.HLTabLabelChanged);
  611. smalltalk.addMethod(
  612. smalltalk.method({
  613. selector: "label:",
  614. protocol: 'accessing',
  615. fn: function (aString){
  616. var self=this;
  617. self["@label"]=aString;
  618. return self},
  619. args: ["aString"],
  620. source: "label: aString\x0a\x09label := aString",
  621. messageSends: [],
  622. referencedClasses: []
  623. }),
  624. globals.HLTabLabelChanged);
  625. smalltalk.addMethod(
  626. smalltalk.method({
  627. selector: "widget",
  628. protocol: 'accessing',
  629. fn: function (){
  630. var self=this;
  631. var $1;
  632. $1=self["@widget"];
  633. return $1;
  634. },
  635. args: [],
  636. source: "widget\x0a\x09^ widget",
  637. messageSends: [],
  638. referencedClasses: []
  639. }),
  640. globals.HLTabLabelChanged);
  641. smalltalk.addMethod(
  642. smalltalk.method({
  643. selector: "widget:",
  644. protocol: 'accessing',
  645. fn: function (aWidget){
  646. var self=this;
  647. self["@widget"]=aWidget;
  648. return self},
  649. args: ["aWidget"],
  650. source: "widget: aWidget\x0a\x09widget := aWidget",
  651. messageSends: [],
  652. referencedClasses: []
  653. }),
  654. globals.HLTabLabelChanged);
  655. });