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