resin 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,279 +1,452 @@
1
1
  smalltalk.addPackage('IDE', {});
2
- smalltalk.addClass('DebugErrorHandler', smalltalk.ErrorHandler, [], 'IDE');
2
+ smalltalk.addClass('TabManager', smalltalk.Widget, ['selectedTab', 'tabs', 'opened', 'ul', 'input'], 'IDE');
3
3
  smalltalk.addMethod(
4
- unescape('_handleError_'),
4
+ unescape('_tabs'),
5
5
  smalltalk.method({
6
- selector: unescape('handleError%3A'),
7
- fn: function (anError){
6
+ selector: unescape('tabs'),
7
+ fn: function (){
8
8
  var self=this;
9
- 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]);})]);
9
+ return (($receiver = self['@tabs']) == nil || $receiver == undefined) ? (function(){return (self['@tabs']=smalltalk.send((smalltalk.Array || Array), "_new", []));})() : $receiver;
10
10
  return self;}
11
11
  }),
12
- smalltalk.DebugErrorHandler);
12
+ smalltalk.TabManager);
13
13
 
14
+ smalltalk.addMethod(
15
+ unescape('_labelFor_'),
16
+ smalltalk.method({
17
+ selector: unescape('labelFor%3A'),
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);
14
29
 
15
30
  smalltalk.addMethod(
16
- unescape('_initialize'),
31
+ unescape('_updateBodyMargin'),
17
32
  smalltalk.method({
18
- selector: unescape('initialize'),
33
+ selector: unescape('updateBodyMargin'),
19
34
  fn: function (){
20
35
  var self=this;
21
- smalltalk.send(self, "_register", []);
36
+ smalltalk.send(self, "_setBodyMargin_", [smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_height", [])]);
22
37
  return self;}
23
38
  }),
24
- smalltalk.DebugErrorHandler.klass);
39
+ smalltalk.TabManager);
25
40
 
41
+ smalltalk.addMethod(
42
+ unescape('_updatePosition'),
43
+ smalltalk.method({
44
+ selector: unescape('updatePosition'),
45
+ fn: function (){
46
+ var self=this;
47
+ jQuery('#jtalk').css('top', '').css('bottom', '0px');
48
+ return self;}
49
+ }),
50
+ smalltalk.TabManager);
26
51
 
27
- smalltalk.addClass('ClassesListNode', smalltalk.Widget, ['browser', 'theClass', 'level', 'nodes'], 'IDE');
28
52
  smalltalk.addMethod(
29
- unescape('_renderOn_'),
53
+ unescape('_removeBodyMargin'),
30
54
  smalltalk.method({
31
- selector: unescape('renderOn%3A'),
32
- fn: function (html){
55
+ selector: unescape('removeBodyMargin'),
56
+ fn: function (){
33
57
  var self=this;
34
- var li=nil;
35
- var cssClass=nil;
36
- (cssClass="");
37
- (li=smalltalk.send(smalltalk.send(html, "_li", []), "_onClick_", [(function(){return smalltalk.send(smalltalk.send(self, "_browser", []), "_selectClass_", [smalltalk.send(self, "_theClass", [])]);})]));
38
- smalltalk.send(smalltalk.send(li, "_asJQuery", []), "_html_", [smalltalk.send(self, "_label", [])]);
39
- ((($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"]));})]));
40
- ((($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"]));})]));
41
- smalltalk.send(li, "_class_", [cssClass]);
42
- smalltalk.send(smalltalk.send(self, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_renderOn_", [html]);})]);
58
+ smalltalk.send(self, "_setBodyMargin_", [(0)]);
43
59
  return self;}
44
60
  }),
45
- smalltalk.ClassesListNode);
61
+ smalltalk.TabManager);
46
62
 
47
63
  smalltalk.addMethod(
48
- unescape('_nodes'),
64
+ unescape('_setBodyMargin_'),
49
65
  smalltalk.method({
50
- selector: unescape('nodes'),
66
+ selector: unescape('setBodyMargin%3A'),
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
+ unescape('_onResize_'),
76
+ smalltalk.method({
77
+ selector: unescape('onResize%3A'),
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
+ unescape('_onWindowResize_'),
91
+ smalltalk.method({
92
+ selector: unescape('onWindowResize%3A'),
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
+ unescape('_open'),
102
+ smalltalk.method({
103
+ selector: unescape('open'),
51
104
  fn: function (){
52
105
  var self=this;
53
- return self['@nodes'];
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);})]));
54
107
  return self;}
55
108
  }),
56
- smalltalk.ClassesListNode);
109
+ smalltalk.TabManager);
57
110
 
58
111
  smalltalk.addMethod(
59
- unescape('_theClass'),
112
+ unescape('_close'),
60
113
  smalltalk.method({
61
- selector: unescape('theClass'),
114
+ selector: unescape('close'),
62
115
  fn: function (){
63
116
  var self=this;
64
- return self['@theClass'];
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);})]));
65
118
  return self;}
66
119
  }),
67
- smalltalk.ClassesListNode);
120
+ smalltalk.TabManager);
68
121
 
69
122
  smalltalk.addMethod(
70
- unescape('_theClass_'),
123
+ unescape('_newBrowserTab'),
71
124
  smalltalk.method({
72
- selector: unescape('theClass%3A'),
73
- fn: function (aClass){
125
+ selector: unescape('newBrowserTab'),
126
+ fn: function (){
74
127
  var self=this;
75
- (self['@theClass']=aClass);
128
+ smalltalk.send((smalltalk.Browser || Browser), "_open", []);
76
129
  return self;}
77
130
  }),
78
- smalltalk.ClassesListNode);
131
+ smalltalk.TabManager);
79
132
 
80
133
  smalltalk.addMethod(
81
- unescape('_browser'),
134
+ unescape('_selectTab_'),
82
135
  smalltalk.method({
83
- selector: unescape('browser'),
136
+ selector: unescape('selectTab%3A'),
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
+ unescape('_closeTab_'),
150
+ smalltalk.method({
151
+ selector: unescape('closeTab%3A'),
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
+ unescape('_search_'),
164
+ smalltalk.method({
165
+ selector: unescape('search%3A'),
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
+ unescape('_addTab_'),
177
+ smalltalk.method({
178
+ selector: unescape('addTab%3A'),
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
+ unescape('_removeTab_'),
190
+ smalltalk.method({
191
+ selector: unescape('removeTab%3A'),
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
+ unescape('_initialize'),
202
+ smalltalk.method({
203
+ selector: unescape('initialize'),
84
204
  fn: function (){
85
205
  var self=this;
86
- return self['@browser'];
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);
87
214
  return self;}
88
215
  }),
89
- smalltalk.ClassesListNode);
216
+ smalltalk.TabManager);
90
217
 
91
218
  smalltalk.addMethod(
92
- unescape('_browser_'),
219
+ unescape('_renderOn_'),
93
220
  smalltalk.method({
94
- selector: unescape('browser%3A'),
95
- fn: function (aBrowser){
221
+ selector: unescape('renderOn%3A'),
222
+ fn: function (html){
96
223
  var self=this;
97
- (self['@browser']=aBrowser);
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", []);
98
228
  return self;}
99
229
  }),
100
- smalltalk.ClassesListNode);
230
+ smalltalk.TabManager);
101
231
 
102
232
  smalltalk.addMethod(
103
- unescape('_level'),
233
+ unescape('_renderTabFor_on_'),
104
234
  smalltalk.method({
105
- selector: unescape('level'),
235
+ selector: unescape('renderTabFor%3Aon%3A'),
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
+ unescape('_renderTabs'),
248
+ smalltalk.method({
249
+ selector: unescape('renderTabs'),
106
250
  fn: function (){
107
251
  var self=this;
108
- return self['@level'];
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", []));})]);
109
253
  return self;}
110
254
  }),
111
- smalltalk.ClassesListNode);
255
+ smalltalk.TabManager);
112
256
 
113
257
  smalltalk.addMethod(
114
- unescape('_level_'),
258
+ unescape('_renderToolbarOn_'),
115
259
  smalltalk.method({
116
- selector: unescape('level%3A'),
117
- fn: function (anInteger){
260
+ selector: unescape('renderToolbarOn%3A'),
261
+ fn: function (html){
118
262
  var self=this;
119
- (self['@level']=anInteger);
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", []));
120
264
  return self;}
121
265
  }),
122
- smalltalk.ClassesListNode);
266
+ smalltalk.TabManager);
123
267
 
124
268
  smalltalk.addMethod(
125
- unescape('_label'),
269
+ unescape('_update'),
126
270
  smalltalk.method({
127
- selector: unescape('label'),
271
+ selector: unescape('update'),
128
272
  fn: function (){
129
273
  var self=this;
130
- var str=nil;
131
- (str=smalltalk.send(smalltalk.send((smalltalk.String || String), "_new", []), "_writeStream", []));
132
- smalltalk.send(smalltalk.send(self, "_level", []), "_timesRepeat_", [(function(){return smalltalk.send(str, "_nextPutAll_", [unescape("%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B")]);})]);
133
- smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_theClass", []), "_name", [])]);
134
- return smalltalk.send(str, "_contents", []);
274
+ smalltalk.send(self, "_renderTabs", []);
135
275
  return self;}
136
276
  }),
137
- smalltalk.ClassesListNode);
277
+ smalltalk.TabManager);
278
+
138
279
 
280
+ smalltalk.TabManager.klass.iVarNames = ['current'];
139
281
  smalltalk.addMethod(
140
- unescape('_getNodesFrom_'),
282
+ unescape('_current'),
141
283
  smalltalk.method({
142
- selector: unescape('getNodesFrom%3A'),
143
- fn: function (aCollection){
284
+ selector: unescape('current'),
285
+ fn: function (){
144
286
  var self=this;
145
- var children=nil;
146
- var others=nil;
147
- (children=[]);
148
- (others=[]);
149
- 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]);})]));})]);
150
- (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)]))]);})]));
287
+ return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return (self['@current']=smalltalk.send(self, "_new", [], smalltalk.Widget.klass));})() : $receiver;
151
288
  return self;}
