author | Claus Gittinger <cg@exept.de> |
Wed, 13 Jul 2005 17:44:48 +0200 | |
changeset 6353 | b9e2940b7714 |
parent 6323 | 26e8c0041993 |
child 6408 | e0f701a20cae |
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 |
|
6323 | 612 |
#label: '-' |
613 |
) |
|
614 |
#(#MenuItem |
|
6322 | 615 |
#label: 'Remove Tab' |
616 |
#translateLabel: true |
|
617 |
"/ #triggerOnDown: true |
|
618 |
#value: #removeWorkspace: |
|
619 |
#enabled: #canRemoveWorkspace: |
|
620 |
) |
|
621 |
#(#MenuItem |
|
622 |
#label: '-' |
|
623 |
) |
|
624 |
#(#MenuItem |
|
625 |
#label: 'Rename...' |
|
626 |
#translateLabel: true |
|
627 |
"/ #triggerOnDown: true |
|
628 |
#value: #renameWorkspace: |
|
629 |
) |
|
630 |
) |
|
631 |
nil |
|
632 |
nil |
|
3193 | 633 |
) |
3154 | 634 |
! ! |
635 |
||
3332 | 636 |
!WorkspaceApplication class methodsFor:'special startup'! |
637 |
||
6022 | 638 |
openOnFile:aFilename |
639 |
"launch a new workspace on the contents of some file" |
|
640 |
||
641 |
|ws| |
|
642 |
||
643 |
ws := self openWith:nil. |
|
644 |
ws loadFile:aFilename. |
|
645 |
^ ws |
|
646 |
||
647 |
" |
|
648 |
WorkspaceApplication openOnFile:'Makefile' |
|
649 |
" |
|
650 |
! |
|
651 |
||
3332 | 652 |
openSystemWorkspace |
5681 | 653 |
|wsApp path needRemove font| |
3345 | 654 |
|
655 |
needRemove := true. |
|
3332 | 656 |
|
657 |
wsApp := self new. |
|
658 |
wsApp allButOpen. |
|
3337 | 659 |
wsApp window extent:640@400. |
3332 | 660 |
|
3345 | 661 |
path := (Smalltalk getSystemFileName:'README') ? '../../README'. |
5490 | 662 |
path := path asFilename. |
663 |
path isReadable ifTrue:[ |
|
3345 | 664 |
wsApp addWindow:(HVScrollableView for:Workspace) named:'README' asFirst:false. |
665 |
wsApp loadFile:path. |
|
666 |
wsApp removeWorkspace:1. "/ the original Workspace |
|
4183 | 667 |
wsApp renameWorkspace:1 to:'LICENCE README'. |
3345 | 668 |
needRemove := false. |
669 |
]. |
|
3334 | 670 |
|
3346 | 671 |
"/ path := (Smalltalk getSystemFileName:'doc/online/english/LICENCE_STX.html') ? '../../doc/online/english/LICENCE_STX.html'. |
672 |
"/ path asFilename exists ifTrue:[ |
|
673 |
"/ wsApp addWindow:(licenceView := HVScrollableView for:HTMLDocumentView) named:'License' asFirst:false. |
|
674 |
"/ licenceView homeDocument:'../../doc/online/english/LICENCE_STX.html'. |
|
675 |
"/ licenceView updateLabelFlag:false. |
|
676 |
"/ needRemove ifTrue:[wsApp removeWorkspace:1]. "/ the original Workspace |
|
677 |
"/ needRemove := false. |
|
678 |
"/ ]. |
|
3332 | 679 |
|
5684 | 680 |
wsApp graphicsDevice platformName = 'X11' ifTrue:[ |
681 |
font := Font family:'unifont' face:'medium' style:'roman' size:16 encoding:'iso10646-1'. |
|
682 |
font := font onDevice:wsApp graphicsDevice ifAbsent:nil. |
|
683 |
font isNil ifTrue:[ |
|
684 |
font := Font family:'arial' face:'medium' style:'roman' size:12 encoding:'iso10646-1'. |
|
685 |
font := font onDevice:wsApp graphicsDevice ifAbsent:nil. |
|
686 |
]. |
|
687 |
] ifFalse:[ |
|
5685 | 688 |
font := Font family:'Arial Unicode MS' face:'medium' style:'roman' size:10 encoding:'ms-ansi'. |
5681 | 689 |
font := font onDevice:wsApp graphicsDevice ifAbsent:nil. |
690 |
]. |
|
691 |
||
5649 | 692 |
#( |
6212 | 693 |
('Hello_utf8.wsp' HELLO_UTF_FILE 'Hello' #'utf8' ) |
694 |
('Welcome.wsp' WELCOME_FILE 'Welcome' nil ) |
|
695 |
('Setup.wsp' SETUP_FILE 'Setup' nil ) |
|
696 |
('Keyboard.wsp' KEYBOARD_FILE 'Keyboard' nil ) |
|
697 |
('GettingStarted.wsp' GETTING_STARTED_FILE 'Getting Started' nil ) |
|
6211 | 698 |
) do:[:quadruple | |
699 |
|file resKey title forcedEncoding pane encoding| |
|
700 |
||
701 |
file := quadruple at:1. |
|
702 |
resKey := quadruple at:2. |
|
703 |
file := self classResources string:resKey default:file. |
|
704 |
||
705 |
title := quadruple at:3. |
|
706 |
forcedEncoding := quadruple at:4. |
|
5681 | 707 |
|
5649 | 708 |
path := (Smalltalk getSystemFileName:file). |
5681 | 709 |
|
5649 | 710 |
(path notNil and:[path asFilename isReadable]) ifTrue:[ |
5681 | 711 |
wsApp addWindow:(pane := HVScrollableView for:Workspace) named:title asFirst:false. |
5692 | 712 |
|
713 |
forcedEncoding notNil ifTrue:[ |
|
5694 | 714 |
encoding := forcedEncoding. |
5804 | 715 |
font notNil ifTrue:[ |
716 |
pane font:font. |
|
717 |
] |
|
5692 | 718 |
] ifFalse:[ |
6173
4ba4589e4952
guessEncoding now implemented in CharacterEncoder
Claus Gittinger <cg@exept.de>
parents:
6056
diff
changeset
|
719 |
encoding := CharacterEncoder guessEncodingOfFile:path. |
5692 | 720 |
(encoding == #'iso8859-1' or:[encoding == #'ascii']) ifTrue:[ |
721 |
encoding := nil |
|
5681 | 722 |
]. |
723 |
]. |
|
5692 | 724 |
wsApp loadFile:path encoding:encoding label:title. |
5649 | 725 |
needRemove ifTrue:[wsApp removeWorkspace:1]. "/ the original Workspace |
726 |
needRemove := false. |
|
727 |
]. |
|
3345 | 728 |
]. |
5693 | 729 |
wsApp openWindow. |
730 |
wsApp selectedWorkspaceIndexHolder value:2. |
|
3332 | 731 |
|
732 |
" |
|
733 |
self openSystemWorkspace |
|
734 |
" |
|
4542 | 735 |
! |
736 |
||
737 |
openWith:initialText |
|
738 |
"launch a new workspace with some initial contents" |
|
739 |
||
5098 | 740 |
^ self openWith:initialText selected:false |
741 |
||
742 |
" |
|
743 |
WorkspaceApplication openWith:'Transcript showCR:''hello world''' |
|
744 |
" |
|
745 |
! |
|
746 |
||
747 |
openWith:initialText selected:selectedBoolean |
|
748 |
"launch a new workspace with some initial contents" |
|
749 |
||
4542 | 750 |
|workspace| |
751 |
||
752 |
workspace := self new. |
|
753 |
workspace open. |
|
5098 | 754 |
workspace selectedWorkspace contents:initialText selected:selectedBoolean. |
4542 | 755 |
^ workspace |
756 |
||
757 |
" |
|
758 |
WorkspaceApplication openWith:'Transcript showCR:''hello world''' |
|
759 |
" |
|
3332 | 760 |
! ! |
761 |
||
3193 | 762 |
!WorkspaceApplication methodsFor:'aspects'! |
763 |
||
4474 | 764 |
autoDefineVariables |
765 |
autoDefineVariables isNil ifTrue:[ |
|
766 |
autoDefineVariables := ValueHolder new. |
|
767 |
(UserPreferences current autoDefineWorkspaceVariables) ifTrue:[ |
|
5547
65af7af97085
initial value of #autoDefine was not set correctly
Claus Gittinger <cg@exept.de>
parents:
5490
diff
changeset
|
768 |
autoDefineVariables value:#workspace. |
4474 | 769 |
]. |
770 |
autoDefineVariables onChangeSend:#autoDefineVariablesChanged to:self. |
|
771 |
]. |
|
772 |
^ autoDefineVariables. |
|
773 |
! |
|
774 |
||
4136 | 775 |
hasHistory |
776 |
^ Workspace doItHistory size > 0. |
|
5852 | 777 |
! |
778 |
||
779 |
setCompilerForSyntax |
|
780 |
|syntax| |
|
781 |
||
782 |
syntax := syntaxHolder value. |
|
783 |
self selectedWorkspace compilerClass:(self compilerClassForSyntaxName:syntax). |
|
784 |
! |
|
785 |
||
786 |
syntaxHolder |
|
787 |
syntaxHolder isNil ifTrue:[ |
|
788 |
syntaxHolder := #Smalltalk asValue. |
|
789 |
syntaxHolder onChangeSend:#setCompilerForSyntax to:self |
|
790 |
]. |
|
791 |
^ syntaxHolder |
|
3193 | 792 |
! ! |
793 |
||
4358 | 794 |
!WorkspaceApplication methodsFor:'aspects-queries'! |
3193 | 795 |
|
3812 | 796 |
anyWorkspaceVariableIsDefined |
6267 | 797 |
^ Workspace anyWorkspaceVariableIsDefined |
798 |
||
799 |
"Modified: / 20-04-2005 / 11:57:59 / cg" |
|
3154 | 800 |
! ! |
801 |
||
802 |
!WorkspaceApplication methodsFor:'initialization & release'! |
|
803 |
||
804 |
closeRequest |
|
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
805 |
(self askIfAnyModified:'Text was not saved. Close anyway ?' yesButton:'Close') ifFalse:[ |
3154 | 806 |
^ self |
807 |
]. |
|
808 |
||
809 |
^ super closeRequest |
|
810 |
! ! |
|
811 |
||
4359 | 812 |
!WorkspaceApplication methodsFor:'menu-actions'! |
3154 | 813 |
|
4154 | 814 |
addGlobalVariable |
815 |
|name nameKey selection| |
|
816 |
||
817 |
selection := self selectedWorkspacesTextView selection ? ''. |
|
818 |
||
819 |
name := Dialog |
|
820 |
request:'Name of new Global Variable:' |
|
821 |
initialAnswer:(selection asString string) |
|
822 |
okLabel:'Add' |
|
823 |
title:'Enter Variable Name'. |
|
824 |
name size == 0 ifTrue:[ |
|
825 |
^ self |
|
826 |
]. |
|
827 |
nameKey := name asSymbol. |
|
828 |
||
4284 | 829 |
(Smalltalk includesKey:nameKey) ifTrue:[ |
4154 | 830 |
self warn:'Global named ''' , name , ''' already exists.'. |
831 |
^ self. |
|
832 |
]. |
|
833 |
Smalltalk at:nameKey put:nil. |
|
834 |
! |
|
835 |
||
4099 | 836 |
addGlobalVariableInspector |
837 |
|v| |
|
838 |
||
839 |
v := self addInspectorOn:(Smalltalk) basic:false suppressPseudoSlots:true. |
|
840 |
v fieldListLabel:'Name'. |
|
4208 | 841 |
self renameWorkspace:(self selectedWorkspaceIndexHolder value) to:'Globals (Smalltalk)'. |
4099 | 842 |
! |
843 |
||
4096
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
844 |
addInspectorOn:aValue basic:isBasicInspector suppressPseudoSlots:suppressPseudoSlots |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
845 |
|view cls resultString| |
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 |
isBasicInspector ifFalse:[ |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
848 |
cls := aValue inspectorClass. |
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 |
cls isNil ifTrue:[ |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
851 |
cls := InspectorView |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
852 |
]. |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
853 |
view := cls new. |
4096
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
854 |
view suppressPseudoSlots:suppressPseudoSlots. |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
855 |
view inspect:aValue. |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
856 |
"/ v allowFollow:true. |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
857 |
aValue isBehavior ifTrue:[ |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
858 |
resultString := aValue name |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
859 |
] ifFalse:[ |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
860 |
resultString := aValue classNameWithArticle |
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 |
self addWindow:view named:('Inspecting: ' , resultString). |
4096
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
863 |
^ view |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
864 |
! |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
865 |
|
3196 | 866 |
addWorkspace |
5295
e3c5a7b20d9d
refactored (added abstract superclass)
Claus Gittinger <cg@exept.de>
parents:
5262
diff
changeset
|
867 |
self addWindow:(self createWorkspace) named:'Workspace%1' |
3196 | 868 |
! |
869 |
||
3722 | 870 |
addWorkspaceVariable |
871 |
|name selection| |
|
872 |
||
873 |
selection := self selectedWorkspacesTextView selection ? ''. |
|
874 |
||
875 |
name := Dialog |
|
876 |
request:'Name of new Workspace Variable:' |
|
877 |
initialAnswer:(selection asString string) |
|
878 |
okLabel:'Add' |
|
879 |
title:'Enter Variable Name'. |
|
880 |
name size == 0 ifTrue:[ |
|
881 |
^ self |
|
882 |
]. |
|
883 |
Workspace addWorkspaceVariable:name. |
|
884 |
! |
|
885 |
||
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
886 |
addWorkspaceVariableInspector |
4096
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
887 |
|v| |
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
888 |
|
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
889 |
v := self addInspectorOn:(Workspace workspaceVariables) basic:false suppressPseudoSlots:true. |
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
890 |
v dereferenceValueHolders:true. |
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
891 |
v fieldListLabel:'Name'. |
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
892 |
self renameWorkspace:(self selectedWorkspaceIndexHolder value) to:'Variables'. |
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
893 |
! |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
894 |
|
3752 | 895 |
askForFilterBlock:message template:template rememberIn:nameOfClassVar |
896 |
|filterBlockString filterBlock dialog textHolder classVarValue| |
|
897 |
||
898 |
classVarValue := self class classVarAt:nameOfClassVar ifAbsent:nil. |
|
899 |
classVarValue isNil ifTrue:[ |
|
900 |
self class classVarAt:nameOfClassVar put:template. |
|
901 |
classVarValue := template. |
|
902 |
]. |
|
903 |
||
904 |
textHolder := ValueHolder new. |
|
905 |
dialog := Dialog |
|
906 |
forRequestText:(resources string:message) |
|
907 |
lines:25 |
|
908 |
columns:70 |
|
909 |
initialAnswer:classVarValue |
|
910 |
model:textHolder. |
|
911 |
dialog addButton:(Button label:'Template' action:[textHolder value:template. textHolder changed:#value.]). |
|
912 |
dialog open. |
|
913 |
dialog accepted ifFalse:[^ nil]. |
|
914 |
||
915 |
filterBlockString := textHolder value. |
|
916 |
self class classVarAt:nameOfClassVar put:filterBlockString. |
|
917 |
||
918 |
filterBlock := Parser evaluate:filterBlockString. |
|
919 |
filterBlock isBlock ifFalse:[ |
|
5490 | 920 |
self error:'bad input for filterBlock' mayProceed:true. |
3752 | 921 |
^ nil |
922 |
]. |
|
923 |
||
924 |
^ filterBlock |
|
925 |
! |
|
926 |
||
4474 | 927 |
autoDefineVariablesChanged |
928 |
|autoDefine| |
|
929 |
||
930 |
autoDefine := autoDefineVariables value. |
|
931 |
UserPreferences current autoDefineWorkspaceVariables:(autoDefine == #workspace). |
|
932 |
workspaces do:[:each | |
|
933 |
each autoDefineVariables:autoDefine |
|
934 |
]. |
|
935 |
! |
|
936 |
||
3198 | 937 |
basicInspectIt |
938 |
self inspectIt:true |
|
939 |
! |
|
940 |
||
3383
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
941 |
browseImplementorsOfIt |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
942 |
self selectedWorkspacesTextView browseImplementorsOfIt |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
943 |
! |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
944 |
|
3154 | 945 |
browseIt |
3198 | 946 |
self selectedWorkspacesTextView browseIt |
3154 | 947 |
! |
948 |
||
3383
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
949 |
browseReferencesToIt |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
950 |
self selectedWorkspacesTextView browseReferencesToIt |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
951 |
! |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
952 |
|
4136 | 953 |
clearHistory |
954 |
Workspace clearDoItHistory |
|
955 |
! |
|
956 |
||
3154 | 957 |
doIt |
3198 | 958 |
self selectedWorkspacesTextView doIt |
3154 | 959 |
! |
960 |
||
961 |
inspectIt |
|
3198 | 962 |
self inspectIt:false |
963 |
! |
|
964 |
||
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
965 |
inspectIt:isBasicInspector |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
966 |
|ws| |
3196 | 967 |
|
3198 | 968 |
ws := self selectedWorkspacesTextView. |
3196 | 969 |
ws |
970 |
do:(ws selection) |
|
971 |
withValueDo:[:result | |
|
4096
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
972 |
self addInspectorOn:result basic:isBasicInspector suppressPseudoSlots:false |
3196 | 973 |
] |
974 |
||
975 |
"/ self selectedWorkspace inspectIt |
|
3154 | 976 |
! |
977 |
||
3812 | 978 |
inspectWorkspaceVariables |
979 |
|wsvars| |
|
980 |
||
981 |
wsvars := Workspace workspaceVariables. |
|
982 |
wsvars size == 0 ifTrue:[ |
|
983 |
Dialog information:'No Workspace Variables are defined'. |
|
984 |
^ self |
|
985 |
]. |
|
986 |
wsvars inspect |
|
987 |
! |
|
988 |
||
3332 | 989 |
loadFile:aFileName |
5649 | 990 |
self loadFile:aFileName encoding:nil |
991 |
! |
|
992 |
||
5692 | 993 |
loadFile:aFileName encoding:encodingSymbolOrNil |
994 |
|lbl| |
|
995 |
||
996 |
lbl := aFileName asFilename withoutSuffix baseName. |
|
997 |
self loadFile:aFileName encoding:encodingSymbolOrNil label:lbl. |
|
998 |
! |
|
999 |
||
1000 |
loadFile:aFileName encoding:encodingSymbolOrNil label:label |
|
1001 |
|file ws| |
|
3332 | 1002 |
|
1003 |
file := aFileName asFilename. |
|
5490 | 1004 |
ws := self selectedWorkspacesTextView. |
1005 |
[ |
|
5692 | 1006 |
|contents| |
1007 |
||
1008 |
contents := file contents. |
|
1009 |
encodingSymbolOrNil notNil ifTrue:[ |
|
1010 |
contents := contents encodeFrom:encodingSymbolOrNil into:#'unicode'. |
|
5742 | 1011 |
ws externalEncoding:encodingSymbolOrNil. |
5692 | 1012 |
]. |
1013 |
ws contents:contents. |
|
5752
1377fd220c4c
remember loaded file (for save as)
Claus Gittinger <cg@exept.de>
parents:
5742
diff
changeset
|
1014 |
ws defaultFileNameForFileDialog:file pathName. |
5490 | 1015 |
] on:StreamError do:[:ex| |
1016 |
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
|
1017 |
^ self |
13f6e4eaac91
fix #loadFile: check if file exists
Michael Beyl <mb@exept.de>
parents:
5140
diff
changeset
|
1018 |
]. |
3332 | 1019 |
ws modified:false. |
1020 |
||
1021 |
tabList size <= 1 ifTrue:[ |
|
5692 | 1022 |
self window label:label. |
3332 | 1023 |
] ifFalse:[ |
5692 | 1024 |
tabList at:self selectedWorkspaceIndexHolder value put:label |
3332 | 1025 |
] |
1026 |
! |
|
1027 |
||
3154 | 1028 |
menuLoad |
3332 | 1029 |
|file| |
3154 | 1030 |
|
3193 | 1031 |
(self askIfModified:'Text was modified. Load anyway ?' yesButton:'Load') ifFalse:[ ^ self]. |
1032 |
||
5846 | 1033 |
file := Dialog requestFileName:(resources string:'Load file') default:'file.wsp' pattern:'*.wsp'. |
5490 | 1034 |
file size ~~ 0 ifTrue:[ |
3332 | 1035 |
self loadFile:file |
3154 | 1036 |
] |
1037 |
! |
|
1038 |
||
3334 | 1039 |
newSystemWorkspace |
1040 |
self class openSystemWorkspace |
|
1041 |
! |
|
1042 |
||
3154 | 1043 |
openDocumentation |
1044 |
"opens the documentation file" |
|
1045 |
||
1046 |
self openHTMLDocument: 'tools/misc/TOP.html#WORKSPACE' |
|
1047 |
! |
|
1048 |
||
4267 | 1049 |
pasteAndExecute:aString |
1050 |
self paste:aString. |
|
4136 | 1051 |
self printIt |
1052 |
! |
|
1053 |
||
3154 | 1054 |
printIt |
3198 | 1055 |
self selectedWorkspacesTextView printIt |
3193 | 1056 |
! |
1057 |
||
3752 | 1058 |
processText |
1059 |
|template filterBlock newList oldList answer nChanged changedLines flags| |
|
1060 |
||
1061 |
template := |
|
1062 |
'"/ general text processor; |
|
1063 |
"/ the following block should evaluate to a new line, |
|
1064 |
"/ given the original line as argument. |
|
1065 |
"/ Beginner warning: Smalltalk know-how is useful here. |
|
1066 |
||
1067 |
[:line | |
|
1068 |
"/ any processing on line. |
|
1069 |
"/ Notice, that line might be a Text object (i.e. non-string), |
|
1070 |
"/ |
|
1071 |
"/ Useful operations on the line are: |
|
1072 |
"/ - '' .... '' , concatenation of any prefix/suffix |
|
1073 |
"/ - leftPaddedTo:size padding |
|
1074 |
"/ - rightPaddedTo:size padding |
|
1075 |
"/ - copyTo:(size min:N) |
|
1076 |
"/ - asUppercase |
|
1077 |
"/ - asLowercase |
|
4141 | 1078 |
"/ - withoutSeparators remove whiteSpace |
1079 |
"/ - asCollectionOfWords words |
|
3752 | 1080 |
|
1081 |
"/ makes everything bold |
|
1082 |
"/ |
|
1083 |
"/ line allBold |
|
1084 |
||
4141 | 1085 |
"/ first word only |
1086 |
"/ |
|
1087 |
"/ line withoutSeparators asCollectionOfWords first |
|
1088 |
||
3752 | 1089 |
"/ dummy filter (keeps all lines as-is) |
1090 |
"/ |
|
1091 |
line |
|
1092 |
] |
|
1093 |
'. |
|
1094 |
filterBlock := self askForFilterBlock:'Processing block:' |
|
1095 |
template:template |
|
1096 |
rememberIn:#LastProcessingBlockString. |
|
1097 |
filterBlock isNil ifTrue:[^ self]. |
|
1098 |
||
1099 |
oldList := self selectedWorkspacesTextView list. |
|
1100 |
oldList := oldList collect:[:lineOrNil | lineOrNil ? '']. |
|
4141 | 1101 |
newList := oldList collect:[:line | |newLine| |
1102 |
newLine := line. |
|
1103 |
Error handle:[:ex | |
|
1104 |
] do:[ |
|
1105 |
newLine := filterBlock value:line |
|
1106 |
]. |
|
1107 |
newLine |
|
1108 |
]. |
|
3752 | 1109 |
newList := newList collect:[:line | (line isString and:[line size == 0]) ifTrue:[nil] ifFalse:[line]]. |
1110 |
||
1111 |
flags := (1 to:oldList size) collect:[:i | (oldList at:i) ~= (newList at:i)]. |
|
1112 |
flags := flags select:[:flag | flag]. |
|
1113 |
nChanged := flags size. |
|
1114 |
nChanged == 0 ifTrue:[ |
|
1115 |
self information:'No lines were changed.'. |
|
1116 |
^ self |
|
1117 |
]. |
|
1118 |
||
1119 |
answer := Dialog confirmWithCancel:(resources |
|
1120 |
string:'%1 lines changed. Change text ?' |
|
1121 |
with:nChanged) |
|
1122 |
labels:#( 'Cancel' 'No, Show Changed' 'Yes'). |
|
1123 |
answer isNil ifTrue:[^ self]. |
|
1124 |
answer ifFalse:[ |
|
1125 |
changedLines := (1 to:oldList size) select:[:i | (oldList at:i) ~= (newList at:i)]. |
|
1126 |
changedLines := changedLines collect:[:i | (newList at:i)]. |
|
1127 |
TextBox openOn:(changedLines asStringCollection) title:'Changed lines'. |
|
1128 |
^ self. |
|
1129 |
]. |
|
1130 |
||
1131 |
self selectedWorkspacesTextView list:newList. |
|
1132 |
! |
|
1133 |
||
4136 | 1134 |
redoLastDoIt |
4267 | 1135 |
|s| |
4136 | 1136 |
|
4267 | 1137 |
s := self lastDoItsString. |
1138 |
s notNil ifTrue:[ |
|
1139 |
self pasteAndExecute:s |
|
1140 |
] |
|
4136 | 1141 |
! |
1142 |
||
3722 | 1143 |
removeAllWorkspaceVariables |
5846 | 1144 |
(Dialog confirm:(resources string:'Do you really want to remove all Workspace Variables ?')) |
3722 | 1145 |
ifTrue:[ |
1146 |
Workspace removeAllWorkspaceVariables |
|
1147 |
]. |
|
1148 |
! |
|
1149 |
||
4284 | 1150 |
removeGlobalVariable |
1151 |
|name nameKey selection value| |
|
1152 |
||
1153 |
selection := self selectedWorkspacesTextView selection ? ''. |
|
1154 |
||
1155 |
name := Dialog |
|
1156 |
request:'Remove Global Variable:' |
|
1157 |
initialAnswer:(selection asString string) |
|
1158 |
okLabel:'Remove' |
|
1159 |
title:'Remove Global'. |
|
1160 |
||
1161 |
name size == 0 ifTrue:[^ self]. |
|
1162 |
nameKey := name asSymbolIfInterned. |
|
1163 |
nameKey isNil ifTrue:[^ self]. |
|
1164 |
||
1165 |
(Smalltalk includesKey:nameKey) ifFalse:[ |
|
1166 |
self warn:('No such Global Binding: ''%1''.' bindWith:name). |
|
1167 |
^ self. |
|
1168 |
]. |
|
1169 |
||
1170 |
value := Smalltalk at:nameKey. |
|
1171 |
value notNil ifTrue:[ |
|
1172 |
(self confirm:('Global ''%1'' is currently bound to %2\\Remove Binding ?' bindWith:name with:value) withCRs) |
|
1173 |
ifFalse:[ |
|
1174 |
^ self. |
|
1175 |
]. |
|
1176 |
]. |
|
1177 |
Smalltalk at:nameKey put:nil. |
|
1178 |
Smalltalk removeKey:nameKey |
|
1179 |
! |
|
1180 |
||
3722 | 1181 |
removeWorkspaceVariable |
6266 | 1182 |
|name selection wsVarNames| |
3812 | 1183 |
|
6266 | 1184 |
wsVarNames := Workspace workspaceVariableNames. |
1185 |
wsVarNames isEmpty ifTrue:[ |
|
3812 | 1186 |
Dialog information:'No Workspace Variables are defined'. |
1187 |
^ self |
|
1188 |
]. |
|
3722 | 1189 |
|
1190 |
selection := self selectedWorkspacesTextView selection ? ''. |
|
1191 |
||
1192 |
name := Dialog |
|
1193 |
request:'Variable to remove:' |
|
1194 |
initialAnswer:(selection asString string) |
|
1195 |
okLabel:'Remove' |
|
1196 |
title:'Enter Variable Name' |
|
6266 | 1197 |
list:(wsVarNames asOrderedCollection sort). |
1198 |
name isEmptyOrNil ifTrue:[ |
|
3722 | 1199 |
^ self |
1200 |
]. |
|
1201 |
Workspace removeWorkspaceVariable:name. |
|
6266 | 1202 |
|
1203 |
"Modified: / 20-04-2005 / 11:56:28 / cg" |
|
3722 | 1204 |
! |
1205 |
||
3384 | 1206 |
spyOnIt |
1207 |
self selectedWorkspacesTextView spyOnIt |
|
1208 |
! |
|
1209 |
||
1210 |
timeIt |
|
1211 |
self selectedWorkspacesTextView timeIt |
|
3154 | 1212 |
! ! |
1213 |
||
4790 | 1214 |
!WorkspaceApplication methodsFor:'menu-actions-editing'! |
1215 |
||
1216 |
babelFishTranslate:fromToModeString |
|
1217 |
"translate the selected text and paste it after the selection" |
|
1218 |
||
1219 |
self selectedWorkspace babelFishTranslate:fromToModeString |
|
1220 |
! |
|
1221 |
||
5261 | 1222 |
fileInText |
1223 |
self selectedWorkspacesTextView contentsAsString readStream fileIn |
|
1224 |
! |
|
1225 |
||
4790 | 1226 |
filterText |
1227 |
|template filterBlock newList oldList answer nDeleted deletedLines| |
|
1228 |
||
1229 |
template := |
|
1230 |
'"/ general text filter; |
|
1231 |
"/ the following block should evaluate to true for all lines |
|
1232 |
"/ you want to keep - lines for which the block returns false will be removed. |
|
1233 |
"/ Beginner warning: Smalltalk know-how is useful here. |
|
1234 |
||
1235 |
[:line | |
|
1236 |
"/ any condition on line. |
|
1237 |
"/ Notice, that line might be a Text object (i.e. non-string), |
|
1238 |
"/ so you may want to use line string. |
|
1239 |
"/ |
|
1240 |
"/ Useful queries on the line are: |
|
1241 |
"/ - size the length of the line |
|
1242 |
"/ - hasChangeOfEmphasis any bold, italic etc. |
|
1243 |
"/ - startsWith:someString |
|
1244 |
"/ - endsWith:someString |
|
1245 |
||
1246 |
"/ example filter (removes all empty lines) |
|
1247 |
"/ |
|
1248 |
"/ line size > 0 |
|
1249 |
||
1250 |
"/ example filter (removes all lines which do not end with some suffix) |
|
1251 |
"/ |
|
1252 |
"/ (line asLowercase endsWith:''foo'') not |
|
1253 |
||
1254 |
"/ dummy filter (keeps all lines) |
|
1255 |
"/ |
|
1256 |
true |
|
1257 |
] |
|
1258 |
'. |
|
1259 |
||
1260 |
filterBlock := self askForFilterBlock:'Filter block:' |
|
1261 |
template:template |
|
1262 |
rememberIn:#LastFilterBlockString. |
|
1263 |
filterBlock isNil ifTrue:[^ self]. |
|
1264 |
||
1265 |
oldList := self selectedWorkspacesTextView list. |
|
1266 |
oldList := oldList collect:[:lineOrNil | lineOrNil ? '']. |
|
1267 |
newList := oldList select:filterBlock. |
|
1268 |
newList := newList collect:[:line | (line isString and:[line size == 0]) ifTrue:[nil] ifFalse:[line]]. |
|
1269 |
nDeleted := oldList size - newList size. |
|
1270 |
nDeleted == 0 ifTrue:[ |
|
1271 |
self information:'No lines were deleted.'. |
|
1272 |
^ self |
|
1273 |
]. |
|
1274 |
||
1275 |
answer := Dialog confirmWithCancel:(resources |
|
1276 |
string:'%1 lines remain (%2 deleted). Change text ?' |
|
1277 |
with:newList size |
|
1278 |
with:nDeleted) |
|
1279 |
labels:#( 'Cancel' 'No, Show Deleted' 'Yes'). |
|
1280 |
answer isNil ifTrue:[^ self]. |
|
1281 |
answer ifFalse:[ |
|
1282 |
deletedLines := oldList reject:filterBlock. |
|
1283 |
TextBox openOn:(deletedLines asStringCollection) title:'Filtered lines'. |
|
1284 |
^ self. |
|
1285 |
]. |
|
1286 |
||
1287 |
self selectedWorkspacesTextView list:newList. |
|
1288 |
! |
|
1289 |
||
1290 |
googleSpellingSuggestion |
|
1291 |
self selectedWorkspacesTextView googleSpellingSuggestion |
|
1292 |
! |
|
1293 |
||
1294 |
pasteLastDoIt |
|
1295 |
|s| |
|
1296 |
||
1297 |
s := self lastDoItsString. |
|
1298 |
s notNil ifTrue:[ |
|
1299 |
self paste:s |
|
1300 |
] |
|
1301 |
! ! |
|
1302 |
||
4136 | 1303 |
!WorkspaceApplication methodsFor:'menu-dynamic'! |
1304 |
||
4267 | 1305 |
pasteRecentDoItMenu |
1306 |
<resource: #programMenu > |
|
1307 |
||
1308 |
^ self recentDoItsMenuFor:#'paste:' |
|
1309 |
! |
|
1310 |
||
1311 |
recentDoItsMenuFor:aSelector |
|
4136 | 1312 |
<resource: #programMenu > |
1313 |
||
1314 |
^ [ |
|
1315 |
|doIts m classHistory currentClass| |
|
1316 |
||
1317 |
doIts := Workspace doItHistory. |
|
1318 |
doIts size > 0 ifTrue:[ |
|
1319 |
m := Menu new. |
|
1320 |
doIts do:[:doItEntry | |
|
1321 |
|lines label item| |
|
1322 |
||
1323 |
label := doItEntry withoutLeadingSeparators asStringCollection first. |
|
1324 |
(label size > 20) ifTrue:[ |
|
1325 |
label := (label contractTo:20) |
|
1326 |
] ifFalse:[ |
|
1327 |
(lines size > 1) ifTrue:[ |
|
1328 |
label := label , '...' |
|
1329 |
]. |
|
1330 |
]. |
|
1331 |
label := '''' , label , ''''. |
|
1332 |
||
1333 |
item := MenuItem label:label. |
|
1334 |
m addItem:item. |
|
4267 | 1335 |
item value:aSelector. |
4136 | 1336 |
item argument:doItEntry. |
1337 |
]. |
|
1338 |
m addItem: (MenuItem new label:'-'). |
|
1339 |
m addItem: (MenuItem new |
|
5358 | 1340 |
label: (resources string:'Clear History'); |
4136 | 1341 |
value: #clearHistory; |
1342 |
activeHelpKey: #historyEmptyMenu; |
|
1343 |
translateLabel:true). |
|
1344 |
]. |
|
1345 |
m |
|
1346 |
]. |
|
4267 | 1347 |
! |
1348 |
||
1349 |
redoRecentDoItMenu |
|
1350 |
<resource: #programMenu > |
|
1351 |
||
1352 |
^ self recentDoItsMenuFor:#'pasteAndExecute:' |
|
4136 | 1353 |
! ! |
1354 |
||
3154 | 1355 |
!WorkspaceApplication methodsFor:'private'! |
1356 |
||
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1357 |
askIfAnyModified:question yesButton:yesButtonText |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1358 |
(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
|
1359 |
|
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1360 |
(Dialog |
6353 | 1361 |
confirm:(resources stringWithCRs:question) |
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1362 |
yesLabel:(resources at:yesButtonText) |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1363 |
noLabel:(resources at:'Cancel')) |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1364 |
ifTrue:[ |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1365 |
"/ reset modified flag so question is asked only once |
6045 | 1366 |
workspaces |
1367 |
select:[:aView | (self isModifiedWorkspace:aView)] |
|
1368 |
thenDo:[:eachModifiedTextView | |
|
1369 |
eachModifiedTextView modified:false. |
|
1370 |
]. |
|
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1371 |
^ true |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1372 |
]. |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1373 |
^ false |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1374 |
! |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1375 |
|
5852 | 1376 |
compilerClassForSyntaxName:syntax |
1377 |
syntax == #Smalltalk ifTrue:[ |
|
1378 |
^ Compiler |
|
1379 |
]. |
|
1380 |
syntax == #JavaScript ifTrue:[ |
|
1381 |
^ JavaScriptCompiler |
|
1382 |
]. |
|
1383 |
^ Compiler |
|
1384 |
! |
|
1385 |
||
5295
e3c5a7b20d9d
refactored (added abstract superclass)
Claus Gittinger <cg@exept.de>
parents:
5262
diff
changeset
|
1386 |
createWorkspace |
5547
65af7af97085
initial value of #autoDefine was not set correctly
Claus Gittinger <cg@exept.de>
parents:
5490
diff
changeset
|
1387 |
|ws| |
65af7af97085
initial value of #autoDefine was not set correctly
Claus Gittinger <cg@exept.de>
parents:
5490
diff
changeset
|
1388 |
|
65af7af97085
initial value of #autoDefine was not set correctly
Claus Gittinger <cg@exept.de>
parents:
5490
diff
changeset
|
1389 |
ws := (HVScrollableView for:Workspace). |
65af7af97085
initial value of #autoDefine was not set correctly
Claus Gittinger <cg@exept.de>
parents:
5490
diff
changeset
|
1390 |
ws autoDefineVariables:autoDefineVariables. |
65af7af97085
initial value of #autoDefine was not set correctly
Claus Gittinger <cg@exept.de>
parents:
5490
diff
changeset
|
1391 |
^ ws |
3193 | 1392 |
! |
1393 |
||
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1394 |
isModifiedWorkspace:aView |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1395 |
|view| |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1396 |
|
4267 | 1397 |
view := self workspaceViewOfView:aView. |
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1398 |
|
4313 | 1399 |
(view isNil |
1400 |
or:[view modified not |
|
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1401 |
or:[view contentsWasSaved |
4313 | 1402 |
or:[view contents withoutSeparators isEmpty]]]) ifTrue:[ |
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1403 |
^ false |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1404 |
]. |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1405 |
^ true |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1406 |
! |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
1407 |
|
4267 | 1408 |
lastDoItsString |
1409 |
|history| |
|
3198 | 1410 |
|
4267 | 1411 |
history := Workspace doItHistory. |
1412 |
history size > 0 ifFalse:[ |
|
1413 |
self selectedWorkspacesTextView flash. |
|
1414 |
^ nil |
|
3198 | 1415 |
]. |
4267 | 1416 |
^ history first |
5852 | 1417 |
! |
1418 |
||
1419 |
syntaxNameForCompilerClass:aClass |
|
1420 |
aClass == Compiler ifTrue:[ |
|
1421 |
^ #Smalltalk |
|
1422 |
]. |
|
1423 |
aClass == JavaScriptCompiler ifTrue:[ |
|
1424 |
^ #JavaScript |
|
1425 |
]. |
|
1426 |
^ #Smalltalk |
|
1427 |
! |
|
1428 |
||
1429 |
workspaceSelectionChanged |
|
5855 | 1430 |
|compilerClass selectedWorkspace| |
5852 | 1431 |
|
1432 |
super workspaceSelectionChanged. |
|
5855 | 1433 |
selectedWorkspace := self selectedWorkspace. |
1434 |
compilerClass := selectedWorkspace isNil ifTrue:[Compiler] ifFalse:[selectedWorkspace compilerClass]. |
|
5852 | 1435 |
self syntaxHolder setValue:(self syntaxNameForCompilerClass:compilerClass). |
3154 | 1436 |
! ! |
1437 |
||
1438 |
!WorkspaceApplication class methodsFor:'documentation'! |
|
1439 |
||
1440 |
version |
|
6353 | 1441 |
^ '$Header: /cvs/stx/stx/libtool/WorkspaceApplication.st,v 1.102 2005-07-13 15:43:57 cg Exp $' |
3154 | 1442 |
! ! |