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,132 @@
|
|
1
|
+
smalltalk.addPackage('Helios-Environments', {});
|
2
|
+
smalltalk.addClass('HLEnvironment', smalltalk.Object, [], 'Helios-Environments');
|
3
|
+
smalltalk.addMethod(
|
4
|
+
"_eval_on_",
|
5
|
+
smalltalk.method({
|
6
|
+
selector: "eval:on:",
|
7
|
+
fn: function (someCode, aReceiver) {
|
8
|
+
var self = this;
|
9
|
+
var $1;
|
10
|
+
$1 = smalltalk.send(self, "_subclassResponsibility", []);
|
11
|
+
return $1;
|
12
|
+
}
|
13
|
+
}),
|
14
|
+
smalltalk.HLEnvironment);
|
15
|
+
|
16
|
+
smalltalk.addMethod(
|
17
|
+
"_packages",
|
18
|
+
smalltalk.method({
|
19
|
+
selector: "packages",
|
20
|
+
fn: function () {
|
21
|
+
var self = this;
|
22
|
+
var $1;
|
23
|
+
$1 = smalltalk.send(self, "_subclassResponsibility", []);
|
24
|
+
return $1;
|
25
|
+
}
|
26
|
+
}),
|
27
|
+
smalltalk.HLEnvironment);
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
smalltalk.addClass('HLLocalEnvironment', smalltalk.HLEnvironment, [], 'Helios-Environments');
|
32
|
+
smalltalk.addMethod(
|
33
|
+
"_eval_on_",
|
34
|
+
smalltalk.method({
|
35
|
+
selector: "eval:on:",
|
36
|
+
fn: function (someCode, aReceiver) {
|
37
|
+
var self = this;
|
38
|
+
var $1, $2;
|
39
|
+
var $early = {};
|
40
|
+
try {
|
41
|
+
var compiler;
|
42
|
+
compiler = smalltalk.send(smalltalk.Compiler || Compiler, "_new", []);
|
43
|
+
smalltalk.send(function () {return smalltalk.send(compiler, "_parseExpression_", [someCode]);}, "_on_do_", [smalltalk.Error || Error, function (ex) {$1 = smalltalk.send(window, "_alert_", [smalltalk.send(ex, "_messageText", [])]);throw $early = [$1];}]);
|
44
|
+
$2 = smalltalk.send(smalltalk.send(smalltalk.send(compiler, "_eval_", [smalltalk.send(compiler, "_compile_forClass_", [smalltalk.send(smalltalk.send("doIt ^[", "__comma", [someCode]), "__comma", ["] value"]), smalltalk.DoIt || DoIt])]), "_fn", []), "_applyTo_arguments_", [aReceiver, []]);
|
45
|
+
return $2;
|
46
|
+
} catch (e) {
|
47
|
+
if (e === $early) {
|
48
|
+
return e[0];
|
49
|
+
}
|
50
|
+
throw e;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}),
|
54
|
+
smalltalk.HLLocalEnvironment);
|
55
|
+
|
56
|
+
smalltalk.addMethod(
|
57
|
+
"_packages",
|
58
|
+
smalltalk.method({
|
59
|
+
selector: "packages",
|
60
|
+
fn: function () {
|
61
|
+
var self = this;
|
62
|
+
var $1;
|
63
|
+
$1 = smalltalk.send(smalltalk.send(smalltalk.Smalltalk || Smalltalk, "_current", []), "_packages", []);
|
64
|
+
return $1;
|
65
|
+
}
|
66
|
+
}),
|
67
|
+
smalltalk.HLLocalEnvironment);
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
smalltalk.addClass('HLRemoteEnvironment', smalltalk.HLEnvironment, [], 'Helios-Environments');
|
72
|
+
smalltalk.addMethod(
|
73
|
+
"_eval_on_",
|
74
|
+
smalltalk.method({
|
75
|
+
selector: "eval:on:",
|
76
|
+
fn: function (someCode, aReceiver) {
|
77
|
+
var self = this;
|
78
|
+
smalltalk.send(self, "_notYetImplemented", []);
|
79
|
+
return self;
|
80
|
+
}
|
81
|
+
}),
|
82
|
+
smalltalk.HLRemoteEnvironment);
|
83
|
+
|
84
|
+
smalltalk.addMethod(
|
85
|
+
"_packages",
|
86
|
+
smalltalk.method({
|
87
|
+
selector: "packages",
|
88
|
+
fn: function () {
|
89
|
+
var self = this;
|
90
|
+
return self;
|
91
|
+
}
|
92
|
+
}),
|
93
|
+
smalltalk.HLRemoteEnvironment);
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
smalltalk.addClass('HLRemoteObject', smalltalk.Object, [], 'Helios-Environments');
|
98
|
+
smalltalk.addMethod(
|
99
|
+
"_doesNotUnderstand_",
|
100
|
+
smalltalk.method({
|
101
|
+
selector: "doesNotUnderstand:",
|
102
|
+
fn: function (aMessage) {
|
103
|
+
var self = this;
|
104
|
+
return self;
|
105
|
+
}
|
106
|
+
}),
|
107
|
+
smalltalk.HLRemoteObject);
|
108
|
+
|
109
|
+
smalltalk.addMethod(
|
110
|
+
"_inspectOn_",
|
111
|
+
smalltalk.method({
|
112
|
+
selector: "inspectOn:",
|
113
|
+
fn: function (anInspector) {
|
114
|
+
var self = this;
|
115
|
+
return self;
|
116
|
+
}
|
117
|
+
}),
|
118
|
+
smalltalk.HLRemoteObject);
|
119
|
+
|
120
|
+
smalltalk.addMethod(
|
121
|
+
"_printString",
|
122
|
+
smalltalk.method({
|
123
|
+
selector: "printString",
|
124
|
+
fn: function () {
|
125
|
+
var self = this;
|
126
|
+
return "this is a remote object";
|
127
|
+
}
|
128
|
+
}),
|
129
|
+
smalltalk.HLRemoteObject);
|
130
|
+
|
131
|
+
|
132
|
+
|
@@ -0,0 +1,179 @@
|
|
1
|
+
smalltalk.addPackage('Helios-Environments', {});
|
2
|
+
smalltalk.addClass('HLEnvironment', smalltalk.Object, [], 'Helios-Environments');
|
3
|
+
smalltalk.HLEnvironment.comment="Abstract class defining common behavior for local and remote environments"
|
4
|
+
smalltalk.addMethod(
|
5
|
+
"_eval_on_",
|
6
|
+
smalltalk.method({
|
7
|
+
selector: "eval:on:",
|
8
|
+
category: 'actions',
|
9
|
+
fn: function (someCode, aReceiver) {
|
10
|
+
var self = this;
|
11
|
+
var $1;
|
12
|
+
$1 = smalltalk.send(self, "_subclassResponsibility", []);
|
13
|
+
return $1;
|
14
|
+
},
|
15
|
+
args: ["someCode", "aReceiver"],
|
16
|
+
source: "eval: someCode on: aReceiver\x0a\x0a\x09^ self subclassResponsibility",
|
17
|
+
messageSends: ["subclassResponsibility"],
|
18
|
+
referencedClasses: []
|
19
|
+
}),
|
20
|
+
smalltalk.HLEnvironment);
|
21
|
+
|
22
|
+
smalltalk.addMethod(
|
23
|
+
"_packages",
|
24
|
+
smalltalk.method({
|
25
|
+
selector: "packages",
|
26
|
+
category: 'accessing',
|
27
|
+
fn: function () {
|
28
|
+
var self = this;
|
29
|
+
var $1;
|
30
|
+
$1 = smalltalk.send(self, "_subclassResponsibility", []);
|
31
|
+
return $1;
|
32
|
+
},
|
33
|
+
args: [],
|
34
|
+
source: "packages\x0a\x0a\x09^ self subclassResponsibility",
|
35
|
+
messageSends: ["subclassResponsibility"],
|
36
|
+
referencedClasses: []
|
37
|
+
}),
|
38
|
+
smalltalk.HLEnvironment);
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
smalltalk.addClass('HLLocalEnvironment', smalltalk.HLEnvironment, [], 'Helios-Environments');
|
43
|
+
smalltalk.addMethod(
|
44
|
+
"_eval_on_",
|
45
|
+
smalltalk.method({
|
46
|
+
selector: "eval:on:",
|
47
|
+
category: 'actions',
|
48
|
+
fn: function (someCode, aReceiver) {
|
49
|
+
var self = this;
|
50
|
+
var $1, $2;
|
51
|
+
var $early = {};
|
52
|
+
try {
|
53
|
+
var compiler;
|
54
|
+
compiler = smalltalk.send(smalltalk.Compiler || Compiler, "_new", []);
|
55
|
+
smalltalk.send(function () {return smalltalk.send(compiler, "_parseExpression_", [someCode]);}, "_on_do_", [smalltalk.Error || Error, function (ex) {$1 = smalltalk.send(window, "_alert_", [smalltalk.send(ex, "_messageText", [])]);throw $early = [$1];}]);
|
56
|
+
$2 = smalltalk.send(smalltalk.send(smalltalk.send(compiler, "_eval_", [smalltalk.send(compiler, "_compile_forClass_", [smalltalk.send(smalltalk.send("doIt ^[", "__comma", [someCode]), "__comma", ["] value"]), smalltalk.DoIt || DoIt])]), "_fn", []), "_applyTo_arguments_", [aReceiver, []]);
|
57
|
+
return $2;
|
58
|
+
} catch (e) {
|
59
|
+
if (e === $early) {
|
60
|
+
return e[0];
|
61
|
+
}
|
62
|
+
throw e;
|
63
|
+
}
|
64
|
+
},
|
65
|
+
args: ["someCode", "aReceiver"],
|
66
|
+
source: "eval: someCode on: aReceiver\x0a\x09| compiler |\x0a\x09compiler := Compiler new.\x0a\x09[compiler parseExpression: someCode] on: Error do: [:ex |\x0a\x09\x09^window alert: ex messageText].\x0a\x09^(compiler eval: (compiler compile: 'doIt ^[', someCode, '] value' forClass: DoIt)) fn applyTo: aReceiver arguments: #()",
|
67
|
+
messageSends: ["new", "on:do:", "alert:", "messageText", "parseExpression:", "applyTo:arguments:", "fn", "eval:", "compile:forClass:", ","],
|
68
|
+
referencedClasses: ["Compiler", "Error", "DoIt"]
|
69
|
+
}),
|
70
|
+
smalltalk.HLLocalEnvironment);
|
71
|
+
|
72
|
+
smalltalk.addMethod(
|
73
|
+
"_packages",
|
74
|
+
smalltalk.method({
|
75
|
+
selector: "packages",
|
76
|
+
category: 'accessing',
|
77
|
+
fn: function () {
|
78
|
+
var self = this;
|
79
|
+
var $1;
|
80
|
+
$1 = smalltalk.send(smalltalk.send(smalltalk.Smalltalk || Smalltalk, "_current", []), "_packages", []);
|
81
|
+
return $1;
|
82
|
+
},
|
83
|
+
args: [],
|
84
|
+
source: "packages\x0a\x0a\x09^ Smalltalk current packages",
|
85
|
+
messageSends: ["packages", "current"],
|
86
|
+
referencedClasses: ["Smalltalk"]
|
87
|
+
}),
|
88
|
+
smalltalk.HLLocalEnvironment);
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
smalltalk.addClass('HLRemoteEnvironment', smalltalk.HLEnvironment, [], 'Helios-Environments');
|
93
|
+
smalltalk.addMethod(
|
94
|
+
"_eval_on_",
|
95
|
+
smalltalk.method({
|
96
|
+
selector: "eval:on:",
|
97
|
+
category: 'actions',
|
98
|
+
fn: function (someCode, aReceiver) {
|
99
|
+
var self = this;
|
100
|
+
smalltalk.send(self, "_notYetImplemented", []);
|
101
|
+
return self;
|
102
|
+
},
|
103
|
+
args: ["someCode", "aReceiver"],
|
104
|
+
source: "eval: someCode on: aReceiver\x0a\x0a\x09\x22Note for future self and friends:\x0a whatever way this compilation happens on the other side, \x0a it should return a proxy to the remote resulting object\x22\x0a \x0a self notYetImplemented",
|
105
|
+
messageSends: ["notYetImplemented"],
|
106
|
+
referencedClasses: []
|
107
|
+
}),
|
108
|
+
smalltalk.HLRemoteEnvironment);
|
109
|
+
|
110
|
+
smalltalk.addMethod(
|
111
|
+
"_packages",
|
112
|
+
smalltalk.method({
|
113
|
+
selector: "packages",
|
114
|
+
category: 'accessing',
|
115
|
+
fn: function () {
|
116
|
+
var self = this;
|
117
|
+
return self;
|
118
|
+
},
|
119
|
+
args: [],
|
120
|
+
source: "packages\x0a\x09\x22Answer the remote environment's packages\x22\x0a \x0a\x09\x22to-do\x22\x0a \x0a \x22Note for future self and friends:\x0a the problem with remote stuff is that the answers shouldn't be expected to be\x0a received in a syncrhonous fashion. Everything network is asyc, so you *are going to deal with callbacks* here\x22",
|
121
|
+
messageSends: [],
|
122
|
+
referencedClasses: []
|
123
|
+
}),
|
124
|
+
smalltalk.HLRemoteEnvironment);
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
smalltalk.addClass('HLRemoteObject', smalltalk.Object, [], 'Helios-Environments');
|
129
|
+
smalltalk.HLRemoteObject.comment="This is a local proxy to a remote object.\x0aTipically useful for evaluating and inspecting and interacting with instances of a remote VM.\x0a"
|
130
|
+
smalltalk.addMethod(
|
131
|
+
"_doesNotUnderstand_",
|
132
|
+
smalltalk.method({
|
133
|
+
selector: "doesNotUnderstand:",
|
134
|
+
category: 'actions',
|
135
|
+
fn: function (aMessage) {
|
136
|
+
var self = this;
|
137
|
+
return self;
|
138
|
+
},
|
139
|
+
args: ["aMessage"],
|
140
|
+
source: "doesNotUnderstand: aMessage\x0a\x0a\x09\x22to-do\x0a\x0a\x09aham, blah blah\x0a\x0a\x09super doesNotUnderstand: aMessage\x22",
|
141
|
+
messageSends: [],
|
142
|
+
referencedClasses: []
|
143
|
+
}),
|
144
|
+
smalltalk.HLRemoteObject);
|
145
|
+
|
146
|
+
smalltalk.addMethod(
|
147
|
+
"_inspectOn_",
|
148
|
+
smalltalk.method({
|
149
|
+
selector: "inspectOn:",
|
150
|
+
category: 'actions',
|
151
|
+
fn: function (anInspector) {
|
152
|
+
var self = this;
|
153
|
+
return self;
|
154
|
+
},
|
155
|
+
args: ["anInspector"],
|
156
|
+
source: "inspectOn: anInspector\x0a\x0a\x09\x22to-do\x22\x0a\x0a\x09\x22this is a source of so much fun...\x22\x0a",
|
157
|
+
messageSends: [],
|
158
|
+
referencedClasses: []
|
159
|
+
}),
|
160
|
+
smalltalk.HLRemoteObject);
|
161
|
+
|
162
|
+
smalltalk.addMethod(
|
163
|
+
"_printString",
|
164
|
+
smalltalk.method({
|
165
|
+
selector: "printString",
|
166
|
+
category: 'actions',
|
167
|
+
fn: function () {
|
168
|
+
var self = this;
|
169
|
+
return "this is a remote object";
|
170
|
+
},
|
171
|
+
args: [],
|
172
|
+
source: "printString\x0a\x09^ 'this is a remote object'",
|
173
|
+
messageSends: [],
|
174
|
+
referencedClasses: []
|
175
|
+
}),
|
176
|
+
smalltalk.HLRemoteObject);
|
177
|
+
|
178
|
+
|
179
|
+
|
@@ -0,0 +1,855 @@
|
|
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
|
+
fn: function () {
|
8
|
+
var self = this;
|
9
|
+
var $2, $3, $1;
|
10
|
+
if (($receiver = self['@codeWidget']) == nil || $receiver == undefined) {
|
11
|
+
$2 = smalltalk.send(smalltalk.HLCodeWidget || HLCodeWidget, "_new", []);
|
12
|
+
smalltalk.send($2, "_model_", [smalltalk.send(self['@model'], "_code", [])]);
|
13
|
+
smalltalk.send($2, "_receiver_", [smalltalk.send(self['@model'], "_inspectee", [])]);
|
14
|
+
$3 = smalltalk.send($2, "_yourself", []);
|
15
|
+
self['@codeWidget'] = $3;
|
16
|
+
$1 = self['@codeWidget'];
|
17
|
+
} else {
|
18
|
+
$1 = self['@codeWidget'];
|
19
|
+
}
|
20
|
+
return $1;
|
21
|
+
}
|
22
|
+
}),
|
23
|
+
smalltalk.HLInspector);
|
24
|
+
|
25
|
+
smalltalk.addMethod(
|
26
|
+
"_displayWidget",
|
27
|
+
smalltalk.method({
|
28
|
+
selector: "displayWidget",
|
29
|
+
fn: function () {
|
30
|
+
var self = this;
|
31
|
+
var $2, $3, $1;
|
32
|
+
if (($receiver = self['@displayWidget']) == nil ||
|
33
|
+
$receiver == undefined) {
|
34
|
+
$2 = smalltalk.send(smalltalk.HLInspectorDisplayWidget || HLInspectorDisplayWidget, "_new", []);
|
35
|
+
smalltalk.send($2, "_model_", [smalltalk.send(self, "_model", [])]);
|
36
|
+
$3 = smalltalk.send($2, "_yourself", []);
|
37
|
+
self['@displayWidget'] = $3;
|
38
|
+
$1 = self['@displayWidget'];
|
39
|
+
} else {
|
40
|
+
$1 = self['@displayWidget'];
|
41
|
+
}
|
42
|
+
return $1;
|
43
|
+
}
|
44
|
+
}),
|
45
|
+
smalltalk.HLInspector);
|
46
|
+
|
47
|
+
smalltalk.addMethod(
|
48
|
+
"_inspect_",
|
49
|
+
smalltalk.method({
|
50
|
+
selector: "inspect:",
|
51
|
+
fn: function (anObject) {
|
52
|
+
var self = this;
|
53
|
+
var $1;
|
54
|
+
smalltalk.send(smalltalk.send(self, "_model", []), "_inspect_on_", [anObject, self]);
|
55
|
+
smalltalk.send(self, "_refreshVariablesWidget", []);
|
56
|
+
$1 = smalltalk.send(self, "_refreshDisplayWidget", []);
|
57
|
+
return self;
|
58
|
+
}
|
59
|
+
}),
|
60
|
+
smalltalk.HLInspector);
|
61
|
+
|
62
|
+
smalltalk.addMethod(
|
63
|
+
"_inspectee",
|
64
|
+
smalltalk.method({
|
65
|
+
selector: "inspectee",
|
66
|
+
fn: function () {
|
67
|
+
var self = this;
|
68
|
+
var $1;
|
69
|
+
$1 = smalltalk.send(smalltalk.send(self, "_model", []), "_inspectee", []);
|
70
|
+
return $1;
|
71
|
+
}
|
72
|
+
}),
|
73
|
+
smalltalk.HLInspector);
|
74
|
+
|
75
|
+
smalltalk.addMethod(
|
76
|
+
"_inspectee_",
|
77
|
+
smalltalk.method({
|
78
|
+
selector: "inspectee:",
|
79
|
+
fn: function (anObject) {
|
80
|
+
var self = this;
|
81
|
+
smalltalk.send(smalltalk.send(self, "_model", []), "_inspectee_", [anObject]);
|
82
|
+
return self;
|
83
|
+
}
|
84
|
+
}),
|
85
|
+
smalltalk.HLInspector);
|
86
|
+
|
87
|
+
smalltalk.addMethod(
|
88
|
+
"_label",
|
89
|
+
smalltalk.method({
|
90
|
+
selector: "label",
|
91
|
+
fn: function () {
|
92
|
+
var self = this;
|
93
|
+
var $1;
|
94
|
+
if (($receiver = self['@label']) == nil || $receiver == undefined) {
|
95
|
+
$1 = smalltalk.send(smalltalk.send(self['@model'], "_inspectee", []), "_printString", []);
|
96
|
+
} else {
|
97
|
+
$1 = self['@label'];
|
98
|
+
}
|
99
|
+
return $1;
|
100
|
+
}
|
101
|
+
}),
|
102
|
+
smalltalk.HLInspector);
|
103
|
+
|
104
|
+
smalltalk.addMethod(
|
105
|
+
"_model",
|
106
|
+
smalltalk.method({
|
107
|
+
selector: "model",
|
108
|
+
fn: function () {
|
109
|
+
var self = this;
|
110
|
+
var $1;
|
111
|
+
if (($receiver = self['@model']) == nil || $receiver == undefined) {
|
112
|
+
smalltalk.send(self, "_model_", [smalltalk.send(smalltalk.HLInspectorModel || HLInspectorModel, "_new", [])]);
|
113
|
+
$1 = self['@model'];
|
114
|
+
} else {
|
115
|
+
$1 = self['@model'];
|
116
|
+
}
|
117
|
+
return $1;
|
118
|
+
}
|
119
|
+
}),
|
120
|
+
smalltalk.HLInspector);
|
121
|
+
|
122
|
+
smalltalk.addMethod(
|
123
|
+
"_model_",
|
124
|
+
smalltalk.method({
|
125
|
+
selector: "model:",
|
126
|
+
fn: function (aModel) {
|
127
|
+
var self = this;
|
128
|
+
var $1;
|
129
|
+
self['@model'] = aModel;
|
130
|
+
smalltalk.send(smalltalk.send(self, "_codeWidget", []), "_model_", [smalltalk.send(aModel, "_code", [])]);
|
131
|
+
smalltalk.send(self, "_observeCodeWidget", []);
|
132
|
+
smalltalk.send(self, "_observeVariablesWidget", []);
|
133
|
+
$1 = smalltalk.send(self, "_observeModel", []);
|
134
|
+
return self;
|
135
|
+
}
|
136
|
+
}),
|
137
|
+
smalltalk.HLInspector);
|
138
|
+
|
139
|
+
smalltalk.addMethod(
|
140
|
+
"_observeCodeWidget",
|
141
|
+
smalltalk.method({
|
142
|
+
selector: "observeCodeWidget",
|
143
|
+
fn: function () {
|
144
|
+
var self = this;
|
145
|
+
smalltalk.send(smalltalk.send(smalltalk.send(self, "_codeWidget", []), "_announcer", []), "_on_do_", [smalltalk.HLDoItExecuted || HLDoItExecuted, function () {return smalltalk.send(self, "_onDoneIt", []);}]);
|
146
|
+
return self;
|
147
|
+
}
|
148
|
+
}),
|
149
|
+
smalltalk.HLInspector);
|
150
|
+
|
151
|
+
smalltalk.addMethod(
|
152
|
+
"_observeModel",
|
153
|
+
smalltalk.method({
|
154
|
+
selector: "observeModel",
|
155
|
+
fn: function () {
|
156
|
+
var self = this;
|
157
|
+
smalltalk.send(smalltalk.send(smalltalk.send(self, "_model", []), "_announcer", []), "_on_do_", [smalltalk.HLInstanceVariableSelected || HLInstanceVariableSelected, function (ann) {return smalltalk.send(self, "_onInstanceVariableSelected", []);}]);
|
158
|
+
return self;
|
159
|
+
}
|
160
|
+
}),
|
161
|
+
smalltalk.HLInspector);
|
162
|
+
|
163
|
+
smalltalk.addMethod(
|
164
|
+
"_observeVariablesWidget",
|
165
|
+
smalltalk.method({
|
166
|
+
selector: "observeVariablesWidget",
|
167
|
+
fn: function () {
|
168
|
+
var self = this;
|
169
|
+
var $1, $2;
|
170
|
+
$1 = smalltalk.send(smalltalk.send(self, "_variablesWidget", []), "_announcer", []);
|
171
|
+
smalltalk.send($1, "_on_do_", [smalltalk.HLRefreshRequested || HLRefreshRequested, function (ann) {return smalltalk.send(self, "_onRefresh", []);}]);
|
172
|
+
$2 = smalltalk.send($1, "_on_do_", [smalltalk.HLDiveRequested || HLDiveRequested, function () {return smalltalk.send(self, "_onDive", []);}]);
|
173
|
+
return self;
|
174
|
+
}
|
175
|
+
}),
|
176
|
+
smalltalk.HLInspector);
|
177
|
+
|
178
|
+
smalltalk.addMethod(
|
179
|
+
"_onDive",
|
180
|
+
smalltalk.method({
|
181
|
+
selector: "onDive",
|
182
|
+
fn: function () {
|
183
|
+
var self = this;
|
184
|
+
smalltalk.send(self, "_inspect_", [smalltalk.send(smalltalk.send(self, "_model", []), "_selectedInstVarObject", [])]);
|
185
|
+
return self;
|
186
|
+
}
|
187
|
+
}),
|
188
|
+
smalltalk.HLInspector);
|
189
|
+
|
190
|
+
smalltalk.addMethod(
|
191
|
+
"_onDoneIt",
|
192
|
+
smalltalk.method({
|
193
|
+
selector: "onDoneIt",
|
194
|
+
fn: function () {
|
195
|
+
var self = this;
|
196
|
+
smalltalk.send(self, "_refresh", []);
|
197
|
+
return self;
|
198
|
+
}
|
199
|
+
}),
|
200
|
+
smalltalk.HLInspector);
|
201
|
+
|
202
|
+
smalltalk.addMethod(
|
203
|
+
"_onInspectIt",
|
204
|
+
smalltalk.method({
|
205
|
+
selector: "onInspectIt",
|
206
|
+
fn: function () {
|
207
|
+
var self = this;
|
208
|
+
return self;
|
209
|
+
}
|
210
|
+
}),
|
211
|
+
smalltalk.HLInspector);
|
212
|
+
|
213
|
+
smalltalk.addMethod(
|
214
|
+
"_onInstanceVariableSelected",
|
215
|
+
smalltalk.method({
|
216
|
+
selector: "onInstanceVariableSelected",
|
217
|
+
fn: function () {
|
218
|
+
var self = this;
|
219
|
+
smalltalk.send(smalltalk.send(self, "_codeWidget", []), "_receiver_", [smalltalk.send(smalltalk.send(self, "_model", []), "_selectedInstVarObject", [])]);
|
220
|
+
smalltalk.send(self, "_refreshDisplayWidget", []);
|
221
|
+
return self;
|
222
|
+
}
|
223
|
+
}),
|
224
|
+
smalltalk.HLInspector);
|
225
|
+
|
226
|
+
smalltalk.addMethod(
|
227
|
+
"_onPrintIt",
|
228
|
+
smalltalk.method({
|
229
|
+
selector: "onPrintIt",
|
230
|
+
fn: function () {
|
231
|
+
var self = this;
|
232
|
+
return self;
|
233
|
+
}
|
234
|
+
}),
|
235
|
+
smalltalk.HLInspector);
|
236
|
+
|
237
|
+
smalltalk.addMethod(
|
238
|
+
"_onRefresh",
|
239
|
+
smalltalk.method({
|
240
|
+
selector: "onRefresh",
|
241
|
+
fn: function () {
|
242
|
+
var self = this;
|
243
|
+
smalltalk.send(self, "_refresh", []);
|
244
|
+
return self;
|
245
|
+
}
|
246
|
+
}),
|
247
|
+
smalltalk.HLInspector);
|
248
|
+
|
249
|
+
smalltalk.addMethod(
|
250
|
+
"_open",
|
251
|
+
smalltalk.method({
|
252
|
+
selector: "open",
|
253
|
+
fn: function () {
|
254
|
+
var self = this;
|
255
|
+
smalltalk.send(smalltalk.send(smalltalk.HLManager || HLManager, "_current", []), "_addTab_", [smalltalk.send(smalltalk.HLTab || HLTab, "_on_labelled_", [self, smalltalk.send(self, "_tabLabel", [])])]);
|
256
|
+
return self;
|
257
|
+
}
|
258
|
+
}),
|
259
|
+
smalltalk.HLInspector);
|
260
|
+
|
261
|
+
smalltalk.addMethod(
|
262
|
+
"_refresh",
|
263
|
+
smalltalk.method({
|
264
|
+
selector: "refresh",
|
265
|
+
fn: function () {
|
266
|
+
var self = this;
|
267
|
+
smalltalk.send(self, "_inspect_", [smalltalk.send(self, "_inspectee", [])]);
|
268
|
+
return self;
|
269
|
+
}
|
270
|
+
}),
|
271
|
+
smalltalk.HLInspector);
|
272
|
+
|
273
|
+
smalltalk.addMethod(
|
274
|
+
"_refreshDisplayWidget",
|
275
|
+
smalltalk.method({
|
276
|
+
selector: "refreshDisplayWidget",
|
277
|
+
fn: function () {
|
278
|
+
var self = this;
|
279
|
+
smalltalk.send(smalltalk.send(self, "_displayWidget", []), "_refresh", []);
|
280
|
+
return self;
|
281
|
+
}
|
282
|
+
}),
|
283
|
+
smalltalk.HLInspector);
|
284
|
+
|
285
|
+
smalltalk.addMethod(
|
286
|
+
"_refreshVariablesWidget",
|
287
|
+
smalltalk.method({
|
288
|
+
selector: "refreshVariablesWidget",
|
289
|
+
fn: function () {
|
290
|
+
var self = this;
|
291
|
+
smalltalk.send(smalltalk.send(self, "_variablesWidget", []), "_refresh", []);
|
292
|
+
return self;
|
293
|
+
}
|
294
|
+
}),
|
295
|
+
smalltalk.HLInspector);
|
296
|
+
|
297
|
+
smalltalk.addMethod(
|
298
|
+
"_renderContentOn_",
|
299
|
+
smalltalk.method({
|
300
|
+
selector: "renderContentOn:",
|
301
|
+
fn: function (html) {
|
302
|
+
var self = this;
|
303
|
+
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", [])])])]);
|
304
|
+
return self;
|
305
|
+
}
|
306
|
+
}),
|
307
|
+
smalltalk.HLInspector);
|
308
|
+
|
309
|
+
smalltalk.addMethod(
|
310
|
+
"_setLabel_",
|
311
|
+
smalltalk.method({
|
312
|
+
selector: "setLabel:",
|
313
|
+
fn: function (aString) {
|
314
|
+
var self = this;
|
315
|
+
self['@label'] = aString;
|
316
|
+
return self;
|
317
|
+
}
|
318
|
+
}),
|
319
|
+
smalltalk.HLInspector);
|
320
|
+
|
321
|
+
smalltalk.addMethod(
|
322
|
+
"_setVariables_",
|
323
|
+
smalltalk.method({
|
324
|
+
selector: "setVariables:",
|
325
|
+
fn: function (aDictionary) {
|
326
|
+
var self = this;
|
327
|
+
smalltalk.send(smalltalk.send(self, "_model", []), "_variables_", [aDictionary]);
|
328
|
+
return self;
|
329
|
+
}
|
330
|
+
}),
|
331
|
+
smalltalk.HLInspector);
|
332
|
+
|
333
|
+
smalltalk.addMethod(
|
334
|
+
"_tabLabel",
|
335
|
+
smalltalk.method({
|
336
|
+
selector: "tabLabel",
|
337
|
+
fn: function () {
|
338
|
+
var self = this;
|
339
|
+
var $1;
|
340
|
+
$1 = smalltalk.send(self, "_label", []);
|
341
|
+
return $1;
|
342
|
+
}
|
343
|
+
}),
|
344
|
+
smalltalk.HLInspector);
|
345
|
+
|
346
|
+
smalltalk.addMethod(
|
347
|
+
"_variablesWidget",
|
348
|
+
smalltalk.method({
|
349
|
+
selector: "variablesWidget",
|
350
|
+
fn: function () {
|
351
|
+
var self = this;
|
352
|
+
var $2, $3, $1;
|
353
|
+
if (($receiver = self['@variablesWidget']) == nil ||
|
354
|
+
$receiver == undefined) {
|
355
|
+
$2 = smalltalk.send(smalltalk.HLInspectorVariablesWidget ||
|
356
|
+
HLInspectorVariablesWidget, "_new", []);
|
357
|
+
smalltalk.send($2, "_model_", [smalltalk.send(self, "_model", [])]);
|
358
|
+
$3 = smalltalk.send($2, "_yourself", []);
|
359
|
+
self['@variablesWidget'] = $3;
|
360
|
+
$1 = self['@variablesWidget'];
|
361
|
+
} else {
|
362
|
+
$1 = self['@variablesWidget'];
|
363
|
+
}
|
364
|
+
return $1;
|
365
|
+
}
|
366
|
+
}),
|
367
|
+
smalltalk.HLInspector);
|
368
|
+
|
369
|
+
|
370
|
+
smalltalk.addMethod(
|
371
|
+
"_canBeOpenAsTab",
|
372
|
+
smalltalk.method({
|
373
|
+
selector: "canBeOpenAsTab",
|
374
|
+
fn: function () {
|
375
|
+
var self = this;
|
376
|
+
return false;
|
377
|
+
}
|
378
|
+
}),
|
379
|
+
smalltalk.HLInspector.klass);
|
380
|
+
|
381
|
+
smalltalk.addMethod(
|
382
|
+
"_tabLabel",
|
383
|
+
smalltalk.method({
|
384
|
+
selector: "tabLabel",
|
385
|
+
fn: function () {
|
386
|
+
var self = this;
|
387
|
+
return "Inspector";
|
388
|
+
}
|
389
|
+
}),
|
390
|
+
smalltalk.HLInspector.klass);
|
391
|
+
|
392
|
+
smalltalk.addMethod(
|
393
|
+
"_tabPriority",
|
394
|
+
smalltalk.method({
|
395
|
+
selector: "tabPriority",
|
396
|
+
fn: function () {
|
397
|
+
var self = this;
|
398
|
+
return 10;
|
399
|
+
}
|
400
|
+
}),
|
401
|
+
smalltalk.HLInspector.klass);
|
402
|
+
|
403
|
+
|
404
|
+
smalltalk.addClass('HLInspectorDisplayWidget', smalltalk.HLNavigationListWidget, ['model'], 'Helios-Inspector');
|
405
|
+
smalltalk.addMethod(
|
406
|
+
"_model",
|
407
|
+
smalltalk.method({
|
408
|
+
selector: "model",
|
409
|
+
fn: function () {
|
410
|
+
var self = this;
|
411
|
+
return self['@model'];
|
412
|
+
}
|
413
|
+
}),
|
414
|
+
smalltalk.HLInspectorDisplayWidget);
|
415
|
+
|
416
|
+
smalltalk.addMethod(
|
417
|
+
"_model_",
|
418
|
+
smalltalk.method({
|
419
|
+
selector: "model:",
|
420
|
+
fn: function (aModel) {
|
421
|
+
var self = this;
|
422
|
+
self['@model'] = aModel;
|
423
|
+
return self;
|
424
|
+
}
|
425
|
+
}),
|
426
|
+
smalltalk.HLInspectorDisplayWidget);
|
427
|
+
|
428
|
+
smalltalk.addMethod(
|
429
|
+
"_renderContentOn_",
|
430
|
+
smalltalk.method({
|
431
|
+
selector: "renderContentOn:",
|
432
|
+
fn: function (html) {
|
433
|
+
var self = this;
|
434
|
+
smalltalk.send(smalltalk.send(html, "_div", []), "_with_", [smalltalk.send(self, "_selectionDisplayString", [])]);
|
435
|
+
return self;
|
436
|
+
}
|
437
|
+
}),
|
438
|
+
smalltalk.HLInspectorDisplayWidget);
|
439
|
+
|
440
|
+
smalltalk.addMethod(
|
441
|
+
"_selectionDisplayString",
|
442
|
+
smalltalk.method({
|
443
|
+
selector: "selectionDisplayString",
|
444
|
+
fn: function () {
|
445
|
+
var self = this;
|
446
|
+
var $2, $1;
|
447
|
+
var selection;
|
448
|
+
selection = smalltalk.send(self['@model'], "_selection", []);
|
449
|
+
$2 = smalltalk.send(smalltalk.send(smalltalk.send(self['@model'], "_variables", []), "_keys", []), "_includes_", [selection]);
|
450
|
+
if (smalltalk.assert($2)) {
|
451
|
+
$1 = smalltalk.send(smalltalk.send(self['@model'], "_instVarObjectAt_", [selection]), "_printString", []);
|
452
|
+
} else {
|
453
|
+
$1 = "";
|
454
|
+
}
|
455
|
+
return $1;
|
456
|
+
}
|
457
|
+
}),
|
458
|
+
smalltalk.HLInspectorDisplayWidget);
|
459
|
+
|
460
|
+
|
461
|
+
|
462
|
+
smalltalk.addClass('HLInspectorModel', smalltalk.Object, ['announcer', 'environment', 'inspectee', 'code', 'variables', 'selection'], 'Helios-Inspector');
|
463
|
+
smalltalk.addMethod(
|
464
|
+
"_announcer",
|
465
|
+
smalltalk.method({
|
466
|
+
selector: "announcer",
|
467
|
+
fn: function () {
|
468
|
+
var self = this;
|
469
|
+
var $1;
|
470
|
+
if (($receiver = self['@announcer']) == nil || $receiver == undefined) {
|
471
|
+
self['@announcer'] = smalltalk.send(smalltalk.Announcer || Announcer, "_new", []);
|
472
|
+
$1 = self['@announcer'];
|
473
|
+
} else {
|
474
|
+
$1 = self['@announcer'];
|
475
|
+
}
|
476
|
+
return $1;
|
477
|
+
}
|
478
|
+
}),
|
479
|
+
smalltalk.HLInspectorModel);
|
480
|
+
|
481
|
+
smalltalk.addMethod(
|
482
|
+
"_code",
|
483
|
+
smalltalk.method({
|
484
|
+
selector: "code",
|
485
|
+
fn: function () {
|
486
|
+
var self = this;
|
487
|
+
var $1;
|
488
|
+
if (($receiver = self['@code']) == nil || $receiver == undefined) {
|
489
|
+
self['@code'] = smalltalk.send(smalltalk.HLCodeModel || HLCodeModel, "_on_", [smalltalk.send(self, "_environment", [])]);
|
490
|
+
$1 = self['@code'];
|
491
|
+
} else {
|
492
|
+
$1 = self['@code'];
|
493
|
+
}
|
494
|
+
return $1;
|
495
|
+
}
|
496
|
+
}),
|
497
|
+
smalltalk.HLInspectorModel);
|
498
|
+
|
499
|
+
smalltalk.addMethod(
|
500
|
+
"_environment",
|
501
|
+
smalltalk.method({
|
502
|
+
selector: "environment",
|
503
|
+
fn: function () {
|
504
|
+
var self = this;
|
505
|
+
var $1;
|
506
|
+
if (($receiver = self['@environment']) == nil || $receiver == undefined) {
|
507
|
+
$1 = smalltalk.send(smalltalk.send(smalltalk.HLManager || HLManager, "_current", []), "_environment", []);
|
508
|
+
} else {
|
509
|
+
$1 = self['@environment'];
|
510
|
+
}
|
511
|
+
return $1;
|
512
|
+
}
|
513
|
+
}),
|
514
|
+
smalltalk.HLInspectorModel);
|
515
|
+
|
516
|
+
smalltalk.addMethod(
|
517
|
+
"_environment_",
|
518
|
+
smalltalk.method({
|
519
|
+
selector: "environment:",
|
520
|
+
fn: function (anEnvironment) {
|
521
|
+
var self = this;
|
522
|
+
self['@environment'] = anEnvironment;
|
523
|
+
return self;
|
524
|
+
}
|
525
|
+
}),
|
526
|
+
smalltalk.HLInspectorModel);
|
527
|
+
|
528
|
+
smalltalk.addMethod(
|
529
|
+
"_inspect_on_",
|
530
|
+
smalltalk.method({
|
531
|
+
selector: "inspect:on:",
|
532
|
+
fn: function (anObject, anInspector) {
|
533
|
+
var self = this;
|
534
|
+
self['@inspectee'] = anObject;
|
535
|
+
self['@variables'] = [];
|
536
|
+
smalltalk.send(self['@inspectee'], "_inspectOn_", [anInspector]);
|
537
|
+
return self;
|
538
|
+
}
|
539
|
+
}),
|
540
|
+
smalltalk.HLInspectorModel);
|
541
|
+
|
542
|
+
smalltalk.addMethod(
|
543
|
+
"_inspectee",
|
544
|
+
smalltalk.method({
|
545
|
+
selector: "inspectee",
|
546
|
+
fn: function () {
|
547
|
+
var self = this;
|
548
|
+
return self['@inspectee'];
|
549
|
+
}
|
550
|
+
}),
|
551
|
+
smalltalk.HLInspectorModel);
|
552
|
+
|
553
|
+
smalltalk.addMethod(
|
554
|
+
"_inspectee_",
|
555
|
+
smalltalk.method({
|
556
|
+
selector: "inspectee:",
|
557
|
+
fn: function (anObject) {
|
558
|
+
var self = this;
|
559
|
+
self['@inspectee'] = anObject;
|
560
|
+
return self;
|
561
|
+
}
|
562
|
+
}),
|
563
|
+
smalltalk.HLInspectorModel);
|
564
|
+
|
565
|
+
smalltalk.addMethod(
|
566
|
+
"_instVarObjectAt_",
|
567
|
+
smalltalk.method({
|
568
|
+
selector: "instVarObjectAt:",
|
569
|
+
fn: function (anInstVarName) {
|
570
|
+
var self = this;
|
571
|
+
var $1;
|
572
|
+
$1 = smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [anInstVarName]);
|
573
|
+
return $1;
|
574
|
+
}
|
575
|
+
}),
|
576
|
+
smalltalk.HLInspectorModel);
|
577
|
+
|
578
|
+
smalltalk.addMethod(
|
579
|
+
"_onKeyDown_",
|
580
|
+
smalltalk.method({
|
581
|
+
selector: "onKeyDown:",
|
582
|
+
fn: function (anEvent) {
|
583
|
+
var self = this;
|
584
|
+
if (anEvent.ctrlKey) {
|
585
|
+
if (anEvent.keyCode === 80) {
|
586
|
+
self._printIt();
|
587
|
+
anEvent.preventDefault();
|
588
|
+
return false;
|
589
|
+
}
|
590
|
+
if (anEvent.keyCode === 68) {
|
591
|
+
self._doIt();
|
592
|
+
anEvent.preventDefault();
|
593
|
+
return false;
|
594
|
+
}
|
595
|
+
if (anEvent.keyCode === 73) {
|
596
|
+
self._inspectIt();
|
597
|
+
anEvent.preventDefault();
|
598
|
+
return false;
|
599
|
+
}
|
600
|
+
}
|
601
|
+
return self;
|
602
|
+
}
|
603
|
+
}),
|
604
|
+
smalltalk.HLInspectorModel);
|
605
|
+
|
606
|
+
smalltalk.addMethod(
|
607
|
+
"_selectedInstVar_",
|
608
|
+
smalltalk.method({
|
609
|
+
selector: "selectedInstVar:",
|
610
|
+
fn: function (anInstVarName) {
|
611
|
+
var self = this;
|
612
|
+
smalltalk.send(self, "_selection_", [anInstVarName]);
|
613
|
+
return self;
|
614
|
+
}
|
615
|
+
}),
|
616
|
+
smalltalk.HLInspectorModel);
|
617
|
+
|
618
|
+
smalltalk.addMethod(
|
619
|
+
"_selectedInstVarObject",
|
620
|
+
smalltalk.method({
|
621
|
+
selector: "selectedInstVarObject",
|
622
|
+
fn: function () {
|
623
|
+
var self = this;
|
624
|
+
var $1;
|
625
|
+
$1 = smalltalk.send(self, "_instVarObjectAt_", [smalltalk.send(self, "_selection", [])]);
|
626
|
+
return $1;
|
627
|
+
}
|
628
|
+
}),
|
629
|
+
smalltalk.HLInspectorModel);
|
630
|
+
|
631
|
+
smalltalk.addMethod(
|
632
|
+
"_selection",
|
633
|
+
smalltalk.method({
|
634
|
+
selector: "selection",
|
635
|
+
fn: function () {
|
636
|
+
var self = this;
|
637
|
+
var $1;
|
638
|
+
if (($receiver = self['@selection']) == nil || $receiver == undefined) {
|
639
|
+
$1 = "";
|
640
|
+
} else {
|
641
|
+
$1 = self['@selection'];
|
642
|
+
}
|
643
|
+
return $1;
|
644
|
+
}
|
645
|
+
}),
|
646
|
+
smalltalk.HLInspectorModel);
|
647
|
+
|
648
|
+
smalltalk.addMethod(
|
649
|
+
"_selection_",
|
650
|
+
smalltalk.method({
|
651
|
+
selector: "selection:",
|
652
|
+
fn: function (anObject) {
|
653
|
+
var self = this;
|
654
|
+
self['@selection'] = anObject;
|
655
|
+
smalltalk.send(smalltalk.send(self, "_announcer", []), "_announce_", [smalltalk.send(smalltalk.HLInstanceVariableSelected || HLInstanceVariableSelected, "_on_", [self['@selection']])]);
|
656
|
+
return self;
|
657
|
+
}
|
658
|
+
}),
|
659
|
+
smalltalk.HLInspectorModel);
|
660
|
+
|
661
|
+
smalltalk.addMethod(
|
662
|
+
"_subscribe_",
|
663
|
+
smalltalk.method({
|
664
|
+
selector: "subscribe:",
|
665
|
+
fn: function (aWidget) {
|
666
|
+
var self = this;
|
667
|
+
smalltalk.send(aWidget, "_subscribeTo_", [smalltalk.send(self, "_announcer", [])]);
|
668
|
+
return self;
|
669
|
+
}
|
670
|
+
}),
|
671
|
+
smalltalk.HLInspectorModel);
|
672
|
+
|
673
|
+
smalltalk.addMethod(
|
674
|
+
"_variables",
|
675
|
+
smalltalk.method({
|
676
|
+
selector: "variables",
|
677
|
+
fn: function () {
|
678
|
+
var self = this;
|
679
|
+
return self['@variables'];
|
680
|
+
}
|
681
|
+
}),
|
682
|
+
smalltalk.HLInspectorModel);
|
683
|
+
|
684
|
+
smalltalk.addMethod(
|
685
|
+
"_variables_",
|
686
|
+
smalltalk.method({
|
687
|
+
selector: "variables:",
|
688
|
+
fn: function (aCollection) {
|
689
|
+
var self = this;
|
690
|
+
self['@variables'] = aCollection;
|
691
|
+
return self;
|
692
|
+
}
|
693
|
+
}),
|
694
|
+
smalltalk.HLInspectorModel);
|
695
|
+
|
696
|
+
|
697
|
+
smalltalk.addMethod(
|
698
|
+
"_on_",
|
699
|
+
smalltalk.method({
|
700
|
+
selector: "on:",
|
701
|
+
fn: function (anEnvironment) {
|
702
|
+
var self = this;
|
703
|
+
var $2, $3, $1;
|
704
|
+
$2 = smalltalk.send(self, "_new", []);
|
705
|
+
smalltalk.send($2, "_environment_", [anEnvironment]);
|
706
|
+
$3 = smalltalk.send($2, "_yourself", []);
|
707
|
+
$1 = $3;
|
708
|
+
return $1;
|
709
|
+
}
|
710
|
+
}),
|
711
|
+
smalltalk.HLInspectorModel.klass);
|
712
|
+
|
713
|
+
|
714
|
+
smalltalk.addClass('HLInspectorVariablesWidget', smalltalk.HLNavigationListWidget, ['announcer', 'model', 'list', 'diveButton'], 'Helios-Inspector');
|
715
|
+
smalltalk.addMethod(
|
716
|
+
"_announcer",
|
717
|
+
smalltalk.method({
|
718
|
+
selector: "announcer",
|
719
|
+
fn: function () {
|
720
|
+
var self = this;
|
721
|
+
var $1;
|
722
|
+
if (($receiver = self['@announcer']) == nil || $receiver == undefined) {
|
723
|
+
self['@announcer'] = smalltalk.send(smalltalk.Announcer || Announcer, "_new", []);
|
724
|
+
$1 = self['@announcer'];
|
725
|
+
} else {
|
726
|
+
$1 = self['@announcer'];
|
727
|
+
}
|
728
|
+
return $1;
|
729
|
+
}
|
730
|
+
}),
|
731
|
+
smalltalk.HLInspectorVariablesWidget);
|
732
|
+
|
733
|
+
smalltalk.addMethod(
|
734
|
+
"_defaultItems",
|
735
|
+
smalltalk.method({
|
736
|
+
selector: "defaultItems",
|
737
|
+
fn: function () {
|
738
|
+
var self = this;
|
739
|
+
var $1;
|
740
|
+
$1 = smalltalk.send(smalltalk.send(smalltalk.send(self, "_model", []), "_variables", []), "_keys", []);
|
741
|
+
return $1;
|
742
|
+
}
|
743
|
+
}),
|
744
|
+
smalltalk.HLInspectorVariablesWidget);
|
745
|
+
|
746
|
+
smalltalk.addMethod(
|
747
|
+
"_model",
|
748
|
+
smalltalk.method({
|
749
|
+
selector: "model",
|
750
|
+
fn: function () {
|
751
|
+
var self = this;
|
752
|
+
return self['@model'];
|
753
|
+
}
|
754
|
+
}),
|
755
|
+
smalltalk.HLInspectorVariablesWidget);
|
756
|
+
|
757
|
+
smalltalk.addMethod(
|
758
|
+
"_model_",
|
759
|
+
smalltalk.method({
|
760
|
+
selector: "model:",
|
761
|
+
fn: function (aModel) {
|
762
|
+
var self = this;
|
763
|
+
self['@model'] = aModel;
|
764
|
+
return self;
|
765
|
+
}
|
766
|
+
}),
|
767
|
+
smalltalk.HLInspectorVariablesWidget);
|
768
|
+
|
769
|
+
smalltalk.addMethod(
|
770
|
+
"_refresh",
|
771
|
+
smalltalk.method({
|
772
|
+
selector: "refresh",
|
773
|
+
fn: function () {
|
774
|
+
var self = this;
|
775
|
+
smalltalk.send(self, "_resetItems", []);
|
776
|
+
smalltalk.send(self, "_refresh", [], smalltalk.HLNavigationListWidget);
|
777
|
+
return self;
|
778
|
+
}
|
779
|
+
}),
|
780
|
+
smalltalk.HLInspectorVariablesWidget);
|
781
|
+
|
782
|
+
smalltalk.addMethod(
|
783
|
+
"_renderButtonsOn_",
|
784
|
+
smalltalk.method({
|
785
|
+
selector: "renderButtonsOn:",
|
786
|
+
fn: function (html) {
|
787
|
+
var self = this;
|
788
|
+
var $1, $2, $3, $4;
|
789
|
+
$1 = smalltalk.send(html, "_button", []);
|
790
|
+
smalltalk.send($1, "_class_", ["btn"]);
|
791
|
+
smalltalk.send($1, "_with_", ["Refresh"]);
|
792
|
+
$2 = smalltalk.send($1, "_onClick_", [function () {return smalltalk.send(smalltalk.send(self, "_announcer", []), "_announce_", [smalltalk.send(smalltalk.HLRefreshRequested || HLRefreshRequested, "_new", [])]);}]);
|
793
|
+
$3 = smalltalk.send(html, "_button", []);
|
794
|
+
smalltalk.send($3, "_class_", ["btn"]);
|
795
|
+
smalltalk.send($3, "_with_", ["Dive"]);
|
796
|
+
$4 = smalltalk.send($3, "_onClick_", [function () {return smalltalk.send(smalltalk.send(self, "_announcer", []), "_announce_", [smalltalk.send(smalltalk.HLDiveRequested || HLDiveRequested, "_new", [])]);}]);
|
797
|
+
self['@diveButton'] = $4;
|
798
|
+
return self;
|
799
|
+
}
|
800
|
+
}),
|
801
|
+
smalltalk.HLInspectorVariablesWidget);
|
802
|
+
|
803
|
+
smalltalk.addMethod(
|
804
|
+
"_resetItems",
|
805
|
+
smalltalk.method({
|
806
|
+
selector: "resetItems",
|
807
|
+
fn: function () {
|
808
|
+
var self = this;
|
809
|
+
self['@items'] = nil;
|
810
|
+
return self;
|
811
|
+
}
|
812
|
+
}),
|
813
|
+
smalltalk.HLInspectorVariablesWidget);
|
814
|
+
|
815
|
+
smalltalk.addMethod(
|
816
|
+
"_selectItem_",
|
817
|
+
smalltalk.method({
|
818
|
+
selector: "selectItem:",
|
819
|
+
fn: function (anObject) {
|
820
|
+
var self = this;
|
821
|
+
smalltalk.send(self, "_selectItem_", [anObject], smalltalk.HLNavigationListWidget);
|
822
|
+
smalltalk.send(smalltalk.send(self, "_model", []), "_selectedInstVar_", [anObject]);
|
823
|
+
return self;
|
824
|
+
}
|
825
|
+
}),
|
826
|
+
smalltalk.HLInspectorVariablesWidget);
|
827
|
+
|
828
|
+
smalltalk.addMethod(
|
829
|
+
"_selection",
|
830
|
+
smalltalk.method({
|
831
|
+
selector: "selection",
|
832
|
+
fn: function () {
|
833
|
+
var self = this;
|
834
|
+
var $1;
|
835
|
+
$1 = smalltalk.send(self['@model'], "_selection", []);
|
836
|
+
return $1;
|
837
|
+
}
|
838
|
+
}),
|
839
|
+
smalltalk.HLInspectorVariablesWidget);
|
840
|
+
|
841
|
+
smalltalk.addMethod(
|
842
|
+
"_variables",
|
843
|
+
smalltalk.method({
|
844
|
+
selector: "variables",
|
845
|
+
fn: function () {
|
846
|
+
var self = this;
|
847
|
+
var $1;
|
848
|
+
$1 = smalltalk.send(self['@model'], "_variables", []);
|
849
|
+
return $1;
|
850
|
+
}
|
851
|
+
}),
|
852
|
+
smalltalk.HLInspectorVariablesWidget);
|
853
|
+
|
854
|
+
|
855
|
+
|