152
289
  }),
153
- smalltalk.ClassesListNode);
290
+ smalltalk.TabManager.klass);
291
+
292
+ smalltalk.addMethod(
293
+ unescape('_new'),
294
+ smalltalk.method({
295
+ selector: unescape('new'),
296
+ fn: function (){
297
+ var self=this;
298
+ smalltalk.send(self, "_shouldNotImplement", []);
299
+ return self;}
300
+ }),
301
+ smalltalk.TabManager.klass);
154
302
 
155
303
 
304
+ smalltalk.addClass('TabWidget', smalltalk.Widget, ['div'], 'IDE');
156
305
  smalltalk.addMethod(
157
- unescape('_on_browser_classes_level_'),
306
+ unescape('_label'),
158
307
  smalltalk.method({
159
- selector: unescape('on%3Abrowser%3Aclasses%3Alevel%3A'),
160
- fn: function (aClass, aBrowser, aCollection, anInteger){
308
+ selector: unescape('label'),
309
+ fn: function (){
161
310
  var self=this;
162
- 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", []));
311
+ smalltalk.send(self, "_subclassResponsibility", []);
163
312
  return self;}
164
313
  }),
165
- smalltalk.ClassesListNode.klass);
314
+ smalltalk.TabWidget);
166
315
 
316
+ smalltalk.addMethod(
317
+ unescape('_open'),
318
+ smalltalk.method({
319
+ selector: unescape('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);
167
327
 
168
- smalltalk.addClass('ClassesList', smalltalk.Widget, ['browser', 'ul', 'nodes'], 'IDE');
169
328
  smalltalk.addMethod(
170
- unescape('_category'),
329
+ unescape('_show'),
171
330
  smalltalk.method({
172
- selector: unescape('category'),
331
+ selector: unescape('show'),
173
332
  fn: function (){
174
333
  var self=this;
175
- return smalltalk.send(smalltalk.send(self, "_browser", []), "_selectedPackage", []);
334
+ smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_show", []);
176
335
  return self;}
177
336
  }),
178
- smalltalk.ClassesList);
337
+ smalltalk.TabWidget);
179
338
 
180
339
  smalltalk.addMethod(
181
- unescape('_nodes'),
340
+ unescape('_hide'),
182
341
  smalltalk.method({
183
- selector: unescape('nodes'),
342
+ selector: unescape('hide'),
184
343
  fn: function (){
185
344
  var self=this;
186
- (($receiver = self['@nodes']) == nil || $receiver == undefined) ? (function(){return (self['@nodes']=smalltalk.send(self, "_getNodes", []));})() : $receiver;
187
- return self['@nodes'];
345
+ smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_hide", []);
188
346
  return self;}
189
347
  }),
190
- smalltalk.ClassesList);
348
+ smalltalk.TabWidget);
191
349
 
192
350
  smalltalk.addMethod(
193
- unescape('_browser'),
351
+ unescape('_remove'),
194
352
  smalltalk.method({
195
- selector: unescape('browser'),
353
+ selector: unescape('remove'),
196
354
  fn: function (){
197
355
  var self=this;
198
- return self['@browser'];
356
+ smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_remove", []);
199
357
  return self;}
200
358
  }),
201
- smalltalk.ClassesList);
359
+ smalltalk.TabWidget);
360
+
361
+ smalltalk.addMethod(
362
+ unescape('_close'),
363
+ smalltalk.method({
364
+ selector: unescape('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
+ unescape('_renderOn_'),
374
+ smalltalk.method({
375
+ selector: unescape('renderOn%3A'),
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);
202
383
 
203
384
  smalltalk.addMethod(
204
- unescape('_browser_'),
385
+ unescape('_renderBoxOn_'),
205
386
  smalltalk.method({
206
- selector: unescape('browser%3A'),
207
- fn: function (aBrowser){
387
+ selector: unescape('renderBoxOn%3A'),
388
+ fn: function (html){
208
389
  var self=this;
209
- (self['@browser']=aBrowser);
390
+
210
391
  return self;}
211
392
  }),
212
- smalltalk.ClassesList);
393
+ smalltalk.TabWidget);
213
394
 
214
395
  smalltalk.addMethod(
215
- unescape('_getNodes'),
396
+ unescape('_renderButtonsOn_'),
216
397
  smalltalk.method({
217
- selector: unescape('getNodes'),
218
- fn: function (){
398
+ selector: unescape('renderButtonsOn%3A'),
399
+ fn: function (html){
219
400
  var self=this;
220
- var classes=nil;
221
- var children=nil;
222
- var others=nil;
223
- (classes=smalltalk.send(smalltalk.send(self, "_browser", []), "_classes", []));
224
- (children=[]);
225
- (others=[]);
226
- 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]);})]));})]);
227
- return smalltalk.send(children, "_collect_", [(function(each){return smalltalk.send((smalltalk.ClassesListNode || ClassesListNode), "_on_browser_classes_level_", [each, smalltalk.send(self, "_browser", []), others, (0)]);})]);
401
+
228
402
  return self;}
