AmberRack 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +74 -0
- data/.rvmrc +4 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +62 -0
- data/README.md +17 -0
- data/Rakefile +24 -0
- data/amber-rack.gemspec +33 -0
- data/app/amber_app.rb +35 -0
- data/app/javascripts/Benchfib.deploy.js +159 -0
- data/app/javascripts/Benchfib.js +159 -0
- data/app/javascripts/Canvas.deploy.js +1464 -0
- data/app/javascripts/Canvas.js +1464 -0
- data/app/javascripts/Compiler.deploy.js +1587 -0
- data/app/javascripts/Compiler.js +1587 -0
- data/app/javascripts/Examples.deploy.js +800 -0
- data/app/javascripts/Examples.js +800 -0
- data/app/javascripts/IDE.deploy.js +3457 -0
- data/app/javascripts/IDE.js +3457 -0
- data/app/javascripts/IDE.js.bak +3420 -0
- data/app/javascripts/JQuery.deploy.js +898 -0
- data/app/javascripts/JQuery.js +898 -0
- data/app/javascripts/Kernel.deploy.js +6761 -0
- data/app/javascripts/Kernel.js +6761 -0
- data/app/javascripts/Parser.deploy.js +1655 -0
- data/app/javascripts/Parser.js +1655 -0
- data/app/javascripts/Raphael-Core.js +0 -0
- data/app/javascripts/Raphael-Graph.js +0 -0
- data/app/javascripts/SUnit.deploy.js +1059 -0
- data/app/javascripts/SUnit.js +1059 -0
- data/app/javascripts/application.js +2 -0
- data/app/javascripts/boot.js +466 -0
- data/app/javascripts/init.js +2 -0
- data/app/javascripts/jquery-1.4.4.min.js +167 -0
- data/app/javascripts/jquery-ui-1.8.9.custom.min.js +781 -0
- data/app/javascripts/jquery.textarea.js +267 -0
- data/app/javascripts/jtalk.js +78 -0
- data/app/javascripts/lib/CodeMirror/LICENSE +19 -0
- data/app/javascripts/lib/CodeMirror/README.md +6 -0
- data/app/javascripts/lib/CodeMirror/compress.html +92 -0
- data/app/javascripts/lib/CodeMirror/css/baboon.png +0 -0
- data/app/javascripts/lib/CodeMirror/css/baboon_vector.svg +153 -0
- data/app/javascripts/lib/CodeMirror/css/docs.css +154 -0
- data/app/javascripts/lib/CodeMirror/demo/activeline.html +72 -0
- data/app/javascripts/lib/CodeMirror/demo/changemode.html +51 -0
- data/app/javascripts/lib/CodeMirror/demo/complete.html +79 -0
- data/app/javascripts/lib/CodeMirror/demo/complete.js +151 -0
- data/app/javascripts/lib/CodeMirror/demo/fullscreen.html +158 -0
- data/app/javascripts/lib/CodeMirror/demo/marker.html +53 -0
- data/app/javascripts/lib/CodeMirror/demo/mustache.html +57 -0
- data/app/javascripts/lib/CodeMirror/demo/preview.html +75 -0
- data/app/javascripts/lib/CodeMirror/demo/resize.html +44 -0
- data/app/javascripts/lib/CodeMirror/demo/runmode.html +50 -0
- data/app/javascripts/lib/CodeMirror/demo/search.html +106 -0
- data/app/javascripts/lib/CodeMirror/demo/theme.html +53 -0
- data/app/javascripts/lib/CodeMirror/index.html +239 -0
- data/app/javascripts/lib/CodeMirror/internals.html +389 -0
- data/app/javascripts/lib/CodeMirror/lib/codemirror.css +67 -0
- data/app/javascripts/lib/CodeMirror/lib/codemirror.js +2144 -0
- data/app/javascripts/lib/CodeMirror/lib/overlay.js +51 -0
- data/app/javascripts/lib/CodeMirror/lib/runmode.js +27 -0
- data/app/javascripts/lib/CodeMirror/manual.html +854 -0
- data/app/javascripts/lib/CodeMirror/mode/clike/clike.js +247 -0
- data/app/javascripts/lib/CodeMirror/mode/clike/index.html +102 -0
- data/app/javascripts/lib/CodeMirror/mode/css/css.js +124 -0
- data/app/javascripts/lib/CodeMirror/mode/css/index.html +56 -0
- data/app/javascripts/lib/CodeMirror/mode/diff/diff.css +3 -0
- data/app/javascripts/lib/CodeMirror/mode/diff/diff.js +13 -0
- data/app/javascripts/lib/CodeMirror/mode/diff/index.html +99 -0
- data/app/javascripts/lib/CodeMirror/mode/haskell/haskell.js +242 -0
- data/app/javascripts/lib/CodeMirror/mode/haskell/index.html +60 -0
- data/app/javascripts/lib/CodeMirror/mode/htmlmixed/htmlmixed.js +79 -0
- data/app/javascripts/lib/CodeMirror/mode/htmlmixed/index.html +52 -0
- data/app/javascripts/lib/CodeMirror/mode/javascript/index.html +78 -0
- data/app/javascripts/lib/CodeMirror/mode/javascript/javascript.js +348 -0
- data/app/javascripts/lib/CodeMirror/mode/lua/index.html +72 -0
- data/app/javascripts/lib/CodeMirror/mode/lua/lua.js +138 -0
- data/app/javascripts/lib/CodeMirror/mode/php/index.html +49 -0
- data/app/javascripts/lib/CodeMirror/mode/php/php.js +110 -0
- data/app/javascripts/lib/CodeMirror/mode/plsql/index.html +63 -0
- data/app/javascripts/lib/CodeMirror/mode/plsql/plsql.js +217 -0
- data/app/javascripts/lib/CodeMirror/mode/python/LICENSE.txt +21 -0
- data/app/javascripts/lib/CodeMirror/mode/python/index.html +123 -0
- data/app/javascripts/lib/CodeMirror/mode/python/python.js +321 -0
- data/app/javascripts/lib/CodeMirror/mode/rst/index.html +526 -0
- data/app/javascripts/lib/CodeMirror/mode/rst/rst.css +75 -0
- data/app/javascripts/lib/CodeMirror/mode/rst/rst.js +333 -0
- data/app/javascripts/lib/CodeMirror/mode/scheme/index.html +65 -0
- data/app/javascripts/lib/CodeMirror/mode/scheme/scheme.js +181 -0
- data/app/javascripts/lib/CodeMirror/mode/smalltalk/index.html +56 -0
- data/app/javascripts/lib/CodeMirror/mode/smalltalk/smalltalk.js +134 -0
- data/app/javascripts/lib/CodeMirror/mode/sparql/index.html +41 -0
- data/app/javascripts/lib/CodeMirror/mode/sparql/sparql.js +143 -0
- data/app/javascripts/lib/CodeMirror/mode/stex/index.html +96 -0
- data/app/javascripts/lib/CodeMirror/mode/stex/stex.js +167 -0
- data/app/javascripts/lib/CodeMirror/mode/xml/index.html +42 -0
- data/app/javascripts/lib/CodeMirror/mode/xml/xml.js +231 -0
- data/app/javascripts/lib/CodeMirror/mode/yaml/index.html +68 -0
- data/app/javascripts/lib/CodeMirror/mode/yaml/yaml.js +95 -0
- data/app/javascripts/lib/CodeMirror/oldrelease.html +178 -0
- data/app/javascripts/lib/CodeMirror/test/index.html +29 -0
- data/app/javascripts/lib/CodeMirror/test/test.js +249 -0
- data/app/javascripts/lib/CodeMirror/theme/default.css +18 -0
- data/app/javascripts/lib/CodeMirror/theme/elegant.css +9 -0
- data/app/javascripts/lib/CodeMirror/theme/jtalk.css +21 -0
- data/app/javascripts/lib/CodeMirror/theme/neat.css +8 -0
- data/app/javascripts/lib/CodeMirror/theme/night.css +20 -0
- data/app/javascripts/lib/jQuery/jquery-1.4.4.min.js +167 -0
- data/app/javascripts/lib/jQuery/jquery-ui-1.8.9.custom.min.js +781 -0
- data/app/javascripts/lib/jQuery/jquery.textarea.js +267 -0
- data/app/smalltalk/Canvas.st +481 -0
- data/app/smalltalk/IDE.st +1752 -0
- data/config.ru +2 -0
- data/lib/amber-rack.rb +4 -0
- data/lib/amber-rack/version.rb +3 -0
- data/public/CodeMirror/LICENSE +19 -0
- data/public/CodeMirror/README.md +6 -0
- data/public/CodeMirror/compress.html +92 -0
- data/public/CodeMirror/css/baboon.png +0 -0
- data/public/CodeMirror/css/baboon_vector.svg +153 -0
- data/public/CodeMirror/css/docs.css +154 -0
- data/public/CodeMirror/demo/activeline.html +72 -0
- data/public/CodeMirror/demo/changemode.html +51 -0
- data/public/CodeMirror/demo/complete.html +79 -0
- data/public/CodeMirror/demo/complete.js +151 -0
- data/public/CodeMirror/demo/fullscreen.html +158 -0
- data/public/CodeMirror/demo/marker.html +53 -0
- data/public/CodeMirror/demo/mustache.html +57 -0
- data/public/CodeMirror/demo/preview.html +75 -0
- data/public/CodeMirror/demo/resize.html +44 -0
- data/public/CodeMirror/demo/runmode.html +50 -0
- data/public/CodeMirror/demo/search.html +106 -0
- data/public/CodeMirror/demo/theme.html +53 -0
- data/public/CodeMirror/index.html +239 -0
- data/public/CodeMirror/internals.html +389 -0
- data/public/CodeMirror/lib/codemirror.css +67 -0
- data/public/CodeMirror/lib/codemirror.js +2144 -0
- data/public/CodeMirror/lib/overlay.js +51 -0
- data/public/CodeMirror/lib/runmode.js +27 -0
- data/public/CodeMirror/manual.html +854 -0
- data/public/CodeMirror/mode/clike/clike.js +247 -0
- data/public/CodeMirror/mode/clike/index.html +102 -0
- data/public/CodeMirror/mode/css/css.js +124 -0
- data/public/CodeMirror/mode/css/index.html +56 -0
- data/public/CodeMirror/mode/diff/diff.css +3 -0
- data/public/CodeMirror/mode/diff/diff.js +13 -0
- data/public/CodeMirror/mode/diff/index.html +99 -0
- data/public/CodeMirror/mode/haskell/haskell.js +242 -0
- data/public/CodeMirror/mode/haskell/index.html +60 -0
- data/public/CodeMirror/mode/htmlmixed/htmlmixed.js +79 -0
- data/public/CodeMirror/mode/htmlmixed/index.html +52 -0
- data/public/CodeMirror/mode/javascript/index.html +78 -0
- data/public/CodeMirror/mode/javascript/javascript.js +348 -0
- data/public/CodeMirror/mode/lua/index.html +72 -0
- data/public/CodeMirror/mode/lua/lua.js +138 -0
- data/public/CodeMirror/mode/php/index.html +49 -0
- data/public/CodeMirror/mode/php/php.js +110 -0
- data/public/CodeMirror/mode/plsql/index.html +63 -0
- data/public/CodeMirror/mode/plsql/plsql.js +217 -0
- data/public/CodeMirror/mode/python/LICENSE.txt +21 -0
- data/public/CodeMirror/mode/python/index.html +123 -0
- data/public/CodeMirror/mode/python/python.js +321 -0
- data/public/CodeMirror/mode/rst/index.html +526 -0
- data/public/CodeMirror/mode/rst/rst.css +75 -0
- data/public/CodeMirror/mode/rst/rst.js +333 -0
- data/public/CodeMirror/mode/scheme/index.html +65 -0
- data/public/CodeMirror/mode/scheme/scheme.js +181 -0
- data/public/CodeMirror/mode/smalltalk/index.html +56 -0
- data/public/CodeMirror/mode/smalltalk/smalltalk.js +134 -0
- data/public/CodeMirror/mode/sparql/index.html +41 -0
- data/public/CodeMirror/mode/sparql/sparql.js +143 -0
- data/public/CodeMirror/mode/stex/index.html +96 -0
- data/public/CodeMirror/mode/stex/stex.js +167 -0
- data/public/CodeMirror/mode/xml/index.html +42 -0
- data/public/CodeMirror/mode/xml/xml.js +231 -0
- data/public/CodeMirror/mode/yaml/index.html +68 -0
- data/public/CodeMirror/mode/yaml/yaml.js +95 -0
- data/public/CodeMirror/oldrelease.html +178 -0
- data/public/CodeMirror/test/index.html +29 -0
- data/public/CodeMirror/test/test.js +249 -0
- data/public/CodeMirror/theme/default.css +18 -0
- data/public/CodeMirror/theme/elegant.css +9 -0
- data/public/CodeMirror/theme/jtalk.css +21 -0
- data/public/CodeMirror/theme/neat.css +8 -0
- data/public/CodeMirror/theme/night.css +20 -0
- data/public/css/jtalk.css +362 -0
- data/public/css/style.css +456 -0
- data/public/css/sunit.css +66 -0
- data/public/ide/fork_me.png +0 -0
- data/public/ide/screen2.png +0 -0
- data/public/ide/style.css +456 -0
- data/public/ide/syntax.css +61 -0
- data/public/ide/text_header.png +0 -0
- data/public/ide/title_container1.png +0 -0
- data/public/images/background_box.png +0 -0
- data/public/images/background_header.png +0 -0
- data/public/images/balloon_header.png +0 -0
- data/views/index.haml +66 -0
- metadata +341 -0
@@ -0,0 +1,3420 @@
|
|
1
|
+
smalltalk.addClass('TabManager', smalltalk.Widget, ['selectedTab', 'tabs', 'opened', 'ul'], 'IDE');
|
2
|
+
smalltalk.addMethod(
|
3
|
+
'_tabs',
|
4
|
+
smalltalk.method({
|
5
|
+
selector: 'tabs',
|
6
|
+
category: 'accessing',
|
7
|
+
fn: function (){
|
8
|
+
var self=this;
|
9
|
+
return smalltalk.send(self['@tabs'], "_ifNil_", [(function(){return self['@tabs']=smalltalk.send(smalltalk.Array, "_new", []);})]);
|
10
|
+
return self;},
|
11
|
+
source: unescape('tabs%0A%20%20%20%20%5Etabs%20ifNil%3A%20%5Btabs%20%3A%3D%20Array%20new%5D'),
|
12
|
+
messageSends: ["ifNil:", "new"],
|
13
|
+
referencedClasses: [smalltalk.Array]
|
14
|
+
}),
|
15
|
+
smalltalk.TabManager);
|
16
|
+
|
17
|
+
smalltalk.addMethod(
|
18
|
+
'_updateBodyMargin',
|
19
|
+
smalltalk.method({
|
20
|
+
selector: 'updateBodyMargin',
|
21
|
+
category: 'actions',
|
22
|
+
fn: function (){
|
23
|
+
var self=this;
|
24
|
+
smalltalk.send(self, "_setBodyMargin_", [smalltalk.send(smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_height", []), "__plus", [(27)])]);
|
25
|
+
return self;},
|
26
|
+
source: unescape('updateBodyMargin%0A%20%20%20%20self%20setBodyMargin%3A%20%27%23jtalk%27%20asJQuery%20height%20+%2027'),
|
27
|
+
messageSends: ["setBodyMargin:", unescape("+"), "height", "asJQuery"],
|
28
|
+
referencedClasses: []
|
29
|
+
}),
|
30
|
+
smalltalk.TabManager);
|
31
|
+
|
32
|
+
smalltalk.addMethod(
|
33
|
+
'_updatePosition',
|
34
|
+
smalltalk.method({
|
35
|
+
selector: 'updatePosition',
|
36
|
+
category: 'actions',
|
37
|
+
fn: function (){
|
38
|
+
var self=this;
|
39
|
+
jQuery('#jtalk').css('top', '').css('bottom', '27px');
|
40
|
+
return self;},
|
41
|
+
source: unescape('updatePosition%0A%20%20%20%20%3CjQuery%28%27%23jtalk%27%29.css%28%27top%27%2C%20%27%27%29.css%28%27bottom%27%2C%20%2727px%27%29%3E'),
|
42
|
+
messageSends: [],
|
43
|
+
referencedClasses: []
|
44
|
+
}),
|
45
|
+
smalltalk.TabManager);
|
46
|
+
|
47
|
+
smalltalk.addMethod(
|
48
|
+
'_removeBodyMargin',
|
49
|
+
smalltalk.method({
|
50
|
+
selector: 'removeBodyMargin',
|
51
|
+
category: 'actions',
|
52
|
+
fn: function (){
|
53
|
+
var self=this;
|
54
|
+
smalltalk.send(self, "_setBodyMargin_", [(0)]);
|
55
|
+
return self;},
|
56
|
+
source: unescape('removeBodyMargin%0A%20%20%20%20self%20setBodyMargin%3A%200'),
|
57
|
+
messageSends: ["setBodyMargin:"],
|
58
|
+
referencedClasses: []
|
59
|
+
}),
|
60
|
+
smalltalk.TabManager);
|
61
|
+
|
62
|
+
smalltalk.addMethod(
|
63
|
+
'_setBodyMargin_',
|
64
|
+
smalltalk.method({
|
65
|
+
selector: 'setBodyMargin:',
|
66
|
+
category: 'actions',
|
67
|
+
fn: function (anInteger){
|
68
|
+
var self=this;
|
69
|
+
smalltalk.send(smalltalk.send(".jtalkBody", "_asJQuery", []), "_cssAt_put_", [unescape("margin-bottom"), smalltalk.send(smalltalk.send(anInteger, "_asString", []), "__comma", ["px"])]);
|
70
|
+
return self;},
|
71
|
+
source: unescape('setBodyMargin%3A%20anInteger%0A%20%20%20%20%27.jtalkBody%27%20asJQuery%20cssAt%3A%20%27margin-bottom%27%20put%3A%20anInteger%20asString%2C%20%27px%27'),
|
72
|
+
messageSends: ["cssAt:put:", "asJQuery", unescape("%2C"), "asString"],
|
73
|
+
referencedClasses: []
|
74
|
+
}),
|
75
|
+
smalltalk.TabManager);
|
76
|
+
|
77
|
+
smalltalk.addMethod(
|
78
|
+
'_onResize_',
|
79
|
+
smalltalk.method({
|
80
|
+
selector: 'onResize:',
|
81
|
+
category: 'actions',
|
82
|
+
fn: function (aBlock){
|
83
|
+
var self=this;
|
84
|
+
jQuery('#jtalk').resizable({
|
85
|
+
handles: 'n',
|
86
|
+
resize: aBlock,
|
87
|
+
minHeight: 230
|
88
|
+
});
|
89
|
+
return self;},
|
90
|
+
source: unescape('onResize%3A%20aBlock%0A%20%20%20%20%3CjQuery%28%27%23jtalk%27%29.resizable%28%7B%0A%09handles%3A%20%27n%27%2C%20%0A%09resize%3A%20aBlock%2C%0A%09minHeight%3A%20230%0A%7D%29%3E'),
|
91
|
+
messageSends: [],
|
92
|
+
referencedClasses: []
|
93
|
+
}),
|
94
|
+
smalltalk.TabManager);
|
95
|
+
|
96
|
+
smalltalk.addMethod(
|
97
|
+
'_onWindowResize_',
|
98
|
+
smalltalk.method({
|
99
|
+
selector: 'onWindowResize:',
|
100
|
+
category: 'actions',
|
101
|
+
fn: function (aBlock){
|
102
|
+
var self=this;
|
103
|
+
jQuery(window).resize(aBlock);
|
104
|
+
return self;},
|
105
|
+
source: unescape('onWindowResize%3A%20aBlock%0A%20%20%20%20%3CjQuery%28window%29.resize%28aBlock%29%3E'),
|
106
|
+
messageSends: [],
|
107
|
+
referencedClasses: []
|
108
|
+
}),
|
109
|
+
smalltalk.TabManager);
|
110
|
+
|
111
|
+
smalltalk.addMethod(
|
112
|
+
'_open',
|
113
|
+
smalltalk.method({
|
114
|
+
selector: 'open',
|
115
|
+
category: 'actions',
|
116
|
+
fn: function (){
|
117
|
+
var self=this;
|
118
|
+
smalltalk.send(self['@opened'], "_ifFalse_", [(function(){smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]);smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_show", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_show", []);smalltalk.send(self, "_updateBodyMargin", []);smalltalk.send(self['@selectedTab'], "_show", []);return self['@opened']=true;})]);
|
119
|
+
return self;},
|
120
|
+
source: unescape('open%0A%20%20%20%20opened%20ifFalse%3A%20%5B%0A%09%27body%27%20asJQuery%20addClass%3A%20%27jtalkBody%27.%0A%09%27%23jtalk%27%20asJQuery%20show.%0A%09ul%20asJQuery%20show.%0A%09self%20updateBodyMargin.%0A%09selectedTab%20show.%0A%09opened%20%3A%3D%20true%5D'),
|
121
|
+
messageSends: ["ifFalse:", "addClass:", "asJQuery", "show", "updateBodyMargin"],
|
122
|
+
referencedClasses: []
|
123
|
+
}),
|
124
|
+
smalltalk.TabManager);
|
125
|
+
|
126
|
+
smalltalk.addMethod(
|
127
|
+
'_close',
|
128
|
+
smalltalk.method({
|
129
|
+
selector: 'close',
|
130
|
+
category: 'actions',
|
131
|
+
fn: function (){
|
132
|
+
var self=this;
|
133
|
+
smalltalk.send(self['@opened'], "_ifTrue_", [(function(){smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_hide", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_hide", []);smalltalk.send(self['@selectedTab'], "_hide", []);smalltalk.send(self, "_removeBodyMargin", []);smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_removeClass_", ["jtalkBody"]);return self['@opened']=false;})]);
|
134
|
+
return self;},
|
135
|
+
source: unescape('close%0A%20%20%20%20opened%20ifTrue%3A%20%5B%0A%09%27%23jtalk%27%20asJQuery%20hide.%0A%09ul%20asJQuery%20hide.%0A%09selectedTab%20hide.%0A%09self%20removeBodyMargin.%0A%09%27body%27%20asJQuery%20removeClass%3A%20%27jtalkBody%27.%0A%09opened%20%3A%3D%20false%5D'),
|
136
|
+
messageSends: ["ifTrue:", "hide", "asJQuery", "removeBodyMargin", "removeClass:"],
|
137
|
+
referencedClasses: []
|
138
|
+
}),
|
139
|
+
smalltalk.TabManager);
|
140
|
+
|
141
|
+
smalltalk.addMethod(
|
142
|
+
'_newBrowserTab',
|
143
|
+
smalltalk.method({
|
144
|
+
selector: 'newBrowserTab',
|
145
|
+
category: 'actions',
|
146
|
+
fn: function (){
|
147
|
+
var self=this;
|
148
|
+
smalltalk.send(smalltalk.Browser, "_open", []);
|
149
|
+
return self;},
|
150
|
+
source: unescape('newBrowserTab%0A%20%20%20%20Browser%20open'),
|
151
|
+
messageSends: ["open"],
|
152
|
+
referencedClasses: []
|
153
|
+
}),
|
154
|
+
smalltalk.TabManager);
|
155
|
+
|
156
|
+
smalltalk.addMethod(
|
157
|
+
'_selectTab_',
|
158
|
+
smalltalk.method({
|
159
|
+
selector: 'selectTab:',
|
160
|
+
category: 'actions',
|
161
|
+
fn: function (aWidget){
|
162
|
+
var self=this;
|
163
|
+
smalltalk.send(self, "_open", []);
|
164
|
+
self['@selectedTab']=aWidget;
|
165
|
+
smalltalk.send(smalltalk.send(self, "_tabs", []), "_do_", [(function(each){return smalltalk.send(each, "_hide", []);})]);
|
166
|
+
smalltalk.send(aWidget, "_show", []);
|
167
|
+
smalltalk.send(self, "_update", []);
|
168
|
+
return self;},
|
169
|
+
source: unescape('selectTab%3A%20aWidget%0A%20%20%20%20self%20open.%0A%20%20%20%20selectedTab%20%3A%3D%20aWidget.%0A%20%20%20%20self%20tabs%20do%3A%20%5B%3Aeach%20%7C%0A%09each%20hide%5D.%0A%20%20%20%20aWidget%20show.%0A%09%0A%20%20%20%20self%20update'),
|
170
|
+
messageSends: ["open", "do:", "tabs", "hide", "show", "update"],
|
171
|
+
referencedClasses: []
|
172
|
+
}),
|
173
|
+
smalltalk.TabManager);
|
174
|
+
|
175
|
+
smalltalk.addMethod(
|
176
|
+
'_closeTab_',
|
177
|
+
smalltalk.method({
|
178
|
+
selector: 'closeTab:',
|
179
|
+
category: 'actions',
|
180
|
+
fn: function (aWidget){
|
181
|
+
var self=this;
|
182
|
+
smalltalk.send(self, "_removeTab_", [aWidget]);
|
183
|
+
smalltalk.send(self, "_selectTab_", [smalltalk.send(smalltalk.send(self, "_tabs", []), "_last", [])]);
|
184
|
+
smalltalk.send(aWidget, "_remove", []);
|
185
|
+
smalltalk.send(self, "_update", []);
|
186
|
+
return self;},
|
187
|
+
source: unescape('closeTab%3A%20aWidget%0A%20%20%20%20self%20removeTab%3A%20aWidget.%0A%20%20%20%20self%20selectTab%3A%20self%20tabs%20last.%0A%20%20%20%20aWidget%20remove.%0A%20%20%20%20self%20update'),
|
188
|
+
messageSends: ["removeTab:", "selectTab:", "last", "tabs", "remove", "update"],
|
189
|
+
referencedClasses: []
|
190
|
+
}),
|
191
|
+
smalltalk.TabManager);
|
192
|
+
|
193
|
+
smalltalk.addMethod(
|
194
|
+
'_addTab_',
|
195
|
+
smalltalk.method({
|
196
|
+
selector: 'addTab:',
|
197
|
+
category: 'adding/Removing',
|
198
|
+
fn: function (aWidget){
|
199
|
+
var self=this;
|
200
|
+
smalltalk.send(smalltalk.send(self, "_tabs", []), "_add_", [aWidget]);
|
201
|
+
smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_append_", [aWidget]);
|
202
|
+
smalltalk.send(aWidget, "_hide", []);
|
203
|
+
return self;},
|
204
|
+
source: unescape('addTab%3A%20aWidget%0A%20%20%20%20self%20tabs%20add%3A%20aWidget.%0A%20%20%20%20%27%23jtalk%27%20asJQuery%20append%3A%20aWidget.%0A%20%20%20%20aWidget%20hide'),
|
205
|
+
messageSends: ["add:", "tabs", "append:", "asJQuery", "hide"],
|
206
|
+
referencedClasses: []
|
207
|
+
}),
|
208
|
+
smalltalk.TabManager);
|
209
|
+
|
210
|
+
smalltalk.addMethod(
|
211
|
+
'_removeTab_',
|
212
|
+
smalltalk.method({
|
213
|
+
selector: 'removeTab:',
|
214
|
+
category: 'adding/Removing',
|
215
|
+
fn: function (aWidget){
|
216
|
+
var self=this;
|
217
|
+
smalltalk.send(smalltalk.send(self, "_tabs", []), "_remove_", [aWidget]);
|
218
|
+
smalltalk.send(self, "_update", []);
|
219
|
+
return self;},
|
220
|
+
source: unescape('removeTab%3A%20aWidget%0A%20%20%20%20self%20tabs%20remove%3A%20aWidget.%0A%20%20%20%20self%20update'),
|
221
|
+
messageSends: ["remove:", "tabs", "update"],
|
222
|
+
referencedClasses: []
|
223
|
+
}),
|
224
|
+
smalltalk.TabManager);
|
225
|
+
|
226
|
+
smalltalk.addMethod(
|
227
|
+
'_initialize',
|
228
|
+
smalltalk.method({
|
229
|
+
selector: 'initialize',
|
230
|
+
category: 'initialization',
|
231
|
+
fn: function (){
|
232
|
+
var self=this;
|
233
|
+
smalltalk.send(self, "_initialize", [], smalltalk.Widget);
|
234
|
+
self['@opened']=true;
|
235
|
+
(function($rec){smalltalk.send($rec, "_append_", [self]);smalltalk.send($rec, "_append_", [(function(html){return smalltalk.send(smalltalk.send(html, "_div", []), "_id_", ["jtalk"]);})]);return smalltalk.send($rec, "_addClass_", ["jtalkBody"]);})(smalltalk.send("body", "_asJQuery", []));
|
236
|
+
(function($rec){smalltalk.send($rec, "_addTab_", [smalltalk.send(smalltalk.Transcript, "_current", [])]);return smalltalk.send($rec, "_addTab_", [smalltalk.send(smalltalk.Workspace, "_new", [])]);})(self);
|
237
|
+
smalltalk.send(self, "_selectTab_", [smalltalk.send(smalltalk.send(self, "_tabs", []), "_last", [])]);
|
238
|
+
(function($rec){smalltalk.send($rec, "_onResize_", [(function(){return (function($rec){smalltalk.send($rec, "_updateBodyMargin", []);return smalltalk.send($rec, "_updatePosition", []);})(self);})]);return smalltalk.send($rec, "_onWindowResize_", [(function(){return smalltalk.send(self, "_updatePosition", []);})]);})(self);
|
239
|
+
return self;},
|
240
|
+
source: unescape('initialize%0A%20%20%20%20super%20initialize.%0A%20%20%20%20opened%20%3A%3D%20true.%0A%20%20%20%20%27body%27%20asJQuery%20%0A%09append%3A%20self%3B%0A%09append%3A%20%5B%3Ahtml%20%7C%20html%20div%20id%3A%20%27jtalk%27%5D%3B%0A%09addClass%3A%20%27jtalkBody%27.%0A%20%20%20%20self%20%0A%09addTab%3A%20Transcript%20current%3B%0A%09addTab%3A%20Workspace%20new.%0A%20%20%20%20self%20selectTab%3A%20self%20tabs%20last.%0A%20%20%20%20self%20%0A%09onResize%3A%20%5Bself%20updateBodyMargin%3B%20updatePosition%5D%3B%0A%09onWindowResize%3A%20%5Bself%20updatePosition%5D'),
|
241
|
+
messageSends: ["initialize", "append:", "id:", "div", "addClass:", "asJQuery", "addTab:", "current", "new", "selectTab:", "last", "tabs", "onResize:", "updateBodyMargin", "updatePosition", "onWindowResize:"],
|
242
|
+
referencedClasses: []
|
243
|
+
}),
|
244
|
+
smalltalk.TabManager);
|
245
|
+
|
246
|
+
smalltalk.addMethod(
|
247
|
+
'_renderOn_',
|
248
|
+
smalltalk.method({
|
249
|
+
selector: 'renderOn:',
|
250
|
+
category: 'rendering',
|
251
|
+
fn: function (html){
|
252
|
+
var self=this;
|
253
|
+
self['@ul']=(function($rec){smalltalk.send($rec, "_id_", ["jtalkTabs"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", []));
|
254
|
+
smalltalk.send(self, "_renderTabs", []);
|
255
|
+
return self;},
|
256
|
+
source: unescape('renderOn%3A%20html%0A%09ul%20%3A%3D%20html%20ul%0A%09%09id%3A%20%27jtalkTabs%27%3B%0A%09%09yourself.%0A%09self%20renderTabs'),
|
257
|
+
messageSends: ["id:", "yourself", "ul", "renderTabs"],
|
258
|
+
referencedClasses: []
|
259
|
+
}),
|
260
|
+
smalltalk.TabManager);
|
261
|
+
|
262
|
+
smalltalk.addMethod(
|
263
|
+
'_renderTabFor_on_',
|
264
|
+
smalltalk.method({
|
265
|
+
selector: 'renderTabFor:on:',
|
266
|
+
category: 'rendering',
|
267
|
+
fn: function (aWidget, html){
|
268
|
+
var self=this;
|
269
|
+
var li=nil;
|
270
|
+
li=smalltalk.send(html, "_li", []);
|
271
|
+
smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", [aWidget]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);
|
272
|
+
smalltalk.send(li, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(aWidget, "_label", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));return smalltalk.send(smalltalk.send(aWidget, "_canBeClosed", []), "_ifTrue_", [(function(){return (function($rec){smalltalk.send($rec, "_class_", ["close"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_closeTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})]);})]);
|
273
|
+
return self;},
|
274
|
+
source: unescape('renderTabFor%3A%20aWidget%20on%3A%20html%0A%20%20%20%20%7C%20li%20%7C%0A%20%20%20%20li%20%3A%3D%20html%20li.%0A%20%20%20%20selectedTab%20%3D%20aWidget%20ifTrue%3A%20%5B%0A%09li%20class%3A%20%27selected%27%5D.%0A%20%20%20%20li%20with%3A%20%5B%0A%09html%20span%0A%09%20%20%20%20with%3A%20aWidget%20label%3B%0A%09%20%20%20%20onClick%3A%20%5Bself%20selectTab%3A%20aWidget%5D.%0A%09aWidget%20canBeClosed%20ifTrue%3A%20%5B%0A%09%20%20%20%20html%20span%20%0A%09%09class%3A%20%27close%27%3B%0A%09%09with%3A%20%27x%27%3B%0A%09%09onClick%3A%20%5Bself%20closeTab%3A%20aWidget%5D%5D%5D'),
|
275
|
+
messageSends: ["li", "ifTrue:", unescape("%3D"), "class:", "with:", "label", "onClick:", "selectTab:", "span", "canBeClosed", "closeTab:"],
|
276
|
+
referencedClasses: []
|
277
|
+
}),
|
278
|
+
smalltalk.TabManager);
|
279
|
+
|
280
|
+
smalltalk.addMethod(
|
281
|
+
'_renderTabs',
|
282
|
+
smalltalk.method({
|
283
|
+
selector: 'renderTabs',
|
284
|
+
category: 'rendering',
|
285
|
+
fn: function (){
|
286
|
+
var self=this;
|
287
|
+
smalltalk.send(self['@ul'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["closeAll"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_close", []);})]);})(smalltalk.send(html, "_li", []));smalltalk.send(smalltalk.send(self, "_tabs", []), "_do_", [(function(each){return smalltalk.send(self, "_renderTabFor_on_", [each, html]);})]);return (function($rec){smalltalk.send($rec, "_class_", ["newtab"]);smalltalk.send($rec, "_with_", [unescape("%20+%20")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_newBrowserTab", []);})]);})(smalltalk.send(html, "_li", []));})]);
|
288
|
+
return self;},
|
289
|
+
source: unescape('renderTabs%0A%09ul%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%20%20%20%20html%20li%20%0A%09%09class%3A%20%27closeAll%27%3B%0A%09%09with%3A%20%27x%27%3B%0A%09%09onClick%3A%20%5Bself%20close%5D.%0A%09%20%20%20%20self%20tabs%20do%3A%20%5B%3Aeach%20%7C%0A%09%09self%20renderTabFor%3A%20each%20on%3A%20html%5D.%0A%09%20%20%20%20html%20li%0A%09%09class%3A%20%27newtab%27%3B%0A%09%09with%3A%20%27%20+%20%27%3B%0A%09%09onClick%3A%20%5Bself%20newBrowserTab%5D%5D'),
|
290
|
+
messageSends: ["contents:", "class:", "with:", "onClick:", "close", "li", "do:", "tabs", "renderTabFor:on:", "newBrowserTab"],
|
291
|
+
referencedClasses: []
|
292
|
+
}),
|
293
|
+
smalltalk.TabManager);
|
294
|
+
|
295
|
+
smalltalk.addMethod(
|
296
|
+
'_update',
|
297
|
+
smalltalk.method({
|
298
|
+
selector: 'update',
|
299
|
+
category: 'updating',
|
300
|
+
fn: function (){
|
301
|
+
var self=this;
|
302
|
+
smalltalk.send(self, "_renderTabs", []);
|
303
|
+
return self;},
|
304
|
+
source: unescape('update%0A%09self%20renderTabs'),
|
305
|
+
messageSends: ["renderTabs"],
|
306
|
+
referencedClasses: []
|
307
|
+
}),
|
308
|
+
smalltalk.TabManager);
|
309
|
+
|
310
|
+
|
311
|
+
smalltalk.TabManager.klass.iVarNames = ['current'];
|
312
|
+
smalltalk.addMethod(
|
313
|
+
'_current',
|
314
|
+
smalltalk.method({
|
315
|
+
selector: 'current',
|
316
|
+
category: 'instance creation',
|
317
|
+
fn: function (){
|
318
|
+
var self=this;
|
319
|
+
return smalltalk.send(self['@current'], "_ifNil_", [(function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.Widget.klass);})]);
|
320
|
+
return self;},
|
321
|
+
source: unescape('current%0A%20%20%20%20%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20super%20new%5D'),
|
322
|
+
messageSends: ["ifNil:", "new"],
|
323
|
+
referencedClasses: []
|
324
|
+
}),
|
325
|
+
smalltalk.TabManager.klass);
|
326
|
+
|
327
|
+
smalltalk.addMethod(
|
328
|
+
'_new',
|
329
|
+
smalltalk.method({
|
330
|
+
selector: 'new',
|
331
|
+
category: 'instance creation',
|
332
|
+
fn: function (){
|
333
|
+
var self=this;
|
334
|
+
smalltalk.send(self, "_shouldNotImplement", []);
|
335
|
+
return self;},
|
336
|
+
source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'),
|
337
|
+
messageSends: ["shouldNotImplement"],
|
338
|
+
referencedClasses: []
|
339
|
+
}),
|
340
|
+
smalltalk.TabManager.klass);
|
341
|
+
|
342
|
+
|
343
|
+
smalltalk.addClass('TabWidget', smalltalk.Widget, ['div'], 'IDE');
|
344
|
+
smalltalk.addMethod(
|
345
|
+
'_label',
|
346
|
+
smalltalk.method({
|
347
|
+
selector: 'label',
|
348
|
+
category: 'accessing',
|
349
|
+
fn: function (){
|
350
|
+
var self=this;
|
351
|
+
smalltalk.send(self, "_subclassResponsibility", []);
|
352
|
+
return self;},
|
353
|
+
source: unescape('label%0A%20%20%20%20self%20subclassResponsibility'),
|
354
|
+
messageSends: ["subclassResponsibility"],
|
355
|
+
referencedClasses: []
|
356
|
+
}),
|
357
|
+
smalltalk.TabWidget);
|
358
|
+
|
359
|
+
smalltalk.addMethod(
|
360
|
+
'_open',
|
361
|
+
smalltalk.method({
|
362
|
+
selector: 'open',
|
363
|
+
category: 'actions',
|
364
|
+
fn: function (){
|
365
|
+
var self=this;
|
366
|
+
smalltalk.send(smalltalk.send(smalltalk.TabManager, "_current", []), "_addTab_", [self]);
|
367
|
+
smalltalk.send(smalltalk.send(smalltalk.TabManager, "_current", []), "_selectTab_", [self]);
|
368
|
+
return self;},
|
369
|
+
source: unescape('open%0A%20%20%20%20TabManager%20current%20addTab%3A%20self.%0A%20%20%20%20TabManager%20current%20selectTab%3A%20self'),
|
370
|
+
messageSends: ["addTab:", "current", "selectTab:"],
|
371
|
+
referencedClasses: [smalltalk.TabManager]
|
372
|
+
}),
|
373
|
+
smalltalk.TabWidget);
|
374
|
+
|
375
|
+
smalltalk.addMethod(
|
376
|
+
'_show',
|
377
|
+
smalltalk.method({
|
378
|
+
selector: 'show',
|
379
|
+
category: 'actions',
|
380
|
+
fn: function (){
|
381
|
+
var self=this;
|
382
|
+
smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_show", []);
|
383
|
+
return self;},
|
384
|
+
source: unescape('show%0A%09div%20asJQuery%20show'),
|
385
|
+
messageSends: ["show", "asJQuery"],
|
386
|
+
referencedClasses: []
|
387
|
+
}),
|
388
|
+
smalltalk.TabWidget);
|
389
|
+
|
390
|
+
smalltalk.addMethod(
|
391
|
+
'_hide',
|
392
|
+
smalltalk.method({
|
393
|
+
selector: 'hide',
|
394
|
+
category: 'actions',
|
395
|
+
fn: function (){
|
396
|
+
var self=this;
|
397
|
+
smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_hide", []);
|
398
|
+
return self;},
|
399
|
+
source: unescape('hide%0A%09div%20asJQuery%20hide'),
|
400
|
+
messageSends: ["hide", "asJQuery"],
|
401
|
+
referencedClasses: []
|
402
|
+
}),
|
403
|
+
smalltalk.TabWidget);
|
404
|
+
|
405
|
+
smalltalk.addMethod(
|
406
|
+
'_remove',
|
407
|
+
smalltalk.method({
|
408
|
+
selector: 'remove',
|
409
|
+
category: 'actions',
|
410
|
+
fn: function (){
|
411
|
+
var self=this;
|
412
|
+
smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_remove", []);
|
413
|
+
return self;},
|
414
|
+
source: unescape('remove%0A%09div%20asJQuery%20remove'),
|
415
|
+
messageSends: ["remove", "asJQuery"],
|
416
|
+
referencedClasses: []
|
417
|
+
}),
|
418
|
+
smalltalk.TabWidget);
|
419
|
+
|
420
|
+
smalltalk.addMethod(
|
421
|
+
'_renderOn_',
|
422
|
+
smalltalk.method({
|
423
|
+
selector: 'renderOn:',
|
424
|
+
category: 'rendering',
|
425
|
+
fn: function (html){
|
426
|
+
var self=this;
|
427
|
+
self['@div']=(function($rec){smalltalk.send($rec, "_class_", ["jtalkTool"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_div", []));
|
428
|
+
smalltalk.send(self, "_renderTab", []);
|
429
|
+
return self;},
|
430
|
+
source: unescape('renderOn%3A%20html%0A%09div%20%3A%3D%20html%20div%0A%09%09class%3A%20%27jtalkTool%27%3B%0A%09%09yourself.%0A%09self%20renderTab'),
|
431
|
+
messageSends: ["class:", "yourself", "div", "renderTab"],
|
432
|
+
referencedClasses: []
|
433
|
+
}),
|
434
|
+
smalltalk.TabWidget);
|
435
|
+
|
436
|
+
smalltalk.addMethod(
|
437
|
+
'_renderBoxOn_',
|
438
|
+
smalltalk.method({
|
439
|
+
selector: 'renderBoxOn:',
|
440
|
+
category: 'rendering',
|
441
|
+
fn: function (html){
|
442
|
+
var self=this;
|
443
|
+
|
444
|
+
return self;},
|
445
|
+
source: unescape('renderBoxOn%3A%20html'),
|
446
|
+
messageSends: [],
|
447
|
+
referencedClasses: []
|
448
|
+
}),
|
449
|
+
smalltalk.TabWidget);
|
450
|
+
|
451
|
+
smalltalk.addMethod(
|
452
|
+
'_renderButtonsOn_',
|
453
|
+
smalltalk.method({
|
454
|
+
selector: 'renderButtonsOn:',
|
455
|
+
category: 'rendering',
|
456
|
+
fn: function (html){
|
457
|
+
var self=this;
|
458
|
+
|
459
|
+
return self;},
|
460
|
+
source: unescape('renderButtonsOn%3A%20html'),
|
461
|
+
messageSends: [],
|
462
|
+
referencedClasses: []
|
463
|
+
}),
|
464
|
+
smalltalk.TabWidget);
|
465
|
+
|
466
|
+
smalltalk.addMethod(
|
467
|
+
'_update',
|
468
|
+
smalltalk.method({
|
469
|
+
selector: 'update',
|
470
|
+
category: 'rendering',
|
471
|
+
fn: function (){
|
472
|
+
var self=this;
|
473
|
+
smalltalk.send(self, "_renderTab", []);
|
474
|
+
return self;},
|
475
|
+
source: unescape('update%0A%09self%20renderTab'),
|
476
|
+
messageSends: ["renderTab"],
|
477
|
+
referencedClasses: []
|
478
|
+
}),
|
479
|
+
smalltalk.TabWidget);
|
480
|
+
|
481
|
+
smalltalk.addMethod(
|
482
|
+
'_renderTab',
|
483
|
+
smalltalk.method({
|
484
|
+
selector: 'renderTab',
|
485
|
+
category: 'rendering',
|
486
|
+
fn: function (){
|
487
|
+
var self=this;
|
488
|
+
smalltalk.send(self['@div'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["jt_box"]);return smalltalk.send($rec, "_with_", [(function(){return smalltalk.send(self, "_renderBoxOn_", [html]);})]);})(smalltalk.send(html, "_div", []));return (function($rec){smalltalk.send($rec, "_class_", ["jt_buttons"]);return smalltalk.send($rec, "_with_", [(function(){return smalltalk.send(self, "_renderButtonsOn_", [html]);})]);})(smalltalk.send(html, "_div", []));})]);
|
489
|
+
return self;},
|
490
|
+
source: unescape('renderTab%0A%09div%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%20%20%20%20html%20div%0A%09%09class%3A%20%27jt_box%27%3B%0A%09%09with%3A%20%5Bself%20renderBoxOn%3A%20html%5D.%0A%09%20%20%20%20html%20div%0A%09%09class%3A%20%27jt_buttons%27%3B%0A%09%09with%3A%20%5Bself%20renderButtonsOn%3A%20html%5D%5D'),
|
491
|
+
messageSends: ["contents:", "class:", "with:", "renderBoxOn:", "div", "renderButtonsOn:"],
|
492
|
+
referencedClasses: []
|
493
|
+
}),
|
494
|
+
smalltalk.TabWidget);
|
495
|
+
|
496
|
+
smalltalk.addMethod(
|
497
|
+
'_canBeClosed',
|
498
|
+
smalltalk.method({
|
499
|
+
selector: 'canBeClosed',
|
500
|
+
category: 'testing',
|
501
|
+
fn: function (){
|
502
|
+
var self=this;
|
503
|
+
return false;
|
504
|
+
return self;},
|
505
|
+
source: unescape('canBeClosed%0A%20%20%20%20%5Efalse'),
|
506
|
+
messageSends: [],
|
507
|
+
referencedClasses: []
|
508
|
+
}),
|
509
|
+
smalltalk.TabWidget);
|
510
|
+
|
511
|
+
|
512
|
+
smalltalk.addMethod(
|
513
|
+
'_open',
|
514
|
+
smalltalk.method({
|
515
|
+
selector: 'open',
|
516
|
+
category: 'instance creation',
|
517
|
+
fn: function (){
|
518
|
+
var self=this;
|
519
|
+
return smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
|
520
|
+
return self;},
|
521
|
+
source: unescape('open%0A%20%20%20%20%5Eself%20new%20open'),
|
522
|
+
messageSends: ["open", "new"],
|
523
|
+
referencedClasses: []
|
524
|
+
}),
|
525
|
+
smalltalk.TabWidget.klass);
|
526
|
+
|
527
|
+
|
528
|
+
smalltalk.addClass('Workspace', smalltalk.TabWidget, ['sourceArea'], 'IDE');
|
529
|
+
smalltalk.addMethod(
|
530
|
+
'_label',
|
531
|
+
smalltalk.method({
|
532
|
+
selector: 'label',
|
533
|
+
category: 'accessing',
|
534
|
+
fn: function (){
|
535
|
+
var self=this;
|
536
|
+
return unescape("%5BWorkspace%5D");
|
537
|
+
return self;},
|
538
|
+
source: unescape('label%0A%20%20%20%20%5E%27%5BWorkspace%5D%27'),
|
539
|
+
messageSends: [],
|
540
|
+
referencedClasses: []
|
541
|
+
}),
|
542
|
+
smalltalk.Workspace);
|
543
|
+
|
544
|
+
smalltalk.addMethod(
|
545
|
+
'_clearWorkspace',
|
546
|
+
smalltalk.method({
|
547
|
+
selector: 'clearWorkspace',
|
548
|
+
category: 'actions',
|
549
|
+
fn: function (){
|
550
|
+
var self=this;
|
551
|
+
smalltalk.send(self['@sourceArea'], "_clear", []);
|
552
|
+
return self;},
|
553
|
+
source: unescape('clearWorkspace%0A%20%20%20%20sourceArea%20clear'),
|
554
|
+
messageSends: ["clear"],
|
555
|
+
referencedClasses: []
|
556
|
+
}),
|
557
|
+
smalltalk.Workspace);
|
558
|
+
|
559
|
+
smalltalk.addMethod(
|
560
|
+
'_doIt',
|
561
|
+
smalltalk.method({
|
562
|
+
selector: 'doIt',
|
563
|
+
category: 'actions',
|
564
|
+
fn: function (){
|
565
|
+
var self=this;
|
566
|
+
smalltalk.send(self['@sourceArea'], "_doIt", []);
|
567
|
+
return self;},
|
568
|
+
source: unescape('doIt%0A%20%20%20sourceArea%20doIt'),
|
569
|
+
messageSends: ["doIt"],
|
570
|
+
referencedClasses: []
|
571
|
+
}),
|
572
|
+
smalltalk.Workspace);
|
573
|
+
|
574
|
+
smalltalk.addMethod(
|
575
|
+
'_printIt',
|
576
|
+
smalltalk.method({
|
577
|
+
selector: 'printIt',
|
578
|
+
category: 'actions',
|
579
|
+
fn: function (){
|
580
|
+
var self=this;
|
581
|
+
smalltalk.send(self['@sourceArea'], "_printIt", []);
|
582
|
+
return self;},
|
583
|
+
source: unescape('printIt%0A%09sourceArea%20printIt'),
|
584
|
+
messageSends: ["printIt"],
|
585
|
+
referencedClasses: []
|
586
|
+
}),
|
587
|
+
smalltalk.Workspace);
|
588
|
+
|
589
|
+
smalltalk.addMethod(
|
590
|
+
'_inspectIt',
|
591
|
+
smalltalk.method({
|
592
|
+
selector: 'inspectIt',
|
593
|
+
category: 'actions',
|
594
|
+
fn: function (){
|
595
|
+
var self=this;
|
596
|
+
smalltalk.send(self['@sourceArea'], "_inspectIt", []);
|
597
|
+
return self;},
|
598
|
+
source: unescape('inspectIt%0A%20%20%20%20sourceArea%20inspectIt'),
|
599
|
+
messageSends: ["inspectIt"],
|
600
|
+
referencedClasses: []
|
601
|
+
}),
|
602
|
+
smalltalk.Workspace);
|
603
|
+
|
604
|
+
smalltalk.addMethod(
|
605
|
+
'_renderBoxOn_',
|
606
|
+
smalltalk.method({
|
607
|
+
selector: 'renderBoxOn:',
|
608
|
+
category: 'rendering',
|
609
|
+
fn: function (html){
|
610
|
+
var self=this;
|
611
|
+
self['@sourceArea']=smalltalk.send(smalltalk.SourceArea, "_new", []);
|
612
|
+
smalltalk.send(self['@sourceArea'], "_renderOn_", [html]);
|
613
|
+
return self;},
|
614
|
+
source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20sourceArea%20%3A%3D%20SourceArea%20new.%0A%20%20%20%20sourceArea%20renderOn%3A%20html'),
|
615
|
+
messageSends: ["new", "renderOn:"],
|
616
|
+
referencedClasses: []
|
617
|
+
}),
|
618
|
+
smalltalk.Workspace);
|
619
|
+
|
620
|
+
smalltalk.addMethod(
|
621
|
+
'_renderButtonsOn_',
|
622
|
+
smalltalk.method({
|
623
|
+
selector: 'renderButtonsOn:',
|
624
|
+
category: 'rendering',
|
625
|
+
fn: function (html){
|
626
|
+
var self=this;
|
627
|
+
(function($rec){smalltalk.send($rec, "_with_", ["DoIt"]);smalltalk.send($rec, "_title_", [unescape("ctrl+d")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_doIt", []);})]);})(smalltalk.send(html, "_button", []));
|
628
|
+
(function($rec){smalltalk.send($rec, "_with_", ["PrintIt"]);smalltalk.send($rec, "_title_", [unescape("ctrl+p")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_printIt", []);})]);})(smalltalk.send(html, "_button", []));
|
629
|
+
(function($rec){smalltalk.send($rec, "_with_", ["InspectIt"]);smalltalk.send($rec, "_title_", [unescape("ctrl+i")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_inspectIt", []);})]);})(smalltalk.send(html, "_button", []));
|
630
|
+
(function($rec){smalltalk.send($rec, "_with_", ["Clear workspace"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clearWorkspace", []);})]);})(smalltalk.send(html, "_button", []));
|
631
|
+
return self;},
|
632
|
+
source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20html%20button%0A%09with%3A%20%27DoIt%27%3B%0A%09title%3A%20%27ctrl+d%27%3B%0A%09onClick%3A%20%5Bself%20doIt%5D.%0A%20%20%20%20html%20button%0A%09with%3A%20%27PrintIt%27%3B%0A%09title%3A%20%27ctrl+p%27%3B%0A%09onClick%3A%20%5Bself%20printIt%5D.%0A%20%20%20%20html%20button%0A%09with%3A%20%27InspectIt%27%3B%0A%09title%3A%20%27ctrl+i%27%3B%0A%09onClick%3A%20%5Bself%20inspectIt%5D.%0A%20%20%20%20html%20button%0A%09with%3A%20%27Clear%20workspace%27%3B%0A%09onClick%3A%20%5Bself%20clearWorkspace%5D'),
|
633
|
+
messageSends: ["with:", "title:", "onClick:", "doIt", "button", "printIt", "inspectIt", "clearWorkspace"],
|
634
|
+
referencedClasses: []
|
635
|
+
}),
|
636
|
+
smalltalk.Workspace);
|
637
|
+
|
638
|
+
|
639
|
+
|
640
|
+
smalltalk.addClass('Transcript', smalltalk.TabWidget, ['textarea'], 'IDE');
|
641
|
+
smalltalk.addMethod(
|
642
|
+
'_label',
|
643
|
+
smalltalk.method({
|
644
|
+
selector: 'label',
|
645
|
+
category: 'accessing',
|
646
|
+
fn: function (){
|
647
|
+
var self=this;
|
648
|
+
return unescape("%5BTranscript%5D");
|
649
|
+
return self;},
|
650
|
+
source: unescape('label%0A%20%20%20%20%5E%27%5BTranscript%5D%27'),
|
651
|
+
messageSends: [],
|
652
|
+
referencedClasses: []
|
653
|
+
}),
|
654
|
+
smalltalk.Transcript);
|
655
|
+
|
656
|
+
smalltalk.addMethod(
|
657
|
+
'_show_',
|
658
|
+
smalltalk.method({
|
659
|
+
selector: 'show:',
|
660
|
+
category: 'actions',
|
661
|
+
fn: function (anObject){
|
662
|
+
var self=this;
|
663
|
+
smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "__comma", [smalltalk.send(anObject, "_asString", [])])]);
|
664
|
+
return self;},
|
665
|
+
source: unescape('show%3A%20anObject%0A%20%20%20%20textarea%20asJQuery%20val%3A%20textarea%20asJQuery%20val%2C%20anObject%20asString.'),
|
666
|
+
messageSends: ["val:", "asJQuery", unescape("%2C"), "val", "asString"],
|
667
|
+
referencedClasses: []
|
668
|
+
}),
|
669
|
+
smalltalk.Transcript);
|
670
|
+
|
671
|
+
smalltalk.addMethod(
|
672
|
+
'_cr',
|
673
|
+
smalltalk.method({
|
674
|
+
selector: 'cr',
|
675
|
+
category: 'actions',
|
676
|
+
fn: function (){
|
677
|
+
var self=this;
|
678
|
+
smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "__comma", [smalltalk.send(smalltalk.String, "_cr", [])])]);
|
679
|
+
return self;},
|
680
|
+
source: unescape('cr%0A%20%20%20%20textarea%20asJQuery%20val%3A%20textarea%20asJQuery%20val%2C%20String%20cr.'),
|
681
|
+
messageSends: ["val:", "asJQuery", unescape("%2C"), "val", "cr"],
|
682
|
+
referencedClasses: [smalltalk.String]
|
683
|
+
}),
|
684
|
+
smalltalk.Transcript);
|
685
|
+
|
686
|
+
smalltalk.addMethod(
|
687
|
+
'_clear',
|
688
|
+
smalltalk.method({
|
689
|
+
selector: 'clear',
|
690
|
+
category: 'actions',
|
691
|
+
fn: function (){
|
692
|
+
var self=this;
|
693
|
+
smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [""]);
|
694
|
+
return self;},
|
695
|
+
source: unescape('clear%0A%20%20%20%20textarea%20asJQuery%20val%3A%20%27%27'),
|
696
|
+
messageSends: ["val:", "asJQuery"],
|
697
|
+
referencedClasses: []
|
698
|
+
}),
|
699
|
+
smalltalk.Transcript);
|
700
|
+
|
701
|
+
smalltalk.addMethod(
|
702
|
+
'_renderBoxOn_',
|
703
|
+
smalltalk.method({
|
704
|
+
selector: 'renderBoxOn:',
|
705
|
+
category: 'rendering',
|
706
|
+
fn: function (html){
|
707
|
+
var self=this;
|
708
|
+
self['@textarea']=smalltalk.send(html, "_textarea", []);
|
709
|
+
smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_call_", ["tabby"]);
|
710
|
+
(function($rec){smalltalk.send($rec, "_class_", ["jt_transcript"]);return smalltalk.send($rec, "_at_put_", ["spellcheck", "false"]);})(self['@textarea']);
|
711
|
+
return self;},
|
712
|
+
source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20textarea%20%3A%3D%20html%20textarea.%0A%20%20%20%20textarea%20asJQuery%20call%3A%20%27tabby%27.%0A%20%20%20%20textarea%20%0A%09class%3A%20%27jt_transcript%27%3B%0A%09at%3A%20%27spellcheck%27%20put%3A%20%27false%27'),
|
713
|
+
messageSends: ["textarea", "call:", "asJQuery", "class:", "at:put:"],
|
714
|
+
referencedClasses: []
|
715
|
+
}),
|
716
|
+
smalltalk.Transcript);
|
717
|
+
|
718
|
+
smalltalk.addMethod(
|
719
|
+
'_renderButtonsOn_',
|
720
|
+
smalltalk.method({
|
721
|
+
selector: 'renderButtonsOn:',
|
722
|
+
category: 'rendering',
|
723
|
+
fn: function (html){
|
724
|
+
var self=this;
|
725
|
+
(function($rec){smalltalk.send($rec, "_with_", ["Clear transcript"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clear", []);})]);})(smalltalk.send(html, "_button", []));
|
726
|
+
return self;},
|
727
|
+
source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20html%20button%0A%09with%3A%20%27Clear%20transcript%27%3B%0A%09onClick%3A%20%5Bself%20clear%5D'),
|
728
|
+
messageSends: ["with:", "onClick:", "clear", "button"],
|
729
|
+
referencedClasses: []
|
730
|
+
}),
|
731
|
+
smalltalk.Transcript);
|
732
|
+
|
733
|
+
|
734
|
+
smalltalk.Transcript.klass.iVarNames = ['current'];
|
735
|
+
smalltalk.addMethod(
|
736
|
+
'_open',
|
737
|
+
smalltalk.method({
|
738
|
+
selector: 'open',
|
739
|
+
category: 'instance creation',
|
740
|
+
fn: function (){
|
741
|
+
var self=this;
|
742
|
+
smalltalk.send(smalltalk.send(self, "_current", []), "_open", []);
|
743
|
+
return self;},
|
744
|
+
source: unescape('open%0A%20%20%20%20self%20current%20open'),
|
745
|
+
messageSends: ["open", "current"],
|
746
|
+
referencedClasses: []
|
747
|
+
}),
|
748
|
+
smalltalk.Transcript.klass);
|
749
|
+
|
750
|
+
smalltalk.addMethod(
|
751
|
+
'_new',
|
752
|
+
smalltalk.method({
|
753
|
+
selector: 'new',
|
754
|
+
category: 'instance creation',
|
755
|
+
fn: function (){
|
756
|
+
var self=this;
|
757
|
+
smalltalk.send(self, "_shouldNotImplement", []);
|
758
|
+
return self;},
|
759
|
+
source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'),
|
760
|
+
messageSends: ["shouldNotImplement"],
|
761
|
+
referencedClasses: []
|
762
|
+
}),
|
763
|
+
smalltalk.Transcript.klass);
|
764
|
+
|
765
|
+
smalltalk.addMethod(
|
766
|
+
'_current',
|
767
|
+
smalltalk.method({
|
768
|
+
selector: 'current',
|
769
|
+
category: 'instance creation',
|
770
|
+
fn: function (){
|
771
|
+
var self=this;
|
772
|
+
return smalltalk.send(self['@current'], "_ifNil_", [(function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.TabWidget.klass);})]);
|
773
|
+
return self;},
|
774
|
+
source: unescape('current%0A%20%20%20%20%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20super%20new%5D'),
|
775
|
+
messageSends: ["ifNil:", "new"],
|
776
|
+
referencedClasses: []
|
777
|
+
}),
|
778
|
+
smalltalk.Transcript.klass);
|
779
|
+
|
780
|
+
smalltalk.addMethod(
|
781
|
+
'_show_',
|
782
|
+
smalltalk.method({
|
783
|
+
selector: 'show:',
|
784
|
+
category: 'printing',
|
785
|
+
fn: function (anObject){
|
786
|
+
var self=this;
|
787
|
+
smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [anObject]);
|
788
|
+
return self;},
|
789
|
+
source: unescape('show%3A%20anObject%0A%20%20%20%20self%20current%20show%3A%20anObject'),
|
790
|
+
messageSends: ["show:", "current"],
|
791
|
+
referencedClasses: []
|
792
|
+
}),
|
793
|
+
smalltalk.Transcript.klass);
|
794
|
+
|
795
|
+
smalltalk.addMethod(
|
796
|
+
'_cr',
|
797
|
+
smalltalk.method({
|
798
|
+
selector: 'cr',
|
799
|
+
category: 'printing',
|
800
|
+
fn: function (){
|
801
|
+
var self=this;
|
802
|
+
smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [smalltalk.send(smalltalk.String, "_cr", [])]);
|
803
|
+
return self;},
|
804
|
+
source: unescape('cr%0A%20%20%20%20self%20current%20show%3A%20String%20cr'),
|
805
|
+
messageSends: ["show:", "current", "cr"],
|
806
|
+
referencedClasses: [smalltalk.String]
|
807
|
+
}),
|
808
|
+
smalltalk.Transcript.klass);
|
809
|
+
|
810
|
+
smalltalk.addMethod(
|
811
|
+
'_clear',
|
812
|
+
smalltalk.method({
|
813
|
+
selector: 'clear',
|
814
|
+
category: 'printing',
|
815
|
+
fn: function (){
|
816
|
+
var self=this;
|
817
|
+
smalltalk.send(smalltalk.send(self, "_current", []), "_clear", []);
|
818
|
+
return self;},
|
819
|
+
source: unescape('clear%0A%20%20%20%20self%20current%20clear'),
|
820
|
+
messageSends: ["clear", "current"],
|
821
|
+
referencedClasses: []
|
822
|
+
}),
|
823
|
+
smalltalk.Transcript.klass);
|
824
|
+
|
825
|
+
|
826
|
+
smalltalk.addClass('Browser', smalltalk.TabWidget, ['selectedCategory', 'selectedClass', 'selectedProtocol', 'selectedMethod', 'commitButton', 'categoriesList', 'classesList', 'protocolsList', 'methodsList', 'sourceArea', 'tabsList', 'selectedTab', 'saveButton', 'classButtons', 'methodButtons', 'unsavedChanges', 'input'], 'IDE');
|
827
|
+
smalltalk.addMethod(
|
828
|
+
'_label',
|
829
|
+
smalltalk.method({
|
830
|
+
selector: 'label',
|
831
|
+
category: 'accessing',
|
832
|
+
fn: function (){
|
833
|
+
var self=this;
|
834
|
+
return smalltalk.send(self['@selectedClass'], "_ifNil_ifNotNil_", [(function(){return unescape("Browser%20%28nil%29");}), (function(){return smalltalk.send(self['@selectedClass'], "_name", []);})]);
|
835
|
+
return self;},
|
836
|
+
source: unescape('label%0A%20%20%20%20%5EselectedClass%20%0A%09ifNil%3A%20%5B%27Browser%20%28nil%29%27%5D%0A%09ifNotNil%3A%20%5BselectedClass%20name%5D'),
|
837
|
+
messageSends: ["ifNil:ifNotNil:", "name"],
|
838
|
+
referencedClasses: []
|
839
|
+
}),
|
840
|
+
smalltalk.Browser);
|
841
|
+
|
842
|
+
smalltalk.addMethod(
|
843
|
+
'_categories',
|
844
|
+
smalltalk.method({
|
845
|
+
selector: 'categories',
|
846
|
+
category: 'accessing',
|
847
|
+
fn: function (){
|
848
|
+
var self=this;
|
849
|
+
var categories=nil;
|
850
|
+
categories=smalltalk.send(smalltalk.Array, "_new", []);
|
851
|
+
smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_classes", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(categories, "_includes_", [smalltalk.send(each, "_category", [])]), "_ifFalse_", [(function(){return smalltalk.send(categories, "_add_", [smalltalk.send(each, "_category", [])]);})]);})]);
|
852
|
+
return smalltalk.send(categories, "_sort", []);
|
853
|
+
return self;},
|
854
|
+
source: unescape('categories%0A%20%20%20%20%7C%20categories%20%7C%0A%20%20%20%20categories%20%3A%3D%20Array%20new.%0A%20%20%20%20Smalltalk%20current%20classes%20do%3A%20%5B%3Aeach%20%7C%0A%09%28categories%20includes%3A%20each%20category%29%20ifFalse%3A%20%5B%0A%09%20%20%20%20categories%20add%3A%20each%20category%5D%5D.%0A%20%20%20%20%5Ecategories%20sort'),
|
855
|
+
messageSends: ["new", "do:", "classes", "current", "ifFalse:", "includes:", "category", "add:", "sort"],
|
856
|
+
referencedClasses: [smalltalk.Array,smalltalk.Smalltalk]
|
857
|
+
}),
|
858
|
+
smalltalk.Browser);
|
859
|
+
|
860
|
+
smalltalk.addMethod(
|
861
|
+
'_classes',
|
862
|
+
smalltalk.method({
|
863
|
+
selector: 'classes',
|
864
|
+
category: 'accessing',
|
865
|
+
fn: function (){
|
866
|
+
var self=this;
|
867
|
+
return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_classes", []), "_select_", [(function(each){return smalltalk.send(smalltalk.send(each, "_category", []), "__eq", [self['@selectedCategory']]);})]), "_sort_", [(function(a, b){return smalltalk.send(smalltalk.send(a, "_name", []), "__gt", [smalltalk.send(b, "_name", [])]);})]);
|
868
|
+
return self;},
|
869
|
+
source: unescape('classes%0A%20%20%20%20%5E%28Smalltalk%20current%20classes%20%0A%09select%3A%20%5B%3Aeach%20%7C%20each%20category%20%3D%20selectedCategory%5D%29%0A%09sort%3A%20%5B%3Aa%20%3Ab%20%7C%20a%20name%20%3E%20b%20name%5D'),
|
870
|
+
messageSends: ["sort:", "select:", "classes", "current", unescape("%3D"), "category", unescape("%3E"), "name"],
|
871
|
+
referencedClasses: [smalltalk.Smalltalk]
|
872
|
+
}),
|
873
|
+
smalltalk.Browser);
|
874
|
+
|
875
|
+
smalltalk.addMethod(
|
876
|
+
'_protocols',
|
877
|
+
smalltalk.method({
|
878
|
+
selector: 'protocols',
|
879
|
+
category: 'accessing',
|
880
|
+
fn: function (){
|
881
|
+
var self=this;
|
882
|
+
try{var klass=nil;
|
883
|
+
smalltalk.send(self['@selectedClass'], "_ifNotNil_", [(function(){smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["comment"]), "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return []}})})();})]);klass=smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["instance"]), "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})]);smalltalk.send(smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_isEmpty", []), "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send(smalltalk.Array, "_with_", ["not yet classified"])}})})();})]);return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send(klass, "_protocols", [])}})})();})]);
|
884
|
+
(function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send(smalltalk.Array, "_new", [])}})})();
|
885
|
+
return self;
|
886
|
+
} catch(e) {if(e.name === 'stReturn' && e.selector === '_protocols'){return e.fn()} throw(e)}},
|
887
|
+
source: unescape('protocols%0A%20%20%20%20%7C%20klass%20%7C%0A%20%20%20%20selectedClass%20ifNotNil%3A%20%5B%0A%09selectedTab%20%3D%20%23comment%20ifTrue%3A%20%5B%5E%23%28%29%5D.%0A%09klass%20%3A%3D%20selectedTab%20%3D%20%23instance%0A%09%20%20%20%20ifTrue%3A%20%5BselectedClass%5D%0A%09%20%20%20%20ifFalse%3A%20%5BselectedClass%20class%5D.%0A%09klass%20methodDictionary%20isEmpty%20ifTrue%3A%20%5B%0A%09%20%20%20%20%5EArray%20with%3A%20%27not%20yet%20classified%27%5D.%0A%09%5Eklass%20protocols%5D.%0A%20%20%20%20%5EArray%20new'),
|
888
|
+
messageSends: ["ifNotNil:", "ifTrue:", unescape("%3D"), "ifTrue:ifFalse:", "class", "isEmpty", "methodDictionary", "with:", "protocols", "new"],
|
889
|
+
referencedClasses: [smalltalk.Array]
|
890
|
+
}),
|
891
|
+
smalltalk.Browser);
|
892
|
+
|
893
|
+
smalltalk.addMethod(
|
894
|
+
'_methods',
|
895
|
+
smalltalk.method({
|
896
|
+
selector: 'methods',
|
897
|
+
category: 'accessing',
|
898
|
+
fn: function (){
|
899
|
+
var self=this;
|
900
|
+
try{var klass=nil;
|
901
|
+
smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["comment"]), "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})]);
|
902
|
+
smalltalk.send(self['@selectedClass'], "_ifNotNil_", [(function(){return klass=smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["instance"]), "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})]);})]);
|
903
|
+
(function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return smalltalk.send(smalltalk.send(self['@selectedProtocol'], "_ifNil_ifNotNil_", [(function(){return smalltalk.send(klass, "_ifNil_ifNotNil_", [(function(){return [];}), (function(){return smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_values", []);})]);}), (function(){return smalltalk.send(smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_values", []), "_select_", [(function(each){return smalltalk.send(smalltalk.send(each, "_category", []), "__eq", [self['@selectedProtocol']]);})]);})]), "_sort_", [(function(a, b){return smalltalk.send(smalltalk.send(a, "_selector", []), "__gt", [smalltalk.send(b, "_selector", [])]);})])}})})();
|
904
|
+
return self;
|
905
|
+
} catch(e) {if(e.name === 'stReturn' && e.selector === '_methods'){return e.fn()} throw(e)}},
|
906
|
+
source: unescape('methods%0A%20%20%20%20%7C%20klass%20%7C%0A%20%20%20%20selectedTab%20%3D%20%23comment%20ifTrue%3A%20%5B%5E%23%28%29%5D.%0A%20%20%20%20selectedClass%20ifNotNil%3A%20%5B%0A%09klass%20%3A%3D%20selectedTab%20%3D%20%23instance%0A%09%20%20%20%20ifTrue%3A%20%5BselectedClass%5D%0A%09%20%20%20%20ifFalse%3A%20%5BselectedClass%20class%5D%5D.%0A%20%20%20%20%5E%28selectedProtocol%20%0A%09ifNil%3A%20%5B%0A%09%20%20%20%20klass%20%0A%09%09ifNil%3A%20%5B%23%28%29%5D%20%0A%09%09ifNotNil%3A%20%5Bklass%20methodDictionary%20values%5D%5D%0A%09ifNotNil%3A%20%5B%0A%09%20%20%20%20klass%20methodDictionary%20values%20select%3A%20%5B%3Aeach%20%7C%0A%09%09each%20category%20%3D%20selectedProtocol%5D%5D%29%20sort%3A%20%5B%3Aa%20%3Ab%20%7C%20a%20selector%20%3E%20b%20selector%5D'),
|
907
|
+
messageSends: ["ifTrue:", unescape("%3D"), "ifNotNil:", "ifTrue:ifFalse:", "class", "sort:", "ifNil:ifNotNil:", "values", "methodDictionary", "select:", "category", unescape("%3E"), "selector"],
|
908
|
+
referencedClasses: []
|
909
|
+
}),
|
910
|
+
smalltalk.Browser);
|
911
|
+
|
912
|
+
smalltalk.addMethod(
|
913
|
+
'_source',
|
914
|
+
smalltalk.method({
|
915
|
+
selector: 'source',
|
916
|
+
category: 'accessing',
|
917
|
+
fn: function (){
|
918
|
+
var self=this;
|
919
|
+
try{smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["comment"]), "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '_source', fn: function(){return smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedProtocol'], "_notNil", []), "_or_", [(function(){return smalltalk.send(self['@selectedMethod'], "_notNil", []);})]), "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_declarationSource", []);}), (function(){return smalltalk.send(self, "_methodSource", []);})])}})})();})]);
|
920
|
+
(function(){throw({name: 'stReturn', selector: '_source', fn: function(){return smalltalk.send(self['@selectedClass'], "_ifNil_ifNotNil_", [(function(){return "";}), (function(){return smalltalk.send(self, "_classCommentSource", []);})])}})})();
|
921
|
+
return self;
|
922
|
+
} catch(e) {if(e.name === 'stReturn' && e.selector === '_source'){return e.fn()} throw(e)}},
|
923
|
+
source: unescape('source%0A%20%20%20%20selectedTab%20%3D%20%23comment%20ifFalse%3A%20%5B%0A%09%5E%28selectedProtocol%20notNil%20or%3A%20%5BselectedMethod%20notNil%5D%29%0A%09%20%20%20%20ifFalse%3A%20%5Bself%20declarationSource%5D%0A%09%20%20%20%20ifTrue%3A%20%5Bself%20methodSource%5D%5D.%0A%20%20%20%20%5EselectedClass%0A%09ifNil%3A%20%5B%27%27%5D%0A%09ifNotNil%3A%20%5Bself%20classCommentSource%5D'),
|
924
|
+
messageSends: ["ifFalse:", unescape("%3D"), "ifFalse:ifTrue:", "or:", "notNil", "declarationSource", "methodSource", "ifNil:ifNotNil:", "classCommentSource"],
|
925
|
+
referencedClasses: []
|
926
|
+
}),
|
927
|
+
smalltalk.Browser);
|
928
|
+
|
929
|
+
smalltalk.addMethod(
|
930
|
+
'_methodSource',
|
931
|
+
smalltalk.method({
|
932
|
+
selector: 'methodSource',
|
933
|
+
category: 'accessing',
|
934
|
+
fn: function (){
|
935
|
+
var self=this;
|
936
|
+
return smalltalk.send(self['@selectedMethod'], "_ifNil_ifNotNil_", [(function(){return smalltalk.send(self, "_dummyMethodSource", []);}), (function(){return smalltalk.send(self['@selectedMethod'], "_source", []);})]);
|
937
|
+
return self;},
|
938
|
+
source: unescape('methodSource%0A%20%20%20%20%5EselectedMethod%0A%09ifNil%3A%20%5Bself%20dummyMethodSource%5D%0A%09ifNotNil%3A%20%5BselectedMethod%20source%5D'),
|
939
|
+
messageSends: ["ifNil:ifNotNil:", "dummyMethodSource", "source"],
|
940
|
+
referencedClasses: []
|
941
|
+
}),
|
942
|
+
smalltalk.Browser);
|
943
|
+
|
944
|
+
smalltalk.addMethod(
|
945
|
+
'_dummyMethodSource',
|
946
|
+
smalltalk.method({
|
947
|
+
selector: 'dummyMethodSource',
|
948
|
+
category: 'accessing',
|
949
|
+
fn: function (){
|
950
|
+
var self=this;
|
951
|
+
return unescape("messageSelectorAndArgumentNames%0A%09%22comment%20stating%20purpose%20of%20message%22%0A%0A%09%7C%20temporary%20variable%20names%20%7C%0A%09statements");
|
952
|
+
return self;},
|
953
|
+
source: unescape('dummyMethodSource%0A%20%20%20%20%5E%27messageSelectorAndArgumentNames%0A%09%22comment%20stating%20purpose%20of%20message%22%0A%0A%09%7C%20temporary%20variable%20names%20%7C%0A%09statements%27'),
|
954
|
+
messageSends: [],
|
955
|
+
referencedClasses: []
|
956
|
+
}),
|
957
|
+
smalltalk.Browser);
|
958
|
+
|
959
|
+
smalltalk.addMethod(
|
960
|
+
'_declarationSource',
|
961
|
+
smalltalk.method({
|
962
|
+
selector: 'declarationSource',
|
963
|
+
category: 'accessing',
|
964
|
+
fn: function (){
|
965
|
+
var self=this;
|
966
|
+
return smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["instance"]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_classDeclarationSource", []);}), (function(){return smalltalk.send(self, "_metaclassDeclarationSource", []);})]);
|
967
|
+
return self;},
|
968
|
+
source: unescape('declarationSource%0A%20%20%20%20%5EselectedTab%20%3D%20%23instance%0A%09ifTrue%3A%20%5Bself%20classDeclarationSource%5D%0A%09ifFalse%3A%20%5Bself%20metaclassDeclarationSource%5D'),
|
969
|
+
messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "classDeclarationSource", "metaclassDeclarationSource"],
|
970
|
+
referencedClasses: []
|
971
|
+
}),
|
972
|
+
smalltalk.Browser);
|
973
|
+
|
974
|
+
smalltalk.addMethod(
|
975
|
+
'_classDeclarationSource',
|
976
|
+
smalltalk.method({
|
977
|
+
selector: 'classDeclarationSource',
|
978
|
+
category: 'accessing',
|
979
|
+
fn: function (){
|
980
|
+
var self=this;
|
981
|
+
var stream=nil;
|
982
|
+
stream=smalltalk.send("", "_writeStream", []);
|
983
|
+
smalltalk.send(self['@selectedClass'], "_ifNotNil_", [(function(){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(self['@selectedClass'], "_superclass", []), "_asString", [])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%20subclass%3A%20%23")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self['@selectedClass'], "_name", [])]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.String, "_lf", []), "__comma", [smalltalk.send(smalltalk.String, "_tab", [])])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("instanceVariableNames%3A%20%27")]);})(stream);smalltalk.send(smalltalk.send(self['@selectedClass'], "_instanceVariableNames", []), "_do_separatedBy_", [(function(each){return smalltalk.send(stream, "_nextPutAll_", [each]);}), (function(){return smalltalk.send(stream, "_nextPutAll_", [" "]);})]);return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [smalltalk.send(smalltalk.String, "_lf", [])]), "__comma", [smalltalk.send(smalltalk.String, "_tab", [])])]);smalltalk.send($rec, "_nextPutAll_", [unescape("category%3A%20%27")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self['@selectedClass'], "_category", [])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%27")]);})(stream);})]);
|
984
|
+
return smalltalk.send(stream, "_contents", []);
|
985
|
+
return self;},
|
986
|
+
source: unescape('classDeclarationSource%0A%20%20%20%20%7C%20stream%20%7C%0A%20%20%20%20stream%20%3A%3D%20%27%27%20writeStream.%0A%20%20%20%20selectedClass%20ifNotNil%3A%20%5B%0A%09stream%20%0A%09%20%20%20%20nextPutAll%3A%20selectedClass%20superclass%20asString%3B%0A%09%20%20%20%20nextPutAll%3A%20%27%20subclass%3A%20%23%27%3B%0A%09%20%20%20%20nextPutAll%3A%20selectedClass%20name%3B%0A%09%20%20%20%20nextPutAll%3A%20String%20lf%2C%20String%20tab%3B%0A%09%20%20%20%20nextPutAll%3A%20%27instanceVariableNames%3A%20%27%27%27.%0A%09selectedClass%20instanceVariableNames%20%0A%09%20%20%20%20do%3A%20%5B%3Aeach%20%7C%20stream%20nextPutAll%3A%20each%5D%20%0A%09%20%20%20%20separatedBy%3A%20%5Bstream%20nextPutAll%3A%20%27%20%27%5D.%0A%09stream%0A%09%20%20%20%20nextPutAll%3A%20%27%27%27%27%2C%20String%20lf%2C%20String%20tab%3B%0A%09%20%20%20%20nextPutAll%3A%20%27category%3A%20%27%27%27%3B%0A%09%20%20%20%20nextPutAll%3A%20selectedClass%20category%3B%0A%09%20%20%20%20nextPutAll%3A%20%27%27%27%27%5D.%0A%20%20%20%20%5Estream%20contents'),
|
987
|
+
messageSends: ["writeStream", "ifNotNil:", "nextPutAll:", "asString", "superclass", "name", unescape("%2C"), "lf", "tab", "do:separatedBy:", "instanceVariableNames", "category", "contents"],
|
988
|
+
referencedClasses: [smalltalk.String]
|
989
|
+
}),
|
990
|
+
smalltalk.Browser);
|
991
|
+
|
992
|
+
smalltalk.addMethod(
|
993
|
+
'_metaclassDeclarationSource',
|
994
|
+
smalltalk.method({
|
995
|
+
selector: 'metaclassDeclarationSource',
|
996
|
+
category: 'accessing',
|
997
|
+
fn: function (){
|
998
|
+
var self=this;
|
999
|
+
var stream=nil;
|
1000
|
+
stream=smalltalk.send("", "_writeStream", []);
|
1001
|
+
smalltalk.send(self['@selectedClass'], "_ifNotNil_", [(function(){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self['@selectedClass'], "_asString", [])]);smalltalk.send($rec, "_nextPutAll_", [" class "]);return smalltalk.send($rec, "_nextPutAll_", [unescape("instanceVariableNames%3A%20%27")]);})(stream);smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_instanceVariableNames", []), "_do_separatedBy_", [(function(each){return smalltalk.send(stream, "_nextPutAll_", [each]);}), (function(){return smalltalk.send(stream, "_nextPutAll_", [" "]);})]);return smalltalk.send(stream, "_nextPutAll_", [unescape("%27")]);})]);
|
1002
|
+
return smalltalk.send(stream, "_contents", []);
|
1003
|
+
return self;},
|
1004
|
+
source: unescape('metaclassDeclarationSource%0A%20%20%20%20%7C%20stream%20%7C%0A%20%20%20%20stream%20%3A%3D%20%27%27%20writeStream.%0A%20%20%20%20selectedClass%20ifNotNil%3A%20%5B%0A%09stream%20%0A%09%20%20%20%20nextPutAll%3A%20selectedClass%20asString%3B%0A%09%20%20%20%20nextPutAll%3A%20%27%20class%20%27%3B%0A%09%20%20%20%20nextPutAll%3A%20%27instanceVariableNames%3A%20%27%27%27.%0A%09selectedClass%20class%20instanceVariableNames%0A%09%20%20%20%20do%3A%20%5B%3Aeach%20%7C%20stream%20nextPutAll%3A%20each%5D%0A%09%20%20%20%20separatedBy%3A%20%5Bstream%20nextPutAll%3A%20%27%20%27%5D.%0A%09stream%20nextPutAll%3A%20%27%27%27%27%5D.%0A%20%20%20%20%5Estream%20contents'),
|
1005
|
+
messageSends: ["writeStream", "ifNotNil:", "nextPutAll:", "asString", "do:separatedBy:", "instanceVariableNames", "class", "contents"],
|
1006
|
+
referencedClasses: []
|
1007
|
+
}),
|
1008
|
+
smalltalk.Browser);
|
1009
|
+
|
1010
|
+
smalltalk.addMethod(
|
1011
|
+
'_classCommentSource',
|
1012
|
+
smalltalk.method({
|
1013
|
+
selector: 'classCommentSource',
|
1014
|
+
category: 'accessing',
|
1015
|
+
fn: function (){
|
1016
|
+
var self=this;
|
1017
|
+
return smalltalk.send(self['@selectedClass'], "_comment", []);
|
1018
|
+
return self;},
|
1019
|
+
source: unescape('classCommentSource%0A%20%20%20%20%5EselectedClass%20comment'),
|
1020
|
+
messageSends: ["comment"],
|
1021
|
+
referencedClasses: []
|
1022
|
+
}),
|
1023
|
+
smalltalk.Browser);
|
1024
|
+
|
1025
|
+
smalltalk.addMethod(
|
1026
|
+
'_disableSaveButton',
|
1027
|
+
smalltalk.method({
|
1028
|
+
selector: 'disableSaveButton',
|
1029
|
+
category: 'actions',
|
1030
|
+
fn: function (){
|
1031
|
+
var self=this;
|
1032
|
+
smalltalk.send(self['@saveButton'], "_ifNotNil_", [(function(){return smalltalk.send(self['@saveButton'], "_at_put_", ["disabled", true]);})]);
|
1033
|
+
self['@unsavedChanges']=false;
|
1034
|
+
return self;},
|
1035
|
+
source: unescape('disableSaveButton%0A%20%20%20%20saveButton%20ifNotNil%3A%20%5B%0A%09saveButton%20at%3A%20%27disabled%27%20put%3A%20true%5D.%0A%20%20%20%20unsavedChanges%20%3A%3D%20false'),
|
1036
|
+
messageSends: ["ifNotNil:", "at:put:"],
|
1037
|
+
referencedClasses: []
|
1038
|
+
}),
|
1039
|
+
smalltalk.Browser);
|
1040
|
+
|
1041
|
+
smalltalk.addMethod(
|
1042
|
+
'_hideClassButtons',
|
1043
|
+
smalltalk.method({
|
1044
|
+
selector: 'hideClassButtons',
|
1045
|
+
category: 'actions',
|
1046
|
+
fn: function (){
|
1047
|
+
var self=this;
|
1048
|
+
smalltalk.send(smalltalk.send(self['@classButtons'], "_asJQuery", []), "_hide", []);
|
1049
|
+
return self;},
|
1050
|
+
source: unescape('hideClassButtons%0A%20%20%20%20classButtons%20asJQuery%20hide'),
|
1051
|
+
messageSends: ["hide", "asJQuery"],
|
1052
|
+
referencedClasses: []
|
1053
|
+
}),
|
1054
|
+
smalltalk.Browser);
|
1055
|
+
|
1056
|
+
smalltalk.addMethod(
|
1057
|
+
'_showClassButtons',
|
1058
|
+
smalltalk.method({
|
1059
|
+
selector: 'showClassButtons',
|
1060
|
+
category: 'actions',
|
1061
|
+
fn: function (){
|
1062
|
+
var self=this;
|
1063
|
+
smalltalk.send(smalltalk.send(self['@classButtons'], "_asJQuery", []), "_show", []);
|
1064
|
+
return self;},
|
1065
|
+
source: unescape('showClassButtons%0A%20%20%20%20classButtons%20asJQuery%20show'),
|
1066
|
+
messageSends: ["show", "asJQuery"],
|
1067
|
+
referencedClasses: []
|
1068
|
+
}),
|
1069
|
+
smalltalk.Browser);
|
1070
|
+
|
1071
|
+
smalltalk.addMethod(
|
1072
|
+
'_hideMethodButtons',
|
1073
|
+
smalltalk.method({
|
1074
|
+
selector: 'hideMethodButtons',
|
1075
|
+
category: 'actions',
|
1076
|
+
fn: function (){
|
1077
|
+
var self=this;
|
1078
|
+
smalltalk.send(smalltalk.send(self['@methodButtons'], "_asJQuery", []), "_hide", []);
|
1079
|
+
return self;},
|
1080
|
+
source: unescape('hideMethodButtons%0A%20%20%20%20methodButtons%20asJQuery%20hide'),
|
1081
|
+
messageSends: ["hide", "asJQuery"],
|
1082
|
+
referencedClasses: []
|
1083
|
+
}),
|
1084
|
+
smalltalk.Browser);
|
1085
|
+
|
1086
|
+
smalltalk.addMethod(
|
1087
|
+
'_showMethodButtons',
|
1088
|
+
smalltalk.method({
|
1089
|
+
selector: 'showMethodButtons',
|
1090
|
+
category: 'actions',
|
1091
|
+
fn: function (){
|
1092
|
+
var self=this;
|
1093
|
+
smalltalk.send(smalltalk.send(self['@methodButtons'], "_asJQuery", []), "_show", []);
|
1094
|
+
return self;},
|
1095
|
+
source: unescape('showMethodButtons%0A%20%20%20%20methodButtons%20asJQuery%20show'),
|
1096
|
+
messageSends: ["show", "asJQuery"],
|
1097
|
+
referencedClasses: []
|
1098
|
+
}),
|
1099
|
+
smalltalk.Browser);
|
1100
|
+
|
1101
|
+
smalltalk.addMethod(
|
1102
|
+
'_compile',
|
1103
|
+
smalltalk.method({
|
1104
|
+
selector: 'compile',
|
1105
|
+
category: 'actions',
|
1106
|
+
fn: function (){
|
1107
|
+
var self=this;
|
1108
|
+
smalltalk.send(self, "_disableSaveButton", []);
|
1109
|
+
smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["comment"]), "_ifTrue_", [(function(){return smalltalk.send(self['@selectedClass'], "_ifNotNil_", [(function(){return smalltalk.send(self, "_compileClassComment", []);})]);})]);
|
1110
|
+
smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedProtocol'], "_notNil", []), "_or_", [(function(){return smalltalk.send(self['@selectedMethod'], "_notNil", []);})]), "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_compileDefinition", []);}), (function(){return smalltalk.send(self, "_compileMethodDefinition", []);})]);
|
1111
|
+
return self;},
|
1112
|
+
source: unescape('compile%0A%20%20%20%20self%20disableSaveButton.%0A%20%20%20%20selectedTab%20%3D%20%23comment%20ifTrue%3A%20%5B%0A%09selectedClass%20ifNotNil%3A%20%5B%0A%09%20%20%20%20self%20compileClassComment%5D%5D.%0A%20%20%20%20%28selectedProtocol%20notNil%20or%3A%20%5BselectedMethod%20notNil%5D%29%0A%09ifFalse%3A%20%5Bself%20compileDefinition%5D%0A%09ifTrue%3A%20%5Bself%20compileMethodDefinition%5D'),
|
1113
|
+
messageSends: ["disableSaveButton", "ifTrue:", unescape("%3D"), "ifNotNil:", "compileClassComment", "ifFalse:ifTrue:", "or:", "notNil", "compileDefinition", "compileMethodDefinition"],
|
1114
|
+
referencedClasses: []
|
1115
|
+
}),
|
1116
|
+
smalltalk.Browser);
|
1117
|
+
|
1118
|
+
smalltalk.addMethod(
|
1119
|
+
'_compileClassComment',
|
1120
|
+
smalltalk.method({
|
1121
|
+
selector: 'compileClassComment',
|
1122
|
+
category: 'actions',
|
1123
|
+
fn: function (){
|
1124
|
+
var self=this;
|
1125
|
+
smalltalk.send(self['@selectedClass'], "_comment_", [smalltalk.send(self['@sourceArea'], "_val", [])]);
|
1126
|
+
return self;},
|
1127
|
+
source: unescape('compileClassComment%0A%20%20%20%20selectedClass%20comment%3A%20sourceArea%20val'),
|
1128
|
+
messageSends: ["comment:", "val"],
|
1129
|
+
referencedClasses: []
|
1130
|
+
}),
|
1131
|
+
smalltalk.Browser);
|
1132
|
+
|
1133
|
+
smalltalk.addMethod(
|
1134
|
+
'_compileMethodDefinition',
|
1135
|
+
smalltalk.method({
|
1136
|
+
selector: 'compileMethodDefinition',
|
1137
|
+
category: 'actions',
|
1138
|
+
fn: function (){
|
1139
|
+
var self=this;
|
1140
|
+
smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["instance"]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [self['@selectedClass']]);}), (function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [smalltalk.send(self['@selectedClass'], "_class", [])]);})]);
|
1141
|
+
return self;},
|
1142
|
+
source: unescape('compileMethodDefinition%0A%20%20%20%20selectedTab%20%3D%20%23instance%0A%09ifTrue%3A%20%5Bself%20compileMethodDefinitionFor%3A%20selectedClass%5D%0A%09ifFalse%3A%20%5Bself%20compileMethodDefinitionFor%3A%20selectedClass%20class%5D'),
|
1143
|
+
messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "compileMethodDefinitionFor:", "class"],
|
1144
|
+
referencedClasses: []
|
1145
|
+
}),
|
1146
|
+
smalltalk.Browser);
|
1147
|
+
|
1148
|
+
smalltalk.addMethod(
|
1149
|
+
'_compileMethodDefinitionFor_',
|
1150
|
+
smalltalk.method({
|
1151
|
+
selector: 'compileMethodDefinitionFor:',
|
1152
|
+
category: 'actions',
|
1153
|
+
fn: function (aClass){
|
1154
|
+
var self=this;
|
1155
|
+
try{var compiler=nil;
|
1156
|
+
var method=nil;
|
1157
|
+
var source=nil;
|
1158
|
+
var node=nil;
|
1159
|
+
source=smalltalk.send(self['@sourceArea'], "_val", []);
|
1160
|
+
smalltalk.send(self['@selectedProtocol'], "_ifNil_", [(function(){return self['@selectedProtocol']=smalltalk.send(self['@selectedMethod'], "_category", []);})]);
|
1161
|
+
compiler=smalltalk.send(smalltalk.Compiler, "_new", []);
|
1162
|
+
node=smalltalk.send(compiler, "_parse_", [source]);
|
1163
|
+
smalltalk.send(smalltalk.send(node, "_isParseFailure", []), "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_compileMethodDefinitionFor_', fn: function(){return smalltalk.send(self, "_alert_", [smalltalk.send(smalltalk.send(smalltalk.send("PARSE ERROR: ", "__comma", [smalltalk.send(node, "_reason", [])]), "__comma", [unescape("%2C%20position%3A%20")]), "__comma", [smalltalk.send(smalltalk.send(node, "_position", []), "_asString", [])])])}})})();})]);
|
1164
|
+
smalltalk.send(compiler, "_currentClass_", [aClass]);
|
1165
|
+
method=smalltalk.send(compiler, "_eval_", [smalltalk.send(compiler, "_compileNode_", [node])]);
|
1166
|
+
smalltalk.send(method, "_category_", [self['@selectedProtocol']]);
|
1167
|
+
smalltalk.send(smalltalk.send(compiler, "_unknownVariables", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send(unescape("Declare%20%27"), "__comma", [each]), "__comma", [unescape("%27%20as%20instance%20variable%3F")])]), "_ifTrue_", [(function(){smalltalk.send(self, "_addInstanceVariableNamed_toClass_", [each, aClass]);return (function(){throw({name: 'stReturn', selector: '_compileMethodDefinitionFor_', fn: function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [aClass])}})})();})]);})]);
|
1168
|
+
smalltalk.send(aClass, "_addCompiledMethod_", [method]);
|
1169
|
+
smalltalk.send(compiler, "_setupClass_", [aClass]);
|
1170
|
+
smalltalk.send(self, "_updateMethodsList", []);
|
1171
|
+
smalltalk.send(self, "_selectMethod_", [method]);
|
1172
|
+
return self;
|
1173
|
+
} catch(e) {if(e.name === 'stReturn' && e.selector === '_compileMethodDefinitionFor_'){return e.fn()} throw(e)}},
|
1174
|
+
source: unescape('compileMethodDefinitionFor%3A%20aClass%0A%20%20%20%20%7C%20compiler%20method%20source%20node%20%7C%0A%20%20%20%20source%20%3A%3D%20sourceArea%20val.%0A%20%20%20%20selectedProtocol%20ifNil%3A%20%5BselectedProtocol%20%3A%3D%20selectedMethod%20category%5D.%0A%20%20%20%20compiler%20%3A%3D%20Compiler%20new.%0A%20%20%20%20node%20%3A%3D%20compiler%20parse%3A%20source.%0A%20%20%20%20node%20isParseFailure%20ifTrue%3A%20%5B%0A%09%5Eself%20alert%3A%20%27PARSE%20ERROR%3A%20%27%2C%20node%20reason%2C%20%27%2C%20position%3A%20%27%2C%20node%20position%20asString%5D.%0A%20%20%20%20compiler%20currentClass%3A%20aClass.%0A%20%20%20%20method%20%3A%3D%20compiler%20eval%3A%20%28compiler%20compileNode%3A%20node%29.%0A%20%20%20%20method%20category%3A%20selectedProtocol.%0A%20%20%20%20compiler%20unknownVariables%20do%3A%20%5B%3Aeach%20%7C%0A%09%28self%20confirm%3A%20%27Declare%20%27%27%27%2C%20each%2C%20%27%27%27%20as%20instance%20variable%3F%27%29%20ifTrue%3A%20%5B%0A%09%09self%20addInstanceVariableNamed%3A%20each%20toClass%3A%20aClass.%0A%09%09%5Eself%20compileMethodDefinitionFor%3A%20aClass%5D%5D.%0A%20%20%20%20aClass%20addCompiledMethod%3A%20method.%0A%20%20%20%20compiler%20setupClass%3A%20aClass.%0A%20%20%20%20self%20updateMethodsList.%0A%20%20%20%20self%20selectMethod%3A%20method'),
|
1175
|
+
messageSends: ["val", "ifNil:", "category", "new", "parse:", "ifTrue:", "isParseFailure", "alert:", unescape("%2C"), "reason", "asString", "position", "currentClass:", "eval:", "compileNode:", "category:", "do:", "unknownVariables", "confirm:", "addInstanceVariableNamed:toClass:", "compileMethodDefinitionFor:", "addCompiledMethod:", "setupClass:", "updateMethodsList", "selectMethod:"],
|
1176
|
+
referencedClasses: [smalltalk.Compiler]
|
1177
|
+
}),
|
1178
|
+
smalltalk.Browser);
|
1179
|
+
|
1180
|
+
smalltalk.addMethod(
|
1181
|
+
'_compileDefinition',
|
1182
|
+
smalltalk.method({
|
1183
|
+
selector: 'compileDefinition',
|
1184
|
+
category: 'actions',
|
1185
|
+
fn: function (){
|
1186
|
+
var self=this;
|
1187
|
+
var newClass=nil;
|
1188
|
+
newClass=smalltalk.send(smalltalk.send(smalltalk.Compiler, "_new", []), "_loadExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(self['@sourceArea'], "_textarea", []), "_asJQuery", []), "_val", [])]);
|
1189
|
+
(function($rec){smalltalk.send($rec, "_resetClassesList", []);smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
|
1190
|
+
return self;},
|
1191
|
+
source: unescape('compileDefinition%0A%20%20%20%20%7C%20newClass%20%7C%0A%20%20%20%20newClass%20%3A%3D%20Compiler%20new%20loadExpression%3A%20sourceArea%20textarea%20asJQuery%20val.%0A%20%20%20%20self%20%0A%09resetClassesList%3B%0A%09updateCategoriesList%3B%0A%09updateClassesList'),
|
1192
|
+
messageSends: ["loadExpression:", "new", "val", "asJQuery", "textarea", "resetClassesList", "updateCategoriesList", "updateClassesList"],
|
1193
|
+
referencedClasses: [smalltalk.Compiler]
|
1194
|
+
}),
|
1195
|
+
smalltalk.Browser);
|
1196
|
+
|
1197
|
+
smalltalk.addMethod(
|
1198
|
+
'_commitCategory',
|
1199
|
+
smalltalk.method({
|
1200
|
+
selector: 'commitCategory',
|
1201
|
+
category: 'actions',
|
1202
|
+
fn: function (){
|
1203
|
+
var self=this;
|
1204
|
+
smalltalk.send(self['@selectedCategory'], "_ifNotNil_", [(function(){(function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send(smalltalk.Exporter, "_new", []), "_exportCategory_", [self['@selectedCategory']])]);smalltalk.send($rec, "_at_put_", ["error", (function(){return smalltalk.send(self, "_alert_", [unescape("Commit%20failed%21")]);})]);return smalltalk.send($rec, "_send", []);})(smalltalk.send(smalltalk.Ajax, "_url_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_commitPathJs", []), "__comma", [unescape("/")]), "__comma", [self['@selectedCategory']]), "__comma", [".js"])]));(function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send(smalltalk.Exporter, "_new", []), "_exportCategory_", [self['@selectedCategory']])]);smalltalk.send($rec, "_at_put_", ["error", (function(){return smalltalk.send(self, "_alert_", [unescape("Commit%20failed%21")]);})]);return smalltalk.send($rec, "_send", []);})(smalltalk.send(smalltalk.Ajax, "_url_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_commitPathJs", []), "__comma", [unescape("/")]), "__comma", [self['@selectedCategory']]), "__comma", [".deploy.js"])]));return (function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send(smalltalk.ChunkExporter, "_new", []), "_exportCategory_", [self['@selectedCategory']])]);smalltalk.send($rec, "_at_put_", ["error", (function(){return smalltalk.send(self, "_alert_", [unescape("Commit%20failed%21")]);})]);return smalltalk.send($rec, "_send", []);})(smalltalk.send(smalltalk.Ajax, "_url_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_commitPathSt", []), "__comma", [unescape("/")]), "__comma", [self['@selectedCategory']]), "__comma", [".st"])]));})]);
|
1205
|
+
return self;},
|
1206
|
+
source: unescape('commitCategory%0A%20%20%20%20selectedCategory%20ifNotNil%3A%20%5B%0A%09%28Ajax%20url%3A%20self%20class%20commitPathJs%2C%20%27/%27%2C%20selectedCategory%2C%20%27.js%27%29%0A%09%20%20%20%20at%3A%20%27type%27%20put%3A%20%27PUT%27%3B%0A%09%20%20%20%20at%3A%20%27data%27%20put%3A%20%28Exporter%20new%20exportCategory%3A%20selectedCategory%29%3B%0A%09%20%20%20%20at%3A%20%27error%27%20put%3A%20%5Bself%20alert%3A%20%27Commit%20failed%21%27%5D%3B%0A%09%20%20%20%20send.%0A%09%28Ajax%20url%3A%20self%20class%20commitPathJs%2C%20%27/%27%2C%20selectedCategory%2C%20%27.deploy.js%27%29%0A%09%20%20%20%20at%3A%20%27type%27%20put%3A%20%27PUT%27%3B%0A%09%20%20%20%20at%3A%20%27data%27%20put%3A%20%28Exporter%20new%20exportCategory%3A%20selectedCategory%29%3B%0A%09%20%20%20%20at%3A%20%27error%27%20put%3A%20%5Bself%20alert%3A%20%27Commit%20failed%21%27%5D%3B%0A%09%20%20%20%20send.%0A%09%28Ajax%20url%3A%20self%20class%20commitPathSt%2C%20%27/%27%2C%20selectedCategory%2C%20%27.st%27%29%0A%09%20%20%20%20at%3A%20%27type%27%20put%3A%20%27PUT%27%3B%0A%09%20%20%20%20at%3A%20%27data%27%20put%3A%20%28ChunkExporter%20new%20exportCategory%3A%20selectedCategory%29%3B%0A%09%20%20%20%20at%3A%20%27error%27%20put%3A%20%5Bself%20alert%3A%20%27Commit%20failed%21%27%5D%3B%0A%09%20%20%20%20send%5D'),
|
1207
|
+
messageSends: ["ifNotNil:", "at:put:", "exportCategory:", "new", "alert:", "send", "url:", unescape("%2C"), "commitPathJs", "class", "commitPathSt"],
|
1208
|
+
referencedClasses: [smalltalk.Exporter,smalltalk.Ajax,smalltalk.ChunkExporter]
|
1209
|
+
}),
|
1210
|
+
smalltalk.Browser);
|
1211
|
+
|
1212
|
+
smalltalk.addMethod(
|
1213
|
+
'_cancelChanges',
|
1214
|
+
smalltalk.method({
|
1215
|
+
selector: 'cancelChanges',
|
1216
|
+
category: 'actions',
|
1217
|
+
fn: function (){
|
1218
|
+
var self=this;
|
1219
|
+
return smalltalk.send(self['@unsavedChanges'], "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_confirm_", [unescape("Cancel%20changes%3F")]);}), (function(){return true;})]);
|
1220
|
+
return self;},
|
1221
|
+
source: unescape('cancelChanges%0A%20%20%20%20%5EunsavedChanges%20%0A%09ifTrue%3A%20%5Bself%20confirm%3A%20%27Cancel%20changes%3F%27%5D%0A%09ifFalse%3A%20%5Btrue%5D'),
|
1222
|
+
messageSends: ["ifTrue:ifFalse:", "confirm:"],
|
1223
|
+
referencedClasses: []
|
1224
|
+
}),
|
1225
|
+
smalltalk.Browser);
|
1226
|
+
|
1227
|
+
smalltalk.addMethod(
|
1228
|
+
'_removeClass',
|
1229
|
+
smalltalk.method({
|
1230
|
+
selector: 'removeClass',
|
1231
|
+
category: 'actions',
|
1232
|
+
fn: function (){
|
1233
|
+
var self=this;
|
1234
|
+
smalltalk.send(smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send("Do you really want to remove ", "__comma", [smalltalk.send(self['@selectedClass'], "_name", [])]), "__comma", [unescape("%3F")])]), "_ifTrue_", [(function(){smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_removeClass_", [self['@selectedClass']]);smalltalk.send(self, "_resetClassesList", []);return smalltalk.send(self, "_selectClass_", [nil]);})]);
|
1235
|
+
return self;},
|
1236
|
+
source: unescape('removeClass%0A%20%20%20%20%28self%20confirm%3A%20%27Do%20you%20really%20want%20to%20remove%20%27%2C%20selectedClass%20name%2C%20%27%3F%27%29%0A%09ifTrue%3A%20%5B%0A%09%20%20%20%20Smalltalk%20current%20removeClass%3A%20selectedClass.%0A%09%20%20%20%20self%20resetClassesList.%0A%09%20%20%20%20self%20selectClass%3A%20nil%5D'),
|
1237
|
+
messageSends: ["ifTrue:", "confirm:", unescape("%2C"), "name", "removeClass:", "current", "resetClassesList", "selectClass:"],
|
1238
|
+
referencedClasses: [smalltalk.Smalltalk]
|
1239
|
+
}),
|
1240
|
+
smalltalk.Browser);
|
1241
|
+
|
1242
|
+
smalltalk.addMethod(
|
1243
|
+
'_removeMethod',
|
1244
|
+
smalltalk.method({
|
1245
|
+
selector: 'removeMethod',
|
1246
|
+
category: 'actions',
|
1247
|
+
fn: function (){
|
1248
|
+
var self=this;
|
1249
|
+
smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send(unescape("Do%20you%20really%20want%20to%20remove%20%23"), "__comma", [smalltalk.send(self['@selectedMethod'], "_selector", [])]), "__comma", [unescape("%3F")])]), "_ifTrue_", [(function(){smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["instance"]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]);return smalltalk.send(self, "_selectMethod_", [nil]);})]);})]);
|
1250
|
+
return self;},
|
1251
|
+
source: unescape('removeMethod%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09%28self%20confirm%3A%20%27Do%20you%20really%20want%20to%20remove%20%23%27%2C%20selectedMethod%20selector%2C%20%27%3F%27%29%0A%09%20%20%20%20ifTrue%3A%20%5B%0A%09%09selectedTab%20%3D%20%23instance%20%0A%09%09%09ifTrue%3A%20%5BselectedClass%20removeCompiledMethod%3A%20selectedMethod%5D%0A%09%09%09ifFalse%3A%20%5BselectedClass%20class%20removeCompiledMethod%3A%20selectedMethod%5D.%0A%09%09self%20selectMethod%3A%20nil%5D%5D'),
|
1252
|
+
messageSends: ["ifTrue:", "cancelChanges", "confirm:", unescape("%2C"), "selector", "ifTrue:ifFalse:", unescape("%3D"), "removeCompiledMethod:", "class", "selectMethod:"],
|
1253
|
+
referencedClasses: []
|
1254
|
+
}),
|
1255
|
+
smalltalk.Browser);
|
1256
|
+
|
1257
|
+
smalltalk.addMethod(
|
1258
|
+
'_setMethodProtocol_',
|
1259
|
+
smalltalk.method({
|
1260
|
+
selector: 'setMethodProtocol:',
|
1261
|
+
category: 'actions',
|
1262
|
+
fn: function (aString){
|
1263
|
+
var self=this;
|
1264
|
+
smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_protocols", []), "_includes_", [aString]), "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_addNewProtocol", []);}), (function(){smalltalk.send(self['@selectedMethod'], "_category_", [aString]);self['@selectedProtocol']=aString;self['@selectedMethod']=self['@selectedMethod'];return (function($rec){smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);})]);
|
1265
|
+
return self;},
|
1266
|
+
source: unescape('setMethodProtocol%3A%20aString%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09%28self%20protocols%20includes%3A%20aString%29%0A%09%20%20%20%20ifFalse%3A%20%5Bself%20addNewProtocol%5D%0A%09%20%20%20%20ifTrue%3A%20%5B%0A%09%09selectedMethod%20category%3A%20aString.%0A%09%09selectedProtocol%20%3A%3D%20aString.%0A%09%09selectedMethod%20%3A%3D%20selectedMethod.%0A%09%09self%20%0A%09%09%20%20%20%20updateProtocolsList%3B%0A%09%09%20%20%20%20updateMethodsList%3B%0A%09%09%20%20%20%20updateSourceAndButtons%5D%5D'),
|
1267
|
+
messageSends: ["ifTrue:", "cancelChanges", "ifFalse:ifTrue:", "includes:", "protocols", "addNewProtocol", "category:", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
|
1268
|
+
referencedClasses: []
|
1269
|
+
}),
|
1270
|
+
smalltalk.Browser);
|
1271
|
+
|
1272
|
+
smalltalk.addMethod(
|
1273
|
+
'_addNewProtocol',
|
1274
|
+
smalltalk.method({
|
1275
|
+
selector: 'addNewProtocol',
|
1276
|
+
category: 'actions',
|
1277
|
+
fn: function (){
|
1278
|
+
var self=this;
|
1279
|
+
var newProtocol=nil;
|
1280
|
+
newProtocol=smalltalk.send(self, "_prompt_", ["New method protocol"]);
|
1281
|
+
smalltalk.send(smalltalk.send(newProtocol, "_notEmpty", []), "_ifTrue_", [(function(){smalltalk.send(self['@selectedMethod'], "_category_", [newProtocol]);return smalltalk.send(self, "_setMethodProtocol_", [newProtocol]);})]);
|
1282
|
+
return self;},
|
1283
|
+
source: unescape('addNewProtocol%0A%20%20%20%20%7C%20newProtocol%20%7C%0A%20%20%20%20newProtocol%20%3A%3D%20self%20prompt%3A%20%27New%20method%20protocol%27.%0A%20%20%20%20newProtocol%20notEmpty%20ifTrue%3A%20%5B%0A%09selectedMethod%20category%3A%20newProtocol.%0A%09self%20setMethodProtocol%3A%20newProtocol%5D'),
|
1284
|
+
messageSends: ["prompt:", "ifTrue:", "notEmpty", "category:", "setMethodProtocol:"],
|
1285
|
+
referencedClasses: []
|
1286
|
+
}),
|
1287
|
+
smalltalk.Browser);
|
1288
|
+
|
1289
|
+
smalltalk.addMethod(
|
1290
|
+
'_selectCategory_',
|
1291
|
+
smalltalk.method({
|
1292
|
+
selector: 'selectCategory:',
|
1293
|
+
category: 'actions',
|
1294
|
+
fn: function (aCategory){
|
1295
|
+
var self=this;
|
1296
|
+
smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){self['@selectedCategory']=aCategory;self['@selectedClass']=self['@selectedProtocol']=self['@selectedMethod']=nil;smalltalk.send(self, "_resetClassesList", []);return (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
|
1297
|
+
return self;},
|
1298
|
+
source: unescape('selectCategory%3A%20aCategory%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedCategory%20%3A%3D%20aCategory.%0A%09selectedClass%20%3A%3D%20selectedProtocol%20%3A%3D%20selectedMethod%20%3A%3D%20%20nil.%0A%09self%20resetClassesList.%0A%09self%20%0A%09%20%20%20%20updateCategoriesList%3B%0A%09%20%20%20%20updateClassesList%3B%0A%09%20%20%20%20updateProtocolsList%3B%0A%09%20%20%20%20updateMethodsList%3B%0A%09%20%20%20%20updateSourceAndButtons%5D'),
|
1299
|
+
messageSends: ["ifTrue:", "cancelChanges", "resetClassesList", "updateCategoriesList", "updateClassesList", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
|
1300
|
+
referencedClasses: []
|
1301
|
+
}),
|
1302
|
+
smalltalk.Browser);
|
1303
|
+
|
1304
|
+
smalltalk.addMethod(
|
1305
|
+
'_selectClass_',
|
1306
|
+
smalltalk.method({
|
1307
|
+
selector: 'selectClass:',
|
1308
|
+
category: 'actions',
|
1309
|
+
fn: function (aClass){
|
1310
|
+
var self=this;
|
1311
|
+
smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){self['@selectedClass']=aClass;self['@selectedProtocol']=self['@selectedMethod']=nil;return (function($rec){smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
|
1312
|
+
return self;},
|
1313
|
+
source: unescape('selectClass%3A%20aClass%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedClass%20%3A%3D%20aClass.%0A%09selectedProtocol%20%3A%3D%20selectedMethod%20%3A%3D%20nil.%0A%09self%20%0A%09%20%20%20%20updateClassesList%3B%0A%09%20%20%20%20updateProtocolsList%3B%0A%09%20%20%20%20updateMethodsList%3B%0A%09%20%20%20%20updateSourceAndButtons%5D'),
|
1314
|
+
messageSends: ["ifTrue:", "cancelChanges", "updateClassesList", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
|
1315
|
+
referencedClasses: []
|
1316
|
+
}),
|
1317
|
+
smalltalk.Browser);
|
1318
|
+
|
1319
|
+
smalltalk.addMethod(
|
1320
|
+
'_selectProtocol_',
|
1321
|
+
smalltalk.method({
|
1322
|
+
selector: 'selectProtocol:',
|
1323
|
+
category: 'actions',
|
1324
|
+
fn: function (aString){
|
1325
|
+
var self=this;
|
1326
|
+
smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){self['@selectedProtocol']=aString;self['@selectedMethod']=nil;return (function($rec){smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
|
1327
|
+
return self;},
|
1328
|
+
source: unescape('selectProtocol%3A%20aString%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedProtocol%20%3A%3D%20aString.%0A%09selectedMethod%20%3A%3D%20nil.%0A%09self%20%0A%09%20%20%20%20updateProtocolsList%3B%0A%09%20%20%20%20updateMethodsList%3B%0A%09%20%20%20%20updateSourceAndButtons%5D'),
|
1329
|
+
messageSends: ["ifTrue:", "cancelChanges", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
|
1330
|
+
referencedClasses: []
|
1331
|
+
}),
|
1332
|
+
smalltalk.Browser);
|
1333
|
+
|
1334
|
+
smalltalk.addMethod(
|
1335
|
+
'_selectMethod_',
|
1336
|
+
smalltalk.method({
|
1337
|
+
selector: 'selectMethod:',
|
1338
|
+
category: 'actions',
|
1339
|
+
fn: function (aMethod){
|
1340
|
+
var self=this;
|
1341
|
+
smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){self['@selectedMethod']=aMethod;return (function($rec){smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
|
1342
|
+
return self;},
|
1343
|
+
source: unescape('selectMethod%3A%20aMethod%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedMethod%20%3A%3D%20aMethod.%0A%09self%20%0A%09%20%20%20%20updateProtocolsList%3B%0A%09%20%20%20%20updateMethodsList%3B%0A%09%20%20%20%20updateSourceAndButtons%5D'),
|
1344
|
+
messageSends: ["ifTrue:", "cancelChanges", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
|
1345
|
+
referencedClasses: []
|
1346
|
+
}),
|
1347
|
+
smalltalk.Browser);
|
1348
|
+
|
1349
|
+
smalltalk.addMethod(
|
1350
|
+
'_selectTab_',
|
1351
|
+
smalltalk.method({
|
1352
|
+
selector: 'selectTab:',
|
1353
|
+
category: 'actions',
|
1354
|
+
fn: function (aString){
|
1355
|
+
var self=this;
|
1356
|
+
smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){self['@selectedTab']=aString;smalltalk.send(self, "_selectProtocol_", [nil]);return smalltalk.send(self, "_updateTabsList", []);})]);
|
1357
|
+
return self;},
|
1358
|
+
source: unescape('selectTab%3A%20aString%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedTab%20%3A%3D%20aString.%0A%09self%20selectProtocol%3A%20nil.%0A%09self%20updateTabsList%5D'),
|
1359
|
+
messageSends: ["ifTrue:", "cancelChanges", "selectProtocol:", "updateTabsList"],
|
1360
|
+
referencedClasses: []
|
1361
|
+
}),
|
1362
|
+
smalltalk.Browser);
|
1363
|
+
|
1364
|
+
smalltalk.addMethod(
|
1365
|
+
'_renameClass',
|
1366
|
+
smalltalk.method({
|
1367
|
+
selector: 'renameClass',
|
1368
|
+
category: 'actions',
|
1369
|
+
fn: function (){
|
1370
|
+
var self=this;
|
1371
|
+
var newName=nil;
|
1372
|
+
newName=smalltalk.send(self, "_prompt_", [smalltalk.send("Rename class ", "__comma", [smalltalk.send(self['@selectedClass'], "_name", [])])]);
|
1373
|
+
smalltalk.send(smalltalk.send(newName, "_notEmpty", []), "_ifTrue_", [(function(){smalltalk.send(self['@selectedClass'], "_rename_", [newName]);return (function($rec){smalltalk.send($rec, "_updateClassesList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
|
1374
|
+
return self;},
|
1375
|
+
source: unescape('renameClass%0A%20%20%20%20%7C%20newName%20%7C%0A%20%20%20%20newName%20%3A%3D%20self%20prompt%3A%20%27Rename%20class%20%27%2C%20selectedClass%20name.%0A%20%20%20%20newName%20notEmpty%20ifTrue%3A%20%5B%0A%09selectedClass%20rename%3A%20newName.%0A%09self%20%0A%09%09updateClassesList%3B%0A%09%09updateSourceAndButtons%5D'),
|
1376
|
+
messageSends: ["prompt:", unescape("%2C"), "name", "ifTrue:", "notEmpty", "rename:", "updateClassesList", "updateSourceAndButtons"],
|
1377
|
+
referencedClasses: []
|
1378
|
+
}),
|
1379
|
+
smalltalk.Browser);
|
1380
|
+
|
1381
|
+
smalltalk.addMethod(
|
1382
|
+
'_addInstanceVariableNamed_toClass_',
|
1383
|
+
smalltalk.method({
|
1384
|
+
selector: 'addInstanceVariableNamed:toClass:',
|
1385
|
+
category: 'actions',
|
1386
|
+
fn: function (aString, aClass){
|
1387
|
+
var self=this;
|
1388
|
+
smalltalk.send(smalltalk.send(smalltalk.ClassBuilder, "_new", []), "_addSubclassOf_named_instanceVariableNames_", [smalltalk.send(aClass, "_superclass", []), smalltalk.send(aClass, "_name", []), (function($rec){smalltalk.send($rec, "_add_", [aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(smalltalk.send(aClass, "_instanceVariableNames", []), "_copy", []))]);
|
1389
|
+
return self;},
|
1390
|
+
source: unescape('addInstanceVariableNamed%3A%20aString%20toClass%3A%20aClass%0A%09ClassBuilder%20new%0A%09%09addSubclassOf%3A%20aClass%20superclass%20named%3A%20aClass%20name%20instanceVariableNames%3A%20%28aClass%20instanceVariableNames%20copy%20add%3A%20aString%3B%20yourself%29'),
|
1391
|
+
messageSends: ["addSubclassOf:named:instanceVariableNames:", "new", "superclass", "name", "add:", "yourself", "copy", "instanceVariableNames"],
|
1392
|
+
referencedClasses: [smalltalk.ClassBuilder]
|
1393
|
+
}),
|
1394
|
+
smalltalk.Browser);
|
1395
|
+
|
1396
|
+
smalltalk.addMethod(
|
1397
|
+
'_searchReferencesOf_',
|
1398
|
+
smalltalk.method({
|
1399
|
+
selector: 'searchReferencesOf:',
|
1400
|
+
category: 'actions',
|
1401
|
+
fn: function (aString){
|
1402
|
+
var self=this;
|
1403
|
+
smalltalk.send(smalltalk.ReferencesBrowser, "_search_", [aString]);
|
1404
|
+
return self;},
|
1405
|
+
source: unescape('searchReferencesOf%3A%20aString%0A%09ReferencesBrowser%20search%3A%20aString'),
|
1406
|
+
messageSends: ["search:"],
|
1407
|
+
referencedClasses: []
|
1408
|
+
}),
|
1409
|
+
smalltalk.Browser);
|
1410
|
+
|
1411
|
+
smalltalk.addMethod(
|
1412
|
+
'_searchClassReferences',
|
1413
|
+
smalltalk.method({
|
1414
|
+
selector: 'searchClassReferences',
|
1415
|
+
category: 'actions',
|
1416
|
+
fn: function (){
|
1417
|
+
var self=this;
|
1418
|
+
smalltalk.send(smalltalk.ReferencesBrowser, "_search_", [smalltalk.send(self['@selectedClass'], "_name", [])]);
|
1419
|
+
return self;},
|
1420
|
+
source: unescape('searchClassReferences%0A%09ReferencesBrowser%20search%3A%20selectedClass%20name'),
|
1421
|
+
messageSends: ["search:", "name"],
|
1422
|
+
referencedClasses: []
|
1423
|
+
}),
|
1424
|
+
smalltalk.Browser);
|
1425
|
+
|
1426
|
+
smalltalk.addMethod(
|
1427
|
+
'_search_',
|
1428
|
+
smalltalk.method({
|
1429
|
+
selector: 'search:',
|
1430
|
+
category: 'actions',
|
1431
|
+
fn: function (aString){
|
1432
|
+
var self=this;
|
1433
|
+
smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){var searchedClass=nil;
|
1434
|
+
searchedClass=smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_at_", [aString]);return smalltalk.send(smalltalk.send(searchedClass, "_isClass", []), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_openOn_", [searchedClass]);}), (function(){return smalltalk.send(self, "_searchReferencesOf_", [aString]);})]);})]);
|
1435
|
+
return self;},
|
1436
|
+
source: unescape('search%3A%20aString%0A%09self%20cancelChanges%20ifTrue%3A%20%5B%7C%20searchedClass%20%7C%0A%09%09searchedClass%20%3A%3D%20Smalltalk%20current%20at%3A%20aString.%0A%09%09searchedClass%20isClass%0A%09%09%09ifTrue%3A%20%5Bself%20class%20openOn%3A%20searchedClass%5D%0A%09%09%09ifFalse%3A%20%5Bself%20searchReferencesOf%3A%20aString%5D%5D'),
|
1437
|
+
messageSends: ["ifTrue:", "cancelChanges", "at:", "current", "ifTrue:ifFalse:", "isClass", "openOn:", "class", "searchReferencesOf:"],
|
1438
|
+
referencedClasses: [smalltalk.Smalltalk]
|
1439
|
+
}),
|
1440
|
+
smalltalk.Browser);
|
1441
|
+
|
1442
|
+
smalltalk.addMethod(
|
1443
|
+
'_initialize',
|
1444
|
+
smalltalk.method({
|
1445
|
+
selector: 'initialize',
|
1446
|
+
category: 'initialization',
|
1447
|
+
fn: function (){
|
1448
|
+
var self=this;
|
1449
|
+
smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
|
1450
|
+
self['@selectedTab']="instance";
|
1451
|
+
self['@unsavedChanges']=false;
|
1452
|
+
return self;},
|
1453
|
+
source: unescape('initialize%0A%20%20%20%20super%20initialize.%0A%20%20%20%20selectedTab%20%3A%3D%20%23instance.%0A%20%20%20%20unsavedChanges%20%3A%3D%20false'),
|
1454
|
+
messageSends: ["initialize"],
|
1455
|
+
referencedClasses: []
|
1456
|
+
}),
|
1457
|
+
smalltalk.Browser);
|
1458
|
+
|
1459
|
+
smalltalk.addMethod(
|
1460
|
+
'_renderBoxOn_',
|
1461
|
+
smalltalk.method({
|
1462
|
+
selector: 'renderBoxOn:',
|
1463
|
+
category: 'rendering',
|
1464
|
+
fn: function (html){
|
1465
|
+
var self=this;
|
1466
|
+
(function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);smalltalk.send($rec, "_renderTabsOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
|
1467
|
+
return self;},
|
1468
|
+
source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20self%20%0A%09renderTopPanelOn%3A%20html%3B%0A%09renderTabsOn%3A%20html%3B%0A%09renderBottomPanelOn%3A%20html'),
|
1469
|
+
messageSends: ["renderTopPanelOn:", "renderTabsOn:", "renderBottomPanelOn:"],
|
1470
|
+
referencedClasses: []
|
1471
|
+
}),
|
1472
|
+
smalltalk.Browser);
|
1473
|
+
|
1474
|
+
smalltalk.addMethod(
|
1475
|
+
'_renderTopPanelOn_',
|
1476
|
+
smalltalk.method({
|
1477
|
+
selector: 'renderTopPanelOn:',
|
1478
|
+
category: 'rendering',
|
1479
|
+
fn: function (html){
|
1480
|
+
var self=this;
|
1481
|
+
(function($rec){smalltalk.send($rec, "_class_", ["top"]);return smalltalk.send($rec, "_with_", [(function(){smalltalk.send(self, "_renderInputOn_", [html]);self['@categoriesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser categories"]);self['@commitButton']=(function($rec){smalltalk.send($rec, "_class_", ["jt_commit"]);smalltalk.send($rec, "_title_", ["Commit classes in this category to disk"]);smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_commitCategory", []);})]);return smalltalk.send($rec, "_with_", ["Commit category"]);})(smalltalk.send(html, "_button", []));self['@classesList']=smalltalk.send(smalltalk.ClassesList, "_on_", [self]);smalltalk.send(self['@classesList'], "_renderOn_", [html]);self['@protocolsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser protocols"]);self['@methodsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser methods"]);(function($rec){smalltalk.send($rec, "_updateCategoriesList", []);smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);return smalltalk.send($rec, "_updateMethodsList", []);})(self);return smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["jt_clear"]);})]);})(smalltalk.send(html, "_div", []));
|
1482
|
+
return self;},
|
1483
|
+
source: unescape('renderTopPanelOn%3A%20html%0A%20%20%20%20html%20div%20%0A%09class%3A%20%27top%27%3B%20%0A%09with%3A%20%5B%0A%09%20%20%20%20self%20renderInputOn%3A%20html.%0A%09%20%20%20%20categoriesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%20categories%27.%0A%09%20%20%20%20commitButton%20%3A%3D%20html%20button%20%0A%09%09class%3A%20%27jt_commit%27%3B%0A%09%09title%3A%20%27Commit%20classes%20in%20this%20category%20to%20disk%27%3B%0A%09%09onClick%3A%20%5Bself%20commitCategory%5D%3B%0A%09%09with%3A%20%27Commit%20category%27.%0A%09%20%20%20%20classesList%20%3A%3D%20ClassesList%20on%3A%20self.%0A%09%20%20%20%20classesList%20renderOn%3A%20html.%0A%09%20%20%20%20protocolsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%20protocols%27.%0A%09%20%20%20%20methodsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%20methods%27.%0A%09%20%20%20%20self%0A%09%09updateCategoriesList%3B%0A%09%09updateClassesList%3B%0A%09%09updateProtocolsList%3B%0A%09%09updateMethodsList.%0A%09%20%20%20%20html%20div%20class%3A%20%27jt_clear%27%5D'),
|
1484
|
+
messageSends: ["class:", "with:", "renderInputOn:", "ul", "title:", "onClick:", "commitCategory", "button", "on:", "renderOn:", "updateCategoriesList", "updateClassesList", "updateProtocolsList", "updateMethodsList", "div"],
|
1485
|
+
referencedClasses: [smalltalk.nil]
|
1486
|
+
}),
|
1487
|
+
smalltalk.Browser);
|
1488
|
+
|
1489
|
+
smalltalk.addMethod(
|
1490
|
+
'_renderTabsOn_',
|
1491
|
+
smalltalk.method({
|
1492
|
+
selector: 'renderTabsOn:',
|
1493
|
+
category: 'rendering',
|
1494
|
+
fn: function (html){
|
1495
|
+
var self=this;
|
1496
|
+
self['@tabsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_tabs"]);
|
1497
|
+
smalltalk.send(self, "_updateTabsList", []);
|
1498
|
+
return self;},
|
1499
|
+
source: unescape('renderTabsOn%3A%20html%0A%20%20%20%20tabsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_tabs%27.%0A%20%20%20%20self%20updateTabsList.'),
|
1500
|
+
messageSends: ["class:", "ul", "updateTabsList"],
|
1501
|
+
referencedClasses: []
|
1502
|
+
}),
|
1503
|
+
smalltalk.Browser);
|
1504
|
+
|
1505
|
+
smalltalk.addMethod(
|
1506
|
+
'_renderBottomPanelOn_',
|
1507
|
+
smalltalk.method({
|
1508
|
+
selector: 'renderBottomPanelOn:',
|
1509
|
+
category: 'rendering',
|
1510
|
+
fn: function (html){
|
1511
|
+
var self=this;
|
1512
|
+
(function($rec){smalltalk.send($rec, "_class_", ["jt_sourceCode"]);return smalltalk.send($rec, "_with_", [(function(){self['@sourceArea']=smalltalk.send(smalltalk.SourceArea, "_new", []);smalltalk.send(self['@sourceArea'], "_renderOn_", [html]);return smalltalk.send(smalltalk.send(self['@sourceArea'], "_textarea", []), "_onKeyUp_", [(function(){return smalltalk.send(self, "_updateStatus", []);})]);})]);})(smalltalk.send(html, "_div", []));
|
1513
|
+
return self;},
|
1514
|
+
source: unescape('renderBottomPanelOn%3A%20html%0A%20%20%20%20html%20div%0A%09class%3A%20%27jt_sourceCode%27%3B%0A%09with%3A%20%5B%0A%09%20%20%20%20sourceArea%20%3A%3D%20SourceArea%20new.%0A%09%20%20%20%20sourceArea%20renderOn%3A%20html.%0A%09%20%20%20%20sourceArea%20textarea%0A%09%09onKeyUp%3A%20%5Bself%20updateStatus%5D%5D'),
|
1515
|
+
messageSends: ["class:", "with:", "new", "renderOn:", "onKeyUp:", "textarea", "updateStatus", "div"],
|
1516
|
+
referencedClasses: [smalltalk.nil]
|
1517
|
+
}),
|
1518
|
+
smalltalk.Browser);
|
1519
|
+
|
1520
|
+
smalltalk.addMethod(
|
1521
|
+
'_renderButtonsOn_',
|
1522
|
+
smalltalk.method({
|
1523
|
+
selector: 'renderButtonsOn:',
|
1524
|
+
category: 'rendering',
|
1525
|
+
fn: function (html){
|
1526
|
+
var self=this;
|
1527
|
+
self['@saveButton']=smalltalk.send(html, "_button", []);
|
1528
|
+
(function($rec){smalltalk.send($rec, "_with_", ["Save"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_compile", []);})]);})(self['@saveButton']);
|
1529
|
+
self['@methodButtons']=smalltalk.send(html, "_span", []);
|
1530
|
+
self['@classButtons']=smalltalk.send(html, "_span", []);
|
1531
|
+
(function($rec){smalltalk.send($rec, "_class_", ["right"]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", ["DoIt"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self['@sourceArea'], "_doIt", []);})]);})(smalltalk.send(html, "_button", []));(function($rec){smalltalk.send($rec, "_with_", ["PrintIt"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self['@sourceArea'], "_printIt", []);})]);})(smalltalk.send(html, "_button", []));return (function($rec){smalltalk.send($rec, "_with_", ["InspectIt"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self['@sourceArea'], "_inspectit", []);})]);})(smalltalk.send(html, "_button", []));})]);})(smalltalk.send(html, "_div", []));
|
1532
|
+
smalltalk.send(self, "_updateSourceAndButtons", []);
|
1533
|
+
return self;},
|
1534
|
+
source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20saveButton%20%3A%3D%20html%20button.%0A%20%20%20%20saveButton%20%0A%09with%3A%20%27Save%27%3B%0A%09onClick%3A%20%5Bself%20compile%5D.%0A%20%20%20%20methodButtons%20%3A%3D%20html%20span.%0A%20%20%20%20classButtons%20%3A%3D%20html%20span.%0A%20%20%20%20html%20div%20%0A%09class%3A%20%27right%27%3B%0A%09with%3A%20%5B%0A%09%09html%20button%0A%09%09%09with%3A%20%27DoIt%27%3B%0A%09%09%09onClick%3A%20%5BsourceArea%20doIt%5D.%0A%09%09html%20button%0A%09%09%09with%3A%20%27PrintIt%27%3B%0A%09%09%09onClick%3A%20%5BsourceArea%20printIt%5D.%0A%09%09html%20button%20with%3A%20%27InspectIt%27%3B%0A%09%09%09onClick%3A%20%5BsourceArea%20inspectit%5D%5D.%20%0A%20%20%20%20self%20updateSourceAndButtons'),
|
1535
|
+
messageSends: ["button", "with:", "onClick:", "compile", "span", "class:", "doIt", "printIt", "inspectit", "div", "updateSourceAndButtons"],
|
1536
|
+
referencedClasses: []
|
1537
|
+
}),
|
1538
|
+
smalltalk.Browser);
|
1539
|
+
|
1540
|
+
smalltalk.addMethod(
|
1541
|
+
'_renderInputOn_',
|
1542
|
+
smalltalk.method({
|
1543
|
+
selector: 'renderInputOn:',
|
1544
|
+
category: 'rendering',
|
1545
|
+
fn: function (html){
|
1546
|
+
var self=this;
|
1547
|
+
self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", []));
|
1548
|
+
smalltalk.send(self['@input'], "_onKeyPress_", [(function(event){return smalltalk.send(smalltalk.send(smalltalk.send(event, "_keyCode", []), "__eq", [(13)]), "_ifTrue_", [(function(){return smalltalk.send(self, "_search_", [smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val", [])]);})]);})]);
|
1549
|
+
return self;},
|
1550
|
+
source: unescape('renderInputOn%3A%20html%20%0A%09input%20%3A%3D%20html%20input%20%0A%09%09class%3A%20%27implementors%27%3B%0A%09%09yourself.%0A%09input%20onKeyPress%3A%20%5B%3Aevent%20%7C%0A%09%09event%20keyCode%20%3D%2013%20ifTrue%3A%20%5B%0A%09%09%09self%20search%3A%20input%20asJQuery%20val%5D%5D'),
|
1551
|
+
messageSends: ["class:", "yourself", "input", "onKeyPress:", "ifTrue:", unescape("%3D"), "keyCode", "search:", "val", "asJQuery"],
|
1552
|
+
referencedClasses: []
|
1553
|
+
}),
|
1554
|
+
smalltalk.Browser);
|
1555
|
+
|
1556
|
+
smalltalk.addMethod(
|
1557
|
+
'_canBeClosed',
|
1558
|
+
smalltalk.method({
|
1559
|
+
selector: 'canBeClosed',
|
1560
|
+
category: 'testing',
|
1561
|
+
fn: function (){
|
1562
|
+
var self=this;
|
1563
|
+
return true;
|
1564
|
+
return self;},
|
1565
|
+
source: unescape('canBeClosed%0A%09%5Etrue'),
|
1566
|
+
messageSends: [],
|
1567
|
+
referencedClasses: []
|
1568
|
+
}),
|
1569
|
+
smalltalk.Browser);
|
1570
|
+
|
1571
|
+
smalltalk.addMethod(
|
1572
|
+
'_updateCategoriesList',
|
1573
|
+
smalltalk.method({
|
1574
|
+
selector: 'updateCategoriesList',
|
1575
|
+
category: 'updating',
|
1576
|
+
fn: function (){
|
1577
|
+
var self=this;
|
1578
|
+
smalltalk.send(self['@categoriesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_categories", []), "_do_", [(function(each){var li=nil;
|
1579
|
+
var label=nil;
|
1580
|
+
smalltalk.send(smalltalk.send(each, "_isEmpty", []), "_ifTrue_ifFalse_", [(function(){return label="Unclassified";}), (function(){return label=each;})]);li=smalltalk.send(html, "_li", []);smalltalk.send(smalltalk.send(self['@selectedCategory'], "__eq", [each]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", [label]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectCategory_", [each]);})]);})(li);})]);})]);
|
1581
|
+
return self;},
|
1582
|
+
source: unescape('updateCategoriesList%0A%20%20%20%20categoriesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20categories%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20label%20%7C%0A%09%20%20%20%20each%20isEmpty%20%0A%09%09ifTrue%3A%20%5Blabel%20%3A%3D%20%27Unclassified%27%5D%0A%09%09ifFalse%3A%20%5Blabel%20%3A%3D%20each%5D.%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedCategory%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%0A%09%09with%3A%20label%3B%0A%09%09onClick%3A%20%5Bself%20selectCategory%3A%20each%5D%5D%5D'),
|
1583
|
+
messageSends: ["contents:", "do:", "categories", "ifTrue:ifFalse:", "isEmpty", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectCategory:"],
|
1584
|
+
referencedClasses: []
|
1585
|
+
}),
|
1586
|
+
smalltalk.Browser);
|
1587
|
+
|
1588
|
+
smalltalk.addMethod(
|
1589
|
+
'_updateClassesList',
|
1590
|
+
smalltalk.method({
|
1591
|
+
selector: 'updateClassesList',
|
1592
|
+
category: 'updating',
|
1593
|
+
fn: function (){
|
1594
|
+
var self=this;
|
1595
|
+
smalltalk.send(smalltalk.send(smalltalk.TabManager, "_current", []), "_update", []);
|
1596
|
+
smalltalk.send(self['@classesList'], "_updateNodes", []);
|
1597
|
+
return self;},
|
1598
|
+
source: unescape('updateClassesList%0A%20%20%20%20TabManager%20current%20update.%0A%20%20%20%20classesList%20updateNodes.%0A%20%20%20%20%22classesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20classes%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedClass%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%0A%09%09with%3A%20each%20name%3B%0A%09%09onClick%3A%20%5Bself%20selectClass%3A%20each%5D%5D%5D%22'),
|
1599
|
+
messageSends: ["update", "current", "updateNodes"],
|
1600
|
+
referencedClasses: [smalltalk.TabManager]
|
1601
|
+
}),
|
1602
|
+
smalltalk.Browser);
|
1603
|
+
|
1604
|
+
smalltalk.addMethod(
|
1605
|
+
'_updateProtocolsList',
|
1606
|
+
smalltalk.method({
|
1607
|
+
selector: 'updateProtocolsList',
|
1608
|
+
category: 'updating',
|
1609
|
+
fn: function (){
|
1610
|
+
var self=this;
|
1611
|
+
smalltalk.send(self['@protocolsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(each){var li=nil;
|
1612
|
+
li=smalltalk.send(html, "_li", []);smalltalk.send(smalltalk.send(self['@selectedProtocol'], "__eq", [each]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", [each]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectProtocol_", [each]);})]);})(li);})]);})]);
|
1613
|
+
return self;},
|
1614
|
+
source: unescape('updateProtocolsList%0A%20%20%20%20protocolsList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20protocols%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedProtocol%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%20%0A%09%09with%3A%20each%3B%0A%09%09onClick%3A%20%5Bself%20selectProtocol%3A%20each%5D%5D%5D'),
|
1615
|
+
messageSends: ["contents:", "do:", "protocols", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectProtocol:"],
|
1616
|
+
referencedClasses: []
|
1617
|
+
}),
|
1618
|
+
smalltalk.Browser);
|
1619
|
+
|
1620
|
+
smalltalk.addMethod(
|
1621
|
+
'_updateMethodsList',
|
1622
|
+
smalltalk.method({
|
1623
|
+
selector: 'updateMethodsList',
|
1624
|
+
category: 'updating',
|
1625
|
+
fn: function (){
|
1626
|
+
var self=this;
|
1627
|
+
smalltalk.send(self['@methodsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_methods", []), "_do_", [(function(each){var li=nil;
|
1628
|
+
li=smalltalk.send(html, "_li", []);smalltalk.send(smalltalk.send(self['@selectedMethod'], "__eq", [each]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(each, "_selector", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectMethod_", [each]);})]);})(li);})]);})]);
|
1629
|
+
return self;},
|
1630
|
+
source: unescape('updateMethodsList%0A%20%20%20%20methodsList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20methods%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedMethod%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%0A%09%09with%3A%20each%20selector%3B%0A%09%09onClick%3A%20%5Bself%20selectMethod%3A%20each%5D%5D%5D'),
|
1631
|
+
messageSends: ["contents:", "do:", "methods", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "selector", "onClick:", "selectMethod:"],
|
1632
|
+
referencedClasses: []
|
1633
|
+
}),
|
1634
|
+
smalltalk.Browser);
|
1635
|
+
|
1636
|
+
smalltalk.addMethod(
|
1637
|
+
'_updateTabsList',
|
1638
|
+
smalltalk.method({
|
1639
|
+
selector: 'updateTabsList',
|
1640
|
+
category: 'updating',
|
1641
|
+
fn: function (){
|
1642
|
+
var self=this;
|
1643
|
+
smalltalk.send(self['@tabsList'], "_contents_", [(function(html){var li=nil;
|
1644
|
+
li=smalltalk.send(html, "_li", []);smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["instance"]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);(function($rec){smalltalk.send($rec, "_with_", ["Instance"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["instance"]);})]);})(li);li=smalltalk.send(html, "_li", []);smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["class"]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);(function($rec){smalltalk.send($rec, "_with_", ["Class"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["class"]);})]);})(li);li=smalltalk.send(html, "_li", []);smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["comment"]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", ["Comment"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["comment"]);})]);})(li);})]);
|
1645
|
+
return self;},
|
1646
|
+
source: unescape('updateTabsList%0A%20%20%20%20tabsList%20contents%3A%20%5B%3Ahtml%20%7C%7C%20li%20%7C%0A%09li%20%3A%3D%20html%20li.%0A%09selectedTab%20%3D%20%23instance%20ifTrue%3A%20%5Bli%20class%3A%20%27selected%27%5D.%0A%09li%0A%09%20%20%20%20with%3A%20%27Instance%27%3B%0A%09%20%20%20%20onClick%3A%20%5Bself%20selectTab%3A%20%23instance%5D.%0A%09li%20%3A%3D%20html%20li.%0A%09selectedTab%20%3D%20%23class%20ifTrue%3A%20%5Bli%20class%3A%20%27selected%27%5D.%0A%09li%0A%09%20%20%20%20with%3A%20%27Class%27%3B%0A%09%20%20%20%20onClick%3A%20%5Bself%20selectTab%3A%20%23class%5D.%0A%09li%20%3A%3D%20html%20li.%0A%09selectedTab%20%3D%20%23comment%20ifTrue%3A%20%5Bli%20class%3A%20%27selected%27%5D.%0A%09li%0A%09%20%20%20%20with%3A%20%27Comment%27%3B%0A%09%20%20%20%20onClick%3A%20%5Bself%20selectTab%3A%20%23comment%5D%5D'),
|
1647
|
+
messageSends: ["contents:", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectTab:"],
|
1648
|
+
referencedClasses: []
|
1649
|
+
}),
|
1650
|
+
smalltalk.Browser);
|
1651
|
+
|
1652
|
+
smalltalk.addMethod(
|
1653
|
+
'_updateSourceAndButtons',
|
1654
|
+
smalltalk.method({
|
1655
|
+
selector: 'updateSourceAndButtons',
|
1656
|
+
category: 'updating',
|
1657
|
+
fn: function (){
|
1658
|
+
var self=this;
|
1659
|
+
smalltalk.send(self, "_disableSaveButton", []);
|
1660
|
+
smalltalk.send(self['@classButtons'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_with_", ["Rename class"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_renameClass", []);})]);})(smalltalk.send(html, "_button", []));(function($rec){smalltalk.send($rec, "_with_", ["Remove class"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_removeClass", []);})]);})(smalltalk.send(html, "_button", []));return (function($rec){smalltalk.send($rec, "_with_", ["References"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_searchClassReferences", []);})]);})(smalltalk.send(html, "_button", []));})]);
|
1661
|
+
smalltalk.send(self['@methodButtons'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_with_", ["Remove method"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_removeMethod", []);})]);})(smalltalk.send(html, "_button", []));(function($rec){smalltalk.send($rec, "_onChange_", [(function(e, select){return smalltalk.send(self, "_setMethodProtocol_", [smalltalk.send(select, "_val", [])]);})]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", ["Method protocol"]);return smalltalk.send($rec, "_at_put_", ["disabled", "disabled"]);})(smalltalk.send(html, "_option", []));(function($rec){smalltalk.send($rec, "_class_", ["important"]);return smalltalk.send($rec, "_with_", ["New..."]);})(smalltalk.send(html, "_option", []));return smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_option", []), "_with_", [each]);})]);})]);})(smalltalk.send(html, "_select", []));return smalltalk.send(smalltalk.send(self['@selectedMethod'], "_isNil", []), "_ifFalse_", [(function(){return (function($rec){smalltalk.send($rec, "_onChange_", [(function(e, select){return smalltalk.send(self, "_searchReferencesOf_", [smalltalk.send(select, "_val", [])]);})]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", ["References"]);return smalltalk.send($rec, "_at_put_", ["disabled", "disabled"]);})(smalltalk.send(html, "_option", []));(function($rec){smalltalk.send($rec, "_class_", ["important"]);return smalltalk.send($rec, "_with_", [smalltalk.send(self['@selectedMethod'], "_selector", [])]);})(smalltalk.send(html, "_option", []));return smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedMethod'], "_messageSends", []), "_sorted", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_option", []), "_with_", [each]);})]);})]);})(smalltalk.send(html, "_select", []));})]);})]);
|
1662
|
+
smalltalk.send(smalltalk.send(self['@selectedMethod'], "_isNil", []), "_ifTrue_ifFalse_", [(function(){smalltalk.send(self, "_hideMethodButtons", []);return smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedClass'], "_isNil", []), "_or_", [(function(){return smalltalk.send(self['@selectedProtocol'], "_notNil", []);})]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_hideClassButtons", []);}), (function(){return smalltalk.send(self, "_showClassButtons", []);})]);}), (function(){smalltalk.send(self, "_hideClassButtons", []);return smalltalk.send(self, "_showMethodButtons", []);})]);
|
1663
|
+
smalltalk.send(self['@sourceArea'], "_val_", [smalltalk.send(self, "_source", [])]);
|
1664
|
+
return self;},
|
1665
|
+
source: unescape('updateSourceAndButtons%0A%09self%20disableSaveButton.%0A%09classButtons%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09html%20button%0A%09%09%09with%3A%20%27Rename%20class%27%3B%0A%09%09%09onClick%3A%20%5Bself%20renameClass%5D.%0A%09%09html%20button%0A%09%09%09with%3A%20%27Remove%20class%27%3B%0A%09%09%09onClick%3A%20%5Bself%20removeClass%5D.%0A%09%09html%20button%0A%09%09%09with%3A%20%27References%27%3B%0A%09%09%09onClick%3A%20%5Bself%20searchClassReferences%5D%5D.%0A%09methodButtons%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09html%20button%0A%09%09%09with%3A%20%27Remove%20method%27%3B%0A%09%09%09onClick%3A%20%5Bself%20removeMethod%5D.%0A%09%09html%20select%20%0A%09%20%20%20%20%09%09onChange%3A%20%5B%3Ae%20%3Aselect%20%7C%20self%20setMethodProtocol%3A%20select%20val%5D%3B%0A%09%20%20%20%20%09%09with%3A%20%5B%0A%09%09%09%09html%20option%0A%09%09%20%20%20%20%09%09%09with%3A%20%27Method%20protocol%27%3B%0A%09%09%09%09%09at%3A%20%27disabled%27%20put%3A%20%27disabled%27.%0A%09%09%09%09html%20option%0A%09%09%20%20%20%20%09%09%09class%3A%20%27important%27%3B%0A%09%09%20%20%20%20%09%09%09with%3A%20%27New...%27.%0A%09%09%09%09self%20protocols%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%20%20%20%20%09%09%09html%20option%20with%3A%20each%5D%5D.%0A%09%09selectedMethod%20isNil%20ifFalse%3A%20%5B%0A%09%09%09html%20select%20%0A%09%20%20%20%20%09%09%09onChange%3A%20%5B%3Ae%20%3Aselect%20%7C%20self%20searchReferencesOf%3A%20select%20val%5D%3B%0A%09%20%20%20%20%09%09%09with%3A%20%5B%0A%09%09%09%09%09html%20option%0A%09%09%20%20%20%20%09%09%09%09with%3A%20%27References%27%3B%0A%09%09%09%09%09%09at%3A%20%27disabled%27%20put%3A%20%27disabled%27.%0A%09%09%09%09%09html%20option%0A%09%09%20%20%20%20%09%09%09%09class%3A%20%27important%27%3B%0A%09%09%20%20%20%20%09%09%09%09with%3A%20selectedMethod%20selector.%0A%09%09%09%09%09selectedMethod%20messageSends%20sorted%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%20%20%20%20%09%09%09%09html%20option%20with%3A%20each%5D%5D%5D%5D.%0A%20%20%20%20%09selectedMethod%20isNil%0A%09%09ifTrue%3A%20%5B%0A%09%20%20%20%20%09%09self%20hideMethodButtons.%0A%09%20%20%20%20%09%09%09%28selectedClass%20isNil%20or%3A%20%5BselectedProtocol%20notNil%5D%29%0A%09%09%09%09%09ifTrue%3A%20%5Bself%20hideClassButtons%5D%0A%09%20%20%20%20%09%09%09%09ifFalse%3A%20%5Bself%20showClassButtons%5D%5D%0A%09%09ifFalse%3A%20%5B%0A%09%20%20%20%20%09%09self%20hideClassButtons.%0A%09%20%20%20%20%09%09self%20showMethodButtons%5D.%0A%20%20%20%20%09sourceArea%20val%3A%20self%20source'),
|
1666
|
+
messageSends: ["disableSaveButton", "contents:", "with:", "onClick:", "renameClass", "button", "removeClass", "searchClassReferences", "removeMethod", "onChange:", "setMethodProtocol:", "val", "at:put:", "option", "class:", "do:", "protocols", "select", "ifFalse:", "isNil", "searchReferencesOf:", "selector", "sorted", "messageSends", "ifTrue:ifFalse:", "hideMethodButtons", "or:", "notNil", "hideClassButtons", "showClassButtons", "showMethodButtons", "val:", "source"],
|
1667
|
+
referencedClasses: []
|
1668
|
+
}),
|
1669
|
+
smalltalk.Browser);
|
1670
|
+
|
1671
|
+
smalltalk.addMethod(
|
1672
|
+
'_updateStatus',
|
1673
|
+
smalltalk.method({
|
1674
|
+
selector: 'updateStatus',
|
1675
|
+
category: 'updating',
|
1676
|
+
fn: function (){
|
1677
|
+
var self=this;
|
1678
|
+
smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self['@sourceArea'], "_textarea", []), "_asJQuery", []), "_val", []), "__eq", [smalltalk.send(self, "_source", [])]), "_ifTrue_ifFalse_", [(function(){smalltalk.send(self['@saveButton'], "_ifNotNil_", [(function(){return smalltalk.send(self['@saveButton'], "_at_put_", ["disabled", true]);})]);return self['@unsavedChanges']=false;}), (function(){smalltalk.send(self['@saveButton'], "_ifNotNil_", [(function(){return smalltalk.send(self['@saveButton'], "_removeAt_", ["disabled"]);})]);return self['@unsavedChanges']=true;})]);
|
1679
|
+
return self;},
|
1680
|
+
source: unescape('updateStatus%0A%09sourceArea%20textarea%20asJQuery%20val%20%3D%20self%20source%0A%09%09ifTrue%3A%20%5B%0A%09%09%09saveButton%20ifNotNil%3A%20%5B%0A%09%09%09%09saveButton%20at%3A%20%27disabled%27%20put%3A%20true%5D.%0A%20%20%20%20%09%09%09unsavedChanges%20%3A%3D%20false%5D%0A%09%09ifFalse%3A%20%5B%0A%09%09%09saveButton%20ifNotNil%3A%20%5B%0A%20%20%20%20%09%09%09%09saveButton%20removeAt%3A%20%27disabled%27%5D.%0A%20%20%20%20%09%09%09unsavedChanges%20%3A%3D%20true%5D'),
|
1681
|
+
messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "val", "asJQuery", "textarea", "source", "ifNotNil:", "at:put:", "removeAt:"],
|
1682
|
+
referencedClasses: []
|
1683
|
+
}),
|
1684
|
+
smalltalk.Browser);
|
1685
|
+
|
1686
|
+
smalltalk.addMethod(
|
1687
|
+
'_selectedClass',
|
1688
|
+
smalltalk.method({
|
1689
|
+
selector: 'selectedClass',
|
1690
|
+
category: 'accessing',
|
1691
|
+
fn: function (){
|
1692
|
+
var self=this;
|
1693
|
+
return self['@selectedClass'];
|
1694
|
+
return self;},
|
1695
|
+
source: unescape('selectedClass%0A%09%5EselectedClass'),
|
1696
|
+
messageSends: [],
|
1697
|
+
referencedClasses: []
|
1698
|
+
}),
|
1699
|
+
smalltalk.Browser);
|
1700
|
+
|
1701
|
+
smalltalk.addMethod(
|
1702
|
+
'_resetClassesList',
|
1703
|
+
smalltalk.method({
|
1704
|
+
selector: 'resetClassesList',
|
1705
|
+
category: 'updating',
|
1706
|
+
fn: function (){
|
1707
|
+
var self=this;
|
1708
|
+
smalltalk.send(self['@classesList'], "_resetNodes", []);
|
1709
|
+
return self;},
|
1710
|
+
source: unescape('resetClassesList%0A%09classesList%20resetNodes'),
|
1711
|
+
messageSends: ["resetNodes"],
|
1712
|
+
referencedClasses: []
|
1713
|
+
}),
|
1714
|
+
smalltalk.Browser);
|
1715
|
+
|
1716
|
+
|
1717
|
+
smalltalk.addMethod(
|
1718
|
+
'_commitPathJs',
|
1719
|
+
smalltalk.method({
|
1720
|
+
selector: 'commitPathJs',
|
1721
|
+
category: 'accessing',
|
1722
|
+
fn: function (){
|
1723
|
+
var self=this;
|
1724
|
+
return "js";
|
1725
|
+
return self;},
|
1726
|
+
source: unescape('commitPathJs%0A%09%5E%27js%27'),
|
1727
|
+
messageSends: [],
|
1728
|
+
referencedClasses: []
|
1729
|
+
}),
|
1730
|
+
smalltalk.Browser.klass);
|
1731
|
+
|
1732
|
+
smalltalk.addMethod(
|
1733
|
+
'_commitPathSt',
|
1734
|
+
smalltalk.method({
|
1735
|
+
selector: 'commitPathSt',
|
1736
|
+
category: 'accessing',
|
1737
|
+
fn: function (){
|
1738
|
+
var self=this;
|
1739
|
+
return "st";
|
1740
|
+
return self;},
|
1741
|
+
source: unescape('commitPathSt%0A%09%5E%27st%27'),
|
1742
|
+
messageSends: [],
|
1743
|
+
referencedClasses: []
|
1744
|
+
}),
|
1745
|
+
smalltalk.Browser.klass);
|
1746
|
+
|
1747
|
+
smalltalk.addMethod(
|
1748
|
+
'_openOn_',
|
1749
|
+
smalltalk.method({
|
1750
|
+
selector: 'openOn:',
|
1751
|
+
category: 'convenience',
|
1752
|
+
fn: function (aClass){
|
1753
|
+
var self=this;
|
1754
|
+
return (function($rec){smalltalk.send($rec, "_open", []);smalltalk.send($rec, "_selectCategory_", [smalltalk.send(aClass, "_category", [])]);return smalltalk.send($rec, "_selectClass_", [aClass]);})(smalltalk.send(self, "_new", []));
|
1755
|
+
return self;},
|
1756
|
+
source: unescape('openOn%3A%20aClass%0A%20%20%20%20%5Eself%20new%0A%09open%3B%0A%09selectCategory%3A%20aClass%20category%3B%0A%09selectClass%3A%20aClass'),
|
1757
|
+
messageSends: ["open", "selectCategory:", "category", "selectClass:", "new"],
|
1758
|
+
referencedClasses: []
|
1759
|
+
}),
|
1760
|
+
smalltalk.Browser.klass);
|
1761
|
+
|
1762
|
+
smalltalk.addMethod(
|
1763
|
+
'_open',
|
1764
|
+
smalltalk.method({
|
1765
|
+
selector: 'open',
|
1766
|
+
category: 'convenience',
|
1767
|
+
fn: function (){
|
1768
|
+
var self=this;
|
1769
|
+
smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
|
1770
|
+
return self;},
|
1771
|
+
source: unescape('open%0A%20%20%20%20self%20new%20open'),
|
1772
|
+
messageSends: ["open", "new"],
|
1773
|
+
referencedClasses: []
|
1774
|
+
}),
|
1775
|
+
smalltalk.Browser.klass);
|
1776
|
+
|
1777
|
+
|
1778
|
+
smalltalk.addClass('Inspector', smalltalk.TabWidget, ['label', 'variables', 'object', 'selectedVariable', 'variablesList', 'valueTextarea', 'workspaceTextarea', 'diveButton'], 'IDE');
|
1779
|
+
smalltalk.addMethod(
|
1780
|
+
'_label',
|
1781
|
+
smalltalk.method({
|
1782
|
+
selector: 'label',
|
1783
|
+
category: 'accessing',
|
1784
|
+
fn: function (){
|
1785
|
+
var self=this;
|
1786
|
+
return smalltalk.send(self['@label'], "_ifNil_", [(function(){return unescape("Inspector%20%28nil%29");})]);
|
1787
|
+
return self;},
|
1788
|
+
source: unescape('label%0A%09%5Elabel%20ifNil%3A%20%5B%27Inspector%20%28nil%29%27%5D'),
|
1789
|
+
messageSends: ["ifNil:"],
|
1790
|
+
referencedClasses: []
|
1791
|
+
}),
|
1792
|
+
smalltalk.Inspector);
|
1793
|
+
|
1794
|
+
smalltalk.addMethod(
|
1795
|
+
'_variables',
|
1796
|
+
smalltalk.method({
|
1797
|
+
selector: 'variables',
|
1798
|
+
category: 'accessing',
|
1799
|
+
fn: function (){
|
1800
|
+
var self=this;
|
1801
|
+
return self['@variables'];
|
1802
|
+
return self;},
|
1803
|
+
source: unescape('variables%0A%09%5Evariables'),
|
1804
|
+
messageSends: [],
|
1805
|
+
referencedClasses: []
|
1806
|
+
}),
|
1807
|
+
smalltalk.Inspector);
|
1808
|
+
|
1809
|
+
smalltalk.addMethod(
|
1810
|
+
'_setVariables_',
|
1811
|
+
smalltalk.method({
|
1812
|
+
selector: 'setVariables:',
|
1813
|
+
category: 'accessing',
|
1814
|
+
fn: function (aCollection){
|
1815
|
+
var self=this;
|
1816
|
+
self['@variables']=aCollection;
|
1817
|
+
return self;},
|
1818
|
+
source: unescape('setVariables%3A%20aCollection%0A%09variables%20%3A%3D%20aCollection'),
|
1819
|
+
messageSends: [],
|
1820
|
+
referencedClasses: []
|
1821
|
+
}),
|
1822
|
+
smalltalk.Inspector);
|
1823
|
+
|
1824
|
+
smalltalk.addMethod(
|
1825
|
+
'_setLabel_',
|
1826
|
+
smalltalk.method({
|
1827
|
+
selector: 'setLabel:',
|
1828
|
+
category: 'accessing',
|
1829
|
+
fn: function (aString){
|
1830
|
+
var self=this;
|
1831
|
+
self['@label']=aString;
|
1832
|
+
return self;},
|
1833
|
+
source: unescape('setLabel%3A%20aString%0A%09label%20%3A%3D%20aString'),
|
1834
|
+
messageSends: [],
|
1835
|
+
referencedClasses: []
|
1836
|
+
}),
|
1837
|
+
smalltalk.Inspector);
|
1838
|
+
|
1839
|
+
smalltalk.addMethod(
|
1840
|
+
'_selectedVariable',
|
1841
|
+
smalltalk.method({
|
1842
|
+
selector: 'selectedVariable',
|
1843
|
+
category: 'accessing',
|
1844
|
+
fn: function (){
|
1845
|
+
var self=this;
|
1846
|
+
return self['@selectedVariable'];
|
1847
|
+
return self;},
|
1848
|
+
source: unescape('selectedVariable%0A%09%5EselectedVariable'),
|
1849
|
+
messageSends: [],
|
1850
|
+
referencedClasses: []
|
1851
|
+
}),
|
1852
|
+
smalltalk.Inspector);
|
1853
|
+
|
1854
|
+
smalltalk.addMethod(
|
1855
|
+
'_selectedVariable_',
|
1856
|
+
smalltalk.method({
|
1857
|
+
selector: 'selectedVariable:',
|
1858
|
+
category: 'accessing',
|
1859
|
+
fn: function (aString){
|
1860
|
+
var self=this;
|
1861
|
+
self['@selectedVariable']=aString;
|
1862
|
+
return self;},
|
1863
|
+
source: unescape('selectedVariable%3A%20aString%0A%09selectedVariable%20%3A%3D%20aString'),
|
1864
|
+
messageSends: [],
|
1865
|
+
referencedClasses: []
|
1866
|
+
}),
|
1867
|
+
smalltalk.Inspector);
|
1868
|
+
|
1869
|
+
smalltalk.addMethod(
|
1870
|
+
'_inspect_',
|
1871
|
+
smalltalk.method({
|
1872
|
+
selector: 'inspect:',
|
1873
|
+
category: 'actions',
|
1874
|
+
fn: function (anObject){
|
1875
|
+
var self=this;
|
1876
|
+
self['@object']=anObject;
|
1877
|
+
self['@variables']=[];
|
1878
|
+
smalltalk.send(self['@object'], "_inspectOn_", [self]);
|
1879
|
+
return self;},
|
1880
|
+
source: unescape('inspect%3A%20anObject%0A%09object%20%3A%3D%20anObject.%0A%09variables%20%3A%3D%20%23%28%29.%0A%09object%20inspectOn%3A%20self'),
|
1881
|
+
messageSends: ["inspectOn:"],
|
1882
|
+
referencedClasses: []
|
1883
|
+
}),
|
1884
|
+
smalltalk.Inspector);
|
1885
|
+
|
1886
|
+
smalltalk.addMethod(
|
1887
|
+
'_dive',
|
1888
|
+
smalltalk.method({
|
1889
|
+
selector: 'dive',
|
1890
|
+
category: 'actions',
|
1891
|
+
fn: function (){
|
1892
|
+
var self=this;
|
1893
|
+
smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [smalltalk.send(self, "_selectedVariable", [])]), "_inspect", []);
|
1894
|
+
return self;},
|
1895
|
+
source: unescape('dive%0A%09%28self%20variables%20at%3A%20self%20selectedVariable%29%20inspect'),
|
1896
|
+
messageSends: ["inspect", "at:", "variables", "selectedVariable"],
|
1897
|
+
referencedClasses: []
|
1898
|
+
}),
|
1899
|
+
smalltalk.Inspector);
|
1900
|
+
|
1901
|
+
smalltalk.addMethod(
|
1902
|
+
'_refresh',
|
1903
|
+
smalltalk.method({
|
1904
|
+
selector: 'refresh',
|
1905
|
+
category: 'actions',
|
1906
|
+
fn: function (){
|
1907
|
+
var self=this;
|
1908
|
+
(function($rec){smalltalk.send($rec, "_inspect_", [self['@object']]);smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateValueTextarea", []);})(self);
|
1909
|
+
return self;},
|
1910
|
+
source: unescape('refresh%0A%09self%20%0A%09%09inspect%3A%20object%3B%20%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea'),
|
1911
|
+
messageSends: ["inspect:", "updateVariablesList", "updateValueTextarea"],
|
1912
|
+
referencedClasses: []
|
1913
|
+
}),
|
1914
|
+
smalltalk.Inspector);
|
1915
|
+
|
1916
|
+
smalltalk.addMethod(
|
1917
|
+
'_renderBoxOn_',
|
1918
|
+
smalltalk.method({
|
1919
|
+
selector: 'renderBoxOn:',
|
1920
|
+
category: 'rendering',
|
1921
|
+
fn: function (html){
|
1922
|
+
var self=this;
|
1923
|
+
(function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
|
1924
|
+
return self;},
|
1925
|
+
source: unescape('renderBoxOn%3A%20html%0A%09self%20%0A%09%09renderTopPanelOn%3A%20html%3B%0A%09%09renderBottomPanelOn%3A%20html'),
|
1926
|
+
messageSends: ["renderTopPanelOn:", "renderBottomPanelOn:"],
|
1927
|
+
referencedClasses: []
|
1928
|
+
}),
|
1929
|
+
smalltalk.Inspector);
|
1930
|
+
|
1931
|
+
smalltalk.addMethod(
|
1932
|
+
'_renderTopPanelOn_',
|
1933
|
+
smalltalk.method({
|
1934
|
+
selector: 'renderTopPanelOn:',
|
1935
|
+
category: 'rendering',
|
1936
|
+
fn: function (html){
|
1937
|
+
var self=this;
|
1938
|
+
(function($rec){smalltalk.send($rec, "_class_", ["top"]);return smalltalk.send($rec, "_with_", [(function(){self['@variablesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column variables"]);self['@valueTextarea']=(function($rec){smalltalk.send($rec, "_class_", ["jt_column value"]);return smalltalk.send($rec, "_at_put_", ["readonly", "readonly"]);})(smalltalk.send(html, "_textarea", []));(function($rec){smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateValueTextarea", []);})(self);return smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["jt_clear"]);})]);})(smalltalk.send(html, "_div", []));
|
1939
|
+
return self;},
|
1940
|
+
source: unescape('renderTopPanelOn%3A%20html%0A%20%20%20%20html%20div%20%0A%09class%3A%20%27top%27%3B%20%0A%09with%3A%20%5B%0A%09%20%20%20%20variablesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20variables%27.%0A%09%20%20%20%20valueTextarea%20%3A%3D%20html%20textarea%20class%3A%20%27jt_column%20value%27%3B%20at%3A%20%27readonly%27%20put%3A%20%27readonly%27.%0A%09%20%20%20%20self%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea.%0A%09%20%20%20%20html%20div%20class%3A%20%27jt_clear%27%5D'),
|
1941
|
+
messageSends: ["class:", "with:", "ul", "at:put:", "textarea", "updateVariablesList", "updateValueTextarea", "div"],
|
1942
|
+
referencedClasses: []
|
1943
|
+
}),
|
1944
|
+
smalltalk.Inspector);
|
1945
|
+
|
1946
|
+
smalltalk.addMethod(
|
1947
|
+
'_renderBottomPanelOn_',
|
1948
|
+
smalltalk.method({
|
1949
|
+
selector: 'renderBottomPanelOn:',
|
1950
|
+
category: 'rendering',
|
1951
|
+
fn: function (html){
|
1952
|
+
var self=this;
|
1953
|
+
(function($rec){smalltalk.send($rec, "_class_", ["jt_sourceCode"]);return smalltalk.send($rec, "_with_", [(function(){self['@workspaceTextarea']=(function($rec){smalltalk.send($rec, "_class_", ["source"]);return smalltalk.send($rec, "_at_put_", ["spellcheck", "false"]);})(smalltalk.send(html, "_textarea", []));return smalltalk.send(smalltalk.send(self['@workspaceTextarea'], "_asJQuery", []), "_call_", ["tabby"]);})]);})(smalltalk.send(html, "_div", []));
|
1954
|
+
return self;},
|
1955
|
+
source: unescape('renderBottomPanelOn%3A%20html%0A%20%20%20%20html%20div%0A%09class%3A%20%27jt_sourceCode%27%3B%0A%09with%3A%20%5B%0A%09%20%20%20%20workspaceTextarea%20%3A%3D%20html%20textarea%20%0A%09%09class%3A%20%27source%27%3B%0A%09%09at%3A%20%27spellcheck%27%20put%3A%20%27false%27.%0A%09%20%20%20%20workspaceTextarea%20asJQuery%20call%3A%20%27tabby%27%5D'),
|
1956
|
+
messageSends: ["class:", "with:", "at:put:", "textarea", "call:", "asJQuery", "div"],
|
1957
|
+
referencedClasses: []
|
1958
|
+
}),
|
1959
|
+
smalltalk.Inspector);
|
1960
|
+
|
1961
|
+
smalltalk.addMethod(
|
1962
|
+
'_renderButtonsOn_',
|
1963
|
+
smalltalk.method({
|
1964
|
+
selector: 'renderButtonsOn:',
|
1965
|
+
category: 'rendering',
|
1966
|
+
fn: function (html){
|
1967
|
+
var self=this;
|
1968
|
+
(function($rec){smalltalk.send($rec, "_with_", ["Refresh"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_refresh", []);})]);})(smalltalk.send(html, "_button", []));
|
1969
|
+
self['@diveButton']=(function($rec){smalltalk.send($rec, "_with_", ["Dive"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_dive", []);})]);})(smalltalk.send(html, "_button", []));
|
1970
|
+
smalltalk.send(self, "_updateButtons", []);
|
1971
|
+
return self;},
|
1972
|
+
source: unescape('renderButtonsOn%3A%20html%0A%09html%20button%0A%09%09with%3A%20%27Refresh%27%3B%0A%09%09onClick%3A%20%5Bself%20refresh%5D.%0A%09diveButton%20%3A%3D%20html%20button%20%0A%09%09with%3A%20%27Dive%27%3B%20%0A%09%09onClick%3A%20%5Bself%20dive%5D.%0A%09self%20updateButtons'),
|
1973
|
+
messageSends: ["with:", "onClick:", "refresh", "button", "dive", "updateButtons"],
|
1974
|
+
referencedClasses: []
|
1975
|
+
}),
|
1976
|
+
smalltalk.Inspector);
|
1977
|
+
|
1978
|
+
smalltalk.addMethod(
|
1979
|
+
'_canBeClosed',
|
1980
|
+
smalltalk.method({
|
1981
|
+
selector: 'canBeClosed',
|
1982
|
+
category: 'testing',
|
1983
|
+
fn: function (){
|
1984
|
+
var self=this;
|
1985
|
+
return true;
|
1986
|
+
return self;},
|
1987
|
+
source: unescape('canBeClosed%0A%09%5Etrue'),
|
1988
|
+
messageSends: [],
|
1989
|
+
referencedClasses: []
|
1990
|
+
}),
|
1991
|
+
smalltalk.Inspector);
|
1992
|
+
|
1993
|
+
smalltalk.addMethod(
|
1994
|
+
'_updateVariablesList',
|
1995
|
+
smalltalk.method({
|
1996
|
+
selector: 'updateVariablesList',
|
1997
|
+
category: 'updating',
|
1998
|
+
fn: function (){
|
1999
|
+
var self=this;
|
2000
|
+
smalltalk.send(self['@variablesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_keys", []), "_do_", [(function(each){var li=nil;
|
2001
|
+
li=smalltalk.send(html, "_li", []);(function($rec){smalltalk.send($rec, "_with_", [each]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectVariable_", [each]);})]);})(li);return smalltalk.send(smalltalk.send(smalltalk.send(self, "_selectedVariable", []), "__eq", [each]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);})]);})]);
|
2002
|
+
return self;},
|
2003
|
+
source: unescape('updateVariablesList%0A%09variablesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09self%20variables%20keys%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%09%09li%20%3A%3D%20html%20li.%0A%09%09%09li%0A%09%09%09%09with%3A%20each%3B%0A%09%09%09%09onClick%3A%20%5Bself%20selectVariable%3A%20each%5D.%0A%09%09%09self%20selectedVariable%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09%09%09li%20class%3A%20%27selected%27%5D%5D%5D'),
|
2004
|
+
messageSends: ["contents:", "do:", "keys", "variables", "li", "with:", "onClick:", "selectVariable:", "ifTrue:", unescape("%3D"), "selectedVariable", "class:"],
|
2005
|
+
referencedClasses: []
|
2006
|
+
}),
|
2007
|
+
smalltalk.Inspector);
|
2008
|
+
|
2009
|
+
smalltalk.addMethod(
|
2010
|
+
'_selectVariable_',
|
2011
|
+
smalltalk.method({
|
2012
|
+
selector: 'selectVariable:',
|
2013
|
+
category: 'updating',
|
2014
|
+
fn: function (aString){
|
2015
|
+
var self=this;
|
2016
|
+
smalltalk.send(self, "_selectedVariable_", [aString]);
|
2017
|
+
(function($rec){smalltalk.send($rec, "_updateVariablesList", []);smalltalk.send($rec, "_updateValueTextarea", []);return smalltalk.send($rec, "_updateButtons", []);})(self);
|
2018
|
+
return self;},
|
2019
|
+
source: unescape('selectVariable%3A%20aString%0A%09self%20selectedVariable%3A%20aString.%0A%09self%20%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea%3B%0A%09%09updateButtons'),
|
2020
|
+
messageSends: ["selectedVariable:", "updateVariablesList", "updateValueTextarea", "updateButtons"],
|
2021
|
+
referencedClasses: []
|
2022
|
+
}),
|
2023
|
+
smalltalk.Inspector);
|
2024
|
+
|
2025
|
+
smalltalk.addMethod(
|
2026
|
+
'_updateValueTextarea',
|
2027
|
+
smalltalk.method({
|
2028
|
+
selector: 'updateValueTextarea',
|
2029
|
+
category: 'updating',
|
2030
|
+
fn: function (){
|
2031
|
+
var self=this;
|
2032
|
+
smalltalk.send(smalltalk.send(self['@valueTextarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_selectedVariable", []), "_isNil", []), "_ifTrue_ifFalse_", [(function(){return "";}), (function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [smalltalk.send(self, "_selectedVariable", [])]), "_printString", []);})])]);
|
2033
|
+
return self;},
|
2034
|
+
source: unescape('updateValueTextarea%0A%09valueTextarea%20asJQuery%20val%3A%20%28self%20selectedVariable%20isNil%0A%09%09ifTrue%3A%20%5B%27%27%5D%0A%09%09ifFalse%3A%20%5B%28self%20variables%20at%3A%20self%20selectedVariable%29%20printString%5D%29'),
|
2035
|
+
messageSends: ["val:", "asJQuery", "ifTrue:ifFalse:", "isNil", "selectedVariable", "printString", "at:", "variables"],
|
2036
|
+
referencedClasses: []
|
2037
|
+
}),
|
2038
|
+
smalltalk.Inspector);
|
2039
|
+
|
2040
|
+
smalltalk.addMethod(
|
2041
|
+
'_updateButtons',
|
2042
|
+
smalltalk.method({
|
2043
|
+
selector: 'updateButtons',
|
2044
|
+
category: 'updating',
|
2045
|
+
fn: function (){
|
2046
|
+
var self=this;
|
2047
|
+
smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_selectedVariable", []), "_notNil", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [smalltalk.send(self, "_selectedVariable", [])]), "_notNil", []);})]), "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self['@diveButton'], "_at_put_", ["disabled", true]);}), (function(){return smalltalk.send(self['@diveButton'], "_removeAt_", ["disabled"]);})]);
|
2048
|
+
return self;},
|
2049
|
+
source: unescape('updateButtons%0A%09%28self%20selectedVariable%20notNil%20and%3A%20%5B%28self%20variables%20at%3A%20self%20selectedVariable%29%20notNil%5D%29%0A%09%09ifFalse%3A%20%5BdiveButton%20at%3A%20%27disabled%27%20put%3A%20true%5D%20%0A%09%09ifTrue%3A%20%5BdiveButton%20removeAt%3A%20%27disabled%27%5D'),
|
2050
|
+
messageSends: ["ifFalse:ifTrue:", "and:", "notNil", "selectedVariable", "at:", "variables", "at:put:", "removeAt:"],
|
2051
|
+
referencedClasses: []
|
2052
|
+
}),
|
2053
|
+
smalltalk.Inspector);
|
2054
|
+
|
2055
|
+
|
2056
|
+
smalltalk.addMethod(
|
2057
|
+
'_on_',
|
2058
|
+
smalltalk.method({
|
2059
|
+
selector: 'on:',
|
2060
|
+
category: 'instance creation',
|
2061
|
+
fn: function (anObject){
|
2062
|
+
var self=this;
|
2063
|
+
return (function($rec){smalltalk.send($rec, "_inspect_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
|
2064
|
+
return self;},
|
2065
|
+
source: unescape('on%3A%20anObject%0A%09%5Eself%20new%0A%09%09inspect%3A%20anObject%3B%0A%09%09yourself'),
|
2066
|
+
messageSends: ["inspect:", "yourself", "new"],
|
2067
|
+
referencedClasses: []
|
2068
|
+
}),
|
2069
|
+
smalltalk.Inspector.klass);
|
2070
|
+
|
2071
|
+
|
2072
|
+
smalltalk.addClass('ReferencesBrowser', smalltalk.TabWidget, ['implementors', 'senders', 'implementorsList', 'input', 'timer', 'selector', 'sendersList', 'referencedClasses', 'referencedClassesList'], 'IDE');
|
2073
|
+
smalltalk.addMethod(
|
2074
|
+
'_implementors',
|
2075
|
+
smalltalk.method({
|
2076
|
+
selector: 'implementors',
|
2077
|
+
category: 'accessing',
|
2078
|
+
fn: function (){
|
2079
|
+
var self=this;
|
2080
|
+
return smalltalk.send(self['@implementors'], "_ifNil_", [(function(){return self['@implementors']=smalltalk.send(smalltalk.Array, "_new", []);})]);
|
2081
|
+
return self;},
|
2082
|
+
source: unescape('implementors%0A%09%5Eimplementors%20ifNil%3A%20%5Bimplementors%20%3A%3D%20Array%20new%5D'),
|
2083
|
+
messageSends: ["ifNil:", "new"],
|
2084
|
+
referencedClasses: [smalltalk.Array]
|
2085
|
+
}),
|
2086
|
+
smalltalk.ReferencesBrowser);
|
2087
|
+
|
2088
|
+
smalltalk.addMethod(
|
2089
|
+
'_label',
|
2090
|
+
smalltalk.method({
|
2091
|
+
selector: 'label',
|
2092
|
+
category: 'accessing',
|
2093
|
+
fn: function (){
|
2094
|
+
var self=this;
|
2095
|
+
return unescape("%5BReferencesBrowser%5D");
|
2096
|
+
return self;},
|
2097
|
+
source: unescape('label%0A%09%5E%27%5BReferencesBrowser%5D%27'),
|
2098
|
+
messageSends: [],
|
2099
|
+
referencedClasses: []
|
2100
|
+
}),
|
2101
|
+
smalltalk.ReferencesBrowser);
|
2102
|
+
|
2103
|
+
smalltalk.addMethod(
|
2104
|
+
'_selector',
|
2105
|
+
smalltalk.method({
|
2106
|
+
selector: 'selector',
|
2107
|
+
category: 'accessing',
|
2108
|
+
fn: function (){
|
2109
|
+
var self=this;
|
2110
|
+
return self['@selector'];
|
2111
|
+
return self;},
|
2112
|
+
source: unescape('selector%0A%09%5Eselector'),
|
2113
|
+
messageSends: [],
|
2114
|
+
referencedClasses: []
|
2115
|
+
}),
|
2116
|
+
smalltalk.ReferencesBrowser);
|
2117
|
+
|
2118
|
+
smalltalk.addMethod(
|
2119
|
+
'_senders',
|
2120
|
+
smalltalk.method({
|
2121
|
+
selector: 'senders',
|
2122
|
+
category: 'accessing',
|
2123
|
+
fn: function (){
|
2124
|
+
var self=this;
|
2125
|
+
return smalltalk.send(self['@senders'], "_ifNil_", [(function(){return self['@senders']=smalltalk.send(smalltalk.Array, "_new", []);})]);
|
2126
|
+
return self;},
|
2127
|
+
source: unescape('senders%0A%09%5Esenders%20ifNil%3A%20%5Bsenders%20%3A%3D%20Array%20new%5D'),
|
2128
|
+
messageSends: ["ifNil:", "new"],
|
2129
|
+
referencedClasses: [smalltalk.Array]
|
2130
|
+
}),
|
2131
|
+
smalltalk.ReferencesBrowser);
|
2132
|
+
|
2133
|
+
smalltalk.addMethod(
|
2134
|
+
'_classesAndMetaclasses',
|
2135
|
+
smalltalk.method({
|
2136
|
+
selector: 'classesAndMetaclasses',
|
2137
|
+
category: 'accessing',
|
2138
|
+
fn: function (){
|
2139
|
+
var self=this;
|
2140
|
+
return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_classes", []), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_classes", []), "_collect_", [(function(each){return smalltalk.send(each, "_class", []);})])]);
|
2141
|
+
return self;},
|
2142
|
+
source: unescape('classesAndMetaclasses%0A%09%5ESmalltalk%20current%20classes%2C%20%28Smalltalk%20current%20classes%20collect%3A%20%5B%3Aeach%20%7C%20each%20class%5D%29'),
|
2143
|
+
messageSends: [unescape("%2C"), "classes", "current", "collect:", "class"],
|
2144
|
+
referencedClasses: [smalltalk.Smalltalk]
|
2145
|
+
}),
|
2146
|
+
smalltalk.ReferencesBrowser);
|
2147
|
+
|
2148
|
+
smalltalk.addMethod(
|
2149
|
+
'_referencedClasses',
|
2150
|
+
smalltalk.method({
|
2151
|
+
selector: 'referencedClasses',
|
2152
|
+
category: 'accessing',
|
2153
|
+
fn: function (){
|
2154
|
+
var self=this;
|
2155
|
+
return smalltalk.send(self['@referencedClasses'], "_ifNil_", [(function(){return self['@referencedClasses']=smalltalk.send(smalltalk.Array, "_new", []);})]);
|
2156
|
+
return self;},
|
2157
|
+
source: unescape('referencedClasses%0A%09%5EreferencedClasses%20ifNil%3A%20%5BreferencedClasses%20%3A%3D%20Array%20new%5D'),
|
2158
|
+
messageSends: ["ifNil:", "new"],
|
2159
|
+
referencedClasses: [smalltalk.Array]
|
2160
|
+
}),
|
2161
|
+
smalltalk.ReferencesBrowser);
|
2162
|
+
|
2163
|
+
smalltalk.addMethod(
|
2164
|
+
'_openBrowserOn_',
|
2165
|
+
smalltalk.method({
|
2166
|
+
selector: 'openBrowserOn:',
|
2167
|
+
category: 'actions',
|
2168
|
+
fn: function (aMethod){
|
2169
|
+
var self=this;
|
2170
|
+
var browser=nil;
|
2171
|
+
browser=smalltalk.send(smalltalk.Browser, "_openOn_", [smalltalk.send(smalltalk.send(smalltalk.send(aMethod, "_class", []), "_isMetaclass", []), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(aMethod, "_methodClass", []), "_instanceClass", []);}), (function(){return smalltalk.send(aMethod, "_methodClass", []);})])]);
|
2172
|
+
smalltalk.send(smalltalk.send(smalltalk.send(aMethod, "_methodClass", []), "_isMetaclass", []), "_ifTrue_", [(function(){return smalltalk.send(browser, "_selectTab_", ["class"]);})]);
|
2173
|
+
(function($rec){smalltalk.send($rec, "_selectProtocol_", [smalltalk.send(aMethod, "_category", [])]);return smalltalk.send($rec, "_selectMethod_", [aMethod]);})(browser);
|
2174
|
+
return self;},
|
2175
|
+
source: unescape('openBrowserOn%3A%20aMethod%0A%20%20%20%20%20%20%20%7C%20browser%20%7C%0A%20%20%20%20%20%20%20browser%20%3A%3D%20Browser%20openOn%3A%20%28aMethod%20class%20isMetaclass%20%0A%09%09ifTrue%3A%20%5BaMethod%20methodClass%20instanceClass%5D%20ifFalse%3A%20%5BaMethod%20methodClass%5D%29.%0A%20%20%20%20%20%20%20aMethod%20methodClass%20isMetaclass%20ifTrue%3A%20%5Bbrowser%20selectTab%3A%20%23class%5D.%0A%20%20%20%20%20%20%20browser%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20selectProtocol%3A%20aMethod%20category%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20selectMethod%3A%20aMethod'),
|
2176
|
+
messageSends: ["openOn:", "ifTrue:ifFalse:", "isMetaclass", "class", "instanceClass", "methodClass", "ifTrue:", "selectTab:", "selectProtocol:", "category", "selectMethod:"],
|
2177
|
+
referencedClasses: [smalltalk.Browser]
|
2178
|
+
}),
|
2179
|
+
smalltalk.ReferencesBrowser);
|
2180
|
+
|
2181
|
+
smalltalk.addMethod(
|
2182
|
+
'_searchReferencesFor_',
|
2183
|
+
smalltalk.method({
|
2184
|
+
selector: 'searchReferencesFor:',
|
2185
|
+
category: 'actions',
|
2186
|
+
fn: function (aString){
|
2187
|
+
var self=this;
|
2188
|
+
self['@selector']=aString;
|
2189
|
+
self['@implementors']=smalltalk.send(smalltalk.Array, "_new", []);
|
2190
|
+
self['@senders']=smalltalk.send(smalltalk.Array, "_new", []);
|
2191
|
+
self['@referencedClasses']=smalltalk.send(smalltalk.Array, "_new", []);
|
2192
|
+
smalltalk.send(smalltalk.send(self['@selector'], "_match_", [unescape("%5E%5BA-Z%5D")]), "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_searchSelectorReferencesFor_", [self['@selector']]);}), (function(){return smalltalk.send(self, "_searchReferencedClassesFor_", [self['@selector']]);})]);
|
2193
|
+
return self;},
|
2194
|
+
source: unescape('searchReferencesFor%3A%20aString%0A%09selector%20%3A%3D%20aString.%0A%09implementors%20%3A%3D%20Array%20new.%0A%09senders%20%3A%3D%20Array%20new.%0A%09referencedClasses%20%3A%3D%20Array%20new.%0A%09%28selector%20match%3A%20%27%5E%5BA-Z%5D%27%29%20%0A%09%09ifFalse%3A%20%5Bself%20searchSelectorReferencesFor%3A%20selector%5D%0A%09%09ifTrue%3A%20%5Bself%20searchReferencedClassesFor%3A%20selector%5D'),
|
2195
|
+
messageSends: ["new", "ifFalse:ifTrue:", "match:", "searchSelectorReferencesFor:", "searchReferencedClassesFor:"],
|
2196
|
+
referencedClasses: [smalltalk.Array]
|
2197
|
+
}),
|
2198
|
+
smalltalk.ReferencesBrowser);
|
2199
|
+
|
2200
|
+
smalltalk.addMethod(
|
2201
|
+
'_search_',
|
2202
|
+
smalltalk.method({
|
2203
|
+
selector: 'search:',
|
2204
|
+
category: 'actions',
|
2205
|
+
fn: function (aString){
|
2206
|
+
var self=this;
|
2207
|
+
(function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);smalltalk.send($rec, "_updateImplementorsList", []);smalltalk.send($rec, "_updateSendersList", []);return smalltalk.send($rec, "_updateReferencedClassesList", []);})(self);
|
2208
|
+
return self;},
|
2209
|
+
source: unescape('search%3A%20aString%0A%09self%20%0A%09%09searchReferencesFor%3A%20aString%3B%0A%09%09updateImplementorsList%3B%0A%09%09updateSendersList%3B%0A%09%09updateReferencedClassesList'),
|
2210
|
+
messageSends: ["searchReferencesFor:", "updateImplementorsList", "updateSendersList", "updateReferencedClassesList"],
|
2211
|
+
referencedClasses: []
|
2212
|
+
}),
|
2213
|
+
smalltalk.ReferencesBrowser);
|
2214
|
+
|
2215
|
+
smalltalk.addMethod(
|
2216
|
+
'_searchReferencedClassesFor_',
|
2217
|
+
smalltalk.method({
|
2218
|
+
selector: 'searchReferencedClassesFor:',
|
2219
|
+
category: 'actions',
|
2220
|
+
fn: function (aString){
|
2221
|
+
var self=this;
|
2222
|
+
smalltalk.send(smalltalk.send(self, "_classesAndMetaclasses", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_values", []), "_do_", [(function(value){return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(value, "_referencedClasses", []), "_select_", [(function(each){return smalltalk.send(each, "_notNil", []);})]), "_collect_", [(function(each){return smalltalk.send(each, "_name", []);})]), "_includes_", [self['@selector']]), "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_referencedClasses", []), "_add_", [value]);})]);})]);})]);
|
2223
|
+
return self;},
|
2224
|
+
source: unescape('searchReferencedClassesFor%3A%20aString%0A%09self%20classesAndMetaclasses%20do%3A%20%5B%3Aeach%20%7C%0A%09%09each%20methodDictionary%20values%20do%3A%20%5B%3Avalue%20%7C%0A%09%09%09%28%28%28value%20referencedClasses%20select%3A%20%5B%3Aeach%20%7C%20each%20notNil%5D%29collect%3A%20%5B%3Aeach%20%7C%20each%20name%5D%29%20includes%3A%20selector%29%20ifTrue%3A%20%5B%0A%09%09%09%09self%20referencedClasses%20add%3A%20value%5D%5D%5D'),
|
2225
|
+
messageSends: ["do:", "classesAndMetaclasses", "values", "methodDictionary", "ifTrue:", "includes:", "collect:", "select:", "referencedClasses", "notNil", "name", "add:"],
|
2226
|
+
referencedClasses: []
|
2227
|
+
}),
|
2228
|
+
smalltalk.ReferencesBrowser);
|
2229
|
+
|
2230
|
+
smalltalk.addMethod(
|
2231
|
+
'_searchSelectorReferencesFor_',
|
2232
|
+
smalltalk.method({
|
2233
|
+
selector: 'searchSelectorReferencesFor:',
|
2234
|
+
category: 'actions',
|
2235
|
+
fn: function (aString){
|
2236
|
+
var self=this;
|
2237
|
+
smalltalk.send(smalltalk.send(self, "_classesAndMetaclasses", []), "_do_", [(function(each){smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(smalltalk.send(key, "__eq", [self['@selector']]), "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_implementors", []), "_add_", [value]);})]);})]);return smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(smalltalk.send(smalltalk.send(value, "_messageSends", []), "_includes_", [self['@selector']]), "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_senders", []), "_add_", [value]);})]);})]);})]);
|
2238
|
+
return self;},
|
2239
|
+
source: unescape('searchSelectorReferencesFor%3A%20aString%0A%09self%20classesAndMetaclasses%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%09each%20methodDictionary%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%20%0A%09%09%09key%20%3D%20selector%20ifTrue%3A%20%5Bself%20implementors%20add%3A%20value%5D%5D.%0A%09%09each%20methodDictionary%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%20%0A%09%09%09%28value%20messageSends%20includes%3A%20selector%29%20ifTrue%3A%20%5B%0A%09%09%09%09self%20senders%20add%3A%20value%5D%5D%5D'),
|
2240
|
+
messageSends: ["do:", "classesAndMetaclasses", "keysAndValuesDo:", "methodDictionary", "ifTrue:", unescape("%3D"), "add:", "implementors", "includes:", "messageSends", "senders"],
|
2241
|
+
referencedClasses: []
|
2242
|
+
}),
|
2243
|
+
smalltalk.ReferencesBrowser);
|
2244
|
+
|
2245
|
+
smalltalk.addMethod(
|
2246
|
+
'_initialize',
|
2247
|
+
smalltalk.method({
|
2248
|
+
selector: 'initialize',
|
2249
|
+
category: 'initialization',
|
2250
|
+
fn: function (){
|
2251
|
+
var self=this;
|
2252
|
+
smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
|
2253
|
+
self['@selector']="";
|
2254
|
+
return self;},
|
2255
|
+
source: unescape('initialize%0A%09super%20initialize.%0A%09selector%20%3A%3D%20%27%27'),
|
2256
|
+
messageSends: ["initialize"],
|
2257
|
+
referencedClasses: []
|
2258
|
+
}),
|
2259
|
+
smalltalk.ReferencesBrowser);
|
2260
|
+
|
2261
|
+
smalltalk.addMethod(
|
2262
|
+
'_setInputEvents',
|
2263
|
+
smalltalk.method({
|
2264
|
+
selector: 'setInputEvents',
|
2265
|
+
category: 'private',
|
2266
|
+
fn: function (){
|
2267
|
+
var self=this;
|
2268
|
+
(function($rec){smalltalk.send($rec, "_onKeyUp_", [(function(){return self['@timer']=smalltalk.send((function(){return smalltalk.send(self, "_search_", [smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val", [])]);}), "_valueWithTimeout_", [(100)]);})]);return smalltalk.send($rec, "_onKeyDown_", [(function(){return smalltalk.send(self['@timer'], "_ifNotNil_", [(function(){return smalltalk.send(self['@timer'], "_clearTimeout", []);})]);})]);})(self['@input']);
|
2269
|
+
return self;},
|
2270
|
+
source: unescape('setInputEvents%0A%09input%0A%09%09onKeyUp%3A%20%5Btimer%20%3A%3D%20%5Bself%20search%3A%20input%20asJQuery%20val%5D%20valueWithTimeout%3A%20100%5D%3B%0A%09%09onKeyDown%3A%20%5Btimer%20ifNotNil%3A%20%5Btimer%20clearTimeout%5D%5D'),
|
2271
|
+
messageSends: ["onKeyUp:", "valueWithTimeout:", "search:", "val", "asJQuery", "onKeyDown:", "ifNotNil:", "clearTimeout"],
|
2272
|
+
referencedClasses: []
|
2273
|
+
}),
|
2274
|
+
smalltalk.ReferencesBrowser);
|
2275
|
+
|
2276
|
+
smalltalk.addMethod(
|
2277
|
+
'_renderBoxOn_',
|
2278
|
+
smalltalk.method({
|
2279
|
+
selector: 'renderBoxOn:',
|
2280
|
+
category: 'rendering',
|
2281
|
+
fn: function (html){
|
2282
|
+
var self=this;
|
2283
|
+
(function($rec){smalltalk.send($rec, "_renderInputOn_", [html]);smalltalk.send($rec, "_renderImplementorsOn_", [html]);smalltalk.send($rec, "_renderSendersOn_", [html]);return smalltalk.send($rec, "_renderReferencedClassesOn_", [html]);})(self);
|
2284
|
+
return self;},
|
2285
|
+
source: unescape('renderBoxOn%3A%20html%0A%09self%20%0A%09%09renderInputOn%3A%20html%3B%0A%09%09renderImplementorsOn%3A%20html%3B%0A%09%09renderSendersOn%3A%20html%3B%0A%09%09renderReferencedClassesOn%3A%20html'),
|
2286
|
+
messageSends: ["renderInputOn:", "renderImplementorsOn:", "renderSendersOn:", "renderReferencedClassesOn:"],
|
2287
|
+
referencedClasses: []
|
2288
|
+
}),
|
2289
|
+
smalltalk.ReferencesBrowser);
|
2290
|
+
|
2291
|
+
smalltalk.addMethod(
|
2292
|
+
'_renderInputOn_',
|
2293
|
+
smalltalk.method({
|
2294
|
+
selector: 'renderInputOn:',
|
2295
|
+
category: 'rendering',
|
2296
|
+
fn: function (html){
|
2297
|
+
var self=this;
|
2298
|
+
self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", []));
|
2299
|
+
smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val_", [self['@selector']]);
|
2300
|
+
smalltalk.send(self, "_setInputEvents", []);
|
2301
|
+
return self;},
|
2302
|
+
source: unescape('renderInputOn%3A%20html%0A%09input%20%3A%3D%20html%20input%20%0A%09%09class%3A%20%27implementors%27%3B%0A%09%09yourself.%0A%09input%20asJQuery%20val%3A%20selector.%0A%09self%20setInputEvents'),
|
2303
|
+
messageSends: ["class:", "yourself", "input", "val:", "asJQuery", "setInputEvents"],
|
2304
|
+
referencedClasses: []
|
2305
|
+
}),
|
2306
|
+
smalltalk.ReferencesBrowser);
|
2307
|
+
|
2308
|
+
smalltalk.addMethod(
|
2309
|
+
'_renderImplementorsOn_',
|
2310
|
+
smalltalk.method({
|
2311
|
+
selector: 'renderImplementorsOn:',
|
2312
|
+
category: 'rendering',
|
2313
|
+
fn: function (html){
|
2314
|
+
var self=this;
|
2315
|
+
self['@implementorsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column implementors"]);
|
2316
|
+
smalltalk.send(self, "_updateImplementorsList", []);
|
2317
|
+
return self;},
|
2318
|
+
source: unescape('renderImplementorsOn%3A%20html%0A%20%20%20%20%09implementorsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20implementors%27.%0A%09self%20updateImplementorsList'),
|
2319
|
+
messageSends: ["class:", "ul", "updateImplementorsList"],
|
2320
|
+
referencedClasses: []
|
2321
|
+
}),
|
2322
|
+
smalltalk.ReferencesBrowser);
|
2323
|
+
|
2324
|
+
smalltalk.addMethod(
|
2325
|
+
'_renderSendersOn_',
|
2326
|
+
smalltalk.method({
|
2327
|
+
selector: 'renderSendersOn:',
|
2328
|
+
category: 'rendering',
|
2329
|
+
fn: function (html){
|
2330
|
+
var self=this;
|
2331
|
+
self['@sendersList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column senders"]);
|
2332
|
+
smalltalk.send(self, "_updateSendersList", []);
|
2333
|
+
return self;},
|
2334
|
+
source: unescape('renderSendersOn%3A%20html%0A%20%20%20%20%09sendersList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20senders%27.%0A%09self%20updateSendersList'),
|
2335
|
+
messageSends: ["class:", "ul", "updateSendersList"],
|
2336
|
+
referencedClasses: []
|
2337
|
+
}),
|
2338
|
+
smalltalk.ReferencesBrowser);
|
2339
|
+
|
2340
|
+
smalltalk.addMethod(
|
2341
|
+
'_renderReferencedClassesOn_',
|
2342
|
+
smalltalk.method({
|
2343
|
+
selector: 'renderReferencedClassesOn:',
|
2344
|
+
category: 'rendering',
|
2345
|
+
fn: function (html){
|
2346
|
+
var self=this;
|
2347
|
+
self['@referencedClassesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column referenced_classes"]);
|
2348
|
+
smalltalk.send(self, "_updateReferencedClassesList", []);
|
2349
|
+
return self;},
|
2350
|
+
source: unescape('renderReferencedClassesOn%3A%20html%0A%20%20%20%20%09referencedClassesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20referenced_classes%27.%0A%09self%20updateReferencedClassesList'),
|
2351
|
+
messageSends: ["class:", "ul", "updateReferencedClassesList"],
|
2352
|
+
referencedClasses: []
|
2353
|
+
}),
|
2354
|
+
smalltalk.ReferencesBrowser);
|
2355
|
+
|
2356
|
+
smalltalk.addMethod(
|
2357
|
+
'_canBeClosed',
|
2358
|
+
smalltalk.method({
|
2359
|
+
selector: 'canBeClosed',
|
2360
|
+
category: 'testing',
|
2361
|
+
fn: function (){
|
2362
|
+
var self=this;
|
2363
|
+
return true;
|
2364
|
+
return self;},
|
2365
|
+
source: unescape('canBeClosed%0A%09%5Etrue'),
|
2366
|
+
messageSends: [],
|
2367
|
+
referencedClasses: []
|
2368
|
+
}),
|
2369
|
+
smalltalk.ReferencesBrowser);
|
2370
|
+
|
2371
|
+
smalltalk.addMethod(
|
2372
|
+
'_updateImplementorsList',
|
2373
|
+
smalltalk.method({
|
2374
|
+
selector: 'updateImplementorsList',
|
2375
|
+
category: 'updating',
|
2376
|
+
fn: function (){
|
2377
|
+
var self=this;
|
2378
|
+
smalltalk.send(self['@implementorsList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["column_label"]);smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(unescape("Implementors%20%28"), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_implementors", []), "_size", []), "_asString", [])]), "__comma", [unescape("%29")])]);return smalltalk.send($rec, "_style_", [unescape("font-weight%3A%20bold")]);})(smalltalk.send(html, "_li", []));return smalltalk.send(smalltalk.send(self, "_implementors", []), "_do_", [(function(each){var li=nil;
|
2379
|
+
li=smalltalk.send(html, "_li", []);return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodClass", []), "_asString", []), "__comma", [unescape("%20%3E%3E%20")]), "__comma", [smalltalk.send(self, "_selector", [])])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_openBrowserOn_", [each]);})]);})(li);})]);})]);
|
2380
|
+
return self;},
|
2381
|
+
source: unescape('updateImplementorsList%0A%20%20%20%20implementorsList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09html%20li%0A%09%09class%3A%20%27column_label%27%3B%20%0A%09%09with%3A%20%27Implementors%20%28%27%2C%20self%20implementors%20size%20asString%2C%20%27%29%27%3B%0A%09%09style%3A%20%27font-weight%3A%20bold%27.%0A%09self%20implementors%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20li%0A%09%09with%3A%20%28each%20methodClass%20asString%2C%20%27%20%3E%3E%20%27%2C%20self%20selector%29%3B%0A%09%09onClick%3A%20%5Bself%20openBrowserOn%3A%20each%5D%5D%5D'),
|
2382
|
+
messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "implementors", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
|
2383
|
+
referencedClasses: []
|
2384
|
+
}),
|
2385
|
+
smalltalk.ReferencesBrowser);
|
2386
|
+
|
2387
|
+
smalltalk.addMethod(
|
2388
|
+
'_updateSendersList',
|
2389
|
+
smalltalk.method({
|
2390
|
+
selector: 'updateSendersList',
|
2391
|
+
category: 'updating',
|
2392
|
+
fn: function (){
|
2393
|
+
var self=this;
|
2394
|
+
smalltalk.send(self['@sendersList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["column_label"]);smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(unescape("Senders%20%28"), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_senders", []), "_size", []), "_asString", [])]), "__comma", [unescape("%29")])]);return smalltalk.send($rec, "_style_", [unescape("font-weight%3A%20bold")]);})(smalltalk.send(html, "_li", []));return smalltalk.send(smalltalk.send(self, "_senders", []), "_do_", [(function(each){return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodClass", []), "_asString", []), "__comma", [unescape("%20%3E%3E%20")]), "__comma", [smalltalk.send(each, "_selector", [])])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_openBrowserOn_", [each]);})]);})(smalltalk.send(html, "_li", []));})]);})]);
|
2395
|
+
return self;},
|
2396
|
+
source: unescape('updateSendersList%0A%20%20%20%20%09sendersList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09html%20li%0A%09%09class%3A%20%27column_label%27%3B%20%0A%09%09with%3A%20%27Senders%20%28%27%2C%20self%20senders%20size%20asString%2C%20%27%29%27%3B%0A%09%09style%3A%20%27font-weight%3A%20bold%27.%0A%09self%20senders%20do%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%0A%09%20%20%20%20%09%09with%3A%20%28each%20methodClass%20asString%2C%20%27%20%3E%3E%20%27%2C%20each%20selector%29%3B%0A%09%09%09onClick%3A%20%5Bself%20openBrowserOn%3A%20each%5D%5D%5D'),
|
2397
|
+
messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "senders", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
|
2398
|
+
referencedClasses: []
|
2399
|
+
}),
|
2400
|
+
smalltalk.ReferencesBrowser);
|
2401
|
+
|
2402
|
+
smalltalk.addMethod(
|
2403
|
+
'_updateReferencedClassesList',
|
2404
|
+
smalltalk.method({
|
2405
|
+
selector: 'updateReferencedClassesList',
|
2406
|
+
category: 'updating',
|
2407
|
+
fn: function (){
|
2408
|
+
var self=this;
|
2409
|
+
smalltalk.send(self['@referencedClassesList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["column_label"]);smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(unescape("Class%20references%20%28"), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_referencedClasses", []), "_size", []), "_asString", [])]), "__comma", [unescape("%29")])]);return smalltalk.send($rec, "_style_", [unescape("font-weight%3A%20bold")]);})(smalltalk.send(html, "_li", []));return smalltalk.send(smalltalk.send(self, "_referencedClasses", []), "_do_", [(function(each){return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodClass", []), "_asString", []), "__comma", [unescape("%20%3E%3E%20")]), "__comma", [smalltalk.send(each, "_selector", [])])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_openBrowserOn_", [each]);})]);})(smalltalk.send(html, "_li", []));})]);})]);
|
2410
|
+
return self;},
|
2411
|
+
source: unescape('updateReferencedClassesList%0A%20%20%20%20%09referencedClassesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09html%20li%0A%09%09class%3A%20%27column_label%27%3B%20%0A%09%09with%3A%20%27Class%20references%20%28%27%2C%20self%20referencedClasses%20size%20asString%2C%20%27%29%27%3B%0A%09%09style%3A%20%27font-weight%3A%20bold%27.%0A%09self%20referencedClasses%20do%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%0A%09%20%20%20%20%09%09with%3A%20%28each%20methodClass%20asString%2C%20%27%20%3E%3E%20%27%2C%20each%20selector%29%3B%0A%09%09%09onClick%3A%20%5Bself%20openBrowserOn%3A%20each%5D%5D%5D'),
|
2412
|
+
messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "referencedClasses", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
|
2413
|
+
referencedClasses: []
|
2414
|
+
}),
|
2415
|
+
smalltalk.ReferencesBrowser);
|
2416
|
+
|
2417
|
+
|
2418
|
+
smalltalk.addMethod(
|
2419
|
+
'_search_',
|
2420
|
+
smalltalk.method({
|
2421
|
+
selector: 'search:',
|
2422
|
+
category: 'instance creation',
|
2423
|
+
fn: function (aString){
|
2424
|
+
var self=this;
|
2425
|
+
return (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(self, "_new", []));
|
2426
|
+
return self;},
|
2427
|
+
source: unescape('search%3A%20aString%0A%09%5Eself%20new%0A%09%09searchReferencesFor%3A%20aString%3B%0A%09%09open'),
|
2428
|
+
messageSends: ["searchReferencesFor:", "open", "new"],
|
2429
|
+
referencedClasses: []
|
2430
|
+
}),
|
2431
|
+
smalltalk.ReferencesBrowser.klass);
|
2432
|
+
|
2433
|
+
|
2434
|
+
smalltalk.addClass('SourceArea', smalltalk.Widget, ['textarea', 'editor'], 'IDE');
|
2435
|
+
smalltalk.addMethod(
|
2436
|
+
'_val',
|
2437
|
+
smalltalk.method({
|
2438
|
+
selector: 'val',
|
2439
|
+
category: 'accessing',
|
2440
|
+
fn: function (){
|
2441
|
+
var self=this;
|
2442
|
+
return smalltalk.send(self['@editor'], "_getValue", []);
|
2443
|
+
return self;},
|
2444
|
+
source: unescape('val%0A%20%20%20%20%5Eeditor%20getValue'),
|
2445
|
+
messageSends: ["getValue"],
|
2446
|
+
referencedClasses: []
|
2447
|
+
}),
|
2448
|
+
smalltalk.SourceArea);
|
2449
|
+
|
2450
|
+
smalltalk.addMethod(
|
2451
|
+
'_val_',
|
2452
|
+
smalltalk.method({
|
2453
|
+
selector: 'val:',
|
2454
|
+
category: 'accessing',
|
2455
|
+
fn: function (aString){
|
2456
|
+
var self=this;
|
2457
|
+
smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [aString]);
|
2458
|
+
return self;},
|
2459
|
+
source: unescape('val%3A%20aString%0A%20%20%20%20textarea%20asJQuery%20val%3A%20aString'),
|
2460
|
+
messageSends: ["val:", "asJQuery"],
|
2461
|
+
referencedClasses: []
|
2462
|
+
}),
|
2463
|
+
smalltalk.SourceArea);
|
2464
|
+
|
2465
|
+
smalltalk.addMethod(
|
2466
|
+
'_currentLine',
|
2467
|
+
smalltalk.method({
|
2468
|
+
selector: 'currentLine',
|
2469
|
+
category: 'accessing',
|
2470
|
+
fn: function (){
|
2471
|
+
var self=this;
|
2472
|
+
try{var lines=nil;
|
2473
|
+
var startLine=nil;
|
2474
|
+
var endLine=nil;
|
2475
|
+
lines=smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "_tokenize_", [smalltalk.send(smalltalk.String, "_lf", [])]);
|
2476
|
+
startLine=endLine=(0);
|
2477
|
+
smalltalk.send(lines, "_do_", [(function(each){endLine=smalltalk.send(startLine, "__plus", [smalltalk.send(each, "_size", [])]);startLine=smalltalk.send(endLine, "__plus", [(1)]);return smalltalk.send(smalltalk.send(endLine, "__gt_eq", [smalltalk.send(self, "_selectionStart", [])]), "_ifTrue_", [(function(){smalltalk.send(self, "_selectionEnd_", [endLine]);return (function(){throw({name: 'stReturn', selector: '_currentLine', fn: function(){return each}})})();})]);})]);
|
2478
|
+
return self;
|
2479
|
+
} catch(e) {if(e.name === 'stReturn' && e.selector === '_currentLine'){return e.fn()} throw(e)}},
|
2480
|
+
source: unescape('currentLine%0A%20%20%20%20%7C%20lines%20startLine%20endLine%7C%0A%20%20%20%20lines%20%3A%3D%20textarea%20asJQuery%20val%20tokenize%3A%20String%20lf.%0A%20%20%20%20startLine%20%3A%3D%20endLine%20%3A%3D%200.%0A%20%20%20%20lines%20do%3A%20%5B%3Aeach%20%7C%0A%09endLine%20%3A%3D%20startLine%20+%20each%20size.%0A%09startLine%20%3A%3D%20endLine%20+%201.%0A%09endLine%20%3E%3D%20self%20selectionStart%20ifTrue%3A%20%5B%0A%09%20%20%20%20self%20selectionEnd%3A%20endLine.%0A%09%20%20%20%20%5Eeach%5D%5D'),
|
2481
|
+
messageSends: ["tokenize:", "val", "asJQuery", "lf", "do:", unescape("+"), "size", "ifTrue:", unescape("%3E%3D"), "selectionStart", "selectionEnd:"],
|
2482
|
+
referencedClasses: [smalltalk.String]
|
2483
|
+
}),
|
2484
|
+
smalltalk.SourceArea);
|
2485
|
+
|
2486
|
+
smalltalk.addMethod(
|
2487
|
+
'_selection',
|
2488
|
+
smalltalk.method({
|
2489
|
+
selector: 'selection',
|
2490
|
+
category: 'accessing',
|
2491
|
+
fn: function (){
|
2492
|
+
var self=this;
|
2493
|
+
return document.selection;
|
2494
|
+
return self;},
|
2495
|
+
source: unescape('selection%0A%20%20%20%20%3Creturn%20document.selection%3E'),
|
2496
|
+
messageSends: [],
|
2497
|
+
referencedClasses: []
|
2498
|
+
}),
|
2499
|
+
smalltalk.SourceArea);
|
2500
|
+
|
2501
|
+
smalltalk.addMethod(
|
2502
|
+
'_selectionEnd',
|
2503
|
+
smalltalk.method({
|
2504
|
+
selector: 'selectionEnd',
|
2505
|
+
category: 'accessing',
|
2506
|
+
fn: function (){
|
2507
|
+
var self=this;
|
2508
|
+
return smalltalk.send(smalltalk.send(self['@textarea'], "_element", []), "_selectionEnd", []);
|
2509
|
+
return self;},
|
2510
|
+
source: unescape('selectionEnd%0A%20%20%20%5Etextarea%20element%20selectionEnd'),
|
2511
|
+
messageSends: ["selectionEnd", "element"],
|
2512
|
+
referencedClasses: []
|
2513
|
+
}),
|
2514
|
+
smalltalk.SourceArea);
|
2515
|
+
|
2516
|
+
smalltalk.addMethod(
|
2517
|
+
'_selectionStart',
|
2518
|
+
smalltalk.method({
|
2519
|
+
selector: 'selectionStart',
|
2520
|
+
category: 'accessing',
|
2521
|
+
fn: function (){
|
2522
|
+
var self=this;
|
2523
|
+
return smalltalk.send(smalltalk.send(self['@textarea'], "_element", []), "_selectionStart", []);
|
2524
|
+
return self;},
|
2525
|
+
source: unescape('selectionStart%0A%20%20%20%5Etextarea%20element%20selectionStart'),
|
2526
|
+
messageSends: ["selectionStart", "element"],
|
2527
|
+
referencedClasses: []
|
2528
|
+
}),
|
2529
|
+
smalltalk.SourceArea);
|
2530
|
+
|
2531
|
+
smalltalk.addMethod(
|
2532
|
+
'_selectionStart_',
|
2533
|
+
smalltalk.method({
|
2534
|
+
selector: 'selectionStart:',
|
2535
|
+
category: 'accessing',
|
2536
|
+
fn: function (anInteger){
|
2537
|
+
var self=this;
|
2538
|
+
smalltalk.send(smalltalk.send(self['@textarea'], "_element", []), "_selectionStart_", [anInteger]);
|
2539
|
+
return self;},
|
2540
|
+
source: unescape('selectionStart%3A%20anInteger%0A%20%20%20textarea%20element%20selectionStart%3A%20anInteger'),
|
2541
|
+
messageSends: ["selectionStart:", "element"],
|
2542
|
+
referencedClasses: []
|
2543
|
+
}),
|
2544
|
+
smalltalk.SourceArea);
|
2545
|
+
|
2546
|
+
smalltalk.addMethod(
|
2547
|
+
'_selectionEnd_',
|
2548
|
+
smalltalk.method({
|
2549
|
+
selector: 'selectionEnd:',
|
2550
|
+
category: 'accessing',
|
2551
|
+
fn: function (anInteger){
|
2552
|
+
var self=this;
|
2553
|
+
smalltalk.send(smalltalk.send(self['@textarea'], "_element", []), "_selectionEnd_", [anInteger]);
|
2554
|
+
return self;},
|
2555
|
+
source: unescape('selectionEnd%3A%20anInteger%0A%20%20%20textarea%20element%20selectionEnd%3A%20anInteger'),
|
2556
|
+
messageSends: ["selectionEnd:", "element"],
|
2557
|
+
referencedClasses: []
|
2558
|
+
}),
|
2559
|
+
smalltalk.SourceArea);
|
2560
|
+
|
2561
|
+
smalltalk.addMethod(
|
2562
|
+
'_textarea',
|
2563
|
+
smalltalk.method({
|
2564
|
+
selector: 'textarea',
|
2565
|
+
category: 'accessing',
|
2566
|
+
fn: function (){
|
2567
|
+
var self=this;
|
2568
|
+
return self['@textarea'];
|
2569
|
+
return self;},
|
2570
|
+
source: unescape('textarea%0A%09%5Etextarea'),
|
2571
|
+
messageSends: [],
|
2572
|
+
referencedClasses: []
|
2573
|
+
}),
|
2574
|
+
smalltalk.SourceArea);
|
2575
|
+
|
2576
|
+
smalltalk.addMethod(
|
2577
|
+
'_clear',
|
2578
|
+
smalltalk.method({
|
2579
|
+
selector: 'clear',
|
2580
|
+
category: 'actions',
|
2581
|
+
fn: function (){
|
2582
|
+
var self=this;
|
2583
|
+
smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [""]);
|
2584
|
+
return self;},
|
2585
|
+
source: unescape('clear%0A%20%20%20%20textarea%20asJQuery%20val%3A%20%27%27'),
|
2586
|
+
messageSends: ["val:", "asJQuery"],
|
2587
|
+
referencedClasses: []
|
2588
|
+
}),
|
2589
|
+
smalltalk.SourceArea);
|
2590
|
+
|
2591
|
+
smalltalk.addMethod(
|
2592
|
+
'_doIt',
|
2593
|
+
smalltalk.method({
|
2594
|
+
selector: 'doIt',
|
2595
|
+
category: 'actions',
|
2596
|
+
fn: function (){
|
2597
|
+
var self=this;
|
2598
|
+
var selection=nil;
|
2599
|
+
smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_focus", []);
|
2600
|
+
smalltalk.send(smalltalk.send(smalltalk.send(self, "_selectionStart", []), "__eq", [smalltalk.send(self, "_selectionEnd", [])]), "_ifTrue_ifFalse_", [(function(){return selection=smalltalk.send(self, "_currentLine", []);}), (function(){return selection=smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "_copyFrom_to_", [smalltalk.send(smalltalk.send(self, "_selectionStart", []), "__plus", [(1)]), smalltalk.send(smalltalk.send(self, "_selectionEnd", []), "__plus", [(1)])]);})]);
|
2601
|
+
return smalltalk.send(self, "_eval_", [selection]);
|
2602
|
+
return self;},
|
2603
|
+
source: unescape('doIt%0A%20%20%20%20%7C%20selection%20%7C%0A%20%20%20%20textarea%20asJQuery%20focus.%0A%20%20%20%20self%20selectionStart%20%3D%20self%20selectionEnd%0A%09ifTrue%3A%20%5Bselection%20%3A%3D%20self%20currentLine%5D%0A%09ifFalse%3A%20%5B%0A%09%20%20%20%20selection%20%3A%3D%20textarea%20asJQuery%20val%20copyFrom%3A%20self%20selectionStart%20+%201%20to%3A%20self%20selectionEnd%20+%201%5D.%0A%20%20%20%20%5Eself%20eval%3A%20selection'),
|
2604
|
+
messageSends: ["focus", "asJQuery", "ifTrue:ifFalse:", unescape("%3D"), "selectionStart", "selectionEnd", "currentLine", "copyFrom:to:", "val", unescape("+"), "eval:"],
|
2605
|
+
referencedClasses: []
|
2606
|
+
}),
|
2607
|
+
smalltalk.SourceArea);
|
2608
|
+
|
2609
|
+
smalltalk.addMethod(
|
2610
|
+
'_eval_',
|
2611
|
+
smalltalk.method({
|
2612
|
+
selector: 'eval:',
|
2613
|
+
category: 'actions',
|
2614
|
+
fn: function (aString){
|
2615
|
+
var self=this;
|
2616
|
+
try{var compiler=nil;
|
2617
|
+
var node=nil;
|
2618
|
+
compiler=smalltalk.send(smalltalk.Compiler, "_new", []);
|
2619
|
+
node=smalltalk.send(compiler, "_parseExpression_", [aString]);
|
2620
|
+
smalltalk.send(smalltalk.send(node, "_isParseFailure", []), "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_eval_', fn: function(){return smalltalk.send(self, "_alert_", [smalltalk.send(smalltalk.send(smalltalk.send(node, "_reason", []), "__comma", [unescape("%2C%20position%3A%20")]), "__comma", [smalltalk.send(node, "_position", [])])])}})})();})]);
|
2621
|
+
(function(){throw({name: 'stReturn', selector: '_eval_', fn: function(){return smalltalk.send(compiler, "_loadExpression_", [aString])}})})();
|
2622
|
+
return self;
|
2623
|
+
} catch(e) {if(e.name === 'stReturn' && e.selector === '_eval_'){return e.fn()} throw(e)}},
|
2624
|
+
source: unescape('eval%3A%20aString%0A%20%20%20%20%7C%20compiler%20node%20%7C%0A%20%20%20%20compiler%20%3A%3D%20Compiler%20new.%0A%20%20%20%20node%20%3A%3D%20compiler%20parseExpression%3A%20aString.%0A%20%20%20%20node%20isParseFailure%20ifTrue%3A%20%5B%0A%09%5Eself%20alert%3A%20node%20reason%2C%20%27%2C%20position%3A%20%27%2C%20node%20position%5D.%0A%20%20%20%20%5Ecompiler%20loadExpression%3A%20aString'),
|
2625
|
+
messageSends: ["new", "parseExpression:", "ifTrue:", "isParseFailure", "alert:", unescape("%2C"), "reason", "position", "loadExpression:"],
|
2626
|
+
referencedClasses: [smalltalk.Compiler]
|
2627
|
+
}),
|
2628
|
+
smalltalk.SourceArea);
|
2629
|
+
|
2630
|
+
smalltalk.addMethod(
|
2631
|
+
'_handleKeyDown_',
|
2632
|
+
smalltalk.method({
|
2633
|
+
selector: 'handleKeyDown:',
|
2634
|
+
category: 'actions',
|
2635
|
+
fn: function (anEvent){
|
2636
|
+
var self=this;
|
2637
|
+
if(anEvent.ctrlKey) {
|
2638
|
+
if(anEvent.keyCode === 80) { //ctrl+p
|
2639
|
+
self._printIt();
|
2640
|
+
anEvent.preventDefault();
|
2641
|
+
return false;
|
2642
|
+
}
|
2643
|
+
if(anEvent.keyCode === 68) { //ctrl+d
|
2644
|
+
self._doIt();
|
2645
|
+
anEvent.preventDefault();
|
2646
|
+
return false;
|
2647
|
+
}
|
2648
|
+
if(anEvent.keyCode === 73) { //ctrl+i
|
2649
|
+
self._inspectIt();
|
2650
|
+
anEvent.preventDefault();
|
2651
|
+
return false;
|
2652
|
+
}
|
2653
|
+
};
|
2654
|
+
return self;},
|
2655
|
+
source: unescape('handleKeyDown%3A%20anEvent%0A%20%20%20%20%3Cif%28anEvent.ctrlKey%29%20%7B%0A%09%09if%28anEvent.keyCode%20%3D%3D%3D%2080%29%20%7B%20//ctrl+p%0A%09%09%09self._printIt%28%29%3B%0A%09%09%09anEvent.preventDefault%28%29%3B%0A%09%09%09return%20false%3B%0A%09%09%7D%0A%09%09if%28anEvent.keyCode%20%3D%3D%3D%2068%29%20%7B%20//ctrl+d%0A%09%09%09self._doIt%28%29%3B%0A%09%09%09anEvent.preventDefault%28%29%3B%0A%09%09%09return%20false%3B%0A%09%09%7D%0A%09%09if%28anEvent.keyCode%20%3D%3D%3D%2073%29%20%7B%20//ctrl+i%0A%09%09%09self._inspectIt%28%29%3B%0A%09%09%09anEvent.preventDefault%28%29%3B%0A%09%09%09return%20false%3B%0A%09%09%7D%0A%09%7D%3E'),
|
2656
|
+
messageSends: [],
|
2657
|
+
referencedClasses: []
|
2658
|
+
}),
|
2659
|
+
smalltalk.SourceArea);
|
2660
|
+
|
2661
|
+
smalltalk.addMethod(
|
2662
|
+
'_inspectIt',
|
2663
|
+
smalltalk.method({
|
2664
|
+
selector: 'inspectIt',
|
2665
|
+
category: 'actions',
|
2666
|
+
fn: function (){
|
2667
|
+
var self=this;
|
2668
|
+
smalltalk.send(smalltalk.send(self, "_doIt", []), "_inspect", []);
|
2669
|
+
return self;},
|
2670
|
+
source: unescape('inspectIt%0A%20%20%20%20self%20doIt%20inspect'),
|
2671
|
+
messageSends: ["inspect", "doIt"],
|
2672
|
+
referencedClasses: []
|
2673
|
+
}),
|
2674
|
+
smalltalk.SourceArea);
|
2675
|
+
|
2676
|
+
smalltalk.addMethod(
|
2677
|
+
'_print_',
|
2678
|
+
smalltalk.method({
|
2679
|
+
selector: 'print:',
|
2680
|
+
category: 'actions',
|
2681
|
+
fn: function (aString){
|
2682
|
+
var self=this;
|
2683
|
+
var start=nil;
|
2684
|
+
start=smalltalk.send(self, "_selectionEnd", []);
|
2685
|
+
smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "_copyFrom_to_", [(1), start]), "__comma", [" "]), "__comma", [aString]), "__comma", [" "]), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "_copyFrom_to_", [smalltalk.send(start, "__plus", [(1)]), smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "_size", [])])])]);
|
2686
|
+
smalltalk.send(self, "_selectionStart_", [start]);
|
2687
|
+
smalltalk.send(self, "_selectionEnd_", [smalltalk.send(smalltalk.send(start, "__plus", [smalltalk.send(aString, "_size", [])]), "__plus", [(2)])]);
|
2688
|
+
return self;},
|
2689
|
+
source: unescape('print%3A%20aString%0A%20%20%20%20%7C%20start%20%7C%0A%20%20%20%20start%20%3A%3D%20self%20selectionEnd.%0A%20%20%20%20textarea%20asJQuery%20val%3A%20%28%0A%09%28textarea%20asJQuery%20val%20copyFrom%3A%201%20to%3A%20start%29%2C%0A%09%27%20%27%2C%20aString%2C%20%27%20%27%2C%0A%09%28textarea%20asJQuery%20val%20copyFrom%3A%20start%20+%201%20to%3A%20textarea%20asJQuery%20val%20size%29%29.%0A%20%20%20%20self%20selectionStart%3A%20start.%0A%20%20%20%20self%20selectionEnd%3A%20start%20+%20aString%20size%20+%202'),
|
2690
|
+
messageSends: ["selectionEnd", "val:", "asJQuery", unescape("%2C"), "copyFrom:to:", "val", unescape("+"), "size", "selectionStart:", "selectionEnd:"],
|
2691
|
+
referencedClasses: []
|
2692
|
+
}),
|
2693
|
+
smalltalk.SourceArea);
|
2694
|
+
|
2695
|
+
smalltalk.addMethod(
|
2696
|
+
'_printIt',
|
2697
|
+
smalltalk.method({
|
2698
|
+
selector: 'printIt',
|
2699
|
+
category: 'actions',
|
2700
|
+
fn: function (){
|
2701
|
+
var self=this;
|
2702
|
+
smalltalk.send(self, "_print_", [smalltalk.send(smalltalk.send(self, "_doIt", []), "_printString", [])]);
|
2703
|
+
return self;},
|
2704
|
+
source: unescape('printIt%0A%20%20%20%20self%20print%3A%20self%20doIt%20printString'),
|
2705
|
+
messageSends: ["print:", "printString", "doIt"],
|
2706
|
+
referencedClasses: []
|
2707
|
+
}),
|
2708
|
+
smalltalk.SourceArea);
|
2709
|
+
|
2710
|
+
smalltalk.addMethod(
|
2711
|
+
'_renderOn_',
|
2712
|
+
smalltalk.method({
|
2713
|
+
selector: 'renderOn:',
|
2714
|
+
category: 'rendering',
|
2715
|
+
fn: function (html){
|
2716
|
+
var self=this;
|
2717
|
+
self['@textarea']=smalltalk.send(html, "_textarea", []);
|
2718
|
+
smalltalk.send(self, "_setEditorOn_", [smalltalk.send(self['@textarea'], "_element", [])]);
|
2719
|
+
smalltalk.send(self['@textarea'], "_onKeyDown_", [(function(e){return smalltalk.send(self, "_handleKeyDown_", [e]);})]);
|
2720
|
+
(function($rec){smalltalk.send($rec, "_class_", ["jt_workspace"]);return smalltalk.send($rec, "_at_put_", ["spellcheck", "false"]);})(self['@textarea']);
|
2721
|
+
return self;},
|
2722
|
+
source: unescape('renderOn%3A%20html%0A%20%20%20%20textarea%20%3A%3D%20html%20textarea.%0A%20%20%20%20self%20setEditorOn%3A%20textarea%20element.%0A%20%20%20%20textarea%20onKeyDown%3A%20%5B%3Ae%20%7C%20self%20handleKeyDown%3A%20e%5D.%0A%20%20%20%20textarea%20%0A%09class%3A%20%27jt_workspace%27%3B%0A%09at%3A%20%27spellcheck%27%20put%3A%20%27false%27'),
|
2723
|
+
messageSends: ["textarea", "setEditorOn:", "element", "onKeyDown:", "handleKeyDown:", "class:", "at:put:"],
|
2724
|
+
referencedClasses: []
|
2725
|
+
}),
|
2726
|
+
smalltalk.SourceArea);
|
2727
|
+
|
2728
|
+
smalltalk.addMethod(
|
2729
|
+
'_setEditorOn_',
|
2730
|
+
smalltalk.method({
|
2731
|
+
selector: 'setEditorOn:',
|
2732
|
+
category: 'accessing',
|
2733
|
+
fn: function (aTextarea){
|
2734
|
+
var self=this;
|
2735
|
+
self['@editor'] = CodeMirror.fromTextArea(aTextarea);
|
2736
|
+
return self;},
|
2737
|
+
source: unescape('setEditorOn%3A%20aTextarea%0A%09%3Cself%5B%27@editor%27%5D%20%3D%20CodeMirror.fromTextArea%28aTextarea%29%3E'),
|
2738
|
+
messageSends: [],
|
2739
|
+
referencedClasses: []
|
2740
|
+
}),
|
2741
|
+
smalltalk.SourceArea);
|
2742
|
+
|
2743
|
+
|
2744
|
+
|
2745
|
+
smalltalk.addClass('ClassesList', smalltalk.Widget, ['browser', 'ul', 'nodes'], 'IDE');
|
2746
|
+
smalltalk.addMethod(
|
2747
|
+
'_category',
|
2748
|
+
smalltalk.method({
|
2749
|
+
selector: 'category',
|
2750
|
+
category: 'accessing',
|
2751
|
+
fn: function (){
|
2752
|
+
var self=this;
|
2753
|
+
return smalltalk.send(smalltalk.send(self, "_browser", []), "_selectedCategory", []);
|
2754
|
+
return self;},
|
2755
|
+
source: unescape('category%0A%09%5Eself%20browser%20selectedCategory'),
|
2756
|
+
messageSends: ["selectedCategory", "browser"],
|
2757
|
+
referencedClasses: []
|
2758
|
+
}),
|
2759
|
+
smalltalk.ClassesList);
|
2760
|
+
|
2761
|
+
smalltalk.addMethod(
|
2762
|
+
'_nodes',
|
2763
|
+
smalltalk.method({
|
2764
|
+
selector: 'nodes',
|
2765
|
+
category: 'accessing',
|
2766
|
+
fn: function (){
|
2767
|
+
var self=this;
|
2768
|
+
smalltalk.send(self['@nodes'], "_ifNil_", [(function(){return self['@nodes']=smalltalk.send(self, "_getNodes", []);})]);
|
2769
|
+
return self['@nodes'];
|
2770
|
+
return self;},
|
2771
|
+
source: unescape('nodes%0A%09nodes%20ifNil%3A%20%5Bnodes%20%3A%3D%20self%20getNodes%5D.%0A%09%5Enodes'),
|
2772
|
+
messageSends: ["ifNil:", "getNodes"],
|
2773
|
+
referencedClasses: []
|
2774
|
+
}),
|
2775
|
+
smalltalk.ClassesList);
|
2776
|
+
|
2777
|
+
smalltalk.addMethod(
|
2778
|
+
'_renderOn_',
|
2779
|
+
smalltalk.method({
|
2780
|
+
selector: 'renderOn:',
|
2781
|
+
category: 'rendering',
|
2782
|
+
fn: function (html){
|
2783
|
+
var self=this;
|
2784
|
+
self['@ul']=(function($rec){smalltalk.send($rec, "_class_", ["jt_column browser classes"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", []));
|
2785
|
+
smalltalk.send(self, "_updateNodes", []);
|
2786
|
+
return self;},
|
2787
|
+
source: unescape('renderOn%3A%20html%0A%09ul%20%3A%3D%20html%20ul%0A%09%09class%3A%20%27jt_column%20browser%20classes%27%3B%0A%09%09yourself.%0A%09self%20updateNodes'),
|
2788
|
+
messageSends: ["class:", "yourself", "ul", "updateNodes"],
|
2789
|
+
referencedClasses: []
|
2790
|
+
}),
|
2791
|
+
smalltalk.ClassesList);
|
2792
|
+
|
2793
|
+
smalltalk.addMethod(
|
2794
|
+
'_browser',
|
2795
|
+
smalltalk.method({
|
2796
|
+
selector: 'browser',
|
2797
|
+
category: 'accessing',
|
2798
|
+
fn: function (){
|
2799
|
+
var self=this;
|
2800
|
+
return self['@browser'];
|
2801
|
+
return self;},
|
2802
|
+
source: unescape('browser%0A%09%5Ebrowser'),
|
2803
|
+
messageSends: [],
|
2804
|
+
referencedClasses: []
|
2805
|
+
}),
|
2806
|
+
smalltalk.ClassesList);
|
2807
|
+
|
2808
|
+
smalltalk.addMethod(
|
2809
|
+
'_browser_',
|
2810
|
+
smalltalk.method({
|
2811
|
+
selector: 'browser:',
|
2812
|
+
category: 'accessing',
|
2813
|
+
fn: function (aBrowser){
|
2814
|
+
var self=this;
|
2815
|
+
self['@browser']=aBrowser;
|
2816
|
+
return self;},
|
2817
|
+
source: unescape('browser%3A%20aBrowser%0A%09browser%20%3A%3D%20aBrowser'),
|
2818
|
+
messageSends: [],
|
2819
|
+
referencedClasses: []
|
2820
|
+
}),
|
2821
|
+
smalltalk.ClassesList);
|
2822
|
+
|
2823
|
+
smalltalk.addMethod(
|
2824
|
+
'_updateNodes',
|
2825
|
+
smalltalk.method({
|
2826
|
+
selector: 'updateNodes',
|
2827
|
+
category: 'rendering',
|
2828
|
+
fn: function (){
|
2829
|
+
var self=this;
|
2830
|
+
smalltalk.send(self['@ul'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_renderOn_", [html]);})]);})]);
|
2831
|
+
return self;},
|
2832
|
+
source: unescape('updateNodes%0A%09ul%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09self%20nodes%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%09each%20renderOn%3A%20html%5D%5D'),
|
2833
|
+
messageSends: ["contents:", "do:", "nodes", "renderOn:"],
|
2834
|
+
referencedClasses: []
|
2835
|
+
}),
|
2836
|
+
smalltalk.ClassesList);
|
2837
|
+
|
2838
|
+
smalltalk.addMethod(
|
2839
|
+
'_getNodes',
|
2840
|
+
smalltalk.method({
|
2841
|
+
selector: 'getNodes',
|
2842
|
+
category: 'accessing',
|
2843
|
+
fn: function (){
|
2844
|
+
var self=this;
|
2845
|
+
var classes=nil;
|
2846
|
+
var children=nil;
|
2847
|
+
var others=nil;
|
2848
|
+
classes=smalltalk.send(smalltalk.send(self, "_browser", []), "_classes", []);
|
2849
|
+
children=[];
|
2850
|
+
others=[];
|
2851
|
+
smalltalk.send(classes, "_do_", [(function(each){return smalltalk.send(smalltalk.send(classes, "_includes_", [smalltalk.send(each, "_superclass", [])]), "_ifFalse_ifTrue_", [(function(){return smalltalk.send(children, "_add_", [each]);}), (function(){return smalltalk.send(others, "_add_", [each]);})]);})]);
|
2852
|
+
return smalltalk.send(children, "_collect_", [(function(each){return smalltalk.send(smalltalk.ClassesListNode, "_on_browser_classes_level_", [each, smalltalk.send(self, "_browser", []), others, (0)]);})]);
|
2853
|
+
return self;},
|
2854
|
+
source: unescape('getNodes%0A%09%7C%20classes%20children%20others%20%7C%0A%09classes%20%3A%3D%20self%20browser%20classes.%0A%09children%20%3A%3D%20%23%28%29.%0A%09others%20%3A%3D%20%23%28%29.%0A%09classes%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%28classes%20includes%3A%20each%20superclass%29%0A%09%09%09ifFalse%3A%20%5Bchildren%20add%3A%20each%5D%0A%09%09%09ifTrue%3A%20%5Bothers%20add%3A%20each%5D%5D.%0A%09%5Echildren%20collect%3A%20%5B%3Aeach%20%7C%0A%09%09ClassesListNode%20on%3A%20each%20browser%3A%20self%20browser%20classes%3A%20others%20level%3A%200%5D'),
|
2855
|
+
messageSends: ["classes", "browser", "do:", "ifFalse:ifTrue:", "includes:", "superclass", "add:", "collect:", "on:browser:classes:level:"],
|
2856
|
+
referencedClasses: [smalltalk.nil]
|
2857
|
+
}),
|
2858
|
+
smalltalk.ClassesList);
|
2859
|
+
|
2860
|
+
smalltalk.addMethod(
|
2861
|
+
'_resetNodes',
|
2862
|
+
smalltalk.method({
|
2863
|
+
selector: 'resetNodes',
|
2864
|
+
category: 'accessing',
|
2865
|
+
fn: function (){
|
2866
|
+
var self=this;
|
2867
|
+
self['@nodes']=nil;
|
2868
|
+
return self;},
|
2869
|
+
source: unescape('resetNodes%0A%09nodes%20%3A%3D%20nil'),
|
2870
|
+
messageSends: [],
|
2871
|
+
referencedClasses: []
|
2872
|
+
}),
|
2873
|
+
smalltalk.ClassesList);
|
2874
|
+
|
2875
|
+
|
2876
|
+
smalltalk.addMethod(
|
2877
|
+
'_on_',
|
2878
|
+
smalltalk.method({
|
2879
|
+
selector: 'on:',
|
2880
|
+
category: 'instance creation',
|
2881
|
+
fn: function (aBrowser){
|
2882
|
+
var self=this;
|
2883
|
+
return (function($rec){smalltalk.send($rec, "_browser_", [aBrowser]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
|
2884
|
+
return self;},
|
2885
|
+
source: unescape('on%3A%20aBrowser%0A%09%5Eself%20new%20%0A%09%09browser%3A%20aBrowser%3B%20%0A%09%09yourself'),
|
2886
|
+
messageSends: ["browser:", "yourself", "new"],
|
2887
|
+
referencedClasses: []
|
2888
|
+
}),
|
2889
|
+
smalltalk.ClassesList.klass);
|
2890
|
+
|
2891
|
+
|
2892
|
+
smalltalk.addClass('ClassesListNode', smalltalk.Widget, ['browser', 'theClass', 'level', 'nodes'], 'IDE');
|
2893
|
+
smalltalk.addMethod(
|
2894
|
+
'_nodes',
|
2895
|
+
smalltalk.method({
|
2896
|
+
selector: 'nodes',
|
2897
|
+
category: 'accessing',
|
2898
|
+
fn: function (){
|
2899
|
+
var self=this;
|
2900
|
+
return self['@nodes'];
|
2901
|
+
return self;},
|
2902
|
+
source: unescape('nodes%0A%09%5Enodes'),
|
2903
|
+
messageSends: [],
|
2904
|
+
referencedClasses: []
|
2905
|
+
}),
|
2906
|
+
smalltalk.ClassesListNode);
|
2907
|
+
|
2908
|
+
smalltalk.addMethod(
|
2909
|
+
'_renderOn_',
|
2910
|
+
smalltalk.method({
|
2911
|
+
selector: 'renderOn:',
|
2912
|
+
category: 'rendering',
|
2913
|
+
fn: function (html){
|
2914
|
+
var self=this;
|
2915
|
+
var li=nil;
|
2916
|
+
li=smalltalk.send(smalltalk.send(html, "_li", []), "_onClick_", [(function(){return smalltalk.send(smalltalk.send(self, "_browser", []), "_selectClass_", [smalltalk.send(self, "_theClass", [])]);})]);
|
2917
|
+
smalltalk.send(smalltalk.send(li, "_asJQuery", []), "_contents_", [smalltalk.send(self, "_label", [])]);
|
2918
|
+
smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_browser", []), "_selectedClass", []), "__eq", [smalltalk.send(self, "_theClass", [])]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);
|
2919
|
+
smalltalk.send(smalltalk.send(self, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_renderOn_", [html]);})]);
|
2920
|
+
return self;},
|
2921
|
+
source: unescape('renderOn%3A%20html%0A%09%7C%20li%20%7C%0A%09li%20%3A%3D%20html%20li%20%0A%09%09onClick%3A%20%5Bself%20browser%20selectClass%3A%20self%20theClass%5D.%0A%09li%20asJQuery%20contents%3A%20self%20label.%0A%09self%20browser%20selectedClass%20%3D%20self%20theClass%20ifTrue%3A%20%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09self%20nodes%20do%3A%20%5B%3Aeach%20%7C%0A%09%09each%20renderOn%3A%20html%5D'),
|
2922
|
+
messageSends: ["onClick:", "li", "selectClass:", "browser", "theClass", "contents:", "asJQuery", "label", "ifTrue:", unescape("%3D"), "selectedClass", "class:", "do:", "nodes", "renderOn:"],
|
2923
|
+
referencedClasses: []
|
2924
|
+
}),
|
2925
|
+
smalltalk.ClassesListNode);
|
2926
|
+
|
2927
|
+
smalltalk.addMethod(
|
2928
|
+
'_theClass',
|
2929
|
+
smalltalk.method({
|
2930
|
+
selector: 'theClass',
|
2931
|
+
category: 'accessing',
|
2932
|
+
fn: function (){
|
2933
|
+
var self=this;
|
2934
|
+
return self['@theClass'];
|
2935
|
+
return self;},
|
2936
|
+
source: unescape('theClass%0A%09%5EtheClass'),
|
2937
|
+
messageSends: [],
|
2938
|
+
referencedClasses: []
|
2939
|
+
}),
|
2940
|
+
smalltalk.ClassesListNode);
|
2941
|
+
|
2942
|
+
smalltalk.addMethod(
|
2943
|
+
'_theClass_',
|
2944
|
+
smalltalk.method({
|
2945
|
+
selector: 'theClass:',
|
2946
|
+
category: 'accessing',
|
2947
|
+
fn: function (aClass){
|
2948
|
+
var self=this;
|
2949
|
+
self['@theClass']=aClass;
|
2950
|
+
return self;},
|
2951
|
+
source: unescape('theClass%3A%20aClass%0A%09theClass%20%3A%3D%20aClass'),
|
2952
|
+
messageSends: [],
|
2953
|
+
referencedClasses: []
|
2954
|
+
}),
|
2955
|
+
smalltalk.ClassesListNode);
|
2956
|
+
|
2957
|
+
smalltalk.addMethod(
|
2958
|
+
'_browser',
|
2959
|
+
smalltalk.method({
|
2960
|
+
selector: 'browser',
|
2961
|
+
category: 'accessing',
|
2962
|
+
fn: function (){
|
2963
|
+
var self=this;
|
2964
|
+
return self['@browser'];
|
2965
|
+
return self;},
|
2966
|
+
source: unescape('browser%0A%09%5Ebrowser'),
|
2967
|
+
messageSends: [],
|
2968
|
+
referencedClasses: []
|
2969
|
+
}),
|
2970
|
+
smalltalk.ClassesListNode);
|
2971
|
+
|
2972
|
+
smalltalk.addMethod(
|
2973
|
+
'_browser_',
|
2974
|
+
smalltalk.method({
|
2975
|
+
selector: 'browser:',
|
2976
|
+
category: 'accessing',
|
2977
|
+
fn: function (aBrowser){
|
2978
|
+
var self=this;
|
2979
|
+
self['@browser']=aBrowser;
|
2980
|
+
return self;},
|
2981
|
+
source: unescape('browser%3A%20aBrowser%0A%09browser%20%3A%3D%20aBrowser'),
|
2982
|
+
messageSends: [],
|
2983
|
+
referencedClasses: []
|
2984
|
+
}),
|
2985
|
+
smalltalk.ClassesListNode);
|
2986
|
+
|
2987
|
+
smalltalk.addMethod(
|
2988
|
+
'_level',
|
2989
|
+
smalltalk.method({
|
2990
|
+
selector: 'level',
|
2991
|
+
category: 'accessing',
|
2992
|
+
fn: function (){
|
2993
|
+
var self=this;
|
2994
|
+
return self['@level'];
|
2995
|
+
return self;},
|
2996
|
+
source: unescape('level%0A%09%5Elevel'),
|
2997
|
+
messageSends: [],
|
2998
|
+
referencedClasses: []
|
2999
|
+
}),
|
3000
|
+
smalltalk.ClassesListNode);
|
3001
|
+
|
3002
|
+
smalltalk.addMethod(
|
3003
|
+
'_level_',
|
3004
|
+
smalltalk.method({
|
3005
|
+
selector: 'level:',
|
3006
|
+
category: 'accessing',
|
3007
|
+
fn: function (anInteger){
|
3008
|
+
var self=this;
|
3009
|
+
self['@level']=anInteger;
|
3010
|
+
return self;},
|
3011
|
+
source: unescape('level%3A%20anInteger%0A%09level%20%3A%3D%20anInteger'),
|
3012
|
+
messageSends: [],
|
3013
|
+
referencedClasses: []
|
3014
|
+
}),
|
3015
|
+
smalltalk.ClassesListNode);
|
3016
|
+
|
3017
|
+
smalltalk.addMethod(
|
3018
|
+
'_label',
|
3019
|
+
smalltalk.method({
|
3020
|
+
selector: 'label',
|
3021
|
+
category: 'accessing',
|
3022
|
+
fn: function (){
|
3023
|
+
var self=this;
|
3024
|
+
var str=nil;
|
3025
|
+
str=smalltalk.send(smalltalk.send(smalltalk.String, "_new", []), "_writeStream", []);
|
3026
|
+
smalltalk.send(smalltalk.send(self, "_level", []), "_timesRepeat_", [(function(){return smalltalk.send(str, "_nextPutAll_", [unescape("%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B")]);})]);
|
3027
|
+
smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_theClass", []), "_name", [])]);
|
3028
|
+
return smalltalk.send(str, "_contents", []);
|
3029
|
+
return self;},
|
3030
|
+
source: unescape('label%0A%09%7C%20str%20%7C%0A%09str%20%3A%3D%20String%20new%20writeStream.%0A%09self%20level%20timesRepeat%3A%20%5B%0A%09%09str%20nextPutAll%3A%20%27%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%27%5D.%0A%09str%20nextPutAll%3A%20self%20theClass%20name.%0A%09%5Estr%20contents'),
|
3031
|
+
messageSends: ["writeStream", "new", "timesRepeat:", "level", "nextPutAll:", "name", "theClass", "contents"],
|
3032
|
+
referencedClasses: [smalltalk.String]
|
3033
|
+
}),
|
3034
|
+
smalltalk.ClassesListNode);
|
3035
|
+
|
3036
|
+
smalltalk.addMethod(
|
3037
|
+
'_getNodesFrom_',
|
3038
|
+
smalltalk.method({
|
3039
|
+
selector: 'getNodesFrom:',
|
3040
|
+
category: 'accessing',
|
3041
|
+
fn: function (aCollection){
|
3042
|
+
var self=this;
|
3043
|
+
var children=nil;
|
3044
|
+
var others=nil;
|
3045
|
+
children=[];
|
3046
|
+
others=[];
|
3047
|
+
smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(smalltalk.send(smalltalk.send(each, "_superclass", []), "__eq", [smalltalk.send(self, "_theClass", [])]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(children, "_add_", [each]);}), (function(){return smalltalk.send(others, "_add_", [each]);})]);})]);
|
3048
|
+
self['@nodes']=smalltalk.send(children, "_collect_", [(function(each){return smalltalk.send(smalltalk.ClassesListNode, "_on_browser_classes_level_", [each, smalltalk.send(self, "_browser", []), others, smalltalk.send(smalltalk.send(self, "_level", []), "__plus", [(1)])]);})]);
|
3049
|
+
return self;},
|
3050
|
+
source: unescape('getNodesFrom%3A%20aCollection%0A%09%7C%20children%20others%20%7C%0A%09children%20%3A%3D%20%23%28%29.%0A%09others%20%3A%3D%20%23%28%29.%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%28each%20superclass%20%3D%20self%20theClass%29%0A%09%09%09ifTrue%3A%20%5Bchildren%20add%3A%20each%5D%0A%09%09%09ifFalse%3A%20%5Bothers%20add%3A%20each%5D%5D.%0A%09nodes%3A%3D%20children%20collect%3A%20%5B%3Aeach%20%7C%0A%09%09ClassesListNode%20on%3A%20each%20browser%3A%20self%20browser%20classes%3A%20others%20level%3A%20self%20level%20+%201%5D'),
|
3051
|
+
messageSends: ["do:", "ifTrue:ifFalse:", unescape("%3D"), "superclass", "theClass", "add:", "collect:", "on:browser:classes:level:", "browser", unescape("+"), "level"],
|
3052
|
+
referencedClasses: [smalltalk.ClassesListNode]
|
3053
|
+
}),
|
3054
|
+
smalltalk.ClassesListNode);
|
3055
|
+
|
3056
|
+
|
3057
|
+
smalltalk.addMethod(
|
3058
|
+
'_on_browser_classes_level_',
|
3059
|
+
smalltalk.method({
|
3060
|
+
selector: 'on:browser:classes:level:',
|
3061
|
+
category: 'instance creation',
|
3062
|
+
fn: function (aClass, aBrowser, aCollection, anInteger){
|
3063
|
+
var self=this;
|
3064
|
+
return (function($rec){smalltalk.send($rec, "_theClass_", [aClass]);smalltalk.send($rec, "_browser_", [aBrowser]);smalltalk.send($rec, "_level_", [anInteger]);smalltalk.send($rec, "_getNodesFrom_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
|
3065
|
+
return self;},
|
3066
|
+
source: unescape('on%3A%20aClass%20browser%3A%20aBrowser%20classes%3A%20aCollection%20level%3A%20anInteger%0A%09%5Eself%20new%0A%09%09theClass%3A%20aClass%3B%0A%09%09browser%3A%20aBrowser%3B%0A%09%09level%3A%20anInteger%3B%0A%09%09getNodesFrom%3A%20aCollection%3B%0A%09%09yourself'),
|
3067
|
+
messageSends: ["theClass:", "browser:", "level:", "getNodesFrom:", "yourself", "new"],
|
3068
|
+
referencedClasses: []
|
3069
|
+
}),
|
3070
|
+
smalltalk.ClassesListNode.klass);
|
3071
|
+
|
3072
|
+
|
3073
|
+
smalltalk.addClass('Debugger', smalltalk.TabWidget, ['error', 'selectedContext', 'sourceArea', 'ul'], 'IDE');
|
3074
|
+
smalltalk.addMethod(
|
3075
|
+
'_renderBoxOn_',
|
3076
|
+
smalltalk.method({
|
3077
|
+
selector: 'renderBoxOn:',
|
3078
|
+
category: 'rendering',
|
3079
|
+
fn: function (html){
|
3080
|
+
var self=this;
|
3081
|
+
(function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
|
3082
|
+
return self;},
|
3083
|
+
source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20self%20%0A%09renderTopPanelOn%3A%20html%3B%0A%09renderBottomPanelOn%3A%20html'),
|
3084
|
+
messageSends: ["renderTopPanelOn:", "renderBottomPanelOn:"],
|
3085
|
+
referencedClasses: []
|
3086
|
+
}),
|
3087
|
+
smalltalk.Debugger);
|
3088
|
+
|
3089
|
+
smalltalk.addMethod(
|
3090
|
+
'_renderTopPanelOn_',
|
3091
|
+
smalltalk.method({
|
3092
|
+
selector: 'renderTopPanelOn:',
|
3093
|
+
category: 'rendering',
|
3094
|
+
fn: function (html){
|
3095
|
+
var self=this;
|
3096
|
+
self['@selectedContext']=smalltalk.send(smalltalk.send(self, "_error", []), "_context", []);
|
3097
|
+
(function($rec){smalltalk.send($rec, "_class_", ["top"]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_class_", ["label"]);return smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(self, "_error", []), "_messageText", [])]);})(smalltalk.send(html, "_div", []));return self['@ul']=(function($rec){smalltalk.send($rec, "_class_", ["jt_column debugger contexts"]);return smalltalk.send($rec, "_with_", [(function(){return smalltalk.send(self, "_renderContext_on_", [smalltalk.send(smalltalk.send(self, "_error", []), "_context", []), html]);})]);})(smalltalk.send(html, "_ul", []));})]);})(smalltalk.send(html, "_div", []));
|
3098
|
+
return self;},
|
3099
|
+
source: unescape('renderTopPanelOn%3A%20html%0A%09selectedContext%20%3A%3D%20self%20error%20context.%0A%09html%20div%20%0A%09%09class%3A%20%27top%27%3B%20%0A%09%09with%3A%20%5B%0A%09%09%09html%20div%20%0A%09%09%09%09class%3A%20%27label%27%3B%0A%09%09%09%09with%3A%20self%20error%20messageText.%0A%09%20%20%20%20%09%09ul%20%3A%3D%20html%20ul%20%0A%09%09%09class%3A%20%27jt_column%20debugger%20contexts%27%3B%0A%09%09%09with%3A%20%5Bself%20renderContext%3A%20self%20error%20context%20on%3A%20html%5D%5D'),
|
3100
|
+
messageSends: ["context", "error", "class:", "with:", "messageText", "div", "renderContext:on:", "ul"],
|
3101
|
+
referencedClasses: []
|
3102
|
+
}),
|
3103
|
+
smalltalk.Debugger);
|
3104
|
+
|
3105
|
+
smalltalk.addMethod(
|
3106
|
+
'_renderContext_on_',
|
3107
|
+
smalltalk.method({
|
3108
|
+
selector: 'renderContext:on:',
|
3109
|
+
category: 'rendering',
|
3110
|
+
fn: function (aContext, html){
|
3111
|
+
var self=this;
|
3112
|
+
var li=nil;
|
3113
|
+
li=smalltalk.send(html, "_li", []);
|
3114
|
+
smalltalk.send(smalltalk.send(self['@selectedContext'], "__eq", [aContext]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);
|
3115
|
+
(function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(aContext, "_asString", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectContext_", [aContext]);})]);})(li);
|
3116
|
+
smalltalk.send(smalltalk.send(aContext, "_home", []), "_ifNotNil_", [(function(){return smalltalk.send(self, "_renderContext_on_", [smalltalk.send(aContext, "_home", []), html]);})]);
|
3117
|
+
return self;},
|
3118
|
+
source: unescape('renderContext%3A%20aContext%20on%3A%20html%0A%09%7C%20li%20%7C%0A%09li%20%3A%3D%20html%20li.%0A%09selectedContext%20%3D%20aContext%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09li%20%0A%09%09with%3A%20aContext%20asString%3B%0A%09%09onClick%3A%20%5Bself%20selectContext%3A%20aContext%5D.%0A%09aContext%20home%20ifNotNil%3A%20%5Bself%20renderContext%3A%20aContext%20home%20on%3A%20html%5D'),
|
3119
|
+
messageSends: ["li", "ifTrue:", unescape("%3D"), "class:", "with:", "asString", "onClick:", "selectContext:", "ifNotNil:", "home", "renderContext:on:"],
|
3120
|
+
referencedClasses: []
|
3121
|
+
}),
|
3122
|
+
smalltalk.Debugger);
|
3123
|
+
|
3124
|
+
smalltalk.addMethod(
|
3125
|
+
'_renderBottomPanelOn_',
|
3126
|
+
smalltalk.method({
|
3127
|
+
selector: 'renderBottomPanelOn:',
|
3128
|
+
category: 'rendering',
|
3129
|
+
fn: function (html){
|
3130
|
+
var self=this;
|
3131
|
+
(function($rec){smalltalk.send($rec, "_class_", ["jt_sourceCode"]);return smalltalk.send($rec, "_with_", [(function(){self['@sourceArea']=smalltalk.send(smalltalk.SourceArea, "_new", []);return smalltalk.send(self['@sourceArea'], "_renderOn_", [html]);})]);})(smalltalk.send(html, "_div", []));
|
3132
|
+
smalltalk.send(self, "_updateSourceArea", []);
|
3133
|
+
return self;},
|
3134
|
+
source: unescape('renderBottomPanelOn%3A%20html%0A%20%20%20%20html%20div%0A%09class%3A%20%27jt_sourceCode%27%3B%0A%09with%3A%20%5B%0A%09%20%20%20%20sourceArea%20%3A%3D%20SourceArea%20new.%0A%09%20%20%20%20sourceArea%20renderOn%3A%20html%5D.%0A%20%20%20%20self%20updateSourceArea'),
|
3135
|
+
messageSends: ["class:", "with:", "new", "renderOn:", "div", "updateSourceArea"],
|
3136
|
+
referencedClasses: [smalltalk.SourceArea]
|
3137
|
+
}),
|
3138
|
+
smalltalk.Debugger);
|
3139
|
+
|
3140
|
+
smalltalk.addMethod(
|
3141
|
+
'_error',
|
3142
|
+
smalltalk.method({
|
3143
|
+
selector: 'error',
|
3144
|
+
category: 'accessing',
|
3145
|
+
fn: function (){
|
3146
|
+
var self=this;
|
3147
|
+
return self['@error'];
|
3148
|
+
return self;},
|
3149
|
+
source: unescape('error%0A%09%5Eerror'),
|
3150
|
+
messageSends: [],
|
3151
|
+
referencedClasses: []
|
3152
|
+
}),
|
3153
|
+
smalltalk.Debugger);
|
3154
|
+
|
3155
|
+
smalltalk.addMethod(
|
3156
|
+
'_error_',
|
3157
|
+
smalltalk.method({
|
3158
|
+
selector: 'error:',
|
3159
|
+
category: 'accessing',
|
3160
|
+
fn: function (anError){
|
3161
|
+
var self=this;
|
3162
|
+
self['@error']=anError;
|
3163
|
+
return self;},
|
3164
|
+
source: unescape('error%3A%20anError%0A%09error%20%3A%3D%20anError'),
|
3165
|
+
messageSends: [],
|
3166
|
+
referencedClasses: []
|
3167
|
+
}),
|
3168
|
+
smalltalk.Debugger);
|
3169
|
+
|
3170
|
+
smalltalk.addMethod(
|
3171
|
+
'_updateContextsList',
|
3172
|
+
smalltalk.method({
|
3173
|
+
selector: 'updateContextsList',
|
3174
|
+
category: 'updating',
|
3175
|
+
fn: function (){
|
3176
|
+
var self=this;
|
3177
|
+
smalltalk.send(self['@ul'], "_contents_", [(function(html){return smalltalk.send(self, "_renderContext_on_", [smalltalk.send(smalltalk.send(self, "_error", []), "_context", []), html]);})]);
|
3178
|
+
return self;},
|
3179
|
+
source: unescape('updateContextsList%0A%09ul%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09self%20renderContext%3A%20self%20error%20context%20on%3A%20html%5D'),
|
3180
|
+
messageSends: ["contents:", "renderContext:on:", "context", "error"],
|
3181
|
+
referencedClasses: []
|
3182
|
+
}),
|
3183
|
+
smalltalk.Debugger);
|
3184
|
+
|
3185
|
+
smalltalk.addMethod(
|
3186
|
+
'_selectContext_',
|
3187
|
+
smalltalk.method({
|
3188
|
+
selector: 'selectContext:',
|
3189
|
+
category: 'actions',
|
3190
|
+
fn: function (aContext){
|
3191
|
+
var self=this;
|
3192
|
+
self['@selectedContext']=aContext;
|
3193
|
+
smalltalk.send(self, "_updateContextsList", []);
|
3194
|
+
smalltalk.send(self, "_updateSourceArea", []);
|
3195
|
+
return self;},
|
3196
|
+
source: unescape('selectContext%3A%20aContext%0A%09selectedContext%20%3A%3D%20aContext.%0A%09self%20updateContextsList.%0A%09self%20updateSourceArea'),
|
3197
|
+
messageSends: ["updateContextsList", "updateSourceArea"],
|
3198
|
+
referencedClasses: []
|
3199
|
+
}),
|
3200
|
+
smalltalk.Debugger);
|
3201
|
+
|
3202
|
+
smalltalk.addMethod(
|
3203
|
+
'_label',
|
3204
|
+
smalltalk.method({
|
3205
|
+
selector: 'label',
|
3206
|
+
category: 'accessing',
|
3207
|
+
fn: function (){
|
3208
|
+
var self=this;
|
3209
|
+
return unescape("%5BDebugger%5D");
|
3210
|
+
return self;},
|
3211
|
+
source: unescape('label%0A%09%5E%27%5BDebugger%5D%27'),
|
3212
|
+
messageSends: [],
|
3213
|
+
referencedClasses: []
|
3214
|
+
}),
|
3215
|
+
smalltalk.Debugger);
|
3216
|
+
|
3217
|
+
smalltalk.addMethod(
|
3218
|
+
'_canBeClosed',
|
3219
|
+
smalltalk.method({
|
3220
|
+
selector: 'canBeClosed',
|
3221
|
+
category: 'testing',
|
3222
|
+
fn: function (){
|
3223
|
+
var self=this;
|
3224
|
+
return true;
|
3225
|
+
return self;},
|
3226
|
+
source: unescape('canBeClosed%0A%20%20%20%20%5Etrue'),
|
3227
|
+
messageSends: [],
|
3228
|
+
referencedClasses: []
|
3229
|
+
}),
|
3230
|
+
smalltalk.Debugger);
|
3231
|
+
|
3232
|
+
smalltalk.addMethod(
|
3233
|
+
'_updateSourceArea',
|
3234
|
+
smalltalk.method({
|
3235
|
+
selector: 'updateSourceArea',
|
3236
|
+
category: 'updating',
|
3237
|
+
fn: function (){
|
3238
|
+
var self=this;
|
3239
|
+
smalltalk.send(self['@sourceArea'], "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedContext'], "_receiver", []), "_class", []), "_methodAt_", [smalltalk.send(self['@selectedContext'], "_selector", [])]), "_source", [])]);
|
3240
|
+
return self;},
|
3241
|
+
source: unescape('updateSourceArea%0A%09%20sourceArea%20val%3A%20%28selectedContext%20receiver%20class%20methodAt%3A%20selectedContext%20selector%29%20source'),
|
3242
|
+
messageSends: ["val:", "source", "methodAt:", "class", "receiver", "selector"],
|
3243
|
+
referencedClasses: []
|
3244
|
+
}),
|
3245
|
+
smalltalk.Debugger);
|
3246
|
+
|
3247
|
+
|
3248
|
+
|
3249
|
+
smalltalk.addClass('DebugErrorHandler', smalltalk.ErrorHandler, [], 'IDE');
|
3250
|
+
smalltalk.addMethod(
|
3251
|
+
'_handleError_',
|
3252
|
+
smalltalk.method({
|
3253
|
+
selector: 'handleError:',
|
3254
|
+
category: 'error handling',
|
3255
|
+
fn: function (anError){
|
3256
|
+
var self=this;
|
3257
|
+
smalltalk.send((function(){return (function($rec){smalltalk.send($rec, "_error_", [anError]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(smalltalk.Debugger, "_new", []));}), "_on_do_", [smalltalk.Error, (function(error){return smalltalk.send(smalltalk.send(smalltalk.ErrorHandler, "_new", []), "_handleError_", [error]);})]);
|
3258
|
+
return self;},
|
3259
|
+
source: unescape('handleError%3A%20anError%0A%09%5BDebugger%20new%0A%09%09error%3A%20anError%3B%0A%09%09open%5D%20on%3A%20Error%20do%3A%20%5B%3Aerror%20%7C%0A%09%09%09ErrorHandler%20new%20handleError%3A%20error%5D'),
|
3260
|
+
messageSends: ["on:do:", "error:", "open", "new", "handleError:"],
|
3261
|
+
referencedClasses: [smalltalk.Debugger,smalltalk.Error,smalltalk.ErrorHandler]
|
3262
|
+
}),
|
3263
|
+
smalltalk.DebugErrorHandler);
|
3264
|
+
|
3265
|
+
|
3266
|
+
smalltalk.addMethod(
|
3267
|
+
'_initialize',
|
3268
|
+
smalltalk.method({
|
3269
|
+
selector: 'initialize',
|
3270
|
+
category: 'initialization',
|
3271
|
+
fn: function (){
|
3272
|
+
var self=this;
|
3273
|
+
smalltalk.send(self, "_register", []);
|
3274
|
+
return self;},
|
3275
|
+
source: unescape('initialize%0A%09self%20register'),
|
3276
|
+
messageSends: ["register"],
|
3277
|
+
referencedClasses: []
|
3278
|
+
}),
|
3279
|
+
smalltalk.DebugErrorHandler.klass);
|
3280
|
+
|
3281
|
+
|
3282
|
+
smalltalk.addMethod(
|
3283
|
+
'_inspect',
|
3284
|
+
smalltalk.method({
|
3285
|
+
selector: 'inspect',
|
3286
|
+
category: '*IDE',
|
3287
|
+
fn: function (){
|
3288
|
+
var self=this;
|
3289
|
+
(function($rec){smalltalk.send($rec, "_inspect_", [self]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(smalltalk.Inspector, "_new", []));
|
3290
|
+
return self;},
|
3291
|
+
source: unescape('inspect%0A%09Inspector%20new%20%0A%09%09inspect%3A%20self%3B%0A%09%09open'),
|
3292
|
+
messageSends: ["inspect:", "open", "new"],
|
3293
|
+
referencedClasses: [smalltalk.Inspector]
|
3294
|
+
}),
|
3295
|
+
smalltalk.Object);
|
3296
|
+
|
3297
|
+
smalltalk.addMethod(
|
3298
|
+
'_inspectOn_',
|
3299
|
+
smalltalk.method({
|
3300
|
+
selector: 'inspectOn:',
|
3301
|
+
category: '*IDE',
|
3302
|
+
fn: function (anInspector){
|
3303
|
+
var self=this;
|
3304
|
+
var variables=nil;
|
3305
|
+
variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
|
3306
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
|
3307
|
+
smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_allInstanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
|
3308
|
+
(function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
|
3309
|
+
return self;},
|
3310
|
+
source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09self%20class%20allInstanceVariableNames%20do%3A%20%5B%3Aeach%20%7C%0A%09%09variables%20at%3A%20each%20put%3A%20%28self%20instVarAt%3A%20each%29%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
|
3311
|
+
messageSends: ["new", "at:put:", "do:", "allInstanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
|
3312
|
+
referencedClasses: [smalltalk.Dictionary]
|
3313
|
+
}),
|
3314
|
+
smalltalk.Object);
|
3315
|
+
|
3316
|
+
smalltalk.addMethod(
|
3317
|
+
'_inspectOn_',
|
3318
|
+
smalltalk.method({
|
3319
|
+
selector: 'inspectOn:',
|
3320
|
+
category: '*IDE',
|
3321
|
+
fn: function (anInspector){
|
3322
|
+
var self=this;
|
3323
|
+
var variables=nil;
|
3324
|
+
variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
|
3325
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
|
3326
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23year"), smalltalk.send(self, "_year", [])]);
|
3327
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23month"), smalltalk.send(self, "_month", [])]);
|
3328
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23day"), smalltalk.send(self, "_day", [])]);
|
3329
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23hours"), smalltalk.send(self, "_hours", [])]);
|
3330
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23minutes"), smalltalk.send(self, "_minutes", [])]);
|
3331
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23seconds"), smalltalk.send(self, "_seconds", [])]);
|
3332
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23milliseconds"), smalltalk.send(self, "_milliseconds", [])]);
|
3333
|
+
(function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
|
3334
|
+
return self;},
|
3335
|
+
source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09variables%20at%3A%20%27%23year%27%20put%3A%20self%20year.%0A%09variables%20at%3A%20%27%23month%27%20put%3A%20self%20month.%0A%09variables%20at%3A%20%27%23day%27%20put%3A%20self%20day.%0A%09variables%20at%3A%20%27%23hours%27%20put%3A%20self%20hours.%0A%09variables%20at%3A%20%27%23minutes%27%20put%3A%20self%20minutes.%0A%09variables%20at%3A%20%27%23seconds%27%20put%3A%20self%20seconds.%0A%09variables%20at%3A%20%27%23milliseconds%27%20put%3A%20self%20milliseconds.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
|
3336
|
+
messageSends: ["new", "at:put:", "year", "month", "day", "hours", "minutes", "seconds", "milliseconds", "setLabel:", "printString", "setVariables:"],
|
3337
|
+
referencedClasses: [smalltalk.Dictionary]
|
3338
|
+
}),
|
3339
|
+
smalltalk.Date);
|
3340
|
+
|
3341
|
+
smalltalk.addMethod(
|
3342
|
+
'_inspectOn_',
|
3343
|
+
smalltalk.method({
|
3344
|
+
selector: 'inspectOn:',
|
3345
|
+
category: '*IDE',
|
3346
|
+
fn: function (anInspector){
|
3347
|
+
var self=this;
|
3348
|
+
var variables=nil;
|
3349
|
+
variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
|
3350
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
|
3351
|
+
smalltalk.send(self, "_withIndexDo_", [(function(each, i){return smalltalk.send(variables, "_at_put_", [i, each]);})]);
|
3352
|
+
(function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
|
3353
|
+
return self;},
|
3354
|
+
source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09self%20withIndexDo%3A%20%5B%3Aeach%20%3Ai%20%7C%0A%09%09variables%20at%3A%20i%20put%3A%20each%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
|
3355
|
+
messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"],
|
3356
|
+
referencedClasses: [smalltalk.Dictionary]
|
3357
|
+
}),
|
3358
|
+
smalltalk.Collection);
|
3359
|
+
|
3360
|
+
smalltalk.addMethod(
|
3361
|
+
'_inspectOn_',
|
3362
|
+
smalltalk.method({
|
3363
|
+
selector: 'inspectOn:',
|
3364
|
+
category: '*IDE',
|
3365
|
+
fn: function (anInspector){
|
3366
|
+
var self=this;
|
3367
|
+
var label=nil;
|
3368
|
+
smalltalk.send(self, "_inspectOn_", [anInspector], smalltalk.SequenceableCollection);
|
3369
|
+
smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", []), "_size", []), "__gt", [(30)]), "_ifTrue_ifFalse_", [(function(){return label=smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", []), "_copyFrom_to_", [(1), (30)]), "__comma", [unescape("...%27")]);}), (function(){return label=smalltalk.send(self, "_printString", []);})]);
|
3370
|
+
smalltalk.send(anInspector, "_setLabel_", [label]);
|
3371
|
+
return self;},
|
3372
|
+
source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20label%20%7C%0A%09super%20inspectOn%3A%20anInspector.%0A%09self%20printString%20size%20%3E%2030%20%0A%09%09ifTrue%3A%20%5Blabel%20%3A%3D%20%28self%20printString%20copyFrom%3A%201%20to%3A%2030%29%2C%20%27...%27%27%27%5D%0A%09%09ifFalse%3A%20%5Blabel%20%3A%3D%20self%20printString%5D.%20%0A%09anInspector%20setLabel%3A%20label'),
|
3373
|
+
messageSends: ["inspectOn:", "ifTrue:ifFalse:", unescape("%3E"), "size", "printString", unescape("%2C"), "copyFrom:to:", "setLabel:"],
|
3374
|
+
referencedClasses: []
|
3375
|
+
}),
|
3376
|
+
smalltalk.String);
|
3377
|
+
|
3378
|
+
smalltalk.addMethod(
|
3379
|
+
'_inspectOn_',
|
3380
|
+
smalltalk.method({
|
3381
|
+
selector: 'inspectOn:',
|
3382
|
+
category: '*IDE',
|
3383
|
+
fn: function (anInspector){
|
3384
|
+
var self=this;
|
3385
|
+
var variables=nil;
|
3386
|
+
variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
|
3387
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
|
3388
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23home"), smalltalk.send(self, "_home", [])]);
|
3389
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23receiver"), smalltalk.send(self, "_receiver", [])]);
|
3390
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23selector"), smalltalk.send(self, "_selector", [])]);
|
3391
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23temps"), smalltalk.send(self, "_temps", [])]);
|
3392
|
+
smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_instanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
|
3393
|
+
(function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
|
3394
|
+
return self;},
|
3395
|
+
source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09variables%20at%3A%20%27%23home%27%20put%3A%20self%20home.%0A%09variables%20at%3A%20%27%23receiver%27%20put%3A%20self%20receiver.%0A%09variables%20at%3A%20%27%23selector%27%20put%3A%20self%20selector.%0A%09variables%20at%3A%20%27%23temps%27%20put%3A%20self%20temps.%0A%09self%20class%20instanceVariableNames%20do%3A%20%5B%3Aeach%20%7C%0A%09%09variables%20at%3A%20each%20put%3A%20%28self%20instVarAt%3A%20each%29%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
|
3396
|
+
messageSends: ["new", "at:put:", "home", "receiver", "selector", "temps", "do:", "instanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
|
3397
|
+
referencedClasses: [smalltalk.Dictionary]
|
3398
|
+
}),
|
3399
|
+
smalltalk.MethodContext);
|
3400
|
+
|
3401
|
+
smalltalk.addMethod(
|
3402
|
+
'_inspectOn_',
|
3403
|
+
smalltalk.method({
|
3404
|
+
selector: 'inspectOn:',
|
3405
|
+
category: '*IDE',
|
3406
|
+
fn: function (anInspector){
|
3407
|
+
var self=this;
|
3408
|
+
var variables=nil;
|
3409
|
+
variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
|
3410
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
|
3411
|
+
smalltalk.send(variables, "_at_put_", [unescape("%23keys"), smalltalk.send(self, "_keys", [])]);
|
3412
|
+
smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(variables, "_at_put_", [key, value]);})]);
|
3413
|
+
(function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
|
3414
|
+
return self;},
|
3415
|
+
source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09variables%20at%3A%20%27%23keys%27%20put%3A%20self%20keys.%0A%09self%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09variables%20at%3A%20key%20put%3A%20value%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
|
3416
|
+
messageSends: ["new", "at:put:", "keys", "keysAndValuesDo:", "setLabel:", "printString", "setVariables:"],
|
3417
|
+
referencedClasses: [smalltalk.Dictionary]
|
3418
|
+
}),
|
3419
|
+
smalltalk.Dictionary);
|
3420
|
+
|