resin 0.0.1

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