Helios-Announcements.js 12 KB

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