229
403
  }),
230
- smalltalk.ClassesList);
404
+ smalltalk.TabWidget);
231
405
 
232
406
  smalltalk.addMethod(
233
- unescape('_resetNodes'),
407
+ unescape('_update'),
234
408
  smalltalk.method({
235
- selector: unescape('resetNodes'),
409
+ selector: unescape('update'),
236
410
  fn: function (){
237
411
  var self=this;
238
- (self['@nodes']=nil);
412
+ smalltalk.send(self, "_renderTab", []);
239
413
  return self;}
240
414
  }),
241
- smalltalk.ClassesList);
415
+ smalltalk.TabWidget);
242
416
 
243
417
  smalltalk.addMethod(
244
- unescape('_renderOn_'),
418
+ unescape('_renderTab'),
245
419
  smalltalk.method({
246
- selector: unescape('renderOn%3A'),
247
- fn: function (html){
420
+ selector: unescape('renderTab'),
421
+ fn: function (){
248
422
  var self=this;
249
- (self['@ul']=(function($rec){smalltalk.send($rec, "_class_", ["jt_column browser classes"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", [])));
250
- smalltalk.send(self, "_updateNodes", []);
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", []));})]);
251
424
  return self;}
252
425
  }),
253
- smalltalk.ClassesList);
426
+ smalltalk.TabWidget);
254
427
 
255
428
  smalltalk.addMethod(
256
- unescape('_updateNodes'),
429
+ unescape('_canBeClosed'),
257
430
  smalltalk.method({
258
- selector: unescape('updateNodes'),
431
+ selector: unescape('canBeClosed'),
259
432
  fn: function (){
260
433
  var self=this;
261
- smalltalk.send(self['@ul'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_renderOn_", [html]);})]);})]);
434
+ return false;
262
435
  return self;}
263
436
  }),
264
- smalltalk.ClassesList);
437
+ smalltalk.TabWidget);
265
438
 
266
439
 
267
440
  smalltalk.addMethod(
268
- unescape('_on_'),
441
+ unescape('_open'),
269
442
  smalltalk.method({
270
- selector: unescape('on%3A'),
271
- fn: function (aBrowser){
443
+ selector: unescape('open'),
444
+ fn: function (){
272
445
  var self=this;
273
- return (function($rec){smalltalk.send($rec, "_browser_", [aBrowser]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
446
+ return smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
274
447
  return self;}
275
448
  }),
276
- smalltalk.ClassesList.klass);
449
+ smalltalk.TabWidget.klass);
277
450
 
278
451
 
279
452
  smalltalk.addClass('SourceArea', smalltalk.Widget, ['editor', 'div', 'receiver', 'onDoIt'], 'IDE');
@@ -608,454 +781,281 @@ smalltalk.SourceArea);
608
781
 
609
782
 
610
783
 
611
- smalltalk.addClass('TabWidget', smalltalk.Widget, ['div'], 'IDE');
612
- smalltalk.addMethod(
613
- unescape('_label'),
614
- smalltalk.method({
615
- selector: unescape('label'),
616
- fn: function (){
617
- var self=this;
618
- smalltalk.send(self, "_subclassResponsibility", []);
619
- return self;}
620
- }),
621
- smalltalk.TabWidget);
622
-
623
- smalltalk.addMethod(
624
- unescape('_open'),
625
- smalltalk.method({
626
- selector: unescape('open'),
627
- fn: function (){
628
- var self=this;
629
- smalltalk.send(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []), "_addTab_", [self]);
630
- smalltalk.send(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []), "_selectTab_", [self]);
631
- return self;}
632
- }),
633
- smalltalk.TabWidget);
634
-
635
- smalltalk.addMethod(
636
- unescape('_show'),
637
- smalltalk.method({
638
- selector: unescape('show'),
639
- fn: function (){
640
- var self=this;
641
- smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_show", []);
642
- return self;}
643
- }),
644
- smalltalk.TabWidget);
645
-
646
- smalltalk.addMethod(
647
- unescape('_hide'),
648
- smalltalk.method({
649
- selector: unescape('hide'),
650
- fn: function (){
651
- var self=this;
652
- smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_hide", []);
653
- return self;}
654
- }),
655
- smalltalk.TabWidget);
656
-
657
- smalltalk.addMethod(
658
- unescape('_remove'),
659
- smalltalk.method({
660
- selector: unescape('remove'),
661
- fn: function (){
662
- var self=this;
663
- smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_remove", []);
664
- return self;}
665
- }),
666
- smalltalk.TabWidget);
667
-
668
- smalltalk.addMethod(
669
- unescape('_close'),
670
- smalltalk.method({
671
- selector: unescape('close'),
672
- fn: function (){
673
- var self=this;
674
- smalltalk.send(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []), "_closeTab_", [self]);
675
- return self;}
676
- }),
677
- smalltalk.TabWidget);
678
-
679
- smalltalk.addMethod(
680
- unescape('_renderOn_'),
681
- smalltalk.method({
682
- selector: unescape('renderOn%3A'),
683
- fn: function (html){
684
- var self=this;
685
- (self['@div']=(function($rec){smalltalk.send($rec, "_class_", ["jtalkTool"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_div", [])));
686
- smalltalk.send(self, "_renderTab", []);
687
- return self;}
688
- }),
689
- smalltalk.TabWidget);
690
-
691
- smalltalk.addMethod(
692
- unescape('_renderBoxOn_'),
693
- smalltalk.method({
694
- selector: unescape('renderBoxOn%3A'),
695
- fn: function (html){
696
- var self=this;
697
-
698
- return self;}
699
- }),
700
- smalltalk.TabWidget);
701
-
702
- smalltalk.addMethod(
703
- unescape('_renderButtonsOn_'),
704
- smalltalk.method({
705
- selector: unescape('renderButtonsOn%3A'),
706
- fn: function (html){
707
- var self=this;
708
-
709
- return self;}
710
- }),
711
- smalltalk.TabWidget);
712
-
713
- smalltalk.addMethod(
714
- unescape('_update'),
715
- smalltalk.method({
716
- selector: unescape('update'),
717
- fn: function (){
718
- var self=this;
719
- smalltalk.send(self, "_renderTab", []);
720
- return self;}
721
- }),
722
- smalltalk.TabWidget);
723
-
724
- smalltalk.addMethod(
725
- unescape('_renderTab'),
726
- smalltalk.method({
727
- selector: unescape('renderTab'),
728
- fn: function (){
729
- var self=this;
730
- 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", []));})]);
731
- return self;}
732
- }),
733
- smalltalk.TabWidget);
734
-
735
- smalltalk.addMethod(
736
- unescape('_canBeClosed'),
737
- smalltalk.method({
738
- selector: unescape('canBeClosed'),
739
- fn: function (){
740
- var self=this;
741
- return false;
742
- return self;}
743
- }),
744
- smalltalk.TabWidget);
745
-
746
-
747
- smalltalk.addMethod(
748
- unescape('_open'),
749
- smalltalk.method({
750
- selector: unescape('open'),
751
- fn: function (){
752
- var self=this;
753
- return smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
754
- return self;}
755
- }),
756
- smalltalk.TabWidget.klass);
757
-
758
-
759
- smalltalk.addClass('TabManager', smalltalk.Widget, ['selectedTab', 'tabs', 'opened', 'ul', 'input'], 'IDE');
760
- smalltalk.addMethod(
761
- unescape('_tabs'),
762
- smalltalk.method({
763
- selector: unescape('tabs'),
764
- fn: function (){
765
- var self=this;
766
- return (($receiver = self['@tabs']) == nil || $receiver == undefined) ? (function(){return (self['@tabs']=smalltalk.send((smalltalk.Array || Array), "_new", []));})() : $receiver;
767
- return self;}
768
- }),
769
- smalltalk.TabManager);
770
-
771
- smalltalk.addMethod(
772
- unescape('_labelFor_'),
773
- smalltalk.method({
774
- selector: unescape('labelFor%3A'),
775
- fn: function (aWidget){
776
- var self=this;
777
- var label=nil;
778
- var maxSize=nil;
779
- (maxSize=(15));
780
- (label=smalltalk.send(smalltalk.send(aWidget, "_label", []), "_copyFrom_to_", [(0), smalltalk.send(smalltalk.send(smalltalk.send(aWidget, "_label", []), "_size", []), "_min_", [maxSize])]));
781
- ((($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", ["..."]));})]));
782
- return label;
783
- return self;}
784
- }),
785
- smalltalk.TabManager);
786
-
784
+ smalltalk.addClass('ClassesList', smalltalk.Widget, ['browser', 'ul', 'nodes'], 'IDE');
787
785
  smalltalk.addMethod(
788
- unescape('_updateBodyMargin'),
786
+ unescape('_category'),
789
787
  smalltalk.method({
790
- selector: unescape('updateBodyMargin'),
788
+ selector: unescape('category'),
791
789
  fn: function (){
792
790
  var self=this;
793
- smalltalk.send(self, "_setBodyMargin_", [smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_height", [])]);
791
+ return smalltalk.send(smalltalk.send(self, "_browser", []), "_selectedPackage", []);
794
792
  return self;}
795
793
  }),
796
- smalltalk.TabManager);
794
+ smalltalk.ClassesList);
797
795
 
798
796
  smalltalk.addMethod(
799
- unescape('_updatePosition'),
797
+ unescape('_nodes'),
800
798
  smalltalk.method({
801
- selector: unescape('updatePosition'),
799
+ selector: unescape('nodes'),
802
800
  fn: function (){
803
801
  var self=this;
804
- jQuery('#jtalk').css('top', '').css('bottom', '0px');
802
+ (($receiver = self['@nodes']) == nil || $receiver == undefined) ? (function(){return (self['@nodes']=smalltalk.send(self, "_getNodes", []));})() : $receiver;
803
+ return self['@nodes'];
805
804
  return self;}
806
805
  }),
807
- smalltalk.TabManager);
806
+ smalltalk.ClassesList);
808
807
 
809
808
  smalltalk.addMethod(
810
- unescape('_removeBodyMargin'),
809
+ unescape('_browser'),
811
810
  smalltalk.method({
812
- selector: unescape('removeBodyMargin'),
811
+ selector: unescape('browser'),
813
812
  fn: function (){
814
813
  var self=this;
815
- smalltalk.send(self, "_setBodyMargin_", [(0)]);
814
+ return self['@browser'];
816
815
  return self;}
817
816
  }),
818
- smalltalk.TabManager);
817
+ smalltalk.ClassesList);
819
818
 
820
819
  smalltalk.addMethod(
821
- unescape('_setBodyMargin_'),
820
+ unescape('_browser_'),
822
821
  smalltalk.method({
823
- selector: unescape('setBodyMargin%3A'),
824
- fn: function (anInteger){
822
+ selector: unescape('browser%3A'),
823
+ fn: function (aBrowser){
825
824
  var self=this;
826
- smalltalk.send(smalltalk.send(".jtalkBody", "_asJQuery", []), "_css_put_", [unescape("margin-bottom"), smalltalk.send(smalltalk.send(anInteger, "_asString", []), "__comma", ["px"])]);
825
+ (self['@browser']=aBrowser);
827
826
  return self;}
828
827
  }),
829
- smalltalk.TabManager);
828
+ smalltalk.ClassesList);
830
829
 
831
830
  smalltalk.addMethod(
832
- unescape('_onResize_'),
831
+ unescape('_getNodes'),
833
832
  smalltalk.method({
834
- selector: unescape('onResize%3A'),
835
- fn: function (aBlock){
833
+ selector: unescape('getNodes'),
834
+ fn: function (){
836
835
  var self=this;
837
- jQuery('#jtalk').resizable({
838
- handles: 'n',
839
- resize: aBlock,
840
- minHeight: 230
841
- });
836
+ var classes=nil;
837
+ var children=nil;
838
+ var others=nil;
839
+ (classes=smalltalk.send(smalltalk.send(self, "_browser", []), "_classes", []));
840
+ (children=[]);
841
+ (others=[]);
842
+ 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]);})]));})]);
843
+ return smalltalk.send(children, "_collect_", [(function(each){return smalltalk.send((smalltalk.ClassesListNode || ClassesListNode), "_on_browser_classes_level_", [each, smalltalk.send(self, "_browser", []), others, (0)]);})]);
842
844
  return self;}
843
845
  }),
844
- smalltalk.TabManager);
846
+ smalltalk.ClassesList);
845
847
 
846
848
  smalltalk.addMethod(
847
- unescape('_onWindowResize_'),
849
+ unescape('_resetNodes'),
848
850
  smalltalk.method({
849
- selector: unescape('onWindowResize%3A'),
850
- fn: function (aBlock){
851
+ selector: unescape('resetNodes'),
852
+ fn: function (){
851
853
  var self=this;
852
- jQuery(window).resize(aBlock);
854
+ (self['@nodes']=nil);
853
855
  return self;}
854
856
  }),
855
- smalltalk.TabManager);
857
+ smalltalk.ClassesList);
856
858
 
857
859
  smalltalk.addMethod(
858
- unescape('_open'),
860
+ unescape('_renderOn_'),
859
861
  smalltalk.method({
860
- selector: unescape('open'),
861
- fn: function (){
862
+ selector: unescape('renderOn%3A'),
863
+ fn: function (html){
862
864
  var self=this;
863
- ((($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);})]));
865
+ (self['@ul']=(function($rec){smalltalk.send($rec, "_class_", ["jt_column browser classes"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", [])));
866
+ smalltalk.send(self, "_updateNodes", []);
864
867
  return self;}
865
868
  }),
866
- smalltalk.TabManager);
869
+ smalltalk.ClassesList);
867
870
 
868
871
  smalltalk.addMethod(
869
- unescape('_close'),
872
+ unescape('_updateNodes'),
870
873
  smalltalk.method({
871
- selector: unescape('close'),
874
+ selector: unescape('updateNodes'),
872
875
  fn: function (){
873
876
  var self=this;
874
- ((($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);})]));
877
+ smalltalk.send(self['@ul'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_renderOn_", [html]);})]);})]);
875
878
  return self;}
876
879
  }),
877
- smalltalk.TabManager);
880
+ smalltalk.ClassesList);
881
+
878
882
 
879
883
  smalltalk.addMethod(
880
- unescape('_newBrowserTab'),
884
+ unescape('_on_'),
881
885
  smalltalk.method({
882
- selector: unescape('newBrowserTab'),
883
- fn: function (){
886
+ selector: unescape('on%3A'),
887
+ fn: function (aBrowser){
884
888
  var self=this;
885
- smalltalk.send((smalltalk.Browser || Browser), "_open", []);
889
+ return (function($rec){smalltalk.send($rec, "_browser_", [aBrowser]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
886
890
  return self;}
887
891
  }),
888
- smalltalk.TabManager);
892
+ smalltalk.ClassesList.klass);
889
893
 
894
+
895
+ smalltalk.addClass('ClassesListNode', smalltalk.Widget, ['browser', 'theClass', 'level', 'nodes'], 'IDE');
890
896
  smalltalk.addMethod(
891
- unescape('_selectTab_'),
897
+ unescape('_renderOn_'),
892
898
  smalltalk.method({
893
- selector: unescape('selectTab%3A'),
894
- fn: function (aWidget){
899
+ selector: unescape('renderOn%3A'),
900
+ fn: function (html){
895
901
  var self=this;
896
- smalltalk.send(self, "_open", []);
897
- (self['@selectedTab']=aWidget);
898
- smalltalk.send(smalltalk.send(self, "_tabs", []), "_do_", [(function(each){return smalltalk.send(each, "_hide", []);})]);
899
- smalltalk.send(aWidget, "_show", []);
900
- smalltalk.send(self, "_update", []);
902
+ var li=nil;
903
+ var cssClass=nil;
904
+ (cssClass="");
905
+ (li=smalltalk.send(smalltalk.send(html, "_li", []), "_onClick_", [(function(){return smalltalk.send(smalltalk.send(self, "_browser", []), "_selectClass_", [smalltalk.send(self, "_theClass", [])]);})]));
906
+ smalltalk.send(smalltalk.send(li, "_asJQuery", []), "_html_", [smalltalk.send(self, "_label", [])]);
907
+ ((($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"]));})]));
908
+ ((($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"]));})]));
909
+ smalltalk.send(li, "_class_", [cssClass]);
910
+ smalltalk.send(smalltalk.send(self, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_renderOn_", [html]);})]);
901
911
  return self;}
902
912
  }),
903
- smalltalk.TabManager);
913
+ smalltalk.ClassesListNode);
904
914
 
905
915
  smalltalk.addMethod(
906
- unescape('_closeTab_'),
916
+ unescape('_nodes'),
907
917
  smalltalk.method({
908
- selector: unescape('closeTab%3A'),
909
- fn: function (aWidget){
918
+ selector: unescape('nodes'),
919
+ fn: function (){
910
920
  var self=this;
911
- smalltalk.send(self, "_removeTab_", [aWidget]);
912
- smalltalk.send(self, "_selectTab_", [smalltalk.send(smalltalk.send(self, "_tabs", []), "_last", [])]);
913
- smalltalk.send(aWidget, "_remove", []);
914
- smalltalk.send(self, "_update", []);
921
+ return self['@nodes'];
915
922
  return self;}
916
923
  }),
917
- smalltalk.TabManager);
924
+ smalltalk.ClassesListNode);
918
925
 
919
926
  smalltalk.addMethod(
920
- unescape('_search_'),
927
+ unescape('_theClass'),
921
928
  smalltalk.method({
922
- selector: unescape('search%3A'),
923
- fn: function (aString){
929
+ selector: unescape('theClass'),
930
+ fn: function (){
924
931
  var self=this;
925
- var searchedClass=nil;
926
- (searchedClass=smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_at_", [aString]));
927
- ((($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]);})]));
932
+ return self['@theClass'];
928
933
  return self;}
929
934
  }),
930
- smalltalk.TabManager);
935
+ smalltalk.ClassesListNode);
931
936
 
932
937
  smalltalk.addMethod(
933
- unescape('_addTab_'),
938
+ unescape('_theClass_'),
934
939
  smalltalk.method({
935
- selector: unescape('addTab%3A'),
936
- fn: function (aWidget){
940
+ selector: unescape('theClass%3A'),
941
+ fn: function (aClass){
937
942
  var self=this;
938
- smalltalk.send(smalltalk.send(self, "_tabs", []), "_add_", [aWidget]);
939
- smalltalk.send(aWidget, "_appendToJQuery_", [smalltalk.send(unescape("%23jtalk"), "_asJQuery", [])]);
940
- smalltalk.send(aWidget, "_hide", []);
943
+ (self['@theClass']=aClass);
941
944
  return self;}
942
945
  }),
943
- smalltalk.TabManager);
946
+ smalltalk.ClassesListNode);
944
947
 
945
948
  smalltalk.addMethod(
946
- unescape('_removeTab_'),
949
+ unescape('_browser'),
947
950
  smalltalk.method({
948
- selector: unescape('removeTab%3A'),
949
- fn: function (aWidget){
951
+ selector: unescape('browser'),
952
+ fn: function (){
950
953
  var self=this;
951
- smalltalk.send(smalltalk.send(self, "_tabs", []), "_remove_", [aWidget]);
952
- smalltalk.send(self, "_update", []);
954
+ return self['@browser'];
953
955
  return self;}
954
956
  }),
955
- smalltalk.TabManager);
957
+ smalltalk.ClassesListNode);
956
958
 
957
959
  smalltalk.addMethod(
958
- unescape('_initialize'),
960
+ unescape('_browser_'),
959
961
  smalltalk.method({
960
- selector: unescape('initialize'),
961
- fn: function (){
962
+ selector: unescape('browser%3A'),
963
+ fn: function (aBrowser){
962
964
  var self=this;
963
- smalltalk.send(self, "_initialize", [], smalltalk.Widget);
964
- (self['@opened']=true);
965
- smalltalk.send((function(html){return smalltalk.send(smalltalk.send(html, "_div", []), "_id_", ["jtalk"]);}), "_appendToJQuery_", [smalltalk.send("body", "_asJQuery", [])]);
966
- smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]);
967
- smalltalk.send(self, "_appendToJQuery_", [smalltalk.send(unescape("%23jtalk"), "_asJQuery", [])]);
968
- (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);
969
- smalltalk.send(self, "_selectTab_", [smalltalk.send(smalltalk.send(self, "_tabs", []), "_last", [])]);
970
- (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);
965
+ (self['@browser']=aBrowser);
971
966
  return self;}
972
967
  }),
973
- smalltalk.TabManager);
968
+ smalltalk.ClassesListNode);
974
969
 
975
970
  smalltalk.addMethod(
976
- unescape('_renderOn_'),
971
+ unescape('_level'),
977
972
  smalltalk.method({
978
- selector: unescape('renderOn%3A'),
979
- fn: function (html){
973
+ selector: unescape('level'),
974
+ fn: function (){
980
975
  var self=this;
981
- smalltalk.send(smalltalk.send(html, "_div", []), "_id_", ["logo"]);
982
- smalltalk.send(self, "_renderToolbarOn_", [html]);
983
- (self['@ul']=(function($rec){smalltalk.send($rec, "_id_", ["jtalkTabs"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", [])));
984
- smalltalk.send(self, "_renderTabs", []);
976
+ return self['@level'];
985
977
  return self;}
986
978
  }),
987
- smalltalk.TabManager);
979
+ smalltalk.ClassesListNode);
988
980
 
989
981
  smalltalk.addMethod(
990
- unescape('_renderTabFor_on_'),
982
+ unescape('_level_'),
991
983
  smalltalk.method({
992
- selector: unescape('renderTabFor%3Aon%3A'),
993
- fn: function (aWidget, html){
984
+ selector: unescape('level%3A'),
985
+ fn: function (anInteger){
994
986
  var self=this;
995
- var li=nil;
996
- (li=smalltalk.send(html, "_li", []));
997
- ((($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"]);})]));
998
- (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);
987
+ (self['@level']=anInteger);
999
988
  return self;}
1000
989
  }),
1001
- smalltalk.TabManager);
990
+ smalltalk.ClassesListNode);
1002
991
 
1003
992
  smalltalk.addMethod(
1004
- unescape('_renderTabs'),
993
+ unescape('_label'),
1005
994
  smalltalk.method({
1006
- selector: unescape('renderTabs'),
995
+ selector: unescape('label'),
1007
996
  fn: function (){
1008
997
  var self=this;
1009
- 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", []));})]);
998
+ var str=nil;
999
+ (str=smalltalk.send(smalltalk.send((smalltalk.String || String), "_new", []), "_writeStream", []));
1000
+ smalltalk.send(smalltalk.send(self, "_level", []), "_timesRepeat_", [(function(){return smalltalk.send(str, "_nextPutAll_", [unescape("%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B")]);})]);
1001
+ smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_theClass", []), "_name", [])]);
1002
+ return smalltalk.send(str, "_contents", []);
1010
1003
  return self;}
1011
1004
  }),
1012
- smalltalk.TabManager);
1005
+ smalltalk.ClassesListNode);
1013
1006
 
1014
1007
  smalltalk.addMethod(
1015
- unescape('_renderToolbarOn_'),
1008
+ unescape('_getNodesFrom_'),
1016
1009
  smalltalk.method({
1017
- selector: unescape('renderToolbarOn%3A'),
1018
- fn: function (html){
1010
+ selector: unescape('getNodesFrom%3A'),
1011
+ fn: function (aCollection){
1019
1012
  var self=this;
1020
- (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", []));
1013
+ var children=nil;
1014
+ var others=nil;
1015
+ (children=[]);
1016
+ (others=[]);
1017
+ 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]);})]));})]);
1018
+ (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)]))]);})]));
1021
1019
  return self;}
