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
@@ -0,0 +1,1155 @@
|
|
1
|
+
smalltalk.addPackage('Helios-Inspector', {});
|
2
|
+
smalltalk.addClass('HLInspector', smalltalk.HLWidget, ['model', 'variablesWidget', 'displayWidget', 'codeWidget', 'label'], 'Helios-Inspector');
|
3
|
+
smalltalk.addMethod(
|
4
|
+
"_codeWidget",
|
5
|
+
smalltalk.method({
|
6
|
+
selector: "codeWidget",
|
7
|
+
category: 'accessing',
|
8
|
+
fn: function () {
|
9
|
+
var self = this;
|
10
|
+
var $2, $3, $1;
|
11
|
+
if (($receiver = self['@codeWidget']) == nil || $receiver == undefined) {
|
12
|
+
$2 = smalltalk.send(smalltalk.HLCodeWidget || HLCodeWidget, "_new", []);
|
13
|
+
smalltalk.send($2, "_model_", [smalltalk.send(self['@model'], "_code", [])]);
|
14
|
+
smalltalk.send($2, "_receiver_", [smalltalk.send(self['@model'], "_inspectee", [])]);
|
15
|
+
$3 = smalltalk.send($2, "_yourself", []);
|
16
|
+
self['@codeWidget'] = $3;
|
17
|
+
$1 = self['@codeWidget'];
|
18
|
+
} else {
|
19
|
+
$1 = self['@codeWidget'];
|
20
|
+
}
|
21
|
+
return $1;
|
22
|
+
},
|
23
|
+
args: [],
|
24
|
+
source: "codeWidget\x0a\x09^ codeWidget ifNil: [\x0a\x09\x09codeWidget := HLCodeWidget new\x0a \x09\x09model: model code;\x0a \x09receiver: model inspectee;\x0a \x09yourself ]",
|
25
|
+
messageSends: ["ifNil:", "model:", "code", "new", "receiver:", "inspectee", "yourself"],
|
26
|
+
referencedClasses: ["HLCodeWidget"]
|
27
|
+
}),
|
28
|
+
smalltalk.HLInspector);
|
29
|
+
|
30
|
+
smalltalk.addMethod(
|
31
|
+
"_displayWidget",
|
32
|
+
smalltalk.method({
|
33
|
+
selector: "displayWidget",
|
34
|
+
category: 'accessing',
|
35
|
+
fn: function () {
|
36
|
+
var self = this;
|
37
|
+
var $2, $3, $1;
|
38
|
+
if (($receiver = self['@displayWidget']) == nil ||
|
39
|
+
$receiver == undefined) {
|
40
|
+
$2 = smalltalk.send(smalltalk.HLInspectorDisplayWidget || HLInspectorDisplayWidget, "_new", []);
|
41
|
+
smalltalk.send($2, "_model_", [smalltalk.send(self, "_model", [])]);
|
42
|
+
$3 = smalltalk.send($2, "_yourself", []);
|
43
|
+
self['@displayWidget'] = $3;
|
44
|
+
$1 = self['@displayWidget'];
|
45
|
+
} else {
|
46
|
+
$1 = self['@displayWidget'];
|
47
|
+
}
|
48
|
+
return $1;
|
49
|
+
},
|
50
|
+
args: [],
|
51
|
+
source: "displayWidget\x0a\x09^ displayWidget ifNil: [\x0a\x09\x09displayWidget := HLInspectorDisplayWidget new\x0a \x09\x09model: self model;\x0a \x09yourself ]",
|
52
|
+
messageSends: ["ifNil:", "model:", "model", "new", "yourself"],
|
53
|
+
referencedClasses: ["HLInspectorDisplayWidget"]
|
54
|
+
}),
|
55
|
+
smalltalk.HLInspector);
|
56
|
+
|
57
|
+
smalltalk.addMethod(
|
58
|
+
"_inspect_",
|
59
|
+
smalltalk.method({
|
60
|
+
selector: "inspect:",
|
61
|
+
category: 'actions',
|
62
|
+
fn: function (anObject) {
|
63
|
+
var self = this;
|
64
|
+
var $1;
|
65
|
+
smalltalk.send(smalltalk.send(self, "_model", []), "_inspect_on_", [anObject, self]);
|
66
|
+
smalltalk.send(self, "_refreshVariablesWidget", []);
|
67
|
+
$1 = smalltalk.send(self, "_refreshDisplayWidget", []);
|
68
|
+
return self;
|
69
|
+
},
|
70
|
+
args: ["anObject"],
|
71
|
+
source: "inspect: anObject\x0a\x09self model inspect: anObject on: self.\x0a \x0a\x09self \x0a \x09refreshVariablesWidget;\x0a\x09\x09refreshDisplayWidget",
|
72
|
+
messageSends: ["inspect:on:", "model", "refreshVariablesWidget", "refreshDisplayWidget"],
|
73
|
+
referencedClasses: []
|
74
|
+
}),
|
75
|
+
smalltalk.HLInspector);
|
76
|
+
|
77
|
+
smalltalk.addMethod(
|
78
|
+
"_inspectee",
|
79
|
+
smalltalk.method({
|
80
|
+
selector: "inspectee",
|
81
|
+
category: 'accessing',
|
82
|
+
fn: function () {
|
83
|
+
var self = this;
|
84
|
+
var $1;
|
85
|
+
$1 = smalltalk.send(smalltalk.send(self, "_model", []), "_inspectee", []);
|
86
|
+
return $1;
|
87
|
+
},
|
88
|
+
args: [],
|
89
|
+
source: "inspectee\x0a\x09^ self model inspectee",
|
90
|
+
messageSends: ["inspectee", "model"],
|
91
|
+
referencedClasses: []
|
92
|
+
}),
|
93
|
+
smalltalk.HLInspector);
|
94
|
+
|
95
|
+
smalltalk.addMethod(
|
96
|
+
"_inspectee_",
|
97
|
+
smalltalk.method({
|
98
|
+
selector: "inspectee:",
|
99
|
+
category: 'accessing',
|
100
|
+
fn: function (anObject) {
|
101
|
+
var self = this;
|
102
|
+
smalltalk.send(smalltalk.send(self, "_model", []), "_inspectee_", [anObject]);
|
103
|
+
return self;
|
104
|
+
},
|
105
|
+
args: ["anObject"],
|
106
|
+
source: "inspectee: anObject\x0a\x09self model inspectee: anObject",
|
107
|
+
messageSends: ["inspectee:", "model"],
|
108
|
+
referencedClasses: []
|
109
|
+
}),
|
110
|
+
smalltalk.HLInspector);
|
111
|
+
|
112
|
+
smalltalk.addMethod(
|
113
|
+
"_label",
|
114
|
+
smalltalk.method({
|
115
|
+
selector: "label",
|
116
|
+
category: 'accessing',
|
117
|
+
fn: function () {
|
118
|
+
var self = this;
|
119
|
+
var $1;
|
120
|
+
if (($receiver = self['@label']) == nil || $receiver == undefined) {
|
121
|
+
$1 = smalltalk.send(smalltalk.send(self['@model'], "_inspectee", []), "_printString", []);
|
122
|
+
} else {
|
123
|
+
$1 = self['@label'];
|
124
|
+
}
|
125
|
+
return $1;
|
126
|
+
},
|
127
|
+
args: [],
|
128
|
+
source: "label\x0a ^ label ifNil: [ model inspectee printString ]",
|
129
|
+
messageSends: ["ifNil:", "printString", "inspectee"],
|
130
|
+
referencedClasses: []
|
131
|
+
}),
|
132
|
+
smalltalk.HLInspector);
|
133
|
+
|
134
|
+
smalltalk.addMethod(
|
135
|
+
"_model",
|
136
|
+
smalltalk.method({
|
137
|
+
selector: "model",
|
138
|
+
category: 'accessing',
|
139
|
+
fn: function () {
|
140
|
+
var self = this;
|
141
|
+
var $1;
|
142
|
+
if (($receiver = self['@model']) == nil || $receiver == undefined) {
|
143
|
+
smalltalk.send(self, "_model_", [smalltalk.send(smalltalk.HLInspectorModel || HLInspectorModel, "_new", [])]);
|
144
|
+
$1 = self['@model'];
|
145
|
+
} else {
|
146
|
+
$1 = self['@model'];
|
147
|
+
}
|
148
|
+
return $1;
|
149
|
+
},
|
150
|
+
args: [],
|
151
|
+
source: "model\x0a\x09^ model ifNil: [ \x0a \x09self model: HLInspectorModel new.\x0a\x09\x09model ]",
|
152
|
+
messageSends: ["ifNil:", "model:", "new"],
|
153
|
+
referencedClasses: ["HLInspectorModel"]
|
154
|
+
}),
|
155
|
+
smalltalk.HLInspector);
|
156
|
+
|
157
|
+
smalltalk.addMethod(
|
158
|
+
"_model_",
|
159
|
+
smalltalk.method({
|
160
|
+
selector: "model:",
|
161
|
+
category: 'accessing',
|
162
|
+
fn: function (aModel) {
|
163
|
+
var self = this;
|
164
|
+
var $1;
|
165
|
+
self['@model'] = aModel;
|
166
|
+
smalltalk.send(smalltalk.send(self, "_codeWidget", []), "_model_", [smalltalk.send(aModel, "_code", [])]);
|
167
|
+
smalltalk.send(self, "_observeCodeWidget", []);
|
168
|
+
smalltalk.send(self, "_observeVariablesWidget", []);
|
169
|
+
$1 = smalltalk.send(self, "_observeModel", []);
|
170
|
+
return self;
|
171
|
+
},
|
172
|
+
args: ["aModel"],
|
173
|
+
source: "model: aModel\x0a\x09model := aModel. \x0a self codeWidget model: aModel code.\x0a \x0a self \x0a observeCodeWidget;\x0a \x09observeVariablesWidget;\x0a observeModel",
|
174
|
+
messageSends: ["model:", "code", "codeWidget", "observeCodeWidget", "observeVariablesWidget", "observeModel"],
|
175
|
+
referencedClasses: []
|
176
|
+
}),
|
177
|
+
smalltalk.HLInspector);
|
178
|
+
|
179
|
+
smalltalk.addMethod(
|
180
|
+
"_observeCodeWidget",
|
181
|
+
smalltalk.method({
|
182
|
+
selector: "observeCodeWidget",
|
183
|
+
category: 'actions',
|
184
|
+
fn: function () {
|
185
|
+
var self = this;
|
186
|
+
smalltalk.send(smalltalk.send(smalltalk.send(self, "_codeWidget", []), "_announcer", []), "_on_do_", [smalltalk.HLDoItExecuted || HLDoItExecuted, function () {return smalltalk.send(self, "_onDoneIt", []);}]);
|
187
|
+
return self;
|
188
|
+
},
|
189
|
+
args: [],
|
190
|
+
source: "observeCodeWidget\x0a\x09self codeWidget announcer \x0a \x09on: HLDoItExecuted \x0a do: [ self onDoneIt ]\x0a",
|
191
|
+
messageSends: ["on:do:", "onDoneIt", "announcer", "codeWidget"],
|
192
|
+
referencedClasses: ["HLDoItExecuted"]
|
193
|
+
}),
|
194
|
+
smalltalk.HLInspector);
|
195
|
+
|
196
|
+
smalltalk.addMethod(
|
197
|
+
"_observeModel",
|
198
|
+
smalltalk.method({
|
199
|
+
selector: "observeModel",
|
200
|
+
category: 'actions',
|
201
|
+
fn: function () {
|
202
|
+
var self = this;
|
203
|
+
smalltalk.send(smalltalk.send(smalltalk.send(self, "_model", []), "_announcer", []), "_on_do_", [smalltalk.HLInstanceVariableSelected || HLInstanceVariableSelected, function (ann) {return smalltalk.send(self, "_onInstanceVariableSelected", []);}]);
|
204
|
+
return self;
|
205
|
+
},
|
206
|
+
args: [],
|
207
|
+
source: "observeModel\x0a\x09self model announcer\x0a on: HLInstanceVariableSelected do: [ :ann | self onInstanceVariableSelected ]",
|
208
|
+
messageSends: ["on:do:", "onInstanceVariableSelected", "announcer", "model"],
|
209
|
+
referencedClasses: ["HLInstanceVariableSelected"]
|
210
|
+
}),
|
211
|
+
smalltalk.HLInspector);
|
212
|
+
|
213
|
+
smalltalk.addMethod(
|
214
|
+
"_observeVariablesWidget",
|
215
|
+
smalltalk.method({
|
216
|
+
selector: "observeVariablesWidget",
|
217
|
+
category: 'actions',
|
218
|
+
fn: function () {
|
219
|
+
var self = this;
|
220
|
+
var $1, $2;
|
221
|
+
$1 = smalltalk.send(smalltalk.send(self, "_variablesWidget", []), "_announcer", []);
|
222
|
+
smalltalk.send($1, "_on_do_", [smalltalk.HLRefreshRequested || HLRefreshRequested, function (ann) {return smalltalk.send(self, "_onRefresh", []);}]);
|
223
|
+
$2 = smalltalk.send($1, "_on_do_", [smalltalk.HLDiveRequested || HLDiveRequested, function () {return smalltalk.send(self, "_onDive", []);}]);
|
224
|
+
return self;
|
225
|
+
},
|
226
|
+
args: [],
|
227
|
+
source: "observeVariablesWidget\x0a\x09self variablesWidget announcer \x0a \x09on: HLRefreshRequested do: [ :ann | self onRefresh ];\x0a on: HLDiveRequested do:[ self onDive ]\x0a ",
|
228
|
+
messageSends: ["on:do:", "onRefresh", "announcer", "variablesWidget", "onDive"],
|
229
|
+
referencedClasses: ["HLRefreshRequested", "HLDiveRequested"]
|
230
|
+
}),
|
231
|
+
smalltalk.HLInspector);
|
232
|
+
|
233
|
+
smalltalk.addMethod(
|
234
|
+
"_onDive",
|
235
|
+
smalltalk.method({
|
236
|
+
selector: "onDive",
|
237
|
+
category: 'reactions',
|
238
|
+
fn: function () {
|
239
|
+
var self = this;
|
240
|
+
smalltalk.send(self, "_inspect_", [smalltalk.send(smalltalk.send(self, "_model", []), "_selectedInstVarObject", [])]);
|
241
|
+
return self;
|
242
|
+
},
|
243
|
+
args: [],
|
244
|
+
source: "onDive\x0a\x0a\x09self inspect: self model selectedInstVarObject",
|
245
|
+
messageSends: ["inspect:", "selectedInstVarObject", "model"],
|
246
|
+
referencedClasses: []
|
247
|
+
}),
|
248
|
+
smalltalk.HLInspector);
|
249
|
+
|
250
|
+
smalltalk.addMethod(
|
251
|
+
"_onDoneIt",
|
252
|
+
smalltalk.method({
|
253
|
+
selector: "onDoneIt",
|
254
|
+
category: 'reactions',
|
255
|
+
fn: function () {
|
256
|
+
var self = this;
|
257
|
+
smalltalk.send(self, "_refresh", []);
|
258
|
+
return self;
|
259
|
+
},
|
260
|
+
args: [],
|
261
|
+
source: "onDoneIt\x0a\x0a\x09self refresh",
|
262
|
+
messageSends: ["refresh"],
|
263
|
+
referencedClasses: []
|
264
|
+
}),
|
265
|
+
smalltalk.HLInspector);
|
266
|
+
|
267
|
+
smalltalk.addMethod(
|
268
|
+
"_onInspectIt",
|
269
|
+
smalltalk.method({
|
270
|
+
selector: "onInspectIt",
|
271
|
+
category: 'reactions',
|
272
|
+
fn: function () {
|
273
|
+
var self = this;
|
274
|
+
return self;
|
275
|
+
},
|
276
|
+
args: [],
|
277
|
+
source: "onInspectIt",
|
278
|
+
messageSends: [],
|
279
|
+
referencedClasses: []
|
280
|
+
}),
|
281
|
+
smalltalk.HLInspector);
|
282
|
+
|
283
|
+
smalltalk.addMethod(
|
284
|
+
"_onInstanceVariableSelected",
|
285
|
+
smalltalk.method({
|
286
|
+
selector: "onInstanceVariableSelected",
|
287
|
+
category: 'reactions',
|
288
|
+
fn: function () {
|
289
|
+
var self = this;
|
290
|
+
smalltalk.send(smalltalk.send(self, "_codeWidget", []), "_receiver_", [smalltalk.send(smalltalk.send(self, "_model", []), "_selectedInstVarObject", [])]);
|
291
|
+
smalltalk.send(self, "_refreshDisplayWidget", []);
|
292
|
+
return self;
|
293
|
+
},
|
294
|
+
args: [],
|
295
|
+
source: "onInstanceVariableSelected\x0a\x09self codeWidget receiver: self model selectedInstVarObject.\x0a\x09self refreshDisplayWidget",
|
296
|
+
messageSends: ["receiver:", "selectedInstVarObject", "model", "codeWidget", "refreshDisplayWidget"],
|
297
|
+
referencedClasses: []
|
298
|
+
}),
|
299
|
+
smalltalk.HLInspector);
|
300
|
+
|
301
|
+
smalltalk.addMethod(
|
302
|
+
"_onPrintIt",
|
303
|
+
smalltalk.method({
|
304
|
+
selector: "onPrintIt",
|
305
|
+
category: 'reactions',
|
306
|
+
fn: function () {
|
307
|
+
var self = this;
|
308
|
+
return self;
|
309
|
+
},
|
310
|
+
args: [],
|
311
|
+
source: "onPrintIt",
|
312
|
+
messageSends: [],
|
313
|
+
referencedClasses: []
|
314
|
+
}),
|
315
|
+
smalltalk.HLInspector);
|
316
|
+
|
317
|
+
smalltalk.addMethod(
|
318
|
+
"_onRefresh",
|
319
|
+
smalltalk.method({
|
320
|
+
selector: "onRefresh",
|
321
|
+
category: 'reactions',
|
322
|
+
fn: function () {
|
323
|
+
var self = this;
|
324
|
+
smalltalk.send(self, "_refresh", []);
|
325
|
+
return self;
|
326
|
+
},
|
327
|
+
args: [],
|
328
|
+
source: "onRefresh\x0a\x0a\x09self refresh",
|
329
|
+
messageSends: ["refresh"],
|
330
|
+
referencedClasses: []
|
331
|
+
}),
|
332
|
+
smalltalk.HLInspector);
|
333
|
+
|
334
|
+
smalltalk.addMethod(
|
335
|
+
"_open",
|
336
|
+
smalltalk.method({
|
337
|
+
selector: "open",
|
338
|
+
category: 'actions',
|
339
|
+
fn: function () {
|
340
|
+
var self = this;
|
341
|
+
smalltalk.send(smalltalk.send(smalltalk.HLManager || HLManager, "_current", []), "_addTab_", [smalltalk.send(smalltalk.HLTab || HLTab, "_on_labelled_", [self, smalltalk.send(self, "_tabLabel", [])])]);
|
342
|
+
return self;
|
343
|
+
},
|
344
|
+
args: [],
|
345
|
+
source: "open\x0a\x09HLManager current addTab: (HLTab on: self labelled: self tabLabel)\x0a",
|
346
|
+
messageSends: ["addTab:", "on:labelled:", "tabLabel", "current"],
|
347
|
+
referencedClasses: ["HLTab", "HLManager"]
|
348
|
+
}),
|
349
|
+
smalltalk.HLInspector);
|
350
|
+
|
351
|
+
smalltalk.addMethod(
|
352
|
+
"_refresh",
|
353
|
+
smalltalk.method({
|
354
|
+
selector: "refresh",
|
355
|
+
category: 'actions',
|
356
|
+
fn: function () {
|
357
|
+
var self = this;
|
358
|
+
smalltalk.send(self, "_inspect_", [smalltalk.send(self, "_inspectee", [])]);
|
359
|
+
return self;
|
360
|
+
},
|
361
|
+
args: [],
|
362
|
+
source: "refresh\x0a\x09self inspect: self inspectee",
|
363
|
+
messageSends: ["inspect:", "inspectee"],
|
364
|
+
referencedClasses: []
|
365
|
+
}),
|
366
|
+
smalltalk.HLInspector);
|
367
|
+
|
368
|
+
smalltalk.addMethod(
|
369
|
+
"_refreshDisplayWidget",
|
370
|
+
smalltalk.method({
|
371
|
+
selector: "refreshDisplayWidget",
|
372
|
+
category: 'actions',
|
373
|
+
fn: function () {
|
374
|
+
var self = this;
|
375
|
+
smalltalk.send(smalltalk.send(self, "_displayWidget", []), "_refresh", []);
|
376
|
+
return self;
|
377
|
+
},
|
378
|
+
args: [],
|
379
|
+
source: "refreshDisplayWidget\x0a\x09self displayWidget refresh",
|
380
|
+
messageSends: ["refresh", "displayWidget"],
|
381
|
+
referencedClasses: []
|
382
|
+
}),
|
383
|
+
smalltalk.HLInspector);
|
384
|
+
|
385
|
+
smalltalk.addMethod(
|
386
|
+
"_refreshVariablesWidget",
|
387
|
+
smalltalk.method({
|
388
|
+
selector: "refreshVariablesWidget",
|
389
|
+
category: 'actions',
|
390
|
+
fn: function () {
|
391
|
+
var self = this;
|
392
|
+
smalltalk.send(smalltalk.send(self, "_variablesWidget", []), "_refresh", []);
|
393
|
+
return self;
|
394
|
+
},
|
395
|
+
args: [],
|
396
|
+
source: "refreshVariablesWidget\x0a\x09self variablesWidget refresh",
|
397
|
+
messageSends: ["refresh", "variablesWidget"],
|
398
|
+
referencedClasses: []
|
399
|
+
}),
|
400
|
+
smalltalk.HLInspector);
|
401
|
+
|
402
|
+
smalltalk.addMethod(
|
403
|
+
"_renderContentOn_",
|
404
|
+
smalltalk.method({
|
405
|
+
selector: "renderContentOn:",
|
406
|
+
category: 'rendering',
|
407
|
+
fn: function (html) {
|
408
|
+
var self = this;
|
409
|
+
smalltalk.send(html, "_with_", [smalltalk.send(smalltalk.HLContainer || HLContainer, "_with_", [smalltalk.send(smalltalk.HLHorizontalSplitter || HLHorizontalSplitter, "_with_with_", [smalltalk.send(smalltalk.HLVerticalSplitter || HLVerticalSplitter, "_with_with_", [smalltalk.send(self, "_variablesWidget", []), smalltalk.send(self, "_displayWidget", [])]), smalltalk.send(self, "_codeWidget", [])])])]);
|
410
|
+
return self;
|
411
|
+
},
|
412
|
+
args: ["html"],
|
413
|
+
source: "renderContentOn: html\x0a \x09html with: (HLContainer with: (HLHorizontalSplitter\x0a \x09with: (HLVerticalSplitter \x0a \x09\x09with: self variablesWidget\x0a \x09 with: self displayWidget)\x0a with: self codeWidget))\x0a ",
|
414
|
+
messageSends: ["with:", "with:with:", "variablesWidget", "displayWidget", "codeWidget"],
|
415
|
+
referencedClasses: ["HLVerticalSplitter", "HLHorizontalSplitter", "HLContainer"]
|
416
|
+
}),
|
417
|
+
smalltalk.HLInspector);
|
418
|
+
|
419
|
+
smalltalk.addMethod(
|
420
|
+
"_setLabel_",
|
421
|
+
smalltalk.method({
|
422
|
+
selector: "setLabel:",
|
423
|
+
category: 'actions',
|
424
|
+
fn: function (aString) {
|
425
|
+
var self = this;
|
426
|
+
self['@label'] = aString;
|
427
|
+
return self;
|
428
|
+
},
|
429
|
+
args: ["aString"],
|
430
|
+
source: "setLabel: aString\x0a\x09label := aString",
|
431
|
+
messageSends: [],
|
432
|
+
referencedClasses: []
|
433
|
+
}),
|
434
|
+
smalltalk.HLInspector);
|
435
|
+
|
436
|
+
smalltalk.addMethod(
|
437
|
+
"_setVariables_",
|
438
|
+
smalltalk.method({
|
439
|
+
selector: "setVariables:",
|
440
|
+
category: 'actions',
|
441
|
+
fn: function (aDictionary) {
|
442
|
+
var self = this;
|
443
|
+
smalltalk.send(smalltalk.send(self, "_model", []), "_variables_", [aDictionary]);
|
444
|
+
return self;
|
445
|
+
},
|
446
|
+
args: ["aDictionary"],
|
447
|
+
source: "setVariables: aDictionary\x0a\x09self model variables: aDictionary",
|
448
|
+
messageSends: ["variables:", "model"],
|
449
|
+
referencedClasses: []
|
450
|
+
}),
|
451
|
+
smalltalk.HLInspector);
|
452
|
+
|
453
|
+
smalltalk.addMethod(
|
454
|
+
"_tabLabel",
|
455
|
+
smalltalk.method({
|
456
|
+
selector: "tabLabel",
|
457
|
+
category: 'accessing',
|
458
|
+
fn: function () {
|
459
|
+
var self = this;
|
460
|
+
var $1;
|
461
|
+
$1 = smalltalk.send(self, "_label", []);
|
462
|
+
return $1;
|
463
|
+
},
|
464
|
+
args: [],
|
465
|
+
source: "tabLabel\x0a ^ self label",
|
466
|
+
messageSends: ["label"],
|
467
|
+
referencedClasses: []
|
468
|
+
}),
|
469
|
+
smalltalk.HLInspector);
|
470
|
+
|
471
|
+
smalltalk.addMethod(
|
472
|
+
"_variablesWidget",
|
473
|
+
smalltalk.method({
|
474
|
+
selector: "variablesWidget",
|
475
|
+
category: 'accessing',
|
476
|
+
fn: function () {
|
477
|
+
var self = this;
|
478
|
+
var $2, $3, $1;
|
479
|
+
if (($receiver = self['@variablesWidget']) == nil ||
|
480
|
+
$receiver == undefined) {
|
481
|
+
$2 = smalltalk.send(smalltalk.HLInspectorVariablesWidget ||
|
482
|
+
HLInspectorVariablesWidget, "_new", []);
|
483
|
+
smalltalk.send($2, "_model_", [smalltalk.send(self, "_model", [])]);
|
484
|
+
$3 = smalltalk.send($2, "_yourself", []);
|
485
|
+
self['@variablesWidget'] = $3;
|
486
|
+
$1 = self['@variablesWidget'];
|
487
|
+
} else {
|
488
|
+
$1 = self['@variablesWidget'];
|
489
|
+
}
|
490
|
+
return $1;
|
491
|
+
},
|
492
|
+
args: [],
|
493
|
+
source: "variablesWidget\x0a\x09^ variablesWidget ifNil: [\x0a\x09\x09variablesWidget := HLInspectorVariablesWidget new\x0a \x09\x09model: self model;\x0a \x09yourself ]",
|
494
|
+
messageSends: ["ifNil:", "model:", "model", "new", "yourself"],
|
495
|
+
referencedClasses: ["HLInspectorVariablesWidget"]
|
496
|
+
}),
|
497
|
+
smalltalk.HLInspector);
|
498
|
+
|
499
|
+
|
500
|
+
smalltalk.addMethod(
|
501
|
+
"_canBeOpenAsTab",
|
502
|
+
smalltalk.method({
|
503
|
+
selector: "canBeOpenAsTab",
|
504
|
+
category: 'testing',
|
505
|
+
fn: function () {
|
506
|
+
var self = this;
|
507
|
+
return false;
|
508
|
+
},
|
509
|
+
args: [],
|
510
|
+
source: "canBeOpenAsTab\x0a\x09^ false",
|
511
|
+
messageSends: [],
|
512
|
+
referencedClasses: []
|
513
|
+
}),
|
514
|
+
smalltalk.HLInspector.klass);
|
515
|
+
|
516
|
+
smalltalk.addMethod(
|
517
|
+
"_tabLabel",
|
518
|
+
smalltalk.method({
|
519
|
+
selector: "tabLabel",
|
520
|
+
category: 'accessing',
|
521
|
+
fn: function () {
|
522
|
+
var self = this;
|
523
|
+
return "Inspector";
|
524
|
+
},
|
525
|
+
args: [],
|
526
|
+
source: "tabLabel\x0a\x09^ 'Inspector'",
|
527
|
+
messageSends: [],
|
528
|
+
referencedClasses: []
|
529
|
+
}),
|
530
|
+
smalltalk.HLInspector.klass);
|
531
|
+
|
532
|
+
smalltalk.addMethod(
|
533
|
+
"_tabPriority",
|
534
|
+
smalltalk.method({
|
535
|
+
selector: "tabPriority",
|
536
|
+
category: 'accessing',
|
537
|
+
fn: function () {
|
538
|
+
var self = this;
|
539
|
+
return 10;
|
540
|
+
},
|
541
|
+
args: [],
|
542
|
+
source: "tabPriority\x0a\x09^ 10",
|
543
|
+
messageSends: [],
|
544
|
+
referencedClasses: []
|
545
|
+
}),
|
546
|
+
smalltalk.HLInspector.klass);
|
547
|
+
|
548
|
+
|
549
|
+
smalltalk.addClass('HLInspectorDisplayWidget', smalltalk.HLNavigationListWidget, ['model'], 'Helios-Inspector');
|
550
|
+
smalltalk.addMethod(
|
551
|
+
"_model",
|
552
|
+
smalltalk.method({
|
553
|
+
selector: "model",
|
554
|
+
category: 'accessing',
|
555
|
+
fn: function () {
|
556
|
+
var self = this;
|
557
|
+
return self['@model'];
|
558
|
+
},
|
559
|
+
args: [],
|
560
|
+
source: "model\x0a\x0a\x09^ model",
|
561
|
+
messageSends: [],
|
562
|
+
referencedClasses: []
|
563
|
+
}),
|
564
|
+
smalltalk.HLInspectorDisplayWidget);
|
565
|
+
|
566
|
+
smalltalk.addMethod(
|
567
|
+
"_model_",
|
568
|
+
smalltalk.method({
|
569
|
+
selector: "model:",
|
570
|
+
category: 'accessing',
|
571
|
+
fn: function (aModel) {
|
572
|
+
var self = this;
|
573
|
+
self['@model'] = aModel;
|
574
|
+
return self;
|
575
|
+
},
|
576
|
+
args: ["aModel"],
|
577
|
+
source: "model: aModel\x0a\x0a\x09model := aModel",
|
578
|
+
messageSends: [],
|
579
|
+
referencedClasses: []
|
580
|
+
}),
|
581
|
+
smalltalk.HLInspectorDisplayWidget);
|
582
|
+
|
583
|
+
smalltalk.addMethod(
|
584
|
+
"_renderContentOn_",
|
585
|
+
smalltalk.method({
|
586
|
+
selector: "renderContentOn:",
|
587
|
+
category: 'rendering',
|
588
|
+
fn: function (html) {
|
589
|
+
var self = this;
|
590
|
+
smalltalk.send(smalltalk.send(html, "_div", []), "_with_", [smalltalk.send(self, "_selectionDisplayString", [])]);
|
591
|
+
return self;
|
592
|
+
},
|
593
|
+
args: ["html"],
|
594
|
+
source: "renderContentOn: html\x0a\x09\x0a html div with: self selectionDisplayString\x0a ",
|
595
|
+
messageSends: ["with:", "selectionDisplayString", "div"],
|
596
|
+
referencedClasses: []
|
597
|
+
}),
|
598
|
+
smalltalk.HLInspectorDisplayWidget);
|
599
|
+
|
600
|
+
smalltalk.addMethod(
|
601
|
+
"_selectionDisplayString",
|
602
|
+
smalltalk.method({
|
603
|
+
selector: "selectionDisplayString",
|
604
|
+
category: 'rendering',
|
605
|
+
fn: function () {
|
606
|
+
var self = this;
|
607
|
+
var $2, $1;
|
608
|
+
var selection;
|
609
|
+
selection = smalltalk.send(self['@model'], "_selection", []);
|
610
|
+
$2 = smalltalk.send(smalltalk.send(smalltalk.send(self['@model'], "_variables", []), "_keys", []), "_includes_", [selection]);
|
611
|
+
if (smalltalk.assert($2)) {
|
612
|
+
$1 = smalltalk.send(smalltalk.send(self['@model'], "_instVarObjectAt_", [selection]), "_printString", []);
|
613
|
+
} else {
|
614
|
+
$1 = "";
|
615
|
+
}
|
616
|
+
return $1;
|
617
|
+
},
|
618
|
+
args: [],
|
619
|
+
source: "selectionDisplayString\x0a\x09|selection|\x0a\x09selection := model selection.\x0a ^ (model variables keys includes: selection)\x0a \x09ifTrue:[(model instVarObjectAt: selection) printString]\x0a \x09ifFalse:['']",
|
620
|
+
messageSends: ["selection", "ifTrue:ifFalse:", "printString", "instVarObjectAt:", "includes:", "keys", "variables"],
|
621
|
+
referencedClasses: []
|
622
|
+
}),
|
623
|
+
smalltalk.HLInspectorDisplayWidget);
|
624
|
+
|
625
|
+
|
626
|
+
|
627
|
+
smalltalk.addClass('HLInspectorModel', smalltalk.Object, ['announcer', 'environment', 'inspectee', 'code', 'variables', 'selection'], 'Helios-Inspector');
|
628
|
+
smalltalk.addMethod(
|
629
|
+
"_announcer",
|
630
|
+
smalltalk.method({
|
631
|
+
selector: "announcer",
|
632
|
+
category: 'accessing',
|
633
|
+
fn: function () {
|
634
|
+
var self = this;
|
635
|
+
var $1;
|
636
|
+
if (($receiver = self['@announcer']) == nil || $receiver == undefined) {
|
637
|
+
self['@announcer'] = smalltalk.send(smalltalk.Announcer || Announcer, "_new", []);
|
638
|
+
$1 = self['@announcer'];
|
639
|
+
} else {
|
640
|
+
$1 = self['@announcer'];
|
641
|
+
}
|
642
|
+
return $1;
|
643
|
+
},
|
644
|
+
args: [],
|
645
|
+
source: "announcer\x0a\x09^ announcer ifNil: [announcer := Announcer new ]",
|
646
|
+
messageSends: ["ifNil:", "new"],
|
647
|
+
referencedClasses: ["Announcer"]
|
648
|
+
}),
|
649
|
+
smalltalk.HLInspectorModel);
|
650
|
+
|
651
|
+
smalltalk.addMethod(
|
652
|
+
"_code",
|
653
|
+
smalltalk.method({
|
654
|
+
selector: "code",
|
655
|
+
category: 'accessing',
|
656
|
+
fn: function () {
|
657
|
+
var self = this;
|
658
|
+
var $1;
|
659
|
+
if (($receiver = self['@code']) == nil || $receiver == undefined) {
|
660
|
+
self['@code'] = smalltalk.send(smalltalk.HLCodeModel || HLCodeModel, "_on_", [smalltalk.send(self, "_environment", [])]);
|
661
|
+
$1 = self['@code'];
|
662
|
+
} else {
|
663
|
+
$1 = self['@code'];
|
664
|
+
}
|
665
|
+
return $1;
|
666
|
+
},
|
667
|
+
args: [],
|
668
|
+
source: "code\x0a\x09\x22Answers the code model working for this workspace model\x22\x0a\x09^ code ifNil:[ code := HLCodeModel on: self environment ]",
|
669
|
+
messageSends: ["ifNil:", "on:", "environment"],
|
670
|
+
referencedClasses: ["HLCodeModel"]
|
671
|
+
}),
|
672
|
+
smalltalk.HLInspectorModel);
|
673
|
+
|
674
|
+
smalltalk.addMethod(
|
675
|
+
"_environment",
|
676
|
+
smalltalk.method({
|
677
|
+
selector: "environment",
|
678
|
+
category: 'accessing',
|
679
|
+
fn: function () {
|
680
|
+
var self = this;
|
681
|
+
var $1;
|
682
|
+
if (($receiver = self['@environment']) == nil || $receiver == undefined) {
|
683
|
+
$1 = smalltalk.send(smalltalk.send(smalltalk.HLManager || HLManager, "_current", []), "_environment", []);
|
684
|
+
} else {
|
685
|
+
$1 = self['@environment'];
|
686
|
+
}
|
687
|
+
return $1;
|
688
|
+
},
|
689
|
+
args: [],
|
690
|
+
source: "environment\x0a\x09^ environment ifNil: [ HLManager current environment ]",
|
691
|
+
messageSends: ["ifNil:", "environment", "current"],
|
692
|
+
referencedClasses: ["HLManager"]
|
693
|
+
}),
|
694
|
+
smalltalk.HLInspectorModel);
|
695
|
+
|
696
|
+
smalltalk.addMethod(
|
697
|
+
"_environment_",
|
698
|
+
smalltalk.method({
|
699
|
+
selector: "environment:",
|
700
|
+
category: 'accessing',
|
701
|
+
fn: function (anEnvironment) {
|
702
|
+
var self = this;
|
703
|
+
self['@environment'] = anEnvironment;
|
704
|
+
return self;
|
705
|
+
},
|
706
|
+
args: ["anEnvironment"],
|
707
|
+
source: "environment: anEnvironment\x0a\x09environment := anEnvironment",
|
708
|
+
messageSends: [],
|
709
|
+
referencedClasses: []
|
710
|
+
}),
|
711
|
+
smalltalk.HLInspectorModel);
|
712
|
+
|
713
|
+
smalltalk.addMethod(
|
714
|
+
"_inspect_on_",
|
715
|
+
smalltalk.method({
|
716
|
+
selector: "inspect:on:",
|
717
|
+
category: 'actions',
|
718
|
+
fn: function (anObject, anInspector) {
|
719
|
+
var self = this;
|
720
|
+
self['@inspectee'] = anObject;
|
721
|
+
self['@variables'] = [];
|
722
|
+
smalltalk.send(self['@inspectee'], "_inspectOn_", [anInspector]);
|
723
|
+
return self;
|
724
|
+
},
|
725
|
+
args: ["anObject", "anInspector"],
|
726
|
+
source: "inspect: anObject on: anInspector\x0a\x09inspectee := anObject.\x0a\x09variables := #().\x0a\x09inspectee inspectOn: anInspector \x0a",
|
727
|
+
messageSends: ["inspectOn:"],
|
728
|
+
referencedClasses: []
|
729
|
+
}),
|
730
|
+
smalltalk.HLInspectorModel);
|
731
|
+
|
732
|
+
smalltalk.addMethod(
|
733
|
+
"_inspectee",
|
734
|
+
smalltalk.method({
|
735
|
+
selector: "inspectee",
|
736
|
+
category: 'accessing',
|
737
|
+
fn: function () {
|
738
|
+
var self = this;
|
739
|
+
return self['@inspectee'];
|
740
|
+
},
|
741
|
+
args: [],
|
742
|
+
source: "inspectee \x0a\x09^ inspectee ",
|
743
|
+
messageSends: [],
|
744
|
+
referencedClasses: []
|
745
|
+
}),
|
746
|
+
smalltalk.HLInspectorModel);
|
747
|
+
|
748
|
+
smalltalk.addMethod(
|
749
|
+
"_inspectee_",
|
750
|
+
smalltalk.method({
|
751
|
+
selector: "inspectee:",
|
752
|
+
category: 'accessing',
|
753
|
+
fn: function (anObject) {
|
754
|
+
var self = this;
|
755
|
+
self['@inspectee'] = anObject;
|
756
|
+
return self;
|
757
|
+
},
|
758
|
+
args: ["anObject"],
|
759
|
+
source: "inspectee: anObject \x0a\x09inspectee := anObject\x0a ",
|
760
|
+
messageSends: [],
|
761
|
+
referencedClasses: []
|
762
|
+
}),
|
763
|
+
smalltalk.HLInspectorModel);
|
764
|
+
|
765
|
+
smalltalk.addMethod(
|
766
|
+
"_instVarObjectAt_",
|
767
|
+
smalltalk.method({
|
768
|
+
selector: "instVarObjectAt:",
|
769
|
+
category: 'actions',
|
770
|
+
fn: function (anInstVarName) {
|
771
|
+
var self = this;
|
772
|
+
var $1;
|
773
|
+
$1 = smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [anInstVarName]);
|
774
|
+
return $1;
|
775
|
+
},
|
776
|
+
args: ["anInstVarName"],
|
777
|
+
source: "instVarObjectAt: anInstVarName\x0a\x09^ self variables at: anInstVarName",
|
778
|
+
messageSends: ["at:", "variables"],
|
779
|
+
referencedClasses: []
|
780
|
+
}),
|
781
|
+
smalltalk.HLInspectorModel);
|
782
|
+
|
783
|
+
smalltalk.addMethod(
|
784
|
+
"_onKeyDown_",
|
785
|
+
smalltalk.method({
|
786
|
+
selector: "onKeyDown:",
|
787
|
+
category: 'reactions',
|
788
|
+
fn: function (anEvent) {
|
789
|
+
var self = this;
|
790
|
+
if (anEvent.ctrlKey) {
|
791
|
+
if (anEvent.keyCode === 80) {
|
792
|
+
self._printIt();
|
793
|
+
anEvent.preventDefault();
|
794
|
+
return false;
|
795
|
+
}
|
796
|
+
if (anEvent.keyCode === 68) {
|
797
|
+
self._doIt();
|
798
|
+
anEvent.preventDefault();
|
799
|
+
return false;
|
800
|
+
}
|
801
|
+
if (anEvent.keyCode === 73) {
|
802
|
+
self._inspectIt();
|
803
|
+
anEvent.preventDefault();
|
804
|
+
return false;
|
805
|
+
}
|
806
|
+
}
|
807
|
+
return self;
|
808
|
+
},
|
809
|
+
args: ["anEvent"],
|
810
|
+
source: "onKeyDown: anEvent\x0a\x0a\x09<if(anEvent.ctrlKey) {\x0a\x09\x09if(anEvent.keyCode === 80) { //ctrl+p\x0a\x09\x09\x09self._printIt();\x0a\x09\x09\x09anEvent.preventDefault();\x0a\x09\x09\x09return false;\x0a\x09\x09}\x0a\x09\x09if(anEvent.keyCode === 68) { //ctrl+d\x0a\x09\x09\x09self._doIt();\x0a\x09\x09\x09anEvent.preventDefault();\x0a\x09\x09\x09return false;\x0a\x09\x09}\x0a\x09\x09if(anEvent.keyCode === 73) { //ctrl+i\x0a\x09\x09\x09self._inspectIt();\x0a\x09\x09\x09anEvent.preventDefault();\x0a\x09\x09\x09return false;\x0a\x09\x09}\x0a\x09}>",
|
811
|
+
messageSends: [],
|
812
|
+
referencedClasses: []
|
813
|
+
}),
|
814
|
+
smalltalk.HLInspectorModel);
|
815
|
+
|
816
|
+
smalltalk.addMethod(
|
817
|
+
"_selectedInstVar_",
|
818
|
+
smalltalk.method({
|
819
|
+
selector: "selectedInstVar:",
|
820
|
+
category: 'actions',
|
821
|
+
fn: function (anInstVarName) {
|
822
|
+
var self = this;
|
823
|
+
smalltalk.send(self, "_selection_", [anInstVarName]);
|
824
|
+
return self;
|
825
|
+
},
|
826
|
+
args: ["anInstVarName"],
|
827
|
+
source: "selectedInstVar: anInstVarName\x0a self selection: anInstVarName",
|
828
|
+
messageSends: ["selection:"],
|
829
|
+
referencedClasses: []
|
830
|
+
}),
|
831
|
+
smalltalk.HLInspectorModel);
|
832
|
+
|
833
|
+
smalltalk.addMethod(
|
834
|
+
"_selectedInstVarObject",
|
835
|
+
smalltalk.method({
|
836
|
+
selector: "selectedInstVarObject",
|
837
|
+
category: 'accessing',
|
838
|
+
fn: function () {
|
839
|
+
var self = this;
|
840
|
+
var $1;
|
841
|
+
$1 = smalltalk.send(self, "_instVarObjectAt_", [smalltalk.send(self, "_selection", [])]);
|
842
|
+
return $1;
|
843
|
+
},
|
844
|
+
args: [],
|
845
|
+
source: "selectedInstVarObject\x0a\x09^ self instVarObjectAt: self selection\x0a ",
|
846
|
+
messageSends: ["instVarObjectAt:", "selection"],
|
847
|
+
referencedClasses: []
|
848
|
+
}),
|
849
|
+
smalltalk.HLInspectorModel);
|
850
|
+
|
851
|
+
smalltalk.addMethod(
|
852
|
+
"_selection",
|
853
|
+
smalltalk.method({
|
854
|
+
selector: "selection",
|
855
|
+
category: 'accessing',
|
856
|
+
fn: function () {
|
857
|
+
var self = this;
|
858
|
+
var $1;
|
859
|
+
if (($receiver = self['@selection']) == nil || $receiver == undefined) {
|
860
|
+
$1 = "";
|
861
|
+
} else {
|
862
|
+
$1 = self['@selection'];
|
863
|
+
}
|
864
|
+
return $1;
|
865
|
+
},
|
866
|
+
args: [],
|
867
|
+
source: "selection\x0a\x09^ selection ifNil:[ '' ] ",
|
868
|
+
messageSends: ["ifNil:"],
|
869
|
+
referencedClasses: []
|
870
|
+
}),
|
871
|
+
smalltalk.HLInspectorModel);
|
872
|
+
|
873
|
+
smalltalk.addMethod(
|
874
|
+
"_selection_",
|
875
|
+
smalltalk.method({
|
876
|
+
selector: "selection:",
|
877
|
+
category: 'accessing',
|
878
|
+
fn: function (anObject) {
|
879
|
+
var self = this;
|
880
|
+
self['@selection'] = anObject;
|
881
|
+
smalltalk.send(smalltalk.send(self, "_announcer", []), "_announce_", [smalltalk.send(smalltalk.HLInstanceVariableSelected || HLInstanceVariableSelected, "_on_", [self['@selection']])]);
|
882
|
+
return self;
|
883
|
+
},
|
884
|
+
args: ["anObject"],
|
885
|
+
source: "selection: anObject\x0a\x09selection := anObject.\x0a\x0a\x09self announcer announce: (HLInstanceVariableSelected on: selection)\x0a ",
|
886
|
+
messageSends: ["announce:", "on:", "announcer"],
|
887
|
+
referencedClasses: ["HLInstanceVariableSelected"]
|
888
|
+
}),
|
889
|
+
smalltalk.HLInspectorModel);
|
890
|
+
|
891
|
+
smalltalk.addMethod(
|
892
|
+
"_subscribe_",
|
893
|
+
smalltalk.method({
|
894
|
+
selector: "subscribe:",
|
895
|
+
category: 'actions',
|
896
|
+
fn: function (aWidget) {
|
897
|
+
var self = this;
|
898
|
+
smalltalk.send(aWidget, "_subscribeTo_", [smalltalk.send(self, "_announcer", [])]);
|
899
|
+
return self;
|
900
|
+
},
|
901
|
+
args: ["aWidget"],
|
902
|
+
source: "subscribe: aWidget\x0a\x09aWidget subscribeTo: self announcer",
|
903
|
+
messageSends: ["subscribeTo:", "announcer"],
|
904
|
+
referencedClasses: []
|
905
|
+
}),
|
906
|
+
smalltalk.HLInspectorModel);
|
907
|
+
|
908
|
+
smalltalk.addMethod(
|
909
|
+
"_variables",
|
910
|
+
smalltalk.method({
|
911
|
+
selector: "variables",
|
912
|
+
category: 'accessing',
|
913
|
+
fn: function () {
|
914
|
+
var self = this;
|
915
|
+
return self['@variables'];
|
916
|
+
},
|
917
|
+
args: [],
|
918
|
+
source: "variables\x0a\x09^ variables",
|
919
|
+
messageSends: [],
|
920
|
+
referencedClasses: []
|
921
|
+
}),
|
922
|
+
smalltalk.HLInspectorModel);
|
923
|
+
|
924
|
+
smalltalk.addMethod(
|
925
|
+
"_variables_",
|
926
|
+
smalltalk.method({
|
927
|
+
selector: "variables:",
|
928
|
+
category: 'accessing',
|
929
|
+
fn: function (aCollection) {
|
930
|
+
var self = this;
|
931
|
+
self['@variables'] = aCollection;
|
932
|
+
return self;
|
933
|
+
},
|
934
|
+
args: ["aCollection"],
|
935
|
+
source: "variables: aCollection\x0a\x09variables := aCollection\x0a ",
|
936
|
+
messageSends: [],
|
937
|
+
referencedClasses: []
|
938
|
+
}),
|
939
|
+
smalltalk.HLInspectorModel);
|
940
|
+
|
941
|
+
|
942
|
+
smalltalk.addMethod(
|
943
|
+
"_on_",
|
944
|
+
smalltalk.method({
|
945
|
+
selector: "on:",
|
946
|
+
category: 'actions',
|
947
|
+
fn: function (anEnvironment) {
|
948
|
+
var self = this;
|
949
|
+
var $2, $3, $1;
|
950
|
+
$2 = smalltalk.send(self, "_new", []);
|
951
|
+
smalltalk.send($2, "_environment_", [anEnvironment]);
|
952
|
+
$3 = smalltalk.send($2, "_yourself", []);
|
953
|
+
$1 = $3;
|
954
|
+
return $1;
|
955
|
+
},
|
956
|
+
args: ["anEnvironment"],
|
957
|
+
source: "on: anEnvironment\x0a\x0a\x09^ self new\x0a \x09environment: anEnvironment;\x0a yourself",
|
958
|
+
messageSends: ["environment:", "new", "yourself"],
|
959
|
+
referencedClasses: []
|
960
|
+
}),
|
961
|
+
smalltalk.HLInspectorModel.klass);
|
962
|
+
|
963
|
+
|
964
|
+
smalltalk.addClass('HLInspectorVariablesWidget', smalltalk.HLNavigationListWidget, ['announcer', 'model', 'list', 'diveButton'], 'Helios-Inspector');
|
965
|
+
smalltalk.addMethod(
|
966
|
+
"_announcer",
|
967
|
+
smalltalk.method({
|
968
|
+
selector: "announcer",
|
969
|
+
category: 'accessing',
|
970
|
+
fn: function () {
|
971
|
+
var self = this;
|
972
|
+
var $1;
|
973
|
+
if (($receiver = self['@announcer']) == nil || $receiver == undefined) {
|
974
|
+
self['@announcer'] = smalltalk.send(smalltalk.Announcer || Announcer, "_new", []);
|
975
|
+
$1 = self['@announcer'];
|
976
|
+
} else {
|
977
|
+
$1 = self['@announcer'];
|
978
|
+
}
|
979
|
+
return $1;
|
980
|
+
},
|
981
|
+
args: [],
|
982
|
+
source: "announcer\x0a\x09^ announcer ifNil:[ announcer := Announcer new ]",
|
983
|
+
messageSends: ["ifNil:", "new"],
|
984
|
+
referencedClasses: ["Announcer"]
|
985
|
+
}),
|
986
|
+
smalltalk.HLInspectorVariablesWidget);
|
987
|
+
|
988
|
+
smalltalk.addMethod(
|
989
|
+
"_defaultItems",
|
990
|
+
smalltalk.method({
|
991
|
+
selector: "defaultItems",
|
992
|
+
category: 'defaults',
|
993
|
+
fn: function () {
|
994
|
+
var self = this;
|
995
|
+
var $1;
|
996
|
+
$1 = smalltalk.send(smalltalk.send(smalltalk.send(self, "_model", []), "_variables", []), "_keys", []);
|
997
|
+
return $1;
|
998
|
+
},
|
999
|
+
args: [],
|
1000
|
+
source: "defaultItems\x0a\x09^ self model variables keys",
|
1001
|
+
messageSends: ["keys", "variables", "model"],
|
1002
|
+
referencedClasses: []
|
1003
|
+
}),
|
1004
|
+
smalltalk.HLInspectorVariablesWidget);
|
1005
|
+
|
1006
|
+
smalltalk.addMethod(
|
1007
|
+
"_model",
|
1008
|
+
smalltalk.method({
|
1009
|
+
selector: "model",
|
1010
|
+
category: 'accessing',
|
1011
|
+
fn: function () {
|
1012
|
+
var self = this;
|
1013
|
+
return self['@model'];
|
1014
|
+
},
|
1015
|
+
args: [],
|
1016
|
+
source: "model\x0a ^ model\x0a ",
|
1017
|
+
messageSends: [],
|
1018
|
+
referencedClasses: []
|
1019
|
+
}),
|
1020
|
+
smalltalk.HLInspectorVariablesWidget);
|
1021
|
+
|
1022
|
+
smalltalk.addMethod(
|
1023
|
+
"_model_",
|
1024
|
+
smalltalk.method({
|
1025
|
+
selector: "model:",
|
1026
|
+
category: 'accessing',
|
1027
|
+
fn: function (aModel) {
|
1028
|
+
var self = this;
|
1029
|
+
self['@model'] = aModel;
|
1030
|
+
return self;
|
1031
|
+
},
|
1032
|
+
args: ["aModel"],
|
1033
|
+
source: "model: aModel\x0a model := aModel\x0a ",
|
1034
|
+
messageSends: [],
|
1035
|
+
referencedClasses: []
|
1036
|
+
}),
|
1037
|
+
smalltalk.HLInspectorVariablesWidget);
|
1038
|
+
|
1039
|
+
smalltalk.addMethod(
|
1040
|
+
"_refresh",
|
1041
|
+
smalltalk.method({
|
1042
|
+
selector: "refresh",
|
1043
|
+
category: 'actions',
|
1044
|
+
fn: function () {
|
1045
|
+
var self = this;
|
1046
|
+
smalltalk.send(self, "_resetItems", []);
|
1047
|
+
smalltalk.send(self, "_refresh", [], smalltalk.HLNavigationListWidget);
|
1048
|
+
return self;
|
1049
|
+
},
|
1050
|
+
args: [],
|
1051
|
+
source: "refresh\x0a\x09self resetItems.\x0a super refresh\x0a ",
|
1052
|
+
messageSends: ["resetItems", "refresh"],
|
1053
|
+
referencedClasses: []
|
1054
|
+
}),
|
1055
|
+
smalltalk.HLInspectorVariablesWidget);
|
1056
|
+
|
1057
|
+
smalltalk.addMethod(
|
1058
|
+
"_renderButtonsOn_",
|
1059
|
+
smalltalk.method({
|
1060
|
+
selector: "renderButtonsOn:",
|
1061
|
+
category: 'rendering',
|
1062
|
+
fn: function (html) {
|
1063
|
+
var self = this;
|
1064
|
+
var $1, $2, $3, $4;
|
1065
|
+
$1 = smalltalk.send(html, "_button", []);
|
1066
|
+
smalltalk.send($1, "_class_", ["btn"]);
|
1067
|
+
smalltalk.send($1, "_with_", ["Refresh"]);
|
1068
|
+
$2 = smalltalk.send($1, "_onClick_", [function () {return smalltalk.send(smalltalk.send(self, "_announcer", []), "_announce_", [smalltalk.send(smalltalk.HLRefreshRequested || HLRefreshRequested, "_new", [])]);}]);
|
1069
|
+
$3 = smalltalk.send(html, "_button", []);
|
1070
|
+
smalltalk.send($3, "_class_", ["btn"]);
|
1071
|
+
smalltalk.send($3, "_with_", ["Dive"]);
|
1072
|
+
$4 = smalltalk.send($3, "_onClick_", [function () {return smalltalk.send(smalltalk.send(self, "_announcer", []), "_announce_", [smalltalk.send(smalltalk.HLDiveRequested || HLDiveRequested, "_new", [])]);}]);
|
1073
|
+
self['@diveButton'] = $4;
|
1074
|
+
return self;
|
1075
|
+
},
|
1076
|
+
args: ["html"],
|
1077
|
+
source: "renderButtonsOn: html\x0a\x0a\x09html button\x0a\x09\x09\x09class: 'btn';\x0a\x09\x09\x09with: 'Refresh';\x0a\x09\x09\x09onClick: [self announcer announce: HLRefreshRequested new].\x0a\x0a\x09diveButton := html button \x0a\x09\x09\x09\x09class: 'btn';\x0a\x09\x09\x09\x09with: 'Dive'; \x0a\x09\x09\x09\x09onClick: [self announcer announce: HLDiveRequested new]",
|
1078
|
+
messageSends: ["class:", "button", "with:", "onClick:", "announce:", "new", "announcer"],
|
1079
|
+
referencedClasses: ["HLRefreshRequested", "HLDiveRequested"]
|
1080
|
+
}),
|
1081
|
+
smalltalk.HLInspectorVariablesWidget);
|
1082
|
+
|
1083
|
+
smalltalk.addMethod(
|
1084
|
+
"_resetItems",
|
1085
|
+
smalltalk.method({
|
1086
|
+
selector: "resetItems",
|
1087
|
+
category: 'actions',
|
1088
|
+
fn: function () {
|
1089
|
+
var self = this;
|
1090
|
+
self['@items'] = nil;
|
1091
|
+
return self;
|
1092
|
+
},
|
1093
|
+
args: [],
|
1094
|
+
source: "resetItems\x0a\x09items := nil",
|
1095
|
+
messageSends: [],
|
1096
|
+
referencedClasses: []
|
1097
|
+
}),
|
1098
|
+
smalltalk.HLInspectorVariablesWidget);
|
1099
|
+
|
1100
|
+
smalltalk.addMethod(
|
1101
|
+
"_selectItem_",
|
1102
|
+
smalltalk.method({
|
1103
|
+
selector: "selectItem:",
|
1104
|
+
category: 'reactions',
|
1105
|
+
fn: function (anObject) {
|
1106
|
+
var self = this;
|
1107
|
+
smalltalk.send(self, "_selectItem_", [anObject], smalltalk.HLNavigationListWidget);
|
1108
|
+
smalltalk.send(smalltalk.send(self, "_model", []), "_selectedInstVar_", [anObject]);
|
1109
|
+
return self;
|
1110
|
+
},
|
1111
|
+
args: ["anObject"],
|
1112
|
+
source: "selectItem: anObject\x0a\x09super selectItem: anObject.\x0a self model selectedInstVar: anObject",
|
1113
|
+
messageSends: ["selectItem:", "selectedInstVar:", "model"],
|
1114
|
+
referencedClasses: []
|
1115
|
+
}),
|
1116
|
+
smalltalk.HLInspectorVariablesWidget);
|
1117
|
+
|
1118
|
+
smalltalk.addMethod(
|
1119
|
+
"_selection",
|
1120
|
+
smalltalk.method({
|
1121
|
+
selector: "selection",
|
1122
|
+
category: 'accessing',
|
1123
|
+
fn: function () {
|
1124
|
+
var self = this;
|
1125
|
+
var $1;
|
1126
|
+
$1 = smalltalk.send(self['@model'], "_selection", []);
|
1127
|
+
return $1;
|
1128
|
+
},
|
1129
|
+
args: [],
|
1130
|
+
source: "selection\x0a\x09^ model selection",
|
1131
|
+
messageSends: ["selection"],
|
1132
|
+
referencedClasses: []
|
1133
|
+
}),
|
1134
|
+
smalltalk.HLInspectorVariablesWidget);
|
1135
|
+
|
1136
|
+
smalltalk.addMethod(
|
1137
|
+
"_variables",
|
1138
|
+
smalltalk.method({
|
1139
|
+
selector: "variables",
|
1140
|
+
category: 'accessing',
|
1141
|
+
fn: function () {
|
1142
|
+
var self = this;
|
1143
|
+
var $1;
|
1144
|
+
$1 = smalltalk.send(self['@model'], "_variables", []);
|
1145
|
+
return $1;
|
1146
|
+
},
|
1147
|
+
args: [],
|
1148
|
+
source: "variables\x0a\x09^ model variables",
|
1149
|
+
messageSends: ["variables"],
|
1150
|
+
referencedClasses: []
|
1151
|
+
}),
|
1152
|
+
smalltalk.HLInspectorVariablesWidget);
|
1153
|
+
|
1154
|
+
|
1155
|
+
|