1
0

Helios-Announcements.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. smalltalk.addPackage('Helios-Announcements');
  2. smalltalk.addClass('HLAnnouncement', smalltalk.Object, [], 'Helios-Announcements');
  3. smalltalk.addClass('HLCodeHandled', smalltalk.HLAnnouncement, ['code'], 'Helios-Announcements');
  4. smalltalk.addMethod(
  5. smalltalk.method({
  6. selector: "code",
  7. category: 'accessing',
  8. fn: function (){
  9. var self=this;
  10. return smalltalk.withContext(function($ctx1) {
  11. var $1;
  12. $1=self["@code"];
  13. return $1;
  14. }, function($ctx1) {$ctx1.fill(self,"code",{},smalltalk.HLCodeHandled)})},
  15. args: [],
  16. source: "code\x0a\x0a\x09^ code",
  17. messageSends: [],
  18. referencedClasses: []
  19. }),
  20. smalltalk.HLCodeHandled);
  21. smalltalk.addMethod(
  22. smalltalk.method({
  23. selector: "code:",
  24. category: 'accessing',
  25. fn: function (aModel){
  26. var self=this;
  27. return smalltalk.withContext(function($ctx1) {
  28. self["@code"]=aModel;
  29. return self}, function($ctx1) {$ctx1.fill(self,"code:",{aModel:aModel},smalltalk.HLCodeHandled)})},
  30. args: ["aModel"],
  31. source: "code: aModel\x0a\x0a\x09code := aModel",
  32. messageSends: [],
  33. referencedClasses: []
  34. }),
  35. smalltalk.HLCodeHandled);
  36. smalltalk.addMethod(
  37. smalltalk.method({
  38. selector: "on:",
  39. category: 'actions',
  40. fn: function (aCodeModel){
  41. var self=this;
  42. return smalltalk.withContext(function($ctx1) {
  43. var $2,$3,$1;
  44. $2=_st(self)._new();
  45. _st($2)._code_(aCodeModel);
  46. $3=_st($2)._yourself();
  47. $1=$3;
  48. return $1;
  49. }, function($ctx1) {$ctx1.fill(self,"on:",{aCodeModel:aCodeModel},smalltalk.HLCodeHandled.klass)})},
  50. args: ["aCodeModel"],
  51. source: "on: aCodeModel\x0a\x0a\x09^ self new \x0a \x09code: aCodeModel;\x0a yourself",
  52. messageSends: ["code:", "new", "yourself"],
  53. referencedClasses: []
  54. }),
  55. smalltalk.HLCodeHandled.klass);
  56. smalltalk.addClass('HLDoItExecuted', smalltalk.HLCodeHandled, [], 'Helios-Announcements');
  57. smalltalk.addClass('HLDoItRequested', smalltalk.HLCodeHandled, [], 'Helios-Announcements');
  58. smalltalk.addClass('HLInspectItRequested', smalltalk.HLCodeHandled, [], 'Helios-Announcements');
  59. smalltalk.addClass('HLPrintItRequested', smalltalk.HLCodeHandled, [], 'Helios-Announcements');
  60. smalltalk.addClass('HLDiveRequested', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
  61. smalltalk.addClass('HLErrorRaised', smalltalk.HLAnnouncement, ['error'], 'Helios-Announcements');
  62. smalltalk.addMethod(
  63. smalltalk.method({
  64. selector: "error",
  65. category: 'accessing',
  66. fn: function (){
  67. var self=this;
  68. return smalltalk.withContext(function($ctx1) {
  69. var $1;
  70. $1=self["@error"];
  71. return $1;
  72. }, function($ctx1) {$ctx1.fill(self,"error",{},smalltalk.HLErrorRaised)})},
  73. args: [],
  74. source: "error\x0a\x09^ error",
  75. messageSends: [],
  76. referencedClasses: []
  77. }),
  78. smalltalk.HLErrorRaised);
  79. smalltalk.addMethod(
  80. smalltalk.method({
  81. selector: "error:",
  82. category: 'accessing',
  83. fn: function (anError){
  84. var self=this;
  85. return smalltalk.withContext(function($ctx1) {
  86. self["@error"]=anError;
  87. return self}, function($ctx1) {$ctx1.fill(self,"error:",{anError:anError},smalltalk.HLErrorRaised)})},
  88. args: ["anError"],
  89. source: "error: anError\x0a\x09error := anError",
  90. messageSends: [],
  91. referencedClasses: []
  92. }),
  93. smalltalk.HLErrorRaised);
  94. smalltalk.addClass('HLCompileErrorRaised', smalltalk.HLErrorRaised, [], 'Helios-Announcements');
  95. smalltalk.addClass('HLParseErrorRaised', smalltalk.HLErrorRaised, ['line', 'column', 'message'], 'Helios-Announcements');
  96. smalltalk.addMethod(
  97. smalltalk.method({
  98. selector: "column",
  99. category: 'accessing',
  100. fn: function (){
  101. var self=this;
  102. return smalltalk.withContext(function($ctx1) {
  103. var $1;
  104. $1=self["@column"];
  105. return $1;
  106. }, function($ctx1) {$ctx1.fill(self,"column",{},smalltalk.HLParseErrorRaised)})},
  107. args: [],
  108. source: "column\x0a\x09^ column",
  109. messageSends: [],
  110. referencedClasses: []
  111. }),
  112. smalltalk.HLParseErrorRaised);
  113. smalltalk.addMethod(
  114. smalltalk.method({
  115. selector: "column:",
  116. category: 'accessing',
  117. fn: function (anInteger){
  118. var self=this;
  119. return smalltalk.withContext(function($ctx1) {
  120. self["@column"]=anInteger;
  121. return self}, function($ctx1) {$ctx1.fill(self,"column:",{anInteger:anInteger},smalltalk.HLParseErrorRaised)})},
  122. args: ["anInteger"],
  123. source: "column: anInteger\x0a\x09column := anInteger",
  124. messageSends: [],
  125. referencedClasses: []
  126. }),
  127. smalltalk.HLParseErrorRaised);
  128. smalltalk.addMethod(
  129. smalltalk.method({
  130. selector: "line",
  131. category: 'accessing',
  132. fn: function (){
  133. var self=this;
  134. return smalltalk.withContext(function($ctx1) {
  135. var $1;
  136. $1=self["@line"];
  137. return $1;
  138. }, function($ctx1) {$ctx1.fill(self,"line",{},smalltalk.HLParseErrorRaised)})},
  139. args: [],
  140. source: "line\x0a\x09^ line",
  141. messageSends: [],
  142. referencedClasses: []
  143. }),
  144. smalltalk.HLParseErrorRaised);
  145. smalltalk.addMethod(
  146. smalltalk.method({
  147. selector: "line:",
  148. category: 'accessing',
  149. fn: function (anInteger){
  150. var self=this;
  151. return smalltalk.withContext(function($ctx1) {
  152. self["@line"]=anInteger;
  153. return self}, function($ctx1) {$ctx1.fill(self,"line:",{anInteger:anInteger},smalltalk.HLParseErrorRaised)})},
  154. args: ["anInteger"],
  155. source: "line: anInteger\x0a\x09line := anInteger",
  156. messageSends: [],
  157. referencedClasses: []
  158. }),
  159. smalltalk.HLParseErrorRaised);
  160. smalltalk.addMethod(
  161. smalltalk.method({
  162. selector: "message",
  163. category: 'accessing',
  164. fn: function (){
  165. var self=this;
  166. return smalltalk.withContext(function($ctx1) {
  167. var $1;
  168. $1=self["@message"];
  169. return $1;
  170. }, function($ctx1) {$ctx1.fill(self,"message",{},smalltalk.HLParseErrorRaised)})},
  171. args: [],
  172. source: "message\x0a\x09^ message",
  173. messageSends: [],
  174. referencedClasses: []
  175. }),
  176. smalltalk.HLParseErrorRaised);
  177. smalltalk.addMethod(
  178. smalltalk.method({
  179. selector: "message:",
  180. category: 'accessing',
  181. fn: function (aString){
  182. var self=this;
  183. return smalltalk.withContext(function($ctx1) {
  184. self["@message"]=aString;
  185. return self}, function($ctx1) {$ctx1.fill(self,"message:",{aString:aString},smalltalk.HLParseErrorRaised)})},
  186. args: ["aString"],
  187. source: "message: aString\x0a\x09message := aString",
  188. messageSends: [],
  189. referencedClasses: []
  190. }),
  191. smalltalk.HLParseErrorRaised);
  192. smalltalk.addClass('HLUnknownVariableErrorRaised', smalltalk.HLErrorRaised, [], 'Helios-Announcements');
  193. smalltalk.addClass('HLFocusRequested', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
  194. smalltalk.addClass('HLClassesFocusRequested', smalltalk.HLFocusRequested, [], 'Helios-Announcements');
  195. smalltalk.addClass('HLMethodsFocusRequested', smalltalk.HLFocusRequested, [], 'Helios-Announcements');
  196. smalltalk.addClass('HLPackagesFocusRequested', smalltalk.HLFocusRequested, [], 'Helios-Announcements');
  197. smalltalk.addClass('HLProtocolsFocusRequested', smalltalk.HLFocusRequested, [], 'Helios-Announcements');
  198. smalltalk.addClass('HLSourceCodeFocusRequested', smalltalk.HLFocusRequested, [], 'Helios-Announcements');
  199. smalltalk.addClass('HLInstVarAdded', smalltalk.HLAnnouncement, ['theClass', 'variableName'], 'Helios-Announcements');
  200. smalltalk.addMethod(
  201. smalltalk.method({
  202. selector: "theClass",
  203. category: 'accessing',
  204. fn: function (){
  205. var self=this;
  206. return smalltalk.withContext(function($ctx1) {
  207. var $1;
  208. $1=self["@theClass"];
  209. return $1;
  210. }, function($ctx1) {$ctx1.fill(self,"theClass",{},smalltalk.HLInstVarAdded)})},
  211. args: [],
  212. source: "theClass\x0a\x09^ theClass",
  213. messageSends: [],
  214. referencedClasses: []
  215. }),
  216. smalltalk.HLInstVarAdded);
  217. smalltalk.addMethod(
  218. smalltalk.method({
  219. selector: "theClass:",
  220. category: 'accessing',
  221. fn: function (aClass){
  222. var self=this;
  223. return smalltalk.withContext(function($ctx1) {
  224. self["@theClass"]=aClass;
  225. return self}, function($ctx1) {$ctx1.fill(self,"theClass:",{aClass:aClass},smalltalk.HLInstVarAdded)})},
  226. args: ["aClass"],
  227. source: "theClass: aClass\x0a\x09theClass := aClass",
  228. messageSends: [],
  229. referencedClasses: []
  230. }),
  231. smalltalk.HLInstVarAdded);
  232. smalltalk.addMethod(
  233. smalltalk.method({
  234. selector: "variableName",
  235. category: 'accessing',
  236. fn: function (){
  237. var self=this;
  238. return smalltalk.withContext(function($ctx1) {
  239. var $1;
  240. $1=self["@variableName"];
  241. return $1;
  242. }, function($ctx1) {$ctx1.fill(self,"variableName",{},smalltalk.HLInstVarAdded)})},
  243. args: [],
  244. source: "variableName\x0a\x09^ variableName",
  245. messageSends: [],
  246. referencedClasses: []
  247. }),
  248. smalltalk.HLInstVarAdded);
  249. smalltalk.addMethod(
  250. smalltalk.method({
  251. selector: "variableName:",
  252. category: 'accessing',
  253. fn: function (aString){
  254. var self=this;
  255. return smalltalk.withContext(function($ctx1) {
  256. self["@variableName"]=aString;
  257. return self}, function($ctx1) {$ctx1.fill(self,"variableName:",{aString:aString},smalltalk.HLInstVarAdded)})},
  258. args: ["aString"],
  259. source: "variableName: aString\x0a\x09variableName := aString",
  260. messageSends: [],
  261. referencedClasses: []
  262. }),
  263. smalltalk.HLInstVarAdded);
  264. smalltalk.addClass('HLItemSelected', smalltalk.HLAnnouncement, ['item'], 'Helios-Announcements');
  265. smalltalk.addMethod(
  266. smalltalk.method({
  267. selector: "item",
  268. category: 'accessing',
  269. fn: function (){
  270. var self=this;
  271. return smalltalk.withContext(function($ctx1) {
  272. var $1;
  273. $1=self["@item"];
  274. return $1;
  275. }, function($ctx1) {$ctx1.fill(self,"item",{},smalltalk.HLItemSelected)})},
  276. args: [],
  277. source: "item\x0a\x09^ item",
  278. messageSends: [],
  279. referencedClasses: []
  280. }),
  281. smalltalk.HLItemSelected);
  282. smalltalk.addMethod(
  283. smalltalk.method({
  284. selector: "item:",
  285. category: 'accessing',
  286. fn: function (anObject){
  287. var self=this;
  288. return smalltalk.withContext(function($ctx1) {
  289. self["@item"]=anObject;
  290. return self}, function($ctx1) {$ctx1.fill(self,"item:",{anObject:anObject},smalltalk.HLItemSelected)})},
  291. args: ["anObject"],
  292. source: "item: anObject\x0a\x09item := anObject",
  293. messageSends: [],
  294. referencedClasses: []
  295. }),
  296. smalltalk.HLItemSelected);
  297. smalltalk.addMethod(
  298. smalltalk.method({
  299. selector: "on:",
  300. category: 'instance creation',
  301. fn: function (anItem){
  302. var self=this;
  303. return smalltalk.withContext(function($ctx1) {
  304. var $2,$3,$1;
  305. $2=_st(self)._new();
  306. _st($2)._item_(anItem);
  307. $3=_st($2)._yourself();
  308. $1=$3;
  309. return $1;
  310. }, function($ctx1) {$ctx1.fill(self,"on:",{anItem:anItem},smalltalk.HLItemSelected.klass)})},
  311. args: ["anItem"],
  312. source: "on: anItem\x0a\x09^ self new\x0a \x09item: anItem;\x0a yourself",
  313. messageSends: ["item:", "new", "yourself"],
  314. referencedClasses: []
  315. }),
  316. smalltalk.HLItemSelected.klass);
  317. smalltalk.addClass('HLClassSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
  318. smalltalk.addClass('HLInstanceVariableSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
  319. smalltalk.addClass('HLMethodSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
  320. smalltalk.addClass('HLPackageSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
  321. smalltalk.addClass('HLProtocolSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
  322. smalltalk.addClass('HLRefreshRequested', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
  323. smalltalk.addClass('HLSaveSourceCode', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
  324. smalltalk.addClass('HLShowCommentToggled', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
  325. smalltalk.addClass('HLShowInstanceToggled', smalltalk.HLAnnouncement, [], 'Helios-Announcements');