1022
1020
  }),
1023
- smalltalk.TabManager);
1021
+ smalltalk.ClassesListNode);
1022
+
1024
1023
 
1025
1024
  smalltalk.addMethod(
1026
- unescape('_update'),
1025
+ unescape('_on_browser_classes_level_'),
1027
1026
  smalltalk.method({
1028
- selector: unescape('update'),
1029
- fn: function (){
1027
+ selector: unescape('on%3Abrowser%3Aclasses%3Alevel%3A'),
1028
+ fn: function (aClass, aBrowser, aCollection, anInteger){
1030
1029
  var self=this;
1031
- smalltalk.send(self, "_renderTabs", []);
1030
+ 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", []));
1032
1031
  return self;}
1033
1032
  }),
1034
- smalltalk.TabManager);
1033
+ smalltalk.ClassesListNode.klass);
1035
1034
 
1036
1035
 
1037
- smalltalk.TabManager.klass.iVarNames = ['current'];
1036
+ smalltalk.addClass('DebugErrorHandler', smalltalk.ErrorHandler, [], 'IDE');
1038
1037
  smalltalk.addMethod(
1039
- unescape('_current'),
1038
+ unescape('_handleError_'),
1040
1039
  smalltalk.method({
1041
- selector: unescape('current'),
1042
- fn: function (){
1040
+ selector: unescape('handleError%3A'),
1041
+ fn: function (anError){
1043
1042
  var self=this;
1044
- return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return (self['@current']=smalltalk.send(self, "_new", [], smalltalk.Widget.klass));})() : $receiver;
1043
+ 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]);})]);
1045
1044
  return self;}
