resin 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/amber/css/amber-normalize.css +73 -73
- data/amber/css/amber-normalize.less +1 -1
- data/amber/css/amber.css +106 -106
- data/amber/css/helios.css +242 -0
- data/amber/images/hsplitter.png +0 -0
- data/amber/images/vsplitter.png +0 -0
- data/amber/js/Benchfib.deploy.js +116 -38
- data/amber/js/Benchfib.js +120 -42
- data/amber/js/Canvas.deploy.js +674 -403
- data/amber/js/Canvas.js +682 -411
- data/amber/js/Compiler-AST.deploy.js +1150 -0
- data/amber/js/Compiler-AST.js +1591 -0
- data/amber/js/Compiler-Core.deploy.js +1562 -0
- data/amber/js/Compiler-Core.js +1972 -0
- data/amber/js/Compiler-Exceptions.deploy.js +114 -0
- data/amber/js/Compiler-Exceptions.js +161 -0
- data/amber/js/Compiler-IR.deploy.js +2326 -0
- data/amber/js/Compiler-IR.js +3146 -0
- data/amber/js/Compiler-Inlining.deploy.js +1147 -0
- data/amber/js/Compiler-Inlining.js +1514 -0
- data/amber/js/Compiler-Semantic.deploy.js +1207 -0
- data/amber/js/Compiler-Semantic.js +1628 -0
- data/amber/js/Compiler-Tests.deploy.js +646 -60
- data/amber/js/Compiler-Tests.js +843 -82
- data/amber/js/Compiler.deploy.js +1097 -159
- data/amber/js/Compiler.js +1414 -161
- data/amber/js/Examples.deploy.js +31 -15
- data/amber/js/Examples.js +33 -17
- data/amber/js/Helios-Announcements.deploy.js +127 -0
- data/amber/js/Helios-Announcements.js +157 -0
- data/amber/js/Helios-Browser.deploy.js +1473 -0
- data/amber/js/Helios-Browser.js +1953 -0
- data/amber/js/Helios-Commands.deploy.js +403 -0
- data/amber/js/Helios-Commands.js +563 -0
- data/amber/js/Helios-Core.deploy.js +1070 -0
- data/amber/js/Helios-Core.js +1445 -0
- data/amber/js/Helios-Environments.deploy.js +132 -0
- data/amber/js/Helios-Environments.js +179 -0
- data/amber/js/Helios-Inspector.deploy.js +855 -0
- data/amber/js/Helios-Inspector.js +1155 -0
- data/amber/js/Helios-KeyBindings.deploy.js +753 -0
- data/amber/js/Helios-KeyBindings.js +1023 -0
- data/amber/js/Helios-Layout.deploy.js +383 -0
- data/amber/js/Helios-Layout.js +523 -0
- data/amber/js/Helios-Workspace.deploy.js +799 -0
- data/amber/js/Helios-Workspace.js +1074 -0
- data/amber/js/IDE.deploy.js +2541 -1490
- data/amber/js/IDE.js +2721 -1660
- data/amber/js/Importer-Exporter.deploy.js +671 -0
- data/amber/js/Importer-Exporter.js +816 -0
- data/amber/js/Kernel-Announcements.deploy.js +137 -20
- data/amber/js/Kernel-Announcements.js +176 -22
- data/amber/js/Kernel-Classes.deploy.js +555 -168
- data/amber/js/Kernel-Classes.js +662 -205
- data/amber/js/Kernel-Collections.deploy.js +1403 -618
- data/amber/js/Kernel-Collections.js +1545 -690
- data/amber/js/Kernel-Exceptions.deploy.js +109 -45
- data/amber/js/Kernel-Exceptions.js +123 -49
- data/amber/js/Kernel-Methods.deploy.js +196 -81
- data/amber/js/Kernel-Methods.js +214 -89
- data/amber/js/Kernel-Objects.deploy.js +1542 -1117
- data/amber/js/Kernel-Objects.js +1593 -1148
- data/amber/js/Kernel-Tests.deploy.js +1725 -772
- data/amber/js/Kernel-Tests.js +2301 -1123
- data/amber/js/Kernel-Transcript.deploy.js +23 -25
- data/amber/js/Kernel-Transcript.js +24 -26
- data/amber/js/SUnit.deploy.js +204 -131
- data/amber/js/SUnit.js +222 -139
- data/amber/js/Spaces.deploy.js +240 -0
- data/amber/js/Spaces.js +326 -0
- data/amber/js/amber.js +26 -7
- data/amber/js/boot.js +65 -47
- data/amber/js/init.js +1 -1
- data/amber/js/lib/CodeMirror/amber.css +21 -21
- data/amber/js/lib/CodeMirror/codemirror.css +119 -13
- data/amber/js/lib/CodeMirror/codemirror.js +2219 -1220
- data/amber/js/lib/CodeMirror/smalltalk.js +134 -129
- data/amber/js/lib/bootstrap/css/bootstrap.css +5837 -0
- data/amber/js/lib/bootstrap/css/bootstrap.min.css +841 -0
- data/amber/js/lib/bootstrap/img/glyphicons-halflings-white.png +0 -0
- data/amber/js/lib/bootstrap/img/glyphicons-halflings.png +0 -0
- data/amber/js/lib/bootstrap/js/bootstrap.js +2038 -0
- data/amber/js/lib/bootstrap/js/bootstrap.min.js +7 -0
- data/amber/js/lib/jQuery/jquery-1.8.2.min.js +2 -0
- data/amber/js/lib/jQuery/jquery-ui-1.8.24.custom.min.js +125 -0
- data/amber/st/Compiler-AST.st +505 -0
- data/amber/st/Compiler-Core.st +835 -0
- data/amber/st/Compiler-Exceptions.st +87 -0
- data/amber/st/Compiler-IR.st +1097 -0
- data/amber/st/Compiler-Inlining.st +650 -0
- data/amber/st/Compiler-Semantic.st +558 -0
- data/amber/st/Compiler-Tests.st +285 -381
- data/amber/st/Compiler.st +725 -2
- data/amber/st/Helios-Announcements.st +104 -0
- data/amber/st/Helios-Browser.st +708 -0
- data/amber/st/Helios-Commands.st +223 -0
- data/amber/st/Helios-Core.st +532 -0
- data/amber/st/Helios-Environments.st +98 -0
- data/amber/st/Helios-Inspector.st +367 -0
- data/amber/st/Helios-KeyBindings.st +337 -0
- data/amber/st/Helios-Layout.st +199 -0
- data/amber/st/Helios-Workspace.st +367 -0
- data/amber/st/IDE.st +75 -53
- data/amber/st/Importer-Exporter.st +386 -0
- data/amber/st/Kernel-Announcements.st +92 -0
- data/amber/st/Kernel-Classes.st +137 -15
- data/amber/st/Kernel-Collections.st +137 -47
- data/amber/st/Kernel-Exceptions.st +14 -0
- data/amber/st/Kernel-Methods.st +9 -1
- data/amber/st/Kernel-Objects.st +29 -5
- data/amber/st/Kernel-Tests.st +545 -199
- data/amber/st/SUnit.st +10 -0
- data/amber/st/Spaces.st +142 -0
- data/lib/resin/app.rb +1 -1
- metadata +86 -31
- data/amber/js/lib/jQuery/jquery-1.4.4.min.js +0 -167
- data/amber/js/lib/jQuery/jquery-1.6.4.min.js +0 -4
data/amber/js/Examples.deploy.js
CHANGED
@@ -6,9 +6,11 @@ smalltalk.method({
|
|
6
6
|
selector: "decrease",
|
7
7
|
fn: function (){
|
8
8
|
var self=this;
|
9
|
-
|
10
|
-
smalltalk.send(self[
|
11
|
-
return self;
|
9
|
+
self["@count"]=smalltalk.send(self["@count"],"__minus",[(1)]);
|
10
|
+
smalltalk.send(self["@header"],"_contents_",[(function(html){
|
11
|
+
return smalltalk.send(html,"_with_",[smalltalk.send(self["@count"],"_asString",[])]);
|
12
|
+
})]);
|
13
|
+
return self}
|
12
14
|
}),
|
13
15
|
smalltalk.Counter);
|
14
16
|
|
@@ -18,9 +20,11 @@ smalltalk.method({
|
|
18
20
|
selector: "increase",
|
19
21
|
fn: function (){
|
20
22
|
var self=this;
|
21
|
-
|
22
|
-
smalltalk.send(self[
|
23
|
-
return self;
|
23
|
+
self["@count"]=smalltalk.send(self["@count"],"__plus",[(1)]);
|
24
|
+
smalltalk.send(self["@header"],"_contents_",[(function(html){
|
25
|
+
return smalltalk.send(html,"_with_",[smalltalk.send(self["@count"],"_asString",[])]);
|
26
|
+
})]);
|
27
|
+
return self}
|
24
28
|
}),
|
25
29
|
smalltalk.Counter);
|
26
30
|
|
@@ -30,9 +34,9 @@ smalltalk.method({
|
|
30
34
|
selector: "initialize",
|
31
35
|
fn: function (){
|
32
36
|
var self=this;
|
33
|
-
smalltalk.send(self,
|
34
|
-
|
35
|
-
return self
|
37
|
+
smalltalk.send(self,"_initialize",[],smalltalk.Widget);
|
38
|
+
self["@count"]=(0);
|
39
|
+
return self}
|
36
40
|
}),
|
37
41
|
smalltalk.Counter);
|
38
42
|
|
@@ -42,10 +46,22 @@ smalltalk.method({
|
|
42
46
|
selector: "renderOn:",
|
43
47
|
fn: function (html){
|
44
48
|
var self=this;
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
+
var $1,$2,$3,$4,$5,$6;
|
50
|
+
$1=smalltalk.send(html,"_h1",[]);
|
51
|
+
smalltalk.send($1,"_with_",[smalltalk.send(self["@count"],"_asString",[])]);
|
52
|
+
$2=smalltalk.send($1,"_yourself",[]);
|
53
|
+
self["@header"]=$2;
|
54
|
+
$3=smalltalk.send(html,"_button",[]);
|
55
|
+
smalltalk.send($3,"_with_",["++"]);
|
56
|
+
$4=smalltalk.send($3,"_onClick_",[(function(){
|
57
|
+
return smalltalk.send(self,"_increase",[]);
|
58
|
+
})]);
|
59
|
+
$5=smalltalk.send(html,"_button",[]);
|
60
|
+
smalltalk.send($5,"_with_",["--"]);
|
61
|
+
$6=smalltalk.send($5,"_onClick_",[(function(){
|
62
|
+
return smalltalk.send(self,"_decrease",[]);
|
63
|
+
})]);
|
64
|
+
return self}
|
49
65
|
}),
|
50
66
|
smalltalk.Counter);
|
51
67
|
|
@@ -56,8 +72,8 @@ smalltalk.method({
|
|
56
72
|
selector: "tryExample",
|
57
73
|
fn: function (){
|
58
74
|
var self=this;
|
59
|
-
smalltalk.send(smalltalk.send(self,
|
60
|
-
return self
|
75
|
+
smalltalk.send(smalltalk.send(self,"_new",[]),"_appendToJQuery_",[smalltalk.send("body","_asJQuery",[])]);
|
76
|
+
return self}
|
61
77
|
}),
|
62
78
|
smalltalk.Counter.klass);
|
63
79
|
|
data/amber/js/Examples.js
CHANGED
@@ -8,9 +8,11 @@ selector: "decrease",
|
|
8
8
|
category: 'actions',
|
9
9
|
fn: function (){
|
10
10
|
var self=this;
|
11
|
-
|
12
|
-
smalltalk.send(self[
|
13
|
-
return self;
|
11
|
+
self["@count"]=smalltalk.send(self["@count"],"__minus",[(1)]);
|
12
|
+
smalltalk.send(self["@header"],"_contents_",[(function(html){
|
13
|
+
return smalltalk.send(html,"_with_",[smalltalk.send(self["@count"],"_asString",[])]);
|
14
|
+
})]);
|
15
|
+
return self},
|
14
16
|
args: [],
|
15
17
|
source: "decrease\x0a count := count - 1.\x0a header contents: [:html | html with: count asString]",
|
16
18
|
messageSends: ["-", "contents:", "with:", "asString"],
|
@@ -25,9 +27,11 @@ selector: "increase",
|
|
25
27
|
category: 'actions',
|
26
28
|
fn: function (){
|
27
29
|
var self=this;
|
28
|
-
|
29
|
-
smalltalk.send(self[
|
30
|
-
return self;
|
30
|
+
self["@count"]=smalltalk.send(self["@count"],"__plus",[(1)]);
|
31
|
+
smalltalk.send(self["@header"],"_contents_",[(function(html){
|
32
|
+
return smalltalk.send(html,"_with_",[smalltalk.send(self["@count"],"_asString",[])]);
|
33
|
+
})]);
|
34
|
+
return self},
|
31
35
|
args: [],
|
32
36
|
source: "increase\x0a count := count + 1.\x0a header contents: [:html | html with: count asString]",
|
33
37
|
messageSends: ["+", "contents:", "with:", "asString"],
|
@@ -42,9 +46,9 @@ selector: "initialize",
|
|
42
46
|
category: 'initialization',
|
43
47
|
fn: function (){
|
44
48
|
var self=this;
|
45
|
-
smalltalk.send(self,
|
46
|
-
|
47
|
-
return self
|
49
|
+
smalltalk.send(self,"_initialize",[],smalltalk.Widget);
|
50
|
+
self["@count"]=(0);
|
51
|
+
return self},
|
48
52
|
args: [],
|
49
53
|
source: "initialize\x0a super initialize.\x0a count := 0",
|
50
54
|
messageSends: ["initialize"],
|
@@ -59,13 +63,25 @@ selector: "renderOn:",
|
|
59
63
|
category: 'rendering',
|
60
64
|
fn: function (html){
|
61
65
|
var self=this;
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
+
var $1,$2,$3,$4,$5,$6;
|
67
|
+
$1=smalltalk.send(html,"_h1",[]);
|
68
|
+
smalltalk.send($1,"_with_",[smalltalk.send(self["@count"],"_asString",[])]);
|
69
|
+
$2=smalltalk.send($1,"_yourself",[]);
|
70
|
+
self["@header"]=$2;
|
71
|
+
$3=smalltalk.send(html,"_button",[]);
|
72
|
+
smalltalk.send($3,"_with_",["++"]);
|
73
|
+
$4=smalltalk.send($3,"_onClick_",[(function(){
|
74
|
+
return smalltalk.send(self,"_increase",[]);
|
75
|
+
})]);
|
76
|
+
$5=smalltalk.send(html,"_button",[]);
|
77
|
+
smalltalk.send($5,"_with_",["--"]);
|
78
|
+
$6=smalltalk.send($5,"_onClick_",[(function(){
|
79
|
+
return smalltalk.send(self,"_decrease",[]);
|
80
|
+
})]);
|
81
|
+
return self},
|
66
82
|
args: ["html"],
|
67
83
|
source: "renderOn: html\x0a header := html h1 \x0a\x09with: count asString;\x0a\x09yourself.\x0a html button\x0a\x09with: '++';\x0a\x09onClick: [self increase].\x0a html button\x0a\x09with: '--';\x0a\x09onClick: [self decrease]",
|
68
|
-
messageSends: ["with:", "asString", "yourself", "
|
84
|
+
messageSends: ["with:", "asString", "h1", "yourself", "button", "onClick:", "increase", "decrease"],
|
69
85
|
referencedClasses: []
|
70
86
|
}),
|
71
87
|
smalltalk.Counter);
|
@@ -78,11 +94,11 @@ selector: "tryExample",
|
|
78
94
|
category: 'example',
|
79
95
|
fn: function (){
|
80
96
|
var self=this;
|
81
|
-
smalltalk.send(smalltalk.send(self,
|
82
|
-
return self
|
97
|
+
smalltalk.send(smalltalk.send(self,"_new",[]),"_appendToJQuery_",[smalltalk.send("body","_asJQuery",[])]);
|
98
|
+
return self},
|
83
99
|
args: [],
|
84
100
|
source: "tryExample\x0a\x09\x22In order to play with the Counter, just select the\x0a\x09doit below and press the Do it button. Then take a\x0a\x09look in the HTML document above the IDE.\x22\x0a\x0a\x09\x22Counter tryExample\x22\x0a self new appendToJQuery: 'body' asJQuery",
|
85
|
-
messageSends: ["appendToJQuery:", "
|
101
|
+
messageSends: ["appendToJQuery:", "asJQuery", "new"],
|
86
102
|
referencedClasses: []
|
87
103
|
}),
|
88
104
|
smalltalk.Counter.klass);
|
@@ -0,0 +1,127 @@
|
|
1
|
+
smalltalk.addPackage('Helios-Announcements', {});
|
2
|
+
smalltalk.addClass('HLAnnouncement', smalltalk.Object, [], 'Helios-Announcements');
|
3
|
+
|
4
|
+
|
5
|
+
smalltalk.addClass('HLCodeHandled', smalltalk.HLAnnouncement, ['code'], 'Helios-Announcements');
|
6
|
+
smalltalk.addMethod(
|
7
|
+
"_code",
|
8
|
+
smalltalk.method({
|
9
|
+
selector: "code",
|
10
|
+
fn: function () {
|
11
|
+
var self = this;
|
12
|
+
return self['@code'];
|
13
|
+
}
|
14
|
+
}),
|
15
|
+
smalltalk.HLCodeHandled);
|
16
|
+
|
17
|
+
smalltalk.addMethod(
|
18
|
+
"_code_",
|
19
|
+
smalltalk.method({
|
20
|
+
selector: "code:",
|
21
|
+
fn: function (aModel) {
|
22
|
+
var self = this;
|
23
|
+
self['@code'] = aModel;
|
24
|
+
return self;
|
25
|
+
}
|
26
|
+
}),
|
27
|
+
smalltalk.HLCodeHandled);
|
28
|
+
|
29
|
+
|
30
|
+
smalltalk.addMethod(
|
31
|
+
"_on_",
|
32
|
+
smalltalk.method({
|
33
|
+
selector: "on:",
|
34
|
+
fn: function (aCodeModel) {
|
35
|
+
var self = this;
|
36
|
+
var $2, $3, $1;
|
37
|
+
$2 = smalltalk.send(self, "_new", []);
|
38
|
+
smalltalk.send($2, "_code_", [aCodeModel]);
|
39
|
+
$3 = smalltalk.send($2, "_yourself", []);
|
40
|
+
$1 = $3;
|
41
|
+
return $1;
|
42
|
+
}
|
43
|
+
}),
|
44
|
+
smalltalk.HLCodeHandled.klass);
|
45
|
+
|
46
|
+
|
47
|
+
smalltalk.addClass('HLDoItExecuted', smalltalk.HLCodeHandled, [], 'Helios-Announcements');
|
48
|
+
|
49
|
+
|
50
|
+
smalltalk.addClass('HLDoItRequested', smalltalk.HLCodeHandled, [], 'Helios-Announcements');
|
51
|
+
|
52
|
+
|
53
|
+
smalltalk.addClass('HLInspectItRequested', smalltalk.HLCodeHandled, [], 'Helios-Announcements');
|
54
|
+
|
55
|
+
|
56
|
+
smalltalk.addClass('HLPrintItRequested', smalltalk.HLCodeHandled, [], 'Helios-Announcements');
|
57
|
+
|
58
|
+
|
59
|
+
smalltalk.addClass('HLDiveRequested', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
|
60
|
+
|
61
|
+
|
62
|
+
smalltalk.addClass('HLItemSelected', smalltalk.HLAnnouncement, ['item'], 'Helios-Announcements');
|
63
|
+
smalltalk.addMethod(
|
64
|
+
"_item",
|
65
|
+
smalltalk.method({
|
66
|
+
selector: "item",
|
67
|
+
fn: function () {
|
68
|
+
var self = this;
|
69
|
+
return self['@item'];
|
70
|
+
}
|
71
|
+
}),
|
72
|
+
smalltalk.HLItemSelected);
|
73
|
+
|
74
|
+
smalltalk.addMethod(
|
75
|
+
"_item_",
|
76
|
+
smalltalk.method({
|
77
|
+
selector: "item:",
|
78
|
+
fn: function (anObject) {
|
79
|
+
var self = this;
|
80
|
+
self['@item'] = anObject;
|
81
|
+
return self;
|
82
|
+
}
|
83
|
+
}),
|
84
|
+
smalltalk.HLItemSelected);
|
85
|
+
|
86
|
+
|
87
|
+
smalltalk.addMethod(
|
88
|
+
"_on_",
|
89
|
+
smalltalk.method({
|
90
|
+
selector: "on:",
|
91
|
+
fn: function (anItem) {
|
92
|
+
var self = this;
|
93
|
+
var $2, $3, $1;
|
94
|
+
$2 = smalltalk.send(self, "_new", []);
|
95
|
+
smalltalk.send($2, "_item_", [anItem]);
|
96
|
+
$3 = smalltalk.send($2, "_yourself", []);
|
97
|
+
$1 = $3;
|
98
|
+
return $1;
|
99
|
+
}
|
100
|
+
}),
|
101
|
+
smalltalk.HLItemSelected.klass);
|
102
|
+
|
103
|
+
|
104
|
+
smalltalk.addClass('HLClassSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
|
105
|
+
|
106
|
+
|
107
|
+
smalltalk.addClass('HLInstanceVariableSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
|
108
|
+
|
109
|
+
|
110
|
+
smalltalk.addClass('HLMethodSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
|
111
|
+
|
112
|
+
|
113
|
+
smalltalk.addClass('HLPackageSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
|
114
|
+
|
115
|
+
|
116
|
+
smalltalk.addClass('HLProtocolSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
|
117
|
+
|
118
|
+
|
119
|
+
smalltalk.addClass('HLRefreshRequested', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
|
120
|
+
|
121
|
+
|
122
|
+
smalltalk.addClass('HLShowCommentToggled', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
|
123
|
+
|
124
|
+
|
125
|
+
smalltalk.addClass('HLShowInstanceToggled', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
|
126
|
+
|
127
|
+
|
@@ -0,0 +1,157 @@
|
|
1
|
+
smalltalk.addPackage('Helios-Announcements', {});
|
2
|
+
smalltalk.addClass('HLAnnouncement', smalltalk.Object, [], 'Helios-Announcements');
|
3
|
+
|
4
|
+
|
5
|
+
smalltalk.addClass('HLCodeHandled', smalltalk.HLAnnouncement, ['code'], 'Helios-Announcements');
|
6
|
+
smalltalk.addMethod(
|
7
|
+
"_code",
|
8
|
+
smalltalk.method({
|
9
|
+
selector: "code",
|
10
|
+
category: 'accessing',
|
11
|
+
fn: function () {
|
12
|
+
var self = this;
|
13
|
+
return self['@code'];
|
14
|
+
},
|
15
|
+
args: [],
|
16
|
+
source: "code\x0a\x0a\x09^ code",
|
17
|
+
messageSends: [],
|
18
|
+
referencedClasses: []
|
19
|
+
}),
|
20
|
+
smalltalk.HLCodeHandled);
|
21
|
+
|
22
|
+
smalltalk.addMethod(
|
23
|
+
"_code_",
|
24
|
+
smalltalk.method({
|
25
|
+
selector: "code:",
|
26
|
+
category: 'accessing',
|
27
|
+
fn: function (aModel) {
|
28
|
+
var self = this;
|
29
|
+
self['@code'] = aModel;
|
30
|
+
return self;
|
31
|
+
},
|
32
|
+
args: ["aModel"],
|
33
|
+
source: "code: aModel\x0a\x0a\x09code := aModel",
|
34
|
+
messageSends: [],
|
35
|
+
referencedClasses: []
|
36
|
+
}),
|
37
|
+
smalltalk.HLCodeHandled);
|
38
|
+
|
39
|
+
|
40
|
+
smalltalk.addMethod(
|
41
|
+
"_on_",
|
42
|
+
smalltalk.method({
|
43
|
+
selector: "on:",
|
44
|
+
category: 'actions',
|
45
|
+
fn: function (aCodeModel) {
|
46
|
+
var self = this;
|
47
|
+
var $2, $3, $1;
|
48
|
+
$2 = smalltalk.send(self, "_new", []);
|
49
|
+
smalltalk.send($2, "_code_", [aCodeModel]);
|
50
|
+
$3 = smalltalk.send($2, "_yourself", []);
|
51
|
+
$1 = $3;
|
52
|
+
return $1;
|
53
|
+
},
|
54
|
+
args: ["aCodeModel"],
|
55
|
+
source: "on: aCodeModel\x0a\x0a\x09^ self new \x0a \x09code: aCodeModel;\x0a yourself",
|
56
|
+
messageSends: ["code:", "new", "yourself"],
|
57
|
+
referencedClasses: []
|
58
|
+
}),
|
59
|
+
smalltalk.HLCodeHandled.klass);
|
60
|
+
|
61
|
+
|
62
|
+
smalltalk.addClass('HLDoItExecuted', smalltalk.HLCodeHandled, [], 'Helios-Announcements');
|
63
|
+
|
64
|
+
|
65
|
+
smalltalk.addClass('HLDoItRequested', smalltalk.HLCodeHandled, [], 'Helios-Announcements');
|
66
|
+
|
67
|
+
|
68
|
+
smalltalk.addClass('HLInspectItRequested', smalltalk.HLCodeHandled, [], 'Helios-Announcements');
|
69
|
+
|
70
|
+
|
71
|
+
smalltalk.addClass('HLPrintItRequested', smalltalk.HLCodeHandled, [], 'Helios-Announcements');
|
72
|
+
|
73
|
+
|
74
|
+
smalltalk.addClass('HLDiveRequested', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
|
75
|
+
|
76
|
+
|
77
|
+
smalltalk.addClass('HLItemSelected', smalltalk.HLAnnouncement, ['item'], 'Helios-Announcements');
|
78
|
+
smalltalk.addMethod(
|
79
|
+
"_item",
|
80
|
+
smalltalk.method({
|
81
|
+
selector: "item",
|
82
|
+
category: 'accessing',
|
83
|
+
fn: function () {
|
84
|
+
var self = this;
|
85
|
+
return self['@item'];
|
86
|
+
},
|
87
|
+
args: [],
|
88
|
+
source: "item\x0a\x09^ item",
|
89
|
+
messageSends: [],
|
90
|
+
referencedClasses: []
|
91
|
+
}),
|
92
|
+
smalltalk.HLItemSelected);
|
93
|
+
|
94
|
+
smalltalk.addMethod(
|
95
|
+
"_item_",
|
96
|
+
smalltalk.method({
|
97
|
+
selector: "item:",
|
98
|
+
category: 'accessing',
|
99
|
+
fn: function (anObject) {
|
100
|
+
var self = this;
|
101
|
+
self['@item'] = anObject;
|
102
|
+
return self;
|
103
|
+
},
|
104
|
+
args: ["anObject"],
|
105
|
+
source: "item: anObject\x0a\x09item := anObject",
|
106
|
+
messageSends: [],
|
107
|
+
referencedClasses: []
|
108
|
+
}),
|
109
|
+
smalltalk.HLItemSelected);
|
110
|
+
|
111
|
+
|
112
|
+
smalltalk.addMethod(
|
113
|
+
"_on_",
|
114
|
+
smalltalk.method({
|
115
|
+
selector: "on:",
|
116
|
+
category: 'instance creation',
|
117
|
+
fn: function (anItem) {
|
118
|
+
var self = this;
|
119
|
+
var $2, $3, $1;
|
120
|
+
$2 = smalltalk.send(self, "_new", []);
|
121
|
+
smalltalk.send($2, "_item_", [anItem]);
|
122
|
+
$3 = smalltalk.send($2, "_yourself", []);
|
123
|
+
$1 = $3;
|
124
|
+
return $1;
|
125
|
+
},
|
126
|
+
args: ["anItem"],
|
127
|
+
source: "on: anItem\x0a\x09^ self new\x0a \x09item: anItem;\x0a yourself",
|
128
|
+
messageSends: ["item:", "new", "yourself"],
|
129
|
+
referencedClasses: []
|
130
|
+
}),
|
131
|
+
smalltalk.HLItemSelected.klass);
|
132
|
+
|
133
|
+
|
134
|
+
smalltalk.addClass('HLClassSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
|
135
|
+
|
136
|
+
|
137
|
+
smalltalk.addClass('HLInstanceVariableSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
|
138
|
+
|
139
|
+
|
140
|
+
smalltalk.addClass('HLMethodSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
|
141
|
+
|
142
|
+
|
143
|
+
smalltalk.addClass('HLPackageSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
|
144
|
+
|
145
|
+
|
146
|
+
smalltalk.addClass('HLProtocolSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
|
147
|
+
|
148
|
+
|
149
|
+
smalltalk.addClass('HLRefreshRequested', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
|
150
|
+
|
151
|
+
|
152
|
+
smalltalk.addClass('HLShowCommentToggled', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
|
153
|
+
|
154
|
+
|
155
|
+
smalltalk.addClass('HLShowInstanceToggled', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
|
156
|
+
|
157
|
+
|