Helios-Announcements.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. "_code",
  6. smalltalk.method({
  7. selector: "code",
  8. category: 'accessing',
  9. fn: function () {
  10. var self = this;
  11. return self['@code'];
  12. },
  13. args: [],
  14. source: "code\x0a\x0a\x09^ code",
  15. messageSends: [],
  16. referencedClasses: []
  17. }),
  18. smalltalk.HLCodeHandled);
  19. smalltalk.addMethod(
  20. "_code_",
  21. smalltalk.method({
  22. selector: "code:",
  23. category: 'accessing',
  24. fn: function (aModel) {
  25. var self = this;
  26. self['@code'] = aModel;
  27. return self;
  28. },
  29. args: ["aModel"],
  30. source: "code: aModel\x0a\x0a\x09code := aModel",
  31. messageSends: [],
  32. referencedClasses: []
  33. }),
  34. smalltalk.HLCodeHandled);
  35. smalltalk.addMethod(
  36. "_on_",
  37. smalltalk.method({
  38. selector: "on:",
  39. category: 'actions',
  40. fn: function (aCodeModel) {
  41. var self = this;
  42. var $2, $3, $1;
  43. $2 = smalltalk.send(self, "_new", []);
  44. smalltalk.send($2, "_code_", [aCodeModel]);
  45. $3 = smalltalk.send($2, "_yourself", []);
  46. $1 = $3;
  47. return $1;
  48. },
  49. args: ["aCodeModel"],
  50. source: "on: aCodeModel\x0a\x0a\x09^ self new \x0a \x09code: aCodeModel;\x0a yourself",
  51. messageSends: ["code:", "new", "yourself"],
  52. referencedClasses: []
  53. }),
  54. smalltalk.HLCodeHandled.klass);
  55. smalltalk.addClass('HLDoItExecuted', smalltalk.HLCodeHandled, [], 'Helios-Announcements');
  56. smalltalk.addClass('HLDoItRequested', smalltalk.HLCodeHandled, [], 'Helios-Announcements');
  57. smalltalk.addClass('HLInspectItRequested', smalltalk.HLCodeHandled, [], 'Helios-Announcements');
  58. smalltalk.addClass('HLPrintItRequested', smalltalk.HLCodeHandled, [], 'Helios-Announcements');
  59. smalltalk.addClass('HLDiveRequested', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
  60. smalltalk.addClass('HLItemSelected', smalltalk.HLAnnouncement, ['item'], 'Helios-Announcements');
  61. smalltalk.addMethod(
  62. "_item",
  63. smalltalk.method({
  64. selector: "item",
  65. category: 'accessing',
  66. fn: function () {
  67. var self = this;
  68. return self['@item'];
  69. },
  70. args: [],
  71. source: "item\x0a\x09^ item",
  72. messageSends: [],
  73. referencedClasses: []
  74. }),
  75. smalltalk.HLItemSelected);
  76. smalltalk.addMethod(
  77. "_item_",
  78. smalltalk.method({
  79. selector: "item:",
  80. category: 'accessing',
  81. fn: function (anObject) {
  82. var self = this;
  83. self['@item'] = anObject;
  84. return self;
  85. },
  86. args: ["anObject"],
  87. source: "item: anObject\x0a\x09item := anObject",
  88. messageSends: [],
  89. referencedClasses: []
  90. }),
  91. smalltalk.HLItemSelected);
  92. smalltalk.addMethod(
  93. "_on_",
  94. smalltalk.method({
  95. selector: "on:",
  96. category: 'instance creation',
  97. fn: function (anItem) {
  98. var self = this;
  99. var $2, $3, $1;
  100. $2 = smalltalk.send(self, "_new", []);
  101. smalltalk.send($2, "_item_", [anItem]);
  102. $3 = smalltalk.send($2, "_yourself", []);
  103. $1 = $3;
  104. return $1;
  105. },
  106. args: ["anItem"],
  107. source: "on: anItem\x0a\x09^ self new\x0a \x09item: anItem;\x0a yourself",
  108. messageSends: ["item:", "new", "yourself"],
  109. referencedClasses: []
  110. }),
  111. smalltalk.HLItemSelected.klass);
  112. smalltalk.addClass('HLClassSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
  113. smalltalk.addClass('HLInstanceVariableSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
  114. smalltalk.addClass('HLMethodSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
  115. smalltalk.addClass('HLPackageSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
  116. smalltalk.addClass('HLProtocolSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
  117. smalltalk.addClass('HLRefreshRequested', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
  118. smalltalk.addClass('HLShowCommentToggled', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
  119. smalltalk.addClass('HLShowInstanceToggled', smalltalk.HLAnnouncement, [], 'Helios-Announcements');