1046
1045
  }),
1047
- smalltalk.TabManager.klass);
1046
+ smalltalk.DebugErrorHandler);
1047
+
1048
1048
 
1049
1049
  smalltalk.addMethod(
1050
- unescape('_new'),
1050
+ unescape('_initialize'),
1051
1051
  smalltalk.method({
1052
- selector: unescape('new'),
1052
+ selector: unescape('initialize'),
1053
1053
  fn: function (){
1054
1054
  var self=this;
1055
- smalltalk.send(self, "_shouldNotImplement", []);
1055
+ smalltalk.send(self, "_register", []);
1056
1056
  return self;}
1057
1057
  }),
1058
- smalltalk.TabManager.klass);
1058
+ smalltalk.DebugErrorHandler.klass);
1059
1059
 
1060
1060
 
1061
1061
  smalltalk.addClass('Workspace', smalltalk.TabWidget, ['sourceArea'], 'IDE');
@@ -1747,7 +1747,7 @@ smalltalk.method({
1747
1747
  selector: unescape('ajaxPutAt%3Adata%3A'),
1748
1748
  fn: function (anURL, aString){
1749
1749
  var self=this;
1750
- 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("contentType", "__minus_gt", [unescape("text/plain")]),smalltalk.send("error", "__minus_gt", [(function(){return smalltalk.send((typeof window == 'undefined' ? nil : window), "_alert_", [smalltalk.send("PUT request failed at: ", "__comma", [anURL])]);})])])]);
1750
+ 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("contentType", "__minus_gt", [unescape("text/plain%3Bcharset%3DUTF-8")]),smalltalk.send("error", "__minus_gt", [(function(){return smalltalk.send((typeof window == 'undefined' ? nil : window), "_alert_", [smalltalk.send("PUT request failed at: ", "__comma", [anURL])]);})])])]);
1751
1751
  return self;}
