author | Claus Gittinger <cg@exept.de> |
Thu, 09 Oct 2003 22:41:08 +0200 | |
changeset 5262 | 99d5c5f7e4b8 |
parent 5261 | 5f0d35ddca9d |
child 5295 | e3c5a7b20d9d |
permissions | -rw-r--r-- |
5140 | 1 |
" |
2 |
COPYRIGHT (c) 2001 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
3154 | 13 |
"{ Package: 'stx:libtool' }" |
14 |
||
15 |
ToolApplicationModel subclass:#WorkspaceApplication |
|
3667 | 16 |
instanceVariableNames:'workspaces tabList selectedWorkspaceIndexHolder workspaceHolder |
4474 | 17 |
autoDefineWorkspaceVariables autoDefineVariables' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
18 |
classVariableNames:'LastFilterBlockString LastProcessingBlockString' |
3222 | 19 |
poolDictionaries:'' |
20 |
category:'Interface-Smalltalk' |
|
3154 | 21 |
! |
22 |
||
3191 | 23 |
!WorkspaceApplication class methodsFor:'documentation'! |
24 |
||
5140 | 25 |
copyright |
26 |
" |
|
27 |
COPYRIGHT (c) 2001 by eXept Software AG |
|
28 |
All Rights Reserved |
|
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
! |
|
38 |
||
3191 | 39 |
documentation |
40 |
" |
|
41 |
A simple wrapper around a WorkSpace-View, adding a pullDown menu. |
|
42 |
||
43 |
[author:] |
|
44 |
Claus Gittinger |
|
45 |
" |
|
46 |
! ! |
|
3154 | 47 |
|
48 |
!WorkspaceApplication class methodsFor:'interface specs'! |
|
49 |
||
50 |
windowSpec |
|
51 |
"This resource specification was automatically generated |
|
52 |
by the UIPainter of ST/X." |
|
53 |
||
54 |
"Do not manually edit this!! If it is corrupted, |
|
55 |
the UIPainter may not be able to read the specification." |
|
56 |
||
57 |
" |
|
58 |
UIPainter new openOnClass:WorkspaceApplication andSelector:#windowSpec |
|
59 |
WorkspaceApplication new openInterface:#windowSpec |
|
60 |
WorkspaceApplication open |
|
61 |
" |
|
62 |
||
63 |
<resource: #canvas> |
|
64 |
||
65 |
^ |
|
66 |
#(#FullSpec |
|
67 |
#name: #windowSpec |
|
68 |
#window: |
|
69 |
#(#WindowSpec |
|
70 |
#label: 'Workspace' |
|
71 |
#name: 'Workspace' |
|
72 |
#min: #(#Point 10 10) |
|
3845 | 73 |
#bounds: #(#Rectangle 13 23 445 264) |
3154 | 74 |
#menu: #mainMenu |
75 |
) |
|
76 |
#component: |
|
77 |
#(#SpecCollection |
|
78 |
#collection: #( |
|
3193 | 79 |
#(#NoteBookViewSpec |
80 |
#name: 'NoteBook1' |
|
81 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
82 |
#model: #selectedWorkspaceIndexHolder |
|
83 |
#menu: #tabList |
|
84 |
#useIndex: true |
|
85 |
#accessTabMenuAction: #tabMenuAt: |
|
86 |
#canvas: #workspaceHolder |
|
87 |
#canvasInset: 0 |
|
88 |
#canvasFrameLevel: 0 |
|
89 |
#keepCanvasAlive: true |
|
4369 | 90 |
#tabLevel: 1 |
3193 | 91 |
) |
3154 | 92 |
) |
93 |
||
94 |
) |
|
95 |
) |
|
96 |
! ! |
|
97 |
||
98 |
!WorkspaceApplication class methodsFor:'menu specs'! |
|
99 |
||
100 |
mainMenu |
|
101 |
"This resource specification was automatically generated |
|
102 |
by the MenuEditor of ST/X." |
|
103 |
||
104 |
"Do not manually edit this!! If it is corrupted, |
|
105 |
the MenuEditor may not be able to read the specification." |
|
106 |
||
107 |
" |
|
108 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#mainMenu |
|
109 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication mainMenu)) startUp |
|
110 |
" |
|
111 |
||
112 |
<resource: #menu> |
|
113 |
||
114 |
^ |
|
115 |
#(#Menu |
|
116 |
#( |
|
117 |
#(#MenuItem |
|
118 |
#label: 'File' |
|
119 |
#translateLabel: true |
|
120 |
#submenu: |
|
121 |
#(#Menu |
|
122 |
#( |
|
123 |
#(#MenuItem |
|
3651 | 124 |
#label: 'New Workspace' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
125 |
#itemValue: #newWorkspace |
3154 | 126 |
#translateLabel: true |
3651 | 127 |
) |
128 |
#(#MenuItem |
|
129 |
#label: 'New SystemWorkspace' |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
130 |
#itemValue: #newSystemWorkspace |
3651 | 131 |
#translateLabel: true |
3154 | 132 |
) |
133 |
#(#MenuItem |
|
134 |
#label: '-' |
|
135 |
) |
|
136 |
#(#MenuItem |
|
137 |
#label: 'Load File...' |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
138 |
#itemValue: #menuLoad |
3154 | 139 |
#translateLabel: true |
140 |
) |
|
141 |
#(#MenuItem |
|
142 |
#label: '-' |
|
143 |
) |
|
144 |
#(#MenuItem |
|
145 |
#label: 'Save As...' |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
146 |
#itemValue: #menuSaveAs |
3154 | 147 |
#translateLabel: true |
148 |
) |
|
149 |
#(#MenuItem |
|
4474 | 150 |
#enabled: #hasMultipleBuffersHolder |
4267 | 151 |
#label: 'Save all As...' |
152 |
#itemValue: #menuSaveAllAs |
|
153 |
#translateLabel: true |
|
154 |
) |
|
155 |
#(#MenuItem |
|
3154 | 156 |
#label: '-' |
157 |
) |
|
158 |
#(#MenuItem |
|
159 |
#label: 'Exit' |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
160 |
#itemValue: #closeRequest |
3154 | 161 |
#translateLabel: true |
162 |
) |
|
163 |
) |
|
164 |
nil |
|
165 |
nil |
|
166 |
) |
|
167 |
) |
|
168 |
#(#MenuItem |
|
3736 | 169 |
#label: 'Buffers' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
170 |
#nameKey: #Buffer |
3193 | 171 |
#translateLabel: true |
172 |
#submenu: |
|
173 |
#(#Menu |
|
174 |
#( |
|
175 |
#(#MenuItem |
|
3222 | 176 |
#label: 'Add Buffer' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
177 |
#itemValue: #addWorkspace |
3193 | 178 |
#translateLabel: true |
179 |
) |
|
180 |
#(#MenuItem |
|
4098 | 181 |
#enabled: #anyWorkspaceVariableIsDefined |
182 |
#label: 'Add Buffer on Workspace Variables' |
|
183 |
#itemValue: #addWorkspaceVariableInspector |
|
184 |
#translateLabel: true |
|
185 |
) |
|
186 |
#(#MenuItem |
|
4099 | 187 |
#label: 'Add Buffer on Global Variables' |
188 |
#itemValue: #addGlobalVariableInspector |
|
189 |
#translateLabel: true |
|
190 |
) |
|
191 |
#(#MenuItem |
|
3193 | 192 |
#label: 'Rename...' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
193 |
#itemValue: #renameWorkspace |
3193 | 194 |
#translateLabel: true |
195 |
) |
|
196 |
#(#MenuItem |
|
197 |
#label: '-' |
|
198 |
) |
|
199 |
#(#MenuItem |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
200 |
#enabled: #canRemoveWorkspace |
3222 | 201 |
#label: 'Remove Buffer' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
202 |
#itemValue: #removeWorkspace |
3193 | 203 |
#translateLabel: true |
204 |
) |
|
205 |
) |
|
206 |
nil |
|
207 |
nil |
|
208 |
) |
|
209 |
) |
|
210 |
#(#MenuItem |
|
3154 | 211 |
#label: 'Edit' |
212 |
#translateLabel: true |
|
213 |
#submenu: |
|
214 |
#(#Menu |
|
215 |
#( |
|
216 |
#(#MenuItem |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
217 |
#enabled: #hasSelectionInActiveWorkspace |
4591
083328c16498
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
4542
diff
changeset
|
218 |
#label: 'Cut' |
083328c16498
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
4542
diff
changeset
|
219 |
#itemValue: #cutSelection |
3154 | 220 |
#translateLabel: true |
221 |
) |
|
222 |
#(#MenuItem |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
223 |
#enabled: #hasSelectionInActiveWorkspace |
4591
083328c16498
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
4542
diff
changeset
|
224 |
#label: 'Copy' |
083328c16498
editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents:
4542
diff
changeset
|
225 |
#itemValue: #copySelection |
3154 | 226 |
#translateLabel: true |
227 |
) |
|
228 |
#(#MenuItem |
|
229 |
#label: 'Paste' |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
230 |
#itemValue: #paste |
3154 | 231 |
#translateLabel: true |
232 |
) |
|
3752 | 233 |
#(#MenuItem |
4790 | 234 |
#enabled: #hasHistory |
235 |
#label: 'Paste Last' |
|
236 |
#itemValue: #pasteLastDoIt |
|
237 |
#translateLabel: true |
|
238 |
#submenuChannel: #pasteRecentDoItMenu |
|
239 |
) |
|
240 |
#(#MenuItem |
|
241 |
#label: '-' |
|
242 |
) |
|
243 |
#(#MenuItem |
|
244 |
#label: 'Select All' |
|
245 |
#itemValue: #selectAll |
|
246 |
#translateLabel: true |
|
247 |
) |
|
248 |
#(#MenuItem |
|
3752 | 249 |
#label: '-' |
250 |
) |
|
251 |
#(#MenuItem |
|
252 |
#label: 'Filter Text...' |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
253 |
#itemValue: #filterText |
3752 | 254 |
#translateLabel: true |
255 |
) |
|
256 |
#(#MenuItem |
|
257 |
#label: 'Process Text...' |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
258 |
#itemValue: #processText |
3752 | 259 |
#translateLabel: true |
260 |
) |
|
4136 | 261 |
#(#MenuItem |
5261 | 262 |
#label: '-' |
263 |
) |
|
264 |
#(#MenuItem |
|
4829 | 265 |
#label: 'Web Services' |
4480 | 266 |
#translateLabel: true |
267 |
#submenu: |
|
268 |
#(#Menu |
|
269 |
#( |
|
270 |
#(#MenuItem |
|
271 |
#enabled: #hasSelectionInActiveWorkspace |
|
272 |
#label: 'Google Spell' |
|
273 |
#itemValue: #googleSpellingSuggestion |
|
274 |
#translateLabel: true |
|
275 |
) |
|
276 |
#(#MenuItem |
|
277 |
#label: 'Translate' |
|
278 |
#translateLabel: true |
|
279 |
#submenu: |
|
280 |
#(#Menu |
|
281 |
#( |
|
282 |
#(#MenuItem |
|
283 |
#enabled: #hasSelectionInActiveWorkspace |
|
284 |
#label: 'English -> German' |
|
285 |
#itemValue: #babelFishTranslate: |
|
286 |
#translateLabel: true |
|
287 |
#argument: 'en_de' |
|
288 |
) |
|
289 |
#(#MenuItem |
|
290 |
#enabled: #hasSelectionInActiveWorkspace |
|
291 |
#label: 'English -> French' |
|
292 |
#itemValue: #babelFishTranslate: |
|
293 |
#translateLabel: true |
|
294 |
#argument: 'en_fr' |
|
295 |
) |
|
296 |
#(#MenuItem |
|
297 |
#enabled: #hasSelectionInActiveWorkspace |
|
298 |
#label: 'English -> Spanish' |
|
299 |
#itemValue: #babelFishTranslate: |
|
300 |
#translateLabel: true |
|
301 |
#argument: 'en_es' |
|
302 |
) |
|
303 |
#(#MenuItem |
|
304 |
#enabled: #hasSelectionInActiveWorkspace |
|
305 |
#label: 'English -> Portuguese' |
|
306 |
#itemValue: #babelFishTranslate: |
|
307 |
#translateLabel: true |
|
308 |
#argument: 'en_pt' |
|
309 |
) |
|
310 |
#(#MenuItem |
|
311 |
#label: '-' |
|
312 |
) |
|
313 |
#(#MenuItem |
|
314 |
#enabled: #hasSelectionInActiveWorkspace |
|
315 |
#label: 'German -> English' |
|
316 |
#itemValue: #babelFishTranslate: |
|
317 |
#translateLabel: true |
|
318 |
#argument: 'de_en' |
|
319 |
) |
|
320 |
#(#MenuItem |
|
321 |
#enabled: #hasSelectionInActiveWorkspace |
|
322 |
#label: 'French -> English' |
|
323 |
#itemValue: #babelFishTranslate: |
|
324 |
#translateLabel: true |
|
325 |
#argument: 'fr_en' |
|
326 |
) |
|
327 |
#(#MenuItem |
|
328 |
#enabled: #hasSelectionInActiveWorkspace |
|
329 |
#label: 'Spanish -> English' |
|
330 |
#itemValue: #babelFishTranslate: |
|
331 |
#translateLabel: true |
|
332 |
#argument: 'es_en' |
|
333 |
) |
|
334 |
#(#MenuItem |
|
335 |
#enabled: #hasSelectionInActiveWorkspace |
|
336 |
#label: 'Portuguese -> English' |
|
337 |
#itemValue: #babelFishTranslate: |
|
338 |
#translateLabel: true |
|
339 |
#argument: 'pt_en' |
|
340 |
) |
|
341 |
#(#MenuItem |
|
342 |
#enabled: #hasSelectionInActiveWorkspace |
|
343 |
#label: 'Russian -> English' |
|
344 |
#itemValue: #babelFishTranslate: |
|
345 |
#translateLabel: true |
|
346 |
#argument: 'ru_en' |
|
347 |
) |
|
348 |
) |
|
349 |
nil |
|
350 |
nil |
|
351 |
) |
|
352 |
) |
|
353 |
) |
|
354 |
nil |
|
355 |
nil |
|
356 |
) |
|
357 |
) |
|
3154 | 358 |
) |
359 |
nil |
|
360 |
nil |
|
361 |
) |
|
362 |
) |
|
363 |
#(#MenuItem |
|
3722 | 364 |
#label: 'Workspace' |
365 |
#translateLabel: true |
|
366 |
#submenu: |
|
367 |
#(#Menu |
|
368 |
#( |
|
369 |
#(#MenuItem |
|
370 |
#label: 'Add Workspace Variable...' |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
371 |
#itemValue: #addWorkspaceVariable |
3722 | 372 |
#translateLabel: true |
373 |
) |
|
374 |
#(#MenuItem |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
375 |
#enabled: #anyWorkspaceVariableIsDefined |
3722 | 376 |
#label: 'Remove Workspace Variable...' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
377 |
#itemValue: #removeWorkspaceVariable |
3722 | 378 |
#translateLabel: true |
379 |
) |
|
380 |
#(#MenuItem |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
381 |
#enabled: #anyWorkspaceVariableIsDefined |
4267 | 382 |
#label: 'Remove all Workspace Variables...' |
383 |
#itemValue: #removeAllWorkspaceVariables |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
384 |
#translateLabel: true |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
385 |
) |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
386 |
#(#MenuItem |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
387 |
#label: '-' |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
388 |
) |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
389 |
#(#MenuItem |
3812 | 390 |
#enabled: #anyWorkspaceVariableIsDefined |
4267 | 391 |
#label: 'Inspect Workspace Variables' |
392 |
#itemValue: #inspectWorkspaceVariables |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
393 |
#translateLabel: true |
3722 | 394 |
) |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
395 |
#(#MenuItem |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
396 |
#label: '-' |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
397 |
) |
3722 | 398 |
#(#MenuItem |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
399 |
#label: 'Settings' |
3722 | 400 |
#translateLabel: true |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
401 |
#submenu: |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
402 |
#(#Menu |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
403 |
#( |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
404 |
#(#MenuItem |
4474 | 405 |
#label: 'Autodefine as Workspace Variable' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
406 |
#translateLabel: true |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
407 |
#hideMenuOnActivated: false |
4474 | 408 |
#choice: #autoDefineVariables |
409 |
#choiceValue: #workspace |
|
410 |
) |
|
411 |
#(#MenuItem |
|
412 |
#label: 'Autodefine as DoIt Variable' |
|
413 |
#translateLabel: true |
|
414 |
#hideMenuOnActivated: false |
|
415 |
#choice: #autoDefineVariables |
|
416 |
#choiceValue: #doIt |
|
417 |
) |
|
418 |
#(#MenuItem |
|
419 |
#label: 'Autodefine off' |
|
420 |
#translateLabel: true |
|
421 |
#hideMenuOnActivated: false |
|
422 |
#choice: #autoDefineVariables |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
423 |
) |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
424 |
) |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
425 |
nil |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
426 |
nil |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
427 |
) |
3722 | 428 |
) |
429 |
) |
|
430 |
nil |
|
431 |
nil |
|
432 |
) |
|
433 |
) |
|
434 |
#(#MenuItem |
|
3154 | 435 |
#label: 'Smalltalk' |
436 |
#translateLabel: true |
|
437 |
#submenu: |
|
438 |
#(#Menu |
|
439 |
#( |
|
440 |
#(#MenuItem |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
441 |
#enabled: #hasSelectionInActiveWorkspace |
3154 | 442 |
#label: 'DoIt' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
443 |
#itemValue: #doIt |
3154 | 444 |
#translateLabel: true |
445 |
) |
|
446 |
#(#MenuItem |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
447 |
#enabled: #hasSelectionInActiveWorkspace |
3154 | 448 |
#label: 'PrintIt' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
449 |
#itemValue: #printIt |
3154 | 450 |
#translateLabel: true |
451 |
) |
|
452 |
#(#MenuItem |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
453 |
#enabled: #hasSelectionInActiveWorkspace |
3154 | 454 |
#label: 'InspectIt' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
455 |
#itemValue: #inspectIt |
3154 | 456 |
#translateLabel: true |
457 |
) |
|
458 |
#(#MenuItem |
|
459 |
#label: '-' |
|
460 |
) |
|
461 |
#(#MenuItem |
|
4790 | 462 |
#enabled: #hasHistory |
463 |
#label: 'Redo Last' |
|
464 |
#itemValue: #redoLastDoIt |
|
465 |
#translateLabel: true |
|
466 |
#submenuChannel: #redoRecentDoItMenu |
|
467 |
) |
|
468 |
#(#MenuItem |
|
469 |
#label: '-' |
|
470 |
) |
|
471 |
#(#MenuItem |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
472 |
#enabled: #hasSelectionInActiveWorkspace |
3384 | 473 |
#label: 'TimeIt' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
474 |
#itemValue: #timeIt |
3384 | 475 |
#translateLabel: true |
476 |
) |
|
477 |
#(#MenuItem |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
478 |
#enabled: #hasSelectionInActiveWorkspace |
3384 | 479 |
#label: 'SpyOnIt' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
480 |
#itemValue: #spyOnIt |
3384 | 481 |
#translateLabel: true |
482 |
) |
|
483 |
#(#MenuItem |
|
484 |
#label: '-' |
|
485 |
) |
|
486 |
#(#MenuItem |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
487 |
#enabled: #hasSelectionInActiveWorkspace |
3383
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
488 |
#label: 'Browse Class' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
489 |
#itemValue: #browseIt |
3154 | 490 |
#translateLabel: true |
491 |
) |
|
3383
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
492 |
#(#MenuItem |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
493 |
#enabled: #hasSelectionInActiveWorkspace |
3710 | 494 |
#label: 'Browse Implementors of It' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
495 |
#itemValue: #browseImplementorsOfIt |
3383
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
496 |
#translateLabel: true |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
497 |
) |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
498 |
#(#MenuItem |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
499 |
#enabled: #hasSelectionInActiveWorkspace |
3710 | 500 |
#label: 'Browse References to It' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
501 |
#itemValue: #browseReferencesToIt |
3383
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
502 |
#translateLabel: true |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
503 |
) |
4154 | 504 |
#(#MenuItem |
505 |
#label: '-' |
|
506 |
) |
|
507 |
#(#MenuItem |
|
5262 | 508 |
#label: 'FileIn Text' |
5261 | 509 |
#itemValue: #fileInText |
510 |
#translateLabel: true |
|
511 |
) |
|
512 |
#(#MenuItem |
|
513 |
#label: '-' |
|
514 |
) |
|
515 |
#(#MenuItem |
|
4154 | 516 |
#label: 'Add Global Variable...' |
4284 | 517 |
#itemValue: #addGlobalVariable |
518 |
#translateLabel: true |
|
519 |
) |
|
520 |
#(#MenuItem |
|
521 |
#label: 'Remove Global Variable...' |
|
522 |
#itemValue: #removeGlobalVariable |
|
4154 | 523 |
#translateLabel: true |
524 |
) |
|
3154 | 525 |
) |
526 |
nil |
|
527 |
nil |
|
528 |
) |
|
529 |
) |
|
530 |
#(#MenuItem |
|
531 |
#label: 'Help' |
|
532 |
#translateLabel: true |
|
533 |
#startGroup: #right |
|
534 |
#submenu: |
|
535 |
#(#Menu |
|
536 |
#( |
|
537 |
#(#MenuItem |
|
538 |
#label: 'Documentation' |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
539 |
#itemValue: #openDocumentation |
3154 | 540 |
#translateLabel: true |
541 |
) |
|
542 |
#(#MenuItem |
|
543 |
#label: '-' |
|
544 |
) |
|
545 |
#(#MenuItem |
|
3282 | 546 |
#label: 'About this Application...' |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
547 |
#itemValue: #openAboutThisApplication |
3154 | 548 |
#translateLabel: true |
549 |
) |
|
550 |
) |
|
551 |
nil |
|
552 |
nil |
|
553 |
) |
|
554 |
) |
|
555 |
) |
|
556 |
nil |
|
557 |
nil |
|
558 |
) |
|
3193 | 559 |
! |
560 |
||
561 |
tabMenu |
|
562 |
"This resource specification was automatically generated |
|
563 |
by the MenuEditor of ST/X." |
|
564 |
||
565 |
"Do not manually edit this!! If it is corrupted, |
|
566 |
the MenuEditor may not be able to read the specification." |
|
567 |
||
568 |
" |
|
569 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#tabMenu |
|
570 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication tabMenu)) startUp |
|
571 |
" |
|
572 |
||
573 |
<resource: #menu> |
|
574 |
||
575 |
^ |
|
576 |
#(#Menu |
|
577 |
#( |
|
578 |
#(#MenuItem |
|
3222 | 579 |
#label: 'Add Buffer' |
3193 | 580 |
#translateLabel: true |
3651 | 581 |
"/ #triggerOnDown: true |
3193 | 582 |
#value: #addWorkspace |
583 |
) |
|
584 |
#(#MenuItem |
|
585 |
#label: 'Rename...' |
|
586 |
#translateLabel: true |
|
3651 | 587 |
"/ #triggerOnDown: true |
3193 | 588 |
#value: #renameWorkspace: |
589 |
) |
|
590 |
#(#MenuItem |
|
591 |
#label: '-' |
|
592 |
) |
|
593 |
#(#MenuItem |
|
3222 | 594 |
#label: 'Remove Buffer' |
3193 | 595 |
#translateLabel: true |
3651 | 596 |
"/ #triggerOnDown: true |
3193 | 597 |
#value: #removeWorkspace: |
598 |
#enabled: #canRemoveWorkspace: |
|
599 |
) |
|
600 |
) |
|
601 |
nil |
|
602 |
nil |
|
603 |
) |
|
3154 | 604 |
! ! |
605 |
||
3332 | 606 |
!WorkspaceApplication class methodsFor:'special startup'! |
607 |
||
608 |
openSystemWorkspace |
|
3345 | 609 |
|wsApp licenceView path needRemove| |
610 |
||
611 |
needRemove := true. |
|
3332 | 612 |
|
613 |
wsApp := self new. |
|
614 |
wsApp allButOpen. |
|
3337 | 615 |
wsApp window extent:640@400. |
3332 | 616 |
|
3345 | 617 |
path := (Smalltalk getSystemFileName:'README') ? '../../README'. |
3532
e38c9dd404a2
care for missing workspace files
Claus Gittinger <cg@exept.de>
parents:
3507
diff
changeset
|
618 |
(path notNil and:[path asFilename exists]) ifTrue:[ |
3345 | 619 |
wsApp addWindow:(HVScrollableView for:Workspace) named:'README' asFirst:false. |
620 |
wsApp loadFile:path. |
|
621 |
wsApp removeWorkspace:1. "/ the original Workspace |
|
4183 | 622 |
wsApp renameWorkspace:1 to:'LICENCE README'. |
3345 | 623 |
needRemove := false. |
624 |
]. |
|
3334 | 625 |
|
3346 | 626 |
"/ path := (Smalltalk getSystemFileName:'doc/online/english/LICENCE_STX.html') ? '../../doc/online/english/LICENCE_STX.html'. |
627 |
"/ path asFilename exists ifTrue:[ |
|
628 |
"/ wsApp addWindow:(licenceView := HVScrollableView for:HTMLDocumentView) named:'License' asFirst:false. |
|
629 |
"/ licenceView homeDocument:'../../doc/online/english/LICENCE_STX.html'. |
|
630 |
"/ licenceView updateLabelFlag:false. |
|
631 |
"/ needRemove ifTrue:[wsApp removeWorkspace:1]. "/ the original Workspace |
|
632 |
"/ needRemove := false. |
|
633 |
"/ ]. |
|
3332 | 634 |
|
4985 | 635 |
path := (Smalltalk getSystemFileName:'GettingStarted.wsp'). |
636 |
(path notNil and:[path asFilename exists]) ifTrue:[ |
|
637 |
wsApp addWindow:(HVScrollableView for:Workspace) named:'Getting Started' asFirst:false. |
|
638 |
wsApp loadFile:path. |
|
639 |
needRemove ifTrue:[wsApp removeWorkspace:1]. "/ the original Workspace |
|
640 |
needRemove := false. |
|
641 |
]. |
|
642 |
||
3347 | 643 |
path := (Smalltalk getSystemFileName:'Keyboard.wsp'). |
3532
e38c9dd404a2
care for missing workspace files
Claus Gittinger <cg@exept.de>
parents:
3507
diff
changeset
|
644 |
(path notNil and:[path asFilename exists]) ifTrue:[ |
3345 | 645 |
wsApp addWindow:(HVScrollableView for:Workspace) named:'Keyboard' asFirst:false. |
646 |
wsApp loadFile:path. |
|
647 |
needRemove ifTrue:[wsApp removeWorkspace:1]. "/ the original Workspace |
|
648 |
needRemove := false. |
|
649 |
]. |
|
3332 | 650 |
|
4183 | 651 |
path := (Smalltalk getSystemFileName:'Setup.wsp'). |
652 |
(path notNil and:[path asFilename exists]) ifTrue:[ |
|
653 |
wsApp addWindow:(HVScrollableView for:Workspace) named:'Setup' asFirst:false. |
|
654 |
wsApp loadFile:path. |
|
655 |
needRemove ifTrue:[wsApp removeWorkspace:1]. "/ the original Workspace |
|
656 |
needRemove := false. |
|
657 |
]. |
|
658 |
||
3347 | 659 |
path := (Smalltalk getSystemFileName:'Hello.wsp'). |
3532
e38c9dd404a2
care for missing workspace files
Claus Gittinger <cg@exept.de>
parents:
3507
diff
changeset
|
660 |
(path notNil and:[path asFilename exists]) ifTrue:[ |
3345 | 661 |
wsApp addWindow:(HVScrollableView for:Workspace) named:'Welcome' asFirst:false. |
662 |
wsApp loadFile:path. |
|
663 |
needRemove ifTrue:[wsApp removeWorkspace:1]. "/ the original Workspace |
|
664 |
needRemove := false. |
|
665 |
]. |
|
3332 | 666 |
|
667 |
wsApp openWindow |
|
668 |
||
669 |
" |
|
670 |
self openSystemWorkspace |
|
671 |
" |
|
4542 | 672 |
! |
673 |
||
674 |
openWith:initialText |
|
675 |
"launch a new workspace with some initial contents" |
|
676 |
||
5098 | 677 |
^ self openWith:initialText selected:false |
678 |
||
679 |
" |
|
680 |
WorkspaceApplication openWith:'Transcript showCR:''hello world''' |
|
681 |
" |
|
682 |
! |
|
683 |
||
684 |
openWith:initialText selected:selectedBoolean |
|
685 |
"launch a new workspace with some initial contents" |
|
686 |
||
4542 | 687 |
|workspace| |
688 |
||
689 |
workspace := self new. |
|
690 |
workspace open. |
|
5098 | 691 |
workspace selectedWorkspace contents:initialText selected:selectedBoolean. |
4542 | 692 |
^ workspace |
693 |
||
694 |
" |
|
695 |
WorkspaceApplication openWith:'Transcript showCR:''hello world''' |
|
696 |
" |
|
3332 | 697 |
! ! |
698 |
||
3154 | 699 |
!WorkspaceApplication methodsFor:'accessing'! |
700 |
||
3193 | 701 |
selectedWorkspace |
702 |
|wsIndex| |
|
703 |
||
704 |
workspaces isNil ifTrue:[ |
|
705 |
workspaces := OrderedCollection new. |
|
706 |
]. |
|
707 |
wsIndex := self selectedWorkspaceIndexHolder value. |
|
708 |
wsIndex == 0 ifTrue:[ |
|
709 |
^ nil |
|
710 |
]. |
|
711 |
||
712 |
workspaces size < wsIndex ifTrue:[ |
|
713 |
workspaces grow:wsIndex. |
|
714 |
workspaces at:wsIndex put:(HVScrollableView for:Workspace). |
|
715 |
]. |
|
716 |
^ workspaces at:wsIndex |
|
717 |
! |
|
718 |
||
719 |
tabMenuAt:index |
|
3196 | 720 |
|m i ws| |
3193 | 721 |
|
722 |
m := self class tabMenu. |
|
723 |
m := m decodeAsLiteralArray. |
|
724 |
i := m detectItem:[:item | item value == #removeWorkspace:] ifNone:nil. |
|
725 |
i notNil ifTrue:[ |
|
726 |
i argument:index. |
|
727 |
index ~~ self selectedWorkspaceIndexHolder value ifTrue:[ |
|
728 |
"/ for now: if that buffer is modified, |
|
729 |
"/ do not allow removing. |
|
730 |
"/ (must be brought to front, in order for check-for-modification to work) |
|
3196 | 731 |
ws := workspaces at:index. |
732 |
(ws isKindOf:ScrollableView) ifTrue:[ |
|
733 |
ws := ws scrolledView |
|
734 |
]. |
|
735 |
((ws isKindOf:TextView) not |
|
736 |
or:[ ws modified ]) |
|
737 |
ifTrue:[ |
|
3193 | 738 |
i disable |
739 |
]. |
|
740 |
]. |
|
741 |
]. |
|
742 |
i := m detectItem:[:item | item value == #renameWorkspace:] ifNone:nil. |
|
743 |
i notNil ifTrue:[ |
|
744 |
i argument:index. |
|
745 |
]. |
|
746 |
||
747 |
m findGuiResourcesIn:self. |
|
748 |
^ m |
|
749 |
! |
|
750 |
||
751 |
workspaceHolder |
|
752 |
workspaceHolder isNil ifTrue:[ |
|
3207 | 753 |
workspaceHolder := ValueHolder with:(self selectedWorkspace). |
3193 | 754 |
]. |
755 |
^ workspaceHolder |
|
756 |
! ! |
|
757 |
||
758 |
!WorkspaceApplication methodsFor:'aspects'! |
|
759 |
||
4474 | 760 |
autoDefineVariables |
761 |
autoDefineVariables isNil ifTrue:[ |
|
762 |
autoDefineVariables := ValueHolder new. |
|
763 |
(UserPreferences current autoDefineWorkspaceVariables) ifTrue:[ |
|
764 |
autoDefineVariables value:#workspace |
|
765 |
]. |
|
766 |
autoDefineVariables onChangeSend:#autoDefineVariablesChanged to:self. |
|
767 |
]. |
|
768 |
^ autoDefineVariables. |
|
769 |
! |
|
770 |
||
3667 | 771 |
autoDefineWorkspaceVariables |
772 |
"does not work yet - needs more interaction with parser" |
|
773 |
||
774 |
autoDefineWorkspaceVariables isNil ifTrue:[ |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
775 |
autoDefineWorkspaceVariables := UserPreferences current autoDefineWorkspaceVariables asValue. |
3667 | 776 |
autoDefineWorkspaceVariables onChangeSend:#autoDefineWorkspaceVariablesChanged to:self. |
777 |
]. |
|
778 |
^ autoDefineWorkspaceVariables. |
|
779 |
! |
|
780 |
||
4136 | 781 |
hasHistory |
782 |
^ Workspace doItHistory size > 0. |
|
783 |
! |
|
784 |
||
3193 | 785 |
selectedWorkspaceIndexHolder |
786 |
selectedWorkspaceIndexHolder isNil ifTrue:[ |
|
787 |
selectedWorkspaceIndexHolder := 1 asValue. |
|
788 |
selectedWorkspaceIndexHolder onChangeSend:#workspaceSelectionChanged to:self. |
|
789 |
]. |
|
790 |
^ selectedWorkspaceIndexHolder. |
|
791 |
! |
|
792 |
||
793 |
tabList |
|
794 |
tabList isNil ifTrue:[ |
|
795 |
tabList := List new. |
|
796 |
]. |
|
797 |
^ tabList. |
|
798 |
! ! |
|
799 |
||
4358 | 800 |
!WorkspaceApplication methodsFor:'aspects-queries'! |
3193 | 801 |
|
3812 | 802 |
anyWorkspaceVariableIsDefined |
803 |
^ Workspace workspaceVariables size > 0 |
|
804 |
! |
|
805 |
||
3193 | 806 |
canRemoveWorkspace |
3214 | 807 |
^ self canRemoveWorkspace:(self selectedWorkspaceIndexHolder value) |
808 |
! |
|
809 |
||
810 |
canRemoveWorkspace:idx |
|
3193 | 811 |
^ self tabList size > 1 |
3214 | 812 |
"/ and:[ (self workspacesTextViewAt:(self selectedWorkspaceIndexHolder value)) |
3391
09fd110d1ea4
disable menu items; check for nothing selected
Claus Gittinger <cg@exept.de>
parents:
3384
diff
changeset
|
813 |
! |
09fd110d1ea4
disable menu items; check for nothing selected
Claus Gittinger <cg@exept.de>
parents:
3384
diff
changeset
|
814 |
|
4267 | 815 |
hasMultipleBuffersHolder |
816 |
^ [ workspaces size > 1 ] |
|
817 |
! |
|
818 |
||
3391
09fd110d1ea4
disable menu items; check for nothing selected
Claus Gittinger <cg@exept.de>
parents:
3384
diff
changeset
|
819 |
hasSelectionInActiveWorkspace |
09fd110d1ea4
disable menu items; check for nothing selected
Claus Gittinger <cg@exept.de>
parents:
3384
diff
changeset
|
820 |
^ self selectedWorkspacesTextView selectionAsString size > 0 |
3154 | 821 |
! ! |
822 |
||
823 |
!WorkspaceApplication methodsFor:'initialization & release'! |
|
824 |
||
825 |
closeRequest |
|
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
826 |
(self askIfAnyModified:'Text was not saved. Close anyway ?' yesButton:'Close') ifFalse:[ |
3154 | 827 |
^ self |
828 |
]. |
|
829 |
||
830 |
^ super closeRequest |
|
831 |
! ! |
|
832 |
||
4359 | 833 |
!WorkspaceApplication methodsFor:'menu-actions'! |
3154 | 834 |
|
4154 | 835 |
addGlobalVariable |
836 |
|name nameKey selection| |
|
837 |
||
838 |
selection := self selectedWorkspacesTextView selection ? ''. |
|
839 |
||
840 |
name := Dialog |
|
841 |
request:'Name of new Global Variable:' |
|
842 |
initialAnswer:(selection asString string) |
|
843 |
okLabel:'Add' |
|
844 |
title:'Enter Variable Name'. |
|
845 |
name size == 0 ifTrue:[ |
|
846 |
^ self |
|
847 |
]. |
|
848 |
nameKey := name asSymbol. |
|
849 |
||
4284 | 850 |
(Smalltalk includesKey:nameKey) ifTrue:[ |
4154 | 851 |
self warn:'Global named ''' , name , ''' already exists.'. |
852 |
^ self. |
|
853 |
]. |
|
854 |
Smalltalk at:nameKey put:nil. |
|
855 |
! |
|
856 |
||
4099 | 857 |
addGlobalVariableInspector |
858 |
|v| |
|
859 |
||
860 |
v := self addInspectorOn:(Smalltalk) basic:false suppressPseudoSlots:true. |
|
861 |
v fieldListLabel:'Name'. |
|
4208 | 862 |
self renameWorkspace:(self selectedWorkspaceIndexHolder value) to:'Globals (Smalltalk)'. |
4099 | 863 |
! |
864 |
||
4096
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
865 |
addInspectorOn:aValue basic:isBasicInspector suppressPseudoSlots:suppressPseudoSlots |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
866 |
|view cls resultString| |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
867 |
|
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
868 |
isBasicInspector ifFalse:[ |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
869 |
cls := aValue inspectorClass. |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
870 |
]. |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
871 |
cls isNil ifTrue:[ |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
872 |
cls := InspectorView |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
873 |
]. |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
874 |
view := cls new. |
4096
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
875 |
view suppressPseudoSlots:suppressPseudoSlots. |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
876 |
view inspect:aValue. |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
877 |
"/ v allowFollow:true. |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
878 |
aValue isBehavior ifTrue:[ |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
879 |
resultString := aValue name |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
880 |
] ifFalse:[ |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
881 |
resultString := aValue classNameWithArticle |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
882 |
]. |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
883 |
self addWindow:view named:('Inspecting: ' , resultString). |
4096
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
884 |
^ view |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
885 |
! |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
886 |
|
3196 | 887 |
addWindow:aWindow named:name |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
888 |
^ self addWindow:aWindow named:name asFirst:false |
3334 | 889 |
! |
890 |
||
891 |
addWindow:aWindow named:name asFirst:asFirst |
|
892 |
|tabList wsIndex newSelectedIndex| |
|
3193 | 893 |
|
894 |
tabList := self tabList. |
|
895 |
wsIndex := tabList size + 1. |
|
896 |
wsIndex == 1 ifTrue:[ |
|
897 |
"/ first - add a name for the first tab |
|
898 |
tabList add:(self window label). "/ 'Workspace'. |
|
899 |
wsIndex := wsIndex + 1. |
|
900 |
]. |
|
901 |
||
902 |
workspaces grow:wsIndex. |
|
3334 | 903 |
asFirst ifTrue:[ |
904 |
tabList addFirst:(name bindWith:wsIndex). |
|
905 |
workspaces replaceFrom:2 to:wsIndex with:workspaces startingAt:1. |
|
906 |
newSelectedIndex := 1. |
|
907 |
] ifFalse:[ |
|
908 |
tabList addLast:(name bindWith:wsIndex). |
|
909 |
newSelectedIndex := wsIndex. |
|
910 |
]. |
|
911 |
workspaces at:newSelectedIndex put:aWindow. |
|
912 |
self selectedWorkspaceIndexHolder value:newSelectedIndex. |
|
913 |
"/ workspaceHolder value:aWindow. |
|
3193 | 914 |
! |
915 |
||
3196 | 916 |
addWorkspace |
917 |
self addWindow:(HVScrollableView for:Workspace) named:'Workspace%1' |
|
918 |
! |
|
919 |
||
3722 | 920 |
addWorkspaceVariable |
921 |
|name selection| |
|
922 |
||
923 |
selection := self selectedWorkspacesTextView selection ? ''. |
|
924 |
||
925 |
name := Dialog |
|
926 |
request:'Name of new Workspace Variable:' |
|
927 |
initialAnswer:(selection asString string) |
|
928 |
okLabel:'Add' |
|
929 |
title:'Enter Variable Name'. |
|
930 |
name size == 0 ifTrue:[ |
|
931 |
^ self |
|
932 |
]. |
|
933 |
Workspace addWorkspaceVariable:name. |
|
934 |
! |
|
935 |
||
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
936 |
addWorkspaceVariableInspector |
4096
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
937 |
|v| |
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
938 |
|
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
939 |
v := self addInspectorOn:(Workspace workspaceVariables) basic:false suppressPseudoSlots:true. |
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
940 |
v dereferenceValueHolders:true. |
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
941 |
v fieldListLabel:'Name'. |
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
942 |
self renameWorkspace:(self selectedWorkspaceIndexHolder value) to:'Variables'. |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
943 |
! |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
944 |
|
3752 | 945 |
askForFilterBlock:message template:template rememberIn:nameOfClassVar |
946 |
|filterBlockString filterBlock dialog textHolder classVarValue| |
|
947 |
||
948 |
classVarValue := self class classVarAt:nameOfClassVar ifAbsent:nil. |
|
949 |
classVarValue isNil ifTrue:[ |
|
950 |
self class classVarAt:nameOfClassVar put:template. |
|
951 |
classVarValue := template. |
|
952 |
]. |
|
953 |
||
954 |
textHolder := ValueHolder new. |
|
955 |
dialog := Dialog |
|
956 |
forRequestText:(resources string:message) |
|
957 |
lines:25 |
|
958 |
columns:70 |
|
959 |
initialAnswer:classVarValue |
|
960 |
model:textHolder. |
|
961 |
dialog addButton:(Button label:'Template' action:[textHolder value:template. textHolder changed:#value.]). |
|
962 |
dialog open. |
|
963 |
dialog accepted ifFalse:[^ nil]. |
|
964 |
||
965 |
filterBlockString := textHolder value. |
|
966 |
self class classVarAt:nameOfClassVar put:filterBlockString. |
|
967 |
||
968 |
filterBlock := Parser evaluate:filterBlockString. |
|
969 |
filterBlock isBlock ifFalse:[ |
|
970 |
self halt:'oops - bad input'. |
|
971 |
^ nil |
|
972 |
]. |
|
973 |
||
974 |
^ filterBlock |
|
975 |
! |
|
976 |
||
4474 | 977 |
autoDefineVariablesChanged |
978 |
|autoDefine| |
|
979 |
||
980 |
autoDefine := autoDefineVariables value. |
|
981 |
UserPreferences current autoDefineWorkspaceVariables:(autoDefine == #workspace). |
|
982 |
workspaces do:[:each | |
|
983 |
each autoDefineVariables:autoDefine |
|
984 |
]. |
|
985 |
! |
|
986 |
||
3667 | 987 |
autoDefineWorkspaceVariablesChanged |
988 |
"does not work yet - needs more interaction with parser" |
|
989 |
||
990 |
|doAutoDefine| |
|
991 |
||
992 |
doAutoDefine := autoDefineWorkspaceVariables value. |
|
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
993 |
UserPreferences current autoDefineWorkspaceVariables:doAutoDefine. |
3667 | 994 |
workspaces do:[:each | |
995 |
each autoDefineWorkspaceVariables:doAutoDefine |
|
996 |
]. |
|
997 |
! |
|
998 |
||
3198 | 999 |
basicInspectIt |
1000 |
self inspectIt:true |
|
1001 |
! |
|
1002 |
||
3383
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
1003 |
browseImplementorsOfIt |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
1004 |
self selectedWorkspacesTextView browseImplementorsOfIt |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
1005 |
! |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
1006 |
|
3154 | 1007 |
browseIt |
3198 | 1008 |
self selectedWorkspacesTextView browseIt |
3154 | 1009 |
! |
1010 |
||
3383
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
1011 |
browseReferencesToIt |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
1012 |
self selectedWorkspacesTextView browseReferencesToIt |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
1013 |
! |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
1014 |
|
4136 | 1015 |
clearHistory |
1016 |
Workspace clearDoItHistory |
|
1017 |
! |
|
1018 |
||
3154 | 1019 |
doIt |
3198 | 1020 |
self selectedWorkspacesTextView doIt |
3154 | 1021 |
! |
1022 |
||
1023 |
inspectIt |
|
3198 | 1024 |
self inspectIt:false |
1025 |
! |
|
1026 |
||
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
1027 |
inspectIt:isBasicInspector |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
1028 |
|ws| |
3196 | 1029 |
|
3198 | 1030 |
ws := self selectedWorkspacesTextView. |
3196 | 1031 |
ws |
1032 |
do:(ws selection) |
|
1033 |
withValueDo:[:result | |
|
4096
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
1034 |
self addInspectorOn:result basic:isBasicInspector suppressPseudoSlots:false |
3196 | 1035 |
] |
1036 |
||
1037 |
"/ self selectedWorkspace inspectIt |
|
3154 | 1038 |
! |
1039 |
||
3812 | 1040 |
inspectWorkspaceVariables |
1041 |
|wsvars| |
|
1042 |
||
1043 |
wsvars := Workspace workspaceVariables. |
|
1044 |
wsvars size == 0 ifTrue:[ |
|
1045 |
Dialog information:'No Workspace Variables are defined'. |
|
1046 |
^ self |
|
1047 |
]. |
|
1048 |
wsvars inspect |
|
1049 |
! |
|
1050 |
||
3332 | 1051 |
loadFile:aFileName |
1052 |
|file ws lbl| |
|
1053 |
||
1054 |
file := aFileName asFilename. |
|
5196
13f6e4eaac91
fix #loadFile: check if file exists
Michael Beyl <mb@exept.de>
parents:
5140
diff
changeset
|
1055 |
file exists ifFalse:[ |
13f6e4eaac91
fix #loadFile: check if file exists
Michael Beyl <mb@exept.de>
parents:
5140
diff
changeset
|
1056 |
Dialog warn:'File ',file asString,' does not exist'. |
13f6e4eaac91
fix #loadFile: check if file exists
Michael Beyl <mb@exept.de>
parents:
5140
diff
changeset
|
1057 |
^ self |
13f6e4eaac91
fix #loadFile: check if file exists
Michael Beyl <mb@exept.de>
parents:
5140
diff
changeset
|
1058 |
]. |
13f6e4eaac91
fix #loadFile: check if file exists
Michael Beyl <mb@exept.de>
parents:
5140
diff
changeset
|
1059 |
|
3507 | 1060 |
(ws := self selectedWorkspacesTextView) contents:file contents. |
3332 | 1061 |
ws modified:false. |
1062 |
||
1063 |
lbl := file withoutSuffix baseName. |
|
1064 |
tabList size <= 1 ifTrue:[ |
|
1065 |
self window label:lbl. |
|
1066 |
] ifFalse:[ |
|
1067 |
tabList at:self selectedWorkspaceIndexHolder value put:lbl |
|
1068 |
] |
|
1069 |
! |
|
1070 |
||
3154 | 1071 |
menuLoad |
3332 | 1072 |
|file| |
3154 | 1073 |
|
3193 | 1074 |
(self askIfModified:'Text was modified. Load anyway ?' yesButton:'Load') ifFalse:[ ^ self]. |
1075 |
||
4602
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1076 |
file := Dialog requestFileName:'Load file' default:'file.wsp' pattern:'*.wsp'. |
3154 | 1077 |
file size > 0 ifTrue:[ |
3332 | 1078 |
self loadFile:file |
3154 | 1079 |
] |
1080 |
! |
|
1081 |
||
4267 | 1082 |
menuSaveAllAs |
1083 |
self |
|
1084 |
askForFile:'Save all Buffers into:' |
|
1085 |
thenDo:[:file :doAppend | |
|
1086 |
|ws append| |
|
3473
1120657c3d2e
added Append-option to saveAs
Claus Gittinger <cg@exept.de>
parents:
3469
diff
changeset
|
1087 |
|
4267 | 1088 |
append := doAppend. |
1089 |
workspaces do:[:subView | |
|
1090 |
|ws| |
|
3154 | 1091 |
|
4267 | 1092 |
ws := self workspaceViewOfView:subView. |
1093 |
ws notNil ifTrue:[ |
|
1094 |
ws saveAs:file doAppend:append. |
|
1095 |
ws modified:false. |
|
1096 |
]. |
|
1097 |
append := true. |
|
1098 |
]. |
|
1099 |
] |
|
1100 |
! |
|
3473
1120657c3d2e
added Append-option to saveAs
Claus Gittinger <cg@exept.de>
parents:
3469
diff
changeset
|
1101 |
|
4267 | 1102 |
menuSaveAs |
1103 |
self |
|
1104 |
askForFile:'Save Buffer into:' |
|
1105 |
thenDo:[:file :doAppend | |
|
1106 |
|ws| |
|
1107 |
||
1108 |
ws := self selectedWorkspacesTextView. |
|
1109 |
ws saveAs:file doAppend:doAppend. |
|
1110 |
ws modified:false. |
|
1111 |
] |
|
3154 | 1112 |
! |
1113 |
||
3334 | 1114 |
newSystemWorkspace |
1115 |
self class openSystemWorkspace |
|
1116 |
! |
|
1117 |
||
3651 | 1118 |
newWorkspace |
1119 |
self class open |
|
1120 |
! |
|
1121 |
||
3154 | 1122 |
openDocumentation |
1123 |
"opens the documentation file" |
|
1124 |
||
1125 |
self openHTMLDocument: 'tools/misc/TOP.html#WORKSPACE' |
|
1126 |
! |
|
1127 |
||
4267 | 1128 |
pasteAndExecute:aString |
1129 |
self paste:aString. |
|
4136 | 1130 |
self printIt |
1131 |
! |
|
1132 |
||
3154 | 1133 |
printIt |
3198 | 1134 |
self selectedWorkspacesTextView printIt |
3193 | 1135 |
! |
1136 |
||
3752 | 1137 |
processText |
1138 |
|template filterBlock newList oldList answer nChanged changedLines flags| |
|
1139 |
||
1140 |
template := |
|
1141 |
'"/ general text processor; |
|
1142 |
"/ the following block should evaluate to a new line, |
|
1143 |
"/ given the original line as argument. |
|
1144 |
"/ Beginner warning: Smalltalk know-how is useful here. |
|
1145 |
||
1146 |
[:line | |
|
1147 |
"/ any processing on line. |
|
1148 |
"/ Notice, that line might be a Text object (i.e. non-string), |
|
1149 |
"/ |
|
1150 |
"/ Useful operations on the line are: |
|
1151 |
"/ - '' .... '' , concatenation of any prefix/suffix |
|
1152 |
"/ - leftPaddedTo:size padding |
|
1153 |
"/ - rightPaddedTo:size padding |
|
1154 |
"/ - copyTo:(size min:N) |
|
1155 |
"/ - asUppercase |
|
1156 |
"/ - asLowercase |
|
4141 | 1157 |
"/ - withoutSeparators remove whiteSpace |
1158 |
"/ - asCollectionOfWords words |
|
3752 | 1159 |
|
1160 |
"/ makes everything bold |
|
1161 |
"/ |
|
1162 |
"/ line allBold |
|
1163 |
||
4141 | 1164 |
"/ first word only |
1165 |
"/ |
|
1166 |
"/ line withoutSeparators asCollectionOfWords first |
|
1167 |
||
3752 | 1168 |
"/ dummy filter (keeps all lines as-is) |
1169 |
"/ |
|
1170 |
line |
|
1171 |
] |
|
1172 |
'. |
|
1173 |
filterBlock := self askForFilterBlock:'Processing block:' |
|
1174 |
template:template |
|
1175 |
rememberIn:#LastProcessingBlockString. |
|
1176 |
filterBlock isNil ifTrue:[^ self]. |
|
1177 |
||
1178 |
oldList := self selectedWorkspacesTextView list. |
|
1179 |
oldList := oldList collect:[:lineOrNil | lineOrNil ? '']. |
|
4141 | 1180 |
newList := oldList collect:[:line | |newLine| |
1181 |
newLine := line. |
|
1182 |
Error handle:[:ex | |
|
1183 |
] do:[ |
|
1184 |
newLine := filterBlock value:line |
|
1185 |
]. |
|
1186 |
newLine |
|
1187 |
]. |
|
3752 | 1188 |
newList := newList collect:[:line | (line isString and:[line size == 0]) ifTrue:[nil] ifFalse:[line]]. |
1189 |
||
1190 |
flags := (1 to:oldList size) collect:[:i | (oldList at:i) ~= (newList at:i)]. |
|
1191 |
flags := flags select:[:flag | flag]. |
|
1192 |
nChanged := flags size. |
|
1193 |
nChanged == 0 ifTrue:[ |
|
1194 |
self information:'No lines were changed.'. |
|
1195 |
^ self |
|
1196 |
]. |
|
1197 |
||
1198 |
answer := Dialog confirmWithCancel:(resources |
|
1199 |
string:'%1 lines changed. Change text ?' |
|
1200 |
with:nChanged) |
|
1201 |
labels:#( 'Cancel' 'No, Show Changed' 'Yes'). |
|
1202 |
answer isNil ifTrue:[^ self]. |
|
1203 |
answer ifFalse:[ |
|
1204 |
changedLines := (1 to:oldList size) select:[:i | (oldList at:i) ~= (newList at:i)]. |
|
1205 |
changedLines := changedLines collect:[:i | (newList at:i)]. |
|
1206 |
TextBox openOn:(changedLines asStringCollection) title:'Changed lines'. |
|
1207 |
^ self. |
|
1208 |
]. |
|
1209 |
||
1210 |
self selectedWorkspacesTextView list:newList. |
|
1211 |
! |
|
1212 |
||
4136 | 1213 |
redoLastDoIt |
4267 | 1214 |
|s| |
4136 | 1215 |
|
4267 | 1216 |
s := self lastDoItsString. |
1217 |
s notNil ifTrue:[ |
|
1218 |
self pasteAndExecute:s |
|
1219 |
] |
|
4136 | 1220 |
! |
1221 |
||
3722 | 1222 |
removeAllWorkspaceVariables |
1223 |
(Dialog confirm:'Do you really want to remove all Workspace Variables ?') |
|
1224 |
ifTrue:[ |
|
1225 |
Workspace removeAllWorkspaceVariables |
|
1226 |
]. |
|
1227 |
! |
|
1228 |
||
4284 | 1229 |
removeGlobalVariable |
1230 |
|name nameKey selection value| |
|
1231 |
||
1232 |
selection := self selectedWorkspacesTextView selection ? ''. |
|
1233 |
||
1234 |
name := Dialog |
|
1235 |
request:'Remove Global Variable:' |
|
1236 |
initialAnswer:(selection asString string) |
|
1237 |
okLabel:'Remove' |
|
1238 |
title:'Remove Global'. |
|
1239 |
||
1240 |
name size == 0 ifTrue:[^ self]. |
|
1241 |
nameKey := name asSymbolIfInterned. |
|
1242 |
nameKey isNil ifTrue:[^ self]. |
|
1243 |
||
1244 |
(Smalltalk includesKey:nameKey) ifFalse:[ |
|
1245 |
self warn:('No such Global Binding: ''%1''.' bindWith:name). |
|
1246 |
^ self. |
|
1247 |
]. |
|
1248 |
||
1249 |
value := Smalltalk at:nameKey. |
|
1250 |
value notNil ifTrue:[ |
|
1251 |
(self confirm:('Global ''%1'' is currently bound to %2\\Remove Binding ?' bindWith:name with:value) withCRs) |
|
1252 |
ifFalse:[ |
|
1253 |
^ self. |
|
1254 |
]. |
|
1255 |
]. |
|
1256 |
Smalltalk at:nameKey put:nil. |
|
1257 |
Smalltalk removeKey:nameKey |
|
1258 |
! |
|
1259 |
||
3193 | 1260 |
removeWorkspace |
1261 |
self removeWorkspace:(self selectedWorkspaceIndexHolder value) |
|
1262 |
! |
|
1263 |
||
1264 |
removeWorkspace:wsIndex |
|
1265 |
|tabList newWsIndex| |
|
1266 |
||
1267 |
wsIndex == self selectedWorkspaceIndexHolder value ifTrue:[ |
|
1268 |
(self askIfModified:'Text was modified. Remove anyway ?' yesButton:'Remove') ifFalse:[ |
|
1269 |
^ self |
|
1270 |
]. |
|
1271 |
]. |
|
1272 |
||
1273 |
tabList := self tabList. |
|
1274 |
||
1275 |
wsIndex == tabList size ifTrue:[ |
|
1276 |
newWsIndex := wsIndex - 1. |
|
1277 |
] ifFalse:[ |
|
1278 |
newWsIndex := wsIndex. |
|
1279 |
]. |
|
1280 |
||
1281 |
tabList removeIndex:wsIndex. |
|
1282 |
(workspaces at:wsIndex) destroy. |
|
1283 |
workspaces removeIndex:wsIndex. |
|
1284 |
||
1285 |
tabList size == 1 ifTrue:[ |
|
1286 |
self window label:(tabList at:1). |
|
1287 |
tabList removeIndex:1 |
|
1288 |
]. |
|
1289 |
||
3334 | 1290 |
workspaceHolder value:(workspaces at:newWsIndex). |
3193 | 1291 |
self selectedWorkspaceIndexHolder value:newWsIndex. |
1292 |
"/ to force change (update workspaceHolder - even if same index) |
|
1293 |
self selectedWorkspaceIndexHolder changed:#value. |
|
1294 |
! |
|
1295 |
||
3722 | 1296 |
removeWorkspaceVariable |
3812 | 1297 |
|name selection wsvars| |
1298 |
||
1299 |
wsvars := Workspace workspaceVariables. |
|
1300 |
wsvars size == 0 ifTrue:[ |
|
1301 |
Dialog information:'No Workspace Variables are defined'. |
|
1302 |
^ self |
|
1303 |
]. |
|
3722 | 1304 |
|
1305 |
selection := self selectedWorkspacesTextView selection ? ''. |
|
1306 |
||
1307 |
name := Dialog |
|
1308 |
request:'Variable to remove:' |
|
1309 |
initialAnswer:(selection asString string) |
|
1310 |
okLabel:'Remove' |
|
1311 |
title:'Enter Variable Name' |
|
3812 | 1312 |
list:(wsvars keys asOrderedCollection sort). |
3722 | 1313 |
name size == 0 ifTrue:[ |
1314 |
^ self |
|
1315 |
]. |
|
1316 |
Workspace removeWorkspaceVariable:name. |
|
1317 |
! |
|
1318 |
||
3193 | 1319 |
renameWorkspace |
1320 |
self renameWorkspace:(self selectedWorkspaceIndexHolder value) |
|
1321 |
! |
|
1322 |
||
1323 |
renameWorkspace:wsIndex |
|
1324 |
|tabList oldName newName| |
|
1325 |
||
1326 |
tabList := self tabList. |
|
1327 |
tabList isEmpty ifTrue:[ |
|
1328 |
oldName := self window label |
|
1329 |
] ifFalse:[ |
|
1330 |
oldName := tabList at:wsIndex. |
|
1331 |
]. |
|
1332 |
newName := Dialog request:(resources string:'New Name for %1:' with:oldName) initialAnswer:oldName. |
|
1333 |
newName size == 0 ifTrue:[ ^ self]. |
|
1334 |
||
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
1335 |
self renameWorkspace:wsIndex to:newName. |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
1336 |
! |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
1337 |
|
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
1338 |
renameWorkspace:wsIndex to:newName |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
1339 |
|tabList| |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
1340 |
|
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
1341 |
tabList := self tabList. |
3193 | 1342 |
tabList notEmpty ifTrue:[ |
1343 |
tabList at:wsIndex put:newName. |
|
1344 |
]. |
|
1345 |
wsIndex == self selectedWorkspaceIndexHolder value ifTrue:[ |
|
1346 |
self window label:newName. |
|
1347 |
]. |
|
3384 | 1348 |
! |
1349 |
||
1350 |
spyOnIt |
|
1351 |
self selectedWorkspacesTextView spyOnIt |
|
1352 |
! |
|
1353 |
||
1354 |
timeIt |
|
1355 |
self selectedWorkspacesTextView timeIt |
|
3154 | 1356 |
! ! |
1357 |
||
4790 | 1358 |
!WorkspaceApplication methodsFor:'menu-actions-editing'! |
1359 |
||
1360 |
babelFishTranslate:fromToModeString |
|
1361 |
"translate the selected text and paste it after the selection" |
|
1362 |
||
1363 |
self selectedWorkspace babelFishTranslate:fromToModeString |
|
1364 |
! |
|
1365 |
||
1366 |
copySelection |
|
1367 |
self selectedWorkspacesTextView copySelection |
|
1368 |
! |
|
1369 |
||
1370 |
cutSelection |
|
1371 |
self selectedWorkspacesTextView cutSelection |
|
1372 |
! |
|
1373 |
||
5261 | 1374 |
fileInText |
1375 |
self selectedWorkspacesTextView contentsAsString readStream fileIn |
|
1376 |
! |
|
1377 |
||
4790 | 1378 |
filterText |
1379 |
|template filterBlock newList oldList answer nDeleted deletedLines| |
|
1380 |
||
1381 |
template := |
|
1382 |
'"/ general text filter; |
|
1383 |
"/ the following block should evaluate to true for all lines |
|
1384 |
"/ you want to keep - lines for which the block returns false will be removed. |
|
1385 |
"/ Beginner warning: Smalltalk know-how is useful here. |
|
1386 |
||
1387 |
[:line | |
|
1388 |
"/ any condition on line. |
|
1389 |
"/ Notice, that line might be a Text object (i.e. non-string), |
|
1390 |
"/ so you may want to use line string. |
|
1391 |
"/ |
|
1392 |
"/ Useful queries on the line are: |
|
1393 |
"/ - size the length of the line |
|
1394 |
"/ - hasChangeOfEmphasis any bold, italic etc. |
|
1395 |
"/ - startsWith:someString |
|
1396 |
"/ - endsWith:someString |
|
1397 |
||
1398 |
"/ example filter (removes all empty lines) |
|
1399 |
"/ |
|
1400 |
"/ line size > 0 |
|
1401 |
||
1402 |
"/ example filter (removes all lines which do not end with some suffix) |
|
1403 |
"/ |
|
1404 |
"/ (line asLowercase endsWith:''foo'') not |
|
1405 |
||
1406 |
"/ dummy filter (keeps all lines) |
|
1407 |
"/ |
|
1408 |
true |
|
1409 |
] |
|
1410 |
'. |
|
1411 |
||
1412 |
filterBlock := self askForFilterBlock:'Filter block:' |
|
1413 |
template:template |
|
1414 |
rememberIn:#LastFilterBlockString. |
|
1415 |
filterBlock isNil ifTrue:[^ self]. |
|
1416 |
||
1417 |
oldList := self selectedWorkspacesTextView list. |
|
1418 |
oldList := oldList collect:[:lineOrNil | lineOrNil ? '']. |
|
1419 |
newList := oldList select:filterBlock. |
|
1420 |
newList := newList collect:[:line | (line isString and:[line size == 0]) ifTrue:[nil] ifFalse:[line]]. |
|
1421 |
nDeleted := oldList size - newList size. |
|
1422 |
nDeleted == 0 ifTrue:[ |
|
1423 |
self information:'No lines were deleted.'. |
|
1424 |
^ self |
|
1425 |
]. |
|
1426 |
||
1427 |
answer := Dialog confirmWithCancel:(resources |
|
1428 |
string:'%1 lines remain (%2 deleted). Change text ?' |
|
1429 |
with:newList size |
|
1430 |
with:nDeleted) |
|
1431 |
labels:#( 'Cancel' 'No, Show Deleted' 'Yes'). |
|
1432 |
answer isNil ifTrue:[^ self]. |
|
1433 |
answer ifFalse:[ |
|
1434 |
deletedLines := oldList reject:filterBlock. |
|
1435 |
TextBox openOn:(deletedLines asStringCollection) title:'Filtered lines'. |
|
1436 |
^ self. |
|
1437 |
]. |
|
1438 |
||
1439 |
self selectedWorkspacesTextView list:newList. |
|
1440 |
! |
|
1441 |
||
1442 |
googleSpellingSuggestion |
|
1443 |
self selectedWorkspacesTextView googleSpellingSuggestion |
|
1444 |
! |
|
1445 |
||
1446 |
paste |
|
1447 |
self selectedWorkspacesTextView paste |
|
1448 |
! |
|
1449 |
||
1450 |
paste:aString |
|
1451 |
self selectedWorkspacesTextView paste:aString. |
|
1452 |
! |
|
1453 |
||
1454 |
pasteLastDoIt |
|
1455 |
|s| |
|
1456 |
||
1457 |
s := self lastDoItsString. |
|
1458 |
s notNil ifTrue:[ |
|
1459 |
self paste:s |
|
1460 |
] |
|
1461 |
! |
|
1462 |
||
1463 |
selectAll |
|
1464 |
self selectedWorkspacesTextView selectAll. |
|
1465 |
! ! |
|
1466 |
||
4136 | 1467 |
!WorkspaceApplication methodsFor:'menu-dynamic'! |
1468 |
||
4267 | 1469 |
pasteRecentDoItMenu |
1470 |
<resource: #programMenu > |
|
1471 |
||
1472 |
^ self recentDoItsMenuFor:#'paste:' |
|
1473 |
! |
|
1474 |
||
1475 |
recentDoItsMenuFor:aSelector |
|
4136 | 1476 |
<resource: #programMenu > |
1477 |
||
1478 |
^ [ |
|
1479 |
|doIts m classHistory currentClass| |
|
1480 |
||
1481 |
doIts := Workspace doItHistory. |
|
1482 |
doIts size > 0 ifTrue:[ |
|
1483 |
m := Menu new. |
|
1484 |
doIts do:[:doItEntry | |
|
1485 |
|lines label item| |
|
1486 |
||
1487 |
label := doItEntry withoutLeadingSeparators asStringCollection first. |
|
1488 |
(label size > 20) ifTrue:[ |
|
1489 |
label := (label contractTo:20) |
|
1490 |
] ifFalse:[ |
|
1491 |
(lines size > 1) ifTrue:[ |
|
1492 |
label := label , '...' |
|
1493 |
]. |
|
1494 |
]. |
|
1495 |
label := '''' , label , ''''. |
|
1496 |
||
1497 |
item := MenuItem label:label. |
|
1498 |
m addItem:item. |
|
4267 | 1499 |
item value:aSelector. |
4136 | 1500 |
item argument:doItEntry. |
1501 |
]. |
|
1502 |
m addItem: (MenuItem new label:'-'). |
|
1503 |
m addItem: (MenuItem new |
|
1504 |
label: 'Clear History'; |
|
1505 |
value: #clearHistory; |
|
1506 |
activeHelpKey: #historyEmptyMenu; |
|
1507 |
translateLabel:true). |
|
1508 |
]. |
|
1509 |
m |
|
1510 |
]. |
|
4267 | 1511 |
! |
1512 |
||
1513 |
redoRecentDoItMenu |
|
1514 |
<resource: #programMenu > |
|
1515 |
||
1516 |
^ self recentDoItsMenuFor:#'pasteAndExecute:' |
|
4136 | 1517 |
! ! |
1518 |
||
3154 | 1519 |
!WorkspaceApplication methodsFor:'private'! |
1520 |
||
4267 | 1521 |
askForFile:question thenDo:aBlock |
4602
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1522 |
Dialog |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1523 |
requestSaveFileName:(resources string:question) |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1524 |
default:'file.wsp' |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1525 |
fromDirectory:nil |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1526 |
action:[:fileName | aBlock value:fileName value:false] |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1527 |
appendAction:[:fileName | aBlock value:fileName value:true] |
4267 | 1528 |
|
4602
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1529 |
"/ |file doAppend| |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1530 |
"/ |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1531 |
"/ doAppend := false. |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1532 |
"/ Dialog aboutToOpenBoxNotificationSignal handle:[:n | |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1533 |
"/ |box| |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1534 |
"/ |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1535 |
"/ box := n parameter. |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1536 |
"/ box addButton:(Button label:'Append' action:[doAppend := true. box okPressed]). |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1537 |
"/ n proceed. |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1538 |
"/ ] do:[ |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1539 |
"/ file := Dialog requestFileName:question default:'file.wsp'. |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1540 |
"/ ]. |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1541 |
"/ file isEmptyOrNil ifFalse:[ |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1542 |
"/ aBlock value:file value:doAppend |
a961c37bd041
better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents:
4591
diff
changeset
|
1543 |
"/ ]. |
4267 | 1544 |
! |
1545 |
||
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1546 |
askIfAnyModified:question yesButton:yesButtonText |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1547 |
(workspaces contains:[:aView | self isModifiedWorkspace:aView]) ifFalse:[^ true]. |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1548 |
|
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1549 |
(Dialog |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1550 |
confirm:(resources string:question) withCRs |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1551 |
yesLabel:(resources at:yesButtonText) |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1552 |
noLabel:(resources at:'Cancel')) |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1553 |
ifTrue:[ |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1554 |
"/ reset modified flag so question is asked only once |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1555 |
(workspaces select:[:aView | (self isModifiedWorkspace:aView)]) |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1556 |
do:[:eachModifiedTextView | |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1557 |
eachModifiedTextView modified:false. |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1558 |
]. |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1559 |
^ true |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1560 |
]. |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1561 |
^ false |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1562 |
! |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1563 |
|
3154 | 1564 |
askIfModified:question yesButton:yesButtonText |
1565 |
"tell user, that code has been modified - let her confirm" |
|
1566 |
||
1567 |
|textView| |
|
1568 |
||
3193 | 1569 |
textView := self selectedWorkspace. |
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1570 |
(self isModifiedWorkspace:textView) ifFalse:[^ true]. |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1571 |
|
3154 | 1572 |
(Dialog |
1573 |
confirm:(resources string:question) withCRs |
|
1574 |
yesLabel:(resources at:yesButtonText) |
|
1575 |
noLabel:(resources at:'Cancel')) |
|
1576 |
ifTrue:[ |
|
1577 |
"/ reset modified flag so question is asked only once |
|
1578 |
textView modified:false. |
|
1579 |
^ true |
|
1580 |
]. |
|
1581 |
^ false |
|
1582 |
||
1583 |
"Modified: 2.10.1997 / 14:23:47 / stefan" |
|
3193 | 1584 |
! |
1585 |
||
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1586 |
isModifiedWorkspace:aView |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1587 |
|view| |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1588 |
|
4267 | 1589 |
view := self workspaceViewOfView:aView. |
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1590 |
|
4313 | 1591 |
(view isNil |
1592 |
or:[view modified not |
|
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1593 |
or:[view contentsWasSaved |
4313 | 1594 |
or:[view contents withoutSeparators isEmpty]]]) ifTrue:[ |
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1595 |
^ false |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1596 |
]. |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1597 |
^ true |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1598 |
! |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1599 |
|
4267 | 1600 |
lastDoItsString |
1601 |
|history| |
|
3198 | 1602 |
|
4267 | 1603 |
history := Workspace doItHistory. |
1604 |
history size > 0 ifFalse:[ |
|
1605 |
self selectedWorkspacesTextView flash. |
|
1606 |
^ nil |
|
3198 | 1607 |
]. |
4267 | 1608 |
^ history first |
1609 |
! |
|
1610 |
||
1611 |
selectedWorkspacesTextView |
|
1612 |
^ self workspaceViewOfView:(self selectedWorkspace) |
|
3198 | 1613 |
! |
1614 |
||
3193 | 1615 |
workspaceSelectionChanged |
3334 | 1616 |
|wsIndex windowLabel v| |
3193 | 1617 |
|
1618 |
"/ self selected |
|
3334 | 1619 |
self workspaceHolder value:(v := self selectedWorkspace). |
3193 | 1620 |
wsIndex := self selectedWorkspaceIndexHolder value. |
1621 |
||
1622 |
wsIndex ~~ 0 ifTrue:[ |
|
1623 |
windowLabel := tabList at:wsIndex ifAbsent:nil. |
|
1624 |
windowLabel notNil ifTrue:[self window label:windowLabel]. |
|
1625 |
]. |
|
4267 | 1626 |
! |
1627 |
||
1628 |
workspaceViewOfView:aView |
|
1629 |
|view| |
|
1630 |
||
1631 |
view := aView. |
|
1632 |
(view isScrollWrapper) ifTrue:[ |
|
4313 | 1633 |
view := view scrolledView. |
1634 |
view isNil ifTrue:[^ nil]. |
|
4267 | 1635 |
]. |
1636 |
(view isTextView) ifFalse:[ |
|
1637 |
(view isKindOf:InspectorView) ifFalse:[ |
|
4313 | 1638 |
^ nil |
4267 | 1639 |
]. |
1640 |
view := view workspace. |
|
1641 |
(view isScrollWrapper) ifTrue:[ |
|
1642 |
view := view scrolledView |
|
1643 |
]. |
|
1644 |
]. |
|
1645 |
^ view |
|
3154 | 1646 |
! ! |
1647 |
||
1648 |
!WorkspaceApplication class methodsFor:'documentation'! |
|
1649 |
||
1650 |
version |
|
5262 | 1651 |
^ '$Header: /cvs/stx/stx/libtool/WorkspaceApplication.st,v 1.67 2003-10-09 20:41:08 cg Exp $' |
3154 | 1652 |
! ! |