1752
1752
  }),
1753
1753
  smalltalk.Browser);
@@ -1895,7 +1895,9 @@ smalltalk.send(self, "_disableSaveButton", []);
1895
1895
  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", []));})]);
1896
1896
  smalltalk.send(self['@methodButtons'], "_contents_", [(function(html){var protocolSelect=nil;
1897
1897
  var referencesSelect=nil;
1898
- (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);})]));})]);
1898
+ (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){(option=smalltalk.send(smalltalk.send(html, "_option", []), "_with_", [each]));return ((($receiver = smalltalk.send(self['@selectedProtocol'], "__eq", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send((typeof option == 'undefined' ? nil : option), "_at_put_", ["selected", "selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send((typeof option == 'undefined' ? nil : option), "_at_put_", ["selected", "selected"]);})]));})]);})]);})(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(){var option=nil;
1899
+ (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(){var option=nil;
1900
+ (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);})]));})]);
1899
1901
  ((($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", []);})]));
1900
1902
  smalltalk.send(self['@sourceArea'], "_val_", [smalltalk.send(self, "_source", [])]);
1901
1903
  return self;}
@@ -3269,6 +3271,7 @@ smalltalk.method({
3269
3271
  selector: unescape('show%3A'),
3270
3272
  fn: function (anObject){
3271
3273
  var self=this;
3274
+ (($receiver = self['@textarea']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(self, "_open", []);})() : $receiver;
3272
3275
  smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "__comma", [smalltalk.send(anObject, "_asString", [])])]);
3273
3276
  return self;}
3274
3277
  }),