author | Jan Vrany <jan.vrany@labware.com> |
Wed, 07 Sep 2022 15:27:34 +0100 | |
branch | jv |
changeset 19640 | 9001c87bacbe |
parent 19629 | 8cdd7e139669 |
child 19647 | 0b91a1b7bfae |
permissions | -rw-r--r-- |
5140 | 1 |
" |
2 |
COPYRIGHT (c) 2001 by eXept Software AG |
|
18226 | 3 |
COPYRIGHT (c) 2017 Jan Vrany |
19594
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
4 |
COPYRIGHT (c) 2020 LabWare |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
5 |
COPYRIGHT (c) 2022 LabWare |
5140 | 6 |
All Rights Reserved |
7 |
||
8 |
This software is furnished under a license and may be used |
|
9 |
only in accordance with the terms of that license and with the |
|
10 |
inclusion of the above copyright notice. This software may not |
|
11 |
be provided or otherwise made available to, or used by, any |
|
12 |
other person. No title to or ownership of the software is |
|
13 |
hereby transferred. |
|
14 |
" |
|
3154 | 15 |
"{ Package: 'stx:libtool' }" |
16 |
||
15234
e00c67bae495
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15046
diff
changeset
|
17 |
"{ NameSpace: Smalltalk }" |
e00c67bae495
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15046
diff
changeset
|
18 |
|
5303 | 19 |
MultiViewToolApplication subclass:#WorkspaceApplication |
9300
07364a10a823
syntax to choose from is fetched via ProgramminLanguage list;
Claus Gittinger <cg@exept.de>
parents:
9166
diff
changeset
|
20 |
instanceVariableNames:'autoDefineVariables syntaxHolder poolsConsideredInDoIts |
9695 | 21 |
smalltalkMenuEnabledHolder clipBoardWatcherProcess |
9735 | 22 |
fetchClipboardLines cursorLineHolder cursorColHolder |
13852 | 23 |
modeLabelHolder toolBarView namespaceHolder |
15817
f6046130309e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15816
diff
changeset
|
24 |
canChangeLanguageHolder cursorLineAndColumnInfoHolder |
f6046130309e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15816
diff
changeset
|
25 |
cursorLineAndColumnLabelHolder' |
13917
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
26 |
classVariableNames:'LastFilterBlockString LastProcessingBlockString |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
27 |
LastGeneratorBlockString LastTeaWaitTime DefaultToolBarVisible |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
28 |
ClipBoardFetchingInstance LastLanguage MyWorkspaceOpened |
16260 | 29 |
LastNamespace LastSnippetFilename' |
8315 | 30 |
poolDictionaries:'' |
31 |
category:'Interface-Smalltalk' |
|
3154 | 32 |
! |
33 |
||
3191 | 34 |
!WorkspaceApplication class methodsFor:'documentation'! |
35 |
||
5140 | 36 |
copyright |
37 |
" |
|
38 |
COPYRIGHT (c) 2001 by eXept Software AG |
|
18226 | 39 |
COPYRIGHT (c) 2017 Jan Vrany |
19594
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
40 |
COPYRIGHT (c) 2020 LabWare |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
41 |
COPYRIGHT (c) 2022 LabWare |
5140 | 42 |
All Rights Reserved |
43 |
||
44 |
This software is furnished under a license and may be used |
|
45 |
only in accordance with the terms of that license and with the |
|
46 |
inclusion of the above copyright notice. This software may not |
|
47 |
be provided or otherwise made available to, or used by, any |
|
48 |
other person. No title to or ownership of the software is |
|
49 |
hereby transferred. |
|
50 |
" |
|
51 |
! |
|
52 |
||
3191 | 53 |
documentation |
54 |
" |
|
55 |
A simple wrapper around a WorkSpace-View, adding a pullDown menu. |
|
56 |
||
57 |
[author:] |
|
58 |
Claus Gittinger |
|
59 |
" |
|
60 |
! ! |
|
3154 | 61 |
|
7825 | 62 |
!WorkspaceApplication class methodsFor:'defaults'! |
63 |
||
15833
b058e6078d5a
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15817
diff
changeset
|
64 |
default |
b058e6078d5a
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15817
diff
changeset
|
65 |
"a place where the default workspaceApplication could be hooked in; |
b058e6078d5a
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15817
diff
changeset
|
66 |
see SystemBrowser default and FileBrowser default on the intention..." |
b058e6078d5a
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15817
diff
changeset
|
67 |
|
b058e6078d5a
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15817
diff
changeset
|
68 |
^ self |
b058e6078d5a
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15817
diff
changeset
|
69 |
! |
b058e6078d5a
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15817
diff
changeset
|
70 |
|
8499 | 71 |
defaultEditToolbarVisible |
72 |
^ UserPreferences current editToolbarVisibleInWorkspace |
|
73 |
||
74 |
"Created: / 14-07-2007 / 16:42:50 / cg" |
|
75 |
! |
|
76 |
||
7825 | 77 |
defaultInfoVisible |
78 |
^ UserPreferences current infoVisibleInWorkspace |
|
79 |
||
80 |
"Created: / 14-07-2007 / 16:43:21 / cg" |
|
81 |
! |
|
82 |
||
10169 | 83 |
defaultMyWorkspaceDotWspFile |
10568 | 84 |
|stxFolder f | |
85 |
||
86 |
stxFolder := Filename homeDirectory / '.smalltalk'. |
|
87 |
f := stxFolder / 'MyWorkspace.wsp'. |
|
10169 | 88 |
f exists ifFalse:[ |
10568 | 89 |
stxFolder makeDirectory. |
90 |
||
10169 | 91 |
f writingFileDo:[:s| |
92 |
'MyWorkspace.wsp' asFilename exists ifTrue:[ |
|
93 |
s nextPutAll:('MyWorkspace.wsp' asFilename contentsAsString) |
|
94 |
] ifFalse:[ |
|
95 |
s nextPutLine: '"This is your personal workspace..."'. |
|
96 |
s nextPutLine: '"Edit and save as ', f pathName , '"'. |
|
10568 | 97 |
|
98 |
'MyWorkspaceSample.wsp' asFilename exists ifTrue:[ |
|
99 |
s nextPutAll:('MyWorkspaceSample.wsp' asFilename contentsAsString) |
|
100 |
] |
|
12393 | 101 |
]. |
102 |
s syncData. |
|
103 |
]. |
|
10169 | 104 |
]. |
105 |
^f |
|
106 |
||
107 |
"Created: / 21-06-2011 / 08:45:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10317 | 108 |
"Modified: / 14-07-2011 / 13:08:30 / Administrator" |
10568 | 109 |
"Modified: / 10-08-2011 / 21:40:31 / cg" |
10169 | 110 |
! |
111 |
||
7825 | 112 |
defaultToolbarVisible |
113 |
^ UserPreferences current toolbarVisibleInWorkspace |
|
114 |
||
115 |
"Created: / 14-07-2007 / 16:42:50 / cg" |
|
8486 | 116 |
! |
117 |
||
17054 | 118 |
filterTemplate |
119 |
^ |
|
120 |
'"/ general text filter; |
|
121 |
"/ the following block should evaluate to true for all lines |
|
122 |
"/ you want to KEEP. |
|
123 |
"/ Lines for which the block returns false, will be removed. |
|
124 |
"/ Beginner warning: Smalltalk know-how is useful here. |
|
125 |
||
126 |
[:line :lineNr :previousLine :nextLine| |
|
127 |
"/ any condition on line. |
|
128 |
"/ Notice, that line might be a Text object (i.e. non-string), |
|
129 |
"/ so you may want to use ''line string''. |
|
130 |
"/ |
|
131 |
"/ Useful queries on the line are: |
|
132 |
"/ - size the length of the line |
|
133 |
"/ - hasChangeOfEmphasis any bold, italic etc. |
|
134 |
"/ - startsWith:someString |
|
135 |
"/ - endsWith:someString |
|
136 |
"/ - includesString:someString |
|
137 |
"/ - pattern match: |
|
138 |
||
139 |
"/ example filters |
|
140 |
"/ |
|
141 |
"/ -------- removes all empty lines --------------- |
|
142 |
"/ |
|
143 |
"/ line size > 0 |
|
144 |
||
145 |
"/ -------- removes all lines which do not end with some suffix ---------- |
|
146 |
"/ |
|
147 |
"/ (line asLowercase endsWith:''foo'') not |
|
148 |
||
149 |
"/ -------- removes duplicates ---------- |
|
150 |
"/ |
|
151 |
"/ (line = nextLine) not |
|
152 |
||
17055 | 153 |
"/ -------- keep lines which start with some suffix ---------- |
154 |
"/ |
|
155 |
"/ (line asLowercase startsWith:''foo'') |
|
156 |
||
157 |
"/ -------- keep lines which include some substring ---------- |
|
158 |
"/ |
|
159 |
"/ (line asLowercase includesString:''foo'') |
|
160 |
||
17054 | 161 |
"/ dummy filter (keeps all lines) |
162 |
"/ |
|
163 |
true |
|
164 |
] |
|
165 |
'. |
|
166 |
! |
|
167 |
||
168 |
generatorTemplate |
|
169 |
^ |
|
170 |
'"/ general text generator; |
|
171 |
"/ the following block is called with a write stream argument |
|
172 |
"/ and the generated text is inserted at the current cursor position |
|
173 |
"/ or replaces the current selection. |
|
174 |
"/ Beginner warning: Smalltalk know-how is useful here. |
|
175 |
||
176 |
[:outputStream :selectedText | |
|
177 |
"/ example generators |
|
178 |
||
179 |
"/ -------- generates N empty lines --------------- |
|
180 |
"/ |
|
181 |
"/ |n| |
|
182 |
"/ n := Dialog requestNumber:''how many empty lines:''. |
|
183 |
"/ n timesRepeat:[ outputStream nextPutLine:'''' ]. |
|
184 |
||
185 |
"/ -------- generates a table of binary numbers |
|
186 |
"/ |
|
187 |
"/ |n| |
|
188 |
"/ n := Dialog requestNumber:''how many numbers:''. |
|
189 |
"/ 1 to:n do:[:i | outputStream nextPutLine:(i raisedTo:i) printString ]. |
|
190 |
] |
|
191 |
' |
|
192 |
! |
|
193 |
||
194 |
textProcessorTemplate |
|
195 |
^ |
|
196 |
'"/ general text processor; |
|
197 |
"/ the following block should evaluate to a new line, |
|
198 |
"/ given the original line as argument. |
|
199 |
"/ Beginner warning: Smalltalk know-how is useful here. |
|
200 |
||
201 |
[:line | |
|
202 |
"/ any processing on line. |
|
203 |
"/ Notice, that line might be a Text object (i.e. non-string), |
|
204 |
"/ |
|
205 |
"/ Useful operations on the line are: |
|
206 |
"/ - '' .... '' , concatenation of any prefix/suffix |
|
207 |
"/ - leftPaddedTo:size padding |
|
208 |
"/ - rightPaddedTo:size padding |
|
209 |
"/ - copyTo:(size min:N) |
|
210 |
"/ - asUppercase |
|
211 |
"/ - asLowercase |
|
212 |
"/ - withoutSeparators remove whiteSpace |
|
213 |
"/ - asCollectionOfWords words |
|
214 |
||
215 |
"/ makes everything bold |
|
216 |
"/ |
|
217 |
"/ line allBold |
|
218 |
||
219 |
"/ first word only |
|
220 |
"/ |
|
221 |
"/ line withoutSeparators asCollectionOfWords first |
|
222 |
||
223 |
"/ dummy filter (keeps all lines as-is) |
|
224 |
"/ |
|
225 |
line |
|
226 |
] |
|
227 |
' |
|
228 |
! |
|
229 |
||
8486 | 230 |
webServiceLinkName |
231 |
^ '/workspace' |
|
7825 | 232 |
! ! |
233 |
||
8708 | 234 |
!WorkspaceApplication class methodsFor:'help specs'! |
235 |
||
236 |
flyByHelpSpec |
|
237 |
<resource: #help> |
|
238 |
||
10220 | 239 |
^ super flyByHelpSpec addPairsFrom:#( |
8708 | 240 |
|
12479 | 241 |
#editCopy |
242 |
'Copy the selected text to the clipboard' |
|
243 |
||
244 |
#editCut |
|
245 |
'Cut the selected text to the clipboard' |
|
246 |
||
247 |
#editDelete |
|
248 |
'Delete the selected text' |
|
249 |
||
10169 | 250 |
#addTerminal |
10277 | 251 |
'Add a tab with an embedded console-terminal' |
252 |
||
253 |
#addTerminalWindows |
|
10169 | 254 |
'Add a tab with an embedded console-terminal (windows users: ignore the no-echo bug, please)' |
255 |
||
15816
64d953f953a1
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15737
diff
changeset
|
256 |
#lineAndColumnLabel |
64d953f953a1
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15737
diff
changeset
|
257 |
'The text-cursor''s line and column number' |
64d953f953a1
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15737
diff
changeset
|
258 |
|
9695 | 259 |
#columnLabel |
260 |
'The text-cursor''s column number' |
|
261 |
||
262 |
#lineLabel |
|
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
263 |
'The text-cursor''s line number. Double-click to change' |
9695 | 264 |
|
265 |
#modeLabel |
|
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
266 |
'The editing mode (insert vs. overwrite). Right-click to change' |
9695 | 267 |
|
8708 | 268 |
#editRedo |
8709 | 269 |
'Redo' |
8708 | 270 |
|
271 |
#doIndent |
|
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
272 |
'Indent (shift right)' |
8708 | 273 |
|
274 |
#doUndent |
|
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
275 |
'Undent (shift left)' |
8708 | 276 |
|
9676 | 277 |
#languageSelection |
15737
5f5dd0d93690
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15608
diff
changeset
|
278 |
'Syntax for doits, syntax checks and coloring. Right-click for menu to change' |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
279 |
|
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
280 |
#namespaceSelection |
15737
5f5dd0d93690
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15608
diff
changeset
|
281 |
'Namespace for doits. Right-click for menu to change' |
9676 | 282 |
|
10169 | 283 |
#menuSave |
284 |
'Save the page''s contents in the original file' |
|
285 |
||
286 |
#menuSaveAs |
|
287 |
'Ask for a file and save the page''s contents there' |
|
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
288 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
289 |
#snippedPaste |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
290 |
'Paste the selected snippet''s text into the text' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
291 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
292 |
#snippedDefine |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
293 |
'Add the above definition to the list of snippets' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
294 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
295 |
#snippedRemove |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
296 |
'Remove the above selected snippet from the list of snippets' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
297 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
298 |
#snippedKey |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
299 |
'The key of the snippet. This is the abbreviation you will have to type before pressing Shift-Space' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
300 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
301 |
#snippedList |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
302 |
'The list of defined snippets.' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
303 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
304 |
#snippedText |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
305 |
'The text of the snippet. This is the text that will be inserted when pressing Shift-Space' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
306 |
|
8708 | 307 |
) |
9676 | 308 |
|
10277 | 309 |
"Modified: / 08-07-2011 / 08:29:51 / cg" |
8708 | 310 |
! ! |
311 |
||
7931 | 312 |
!WorkspaceApplication class methodsFor:'interface specs'! |
313 |
||
14830
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
314 |
manageSnippetsDialogSpec |
7931 | 315 |
"This resource specification was automatically generated |
316 |
by the UIPainter of ST/X." |
|
317 |
||
318 |
"Do not manually edit this!! If it is corrupted, |
|
319 |
the UIPainter may not be able to read the specification." |
|
320 |
||
321 |
" |
|
14830
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
322 |
UIPainter new openOnClass:WorkspaceApplication andSelector:#manageSnippetsDialogSpec |
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
323 |
WorkspaceApplication new openInterface:#manageSnippetsDialogSpec |
7931 | 324 |
" |
325 |
||
326 |
<resource: #canvas> |
|
327 |
||
328 |
^ |
|
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
329 |
#(FullSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
330 |
name: manageSnippetsDialogSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
331 |
window: |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
332 |
(WindowSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
333 |
label: 'Manage Snippets' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
334 |
name: 'Manage Snippets' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
335 |
min: (Point 10 10) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
336 |
bounds: (Rectangle 0 0 379 590) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
337 |
menu: manageSnippetDialogMenuSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
338 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
339 |
component: |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
340 |
(SpecCollection |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
341 |
collection: ( |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
342 |
(LabelSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
343 |
label: 'Snippet:' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
344 |
name: 'Label1' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
345 |
layout: (LayoutFrame 0 0 0 0 0 1 30 0) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
346 |
translateLabel: true |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
347 |
adjust: left |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
348 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
349 |
(VariableVerticalPanelSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
350 |
name: 'VariableVerticalPanel1' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
351 |
layout: (LayoutFrame 0 0 30 0 0 1 -80 1) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
352 |
component: |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
353 |
(SpecCollection |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
354 |
collection: ( |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
355 |
(SequenceViewSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
356 |
name: 'List1' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
357 |
activeHelpKey: snippedList |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
358 |
model: selectedSnippet |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
359 |
hasHorizontalScrollBar: true |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
360 |
hasVerticalScrollBar: true |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
361 |
useIndex: true |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
362 |
sequenceList: listOfSnippets |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
363 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
364 |
(ViewSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
365 |
name: 'Box1' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
366 |
component: |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
367 |
(SpecCollection |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
368 |
collection: ( |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
369 |
(TextEditorSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
370 |
name: 'TextEditor1' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
371 |
layout: (LayoutFrame 0 0 30 0 0 1 0 1) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
372 |
activeHelpKey: snippedText |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
373 |
model: selectedSnippetsText |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
374 |
hasHorizontalScrollBar: true |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
375 |
hasVerticalScrollBar: true |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
376 |
acceptChannel: snippetTextAcceptHolder |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
377 |
modifiedChannel: snippetTextModified |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
378 |
hasKeyboardFocusInitially: false |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
379 |
viewClassName: '' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
380 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
381 |
(LabelSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
382 |
label: 'Snippet Key:' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
383 |
name: 'Label2' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
384 |
layout: (LayoutFrame 0 0 2 0 100 0 28 0) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
385 |
translateLabel: true |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
386 |
adjust: left |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
387 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
388 |
(InputFieldSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
389 |
name: 'EntryField1' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
390 |
layout: (LayoutFrame 100 0.0 2 0 0 1.0 28 0) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
391 |
activeHelpKey: snippedKey |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
392 |
model: selectedSnippetsKeyHolder |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
393 |
immediateAccept: true |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
394 |
acceptOnReturn: true |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
395 |
acceptOnTab: true |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
396 |
acceptOnPointerLeave: true |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
397 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
398 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
399 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
400 |
) |
7931 | 401 |
) |
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
402 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
403 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
404 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
405 |
handles: (Any 0.5 1.0) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
406 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
407 |
(HorizontalPanelViewSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
408 |
name: 'ButtonPanel' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
409 |
layout: (LayoutFrame 0 0 -70 1 0 1 -40 1) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
410 |
horizontalLayout: center |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
411 |
verticalLayout: center |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
412 |
horizontalSpace: 3 |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
413 |
verticalSpace: 3 |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
414 |
component: |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
415 |
(SpecCollection |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
416 |
collection: ( |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
417 |
(ActionButtonSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
418 |
label: 'Define' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
419 |
name: 'DefineButton' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
420 |
activeHelpKey: snippedDefine |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
421 |
translateLabel: true |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
422 |
model: defineSelectedSnippet |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
423 |
enableChannel: defineEnabled |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
424 |
extent: (Point 125 22) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
425 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
426 |
(ActionButtonSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
427 |
label: 'Remove' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
428 |
name: 'RemoveButton' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
429 |
activeHelpKey: snippedRemove |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
430 |
translateLabel: true |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
431 |
model: removeSelectedSnippet |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
432 |
enableChannel: removeEnabled |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
433 |
extent: (Point 125 22) |
8286 | 434 |
) |
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
435 |
(ActionButtonSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
436 |
label: 'Paste' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
437 |
name: 'PasteButton' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
438 |
activeHelpKey: snippedPaste |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
439 |
translateLabel: true |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
440 |
model: pasteSelectedSnippet |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
441 |
enableChannel: pasteEnabled |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
442 |
extent: (Point 125 22) |
7931 | 443 |
) |
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
444 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
445 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
446 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
447 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
448 |
(DividerSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
449 |
name: 'Separator1' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
450 |
layout: (LayoutFrame 0 0.0 557 0 0 1.0 561 0) |
7931 | 451 |
) |
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
452 |
(HorizontalPanelViewSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
453 |
name: 'CloseButtonPanel' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
454 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
455 |
horizontalLayout: fitSpace |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
456 |
verticalLayout: center |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
457 |
horizontalSpace: 3 |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
458 |
verticalSpace: 3 |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
459 |
reverseOrderIfOKAtLeft: true |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
460 |
component: |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
461 |
(SpecCollection |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
462 |
collection: ( |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
463 |
(ActionButtonSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
464 |
label: 'Close' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
465 |
name: 'Button1' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
466 |
translateLabel: true |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
467 |
model: cancel |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
468 |
extent: (Point 373 22) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
469 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
470 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
471 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
472 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
473 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
474 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
475 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
476 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
477 |
) |
9381 | 478 |
! |
479 |
||
10169 | 480 |
toolBarSpec |
481 |
"This resource specification was automatically generated |
|
482 |
by the UIPainter of ST/X." |
|
483 |
||
484 |
"Do not manually edit this!! If it is corrupted, |
|
485 |
the UIPainter may not be able to read the specification." |
|
486 |
||
487 |
" |
|
488 |
UIPainter new openOnClass:WorkspaceApplication andSelector:#toolBarSpec |
|
489 |
WorkspaceApplication new openInterface:#toolBarSpec |
|
490 |
" |
|
491 |
||
492 |
<resource: #canvas> |
|
493 |
||
494 |
^ |
|
495 |
#(FullSpec |
|
496 |
name: toolBarSpec |
|
497 |
window: |
|
498 |
(WindowSpec |
|
499 |
label: 'Toolbar' |
|
500 |
name: 'Toolbar' |
|
501 |
min: (Point 10 10) |
|
502 |
bounds: (Rectangle 0 0 728 48) |
|
503 |
) |
|
504 |
component: |
|
505 |
(SpecCollection |
|
506 |
collection: ( |
|
507 |
(MenuPanelSpec |
|
508 |
name: 'ToolBarMenu' |
|
509 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
510 |
level: 0 |
|
511 |
visibilityChannel: toolBarVisibleHolder |
|
512 |
menu: toolBarMenu |
|
513 |
textDefault: true |
|
514 |
) |
|
515 |
) |
|
516 |
||
517 |
) |
|
518 |
) |
|
519 |
! |
|
520 |
||
9381 | 521 |
windowSpec |
522 |
"This resource specification was automatically generated |
|
523 |
by the UIPainter of ST/X." |
|
524 |
||
525 |
"Do not manually edit this!! If it is corrupted, |
|
526 |
the UIPainter may not be able to read the specification." |
|
527 |
||
528 |
" |
|
529 |
UIPainter new openOnClass:WorkspaceApplication andSelector:#windowSpec |
|
530 |
WorkspaceApplication new openInterface:#windowSpec |
|
531 |
WorkspaceApplication open |
|
532 |
" |
|
533 |
||
534 |
<resource: #canvas> |
|
535 |
||
536 |
^ |
|
15890 | 537 |
#(FullSpec |
538 |
name: windowSpec |
|
539 |
window: |
|
540 |
(WindowSpec |
|
541 |
label: 'Workspace' |
|
542 |
name: 'Workspace' |
|
543 |
min: (Point 10 10) |
|
544 |
bounds: (Rectangle 0 0 640 480) |
|
545 |
menu: mainMenu |
|
546 |
) |
|
547 |
component: |
|
548 |
(SpecCollection |
|
549 |
collection: ( |
|
550 |
(ViewSpec |
|
551 |
name: 'ToolBar' |
|
552 |
layout: (LayoutFrame 0 0 0 0 0 1 32 0) |
|
553 |
level: #'application.toolbarLevel' |
|
554 |
visibilityChannel: toolBarVisibleHolder |
|
555 |
component: |
|
556 |
(SpecCollection |
|
557 |
collection: ( |
|
558 |
(ActionButtonSpec |
|
559 |
label: 'hideToolBarIcon' |
|
560 |
name: 'HideToolBarButton' |
|
561 |
layout: (LayoutFrame 0 0 0 0 13 0 0 1) |
|
562 |
activeHelpKey: hideToolBar |
|
563 |
hasCharacterOrientedLabel: false |
|
564 |
translateLabel: true |
|
565 |
model: hideToolbar |
|
566 |
postBuildCallback: hideToolBarButtonCreated: |
|
567 |
) |
|
568 |
(NonScrollableArbitraryComponentSpec |
|
569 |
name: 'ToolBarView' |
|
570 |
layout: (LayoutFrame 13 0.0 0 0.0 0 1.0 0 1.0) |
|
571 |
visibilityChannel: toolBarVisibleHolder |
|
572 |
component: toolBarView |
|
9381 | 573 |
) |
15890 | 574 |
) |
575 |
||
576 |
) |
|
577 |
) |
|
578 |
(ViewSpec |
|
579 |
name: 'EditToolBar' |
|
580 |
layout: (LayoutFrame 0 0 32 0 0 1 64 0) |
|
581 |
visibilityChannel: editToolBarVisibleHolder |
|
582 |
component: |
|
583 |
(SpecCollection |
|
584 |
collection: ( |
|
585 |
(ActionButtonSpec |
|
586 |
label: 'hideToolBarIcon' |
|
587 |
name: 'HideEditToolBarButton' |
|
588 |
layout: (LayoutFrame 0 0 0 0 13 0 0 1) |
|
589 |
activeHelpKey: hideEditToolBar |
|
590 |
hasCharacterOrientedLabel: false |
|
591 |
translateLabel: true |
|
592 |
model: hideEditToolbar |
|
593 |
postBuildCallback: hideToolBarButtonCreated: |
|
594 |
) |
|
595 |
(MenuPanelSpec |
|
596 |
name: 'EditToolBar1' |
|
597 |
layout: (LayoutFrame 13 0.0 0 0.0 0 1.0 0 1.0) |
|
598 |
visibilityChannel: editToolBarVisibleHolder |
|
599 |
menu: editToolBarMenu |
|
600 |
textDefault: true |
|
9381 | 601 |
) |
15890 | 602 |
) |
603 |
||
604 |
) |
|
9381 | 605 |
) |
15890 | 606 |
(NoteBookViewSpec |
607 |
name: 'NoteBook' |
|
608 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 -26 1.0) |
|
609 |
model: selectedWorkspaceIndexHolder |
|
610 |
menu: tabList |
|
611 |
useIndex: true |
|
612 |
accessTabMenuAction: tabMenuAt: |
|
613 |
translateLabel: true |
|
614 |
destroyTabAction: destroyTab: |
|
615 |
canvas: workspaceHolder |
|
616 |
canvasInset: 0 |
|
617 |
keepCanvasAlive: true |
|
618 |
tabLevel: 1 |
|
619 |
) |
|
620 |
(UISubSpecification |
|
621 |
name: 'infoBarSubSpec' |
|
622 |
layout: (LayoutFrame 0 0.0 -26 1 -16 1.0 0 1.0) |
|
623 |
level: #'infobar.level' |
|
624 |
visibilityChannel: infoVisibleHolder |
|
625 |
majorKey: WorkspaceApplication |
|
626 |
minorKey: windowSpecForInfoBar |
|
627 |
keepSpaceForOSXResizeHandleH: true |
|
628 |
) |
|
629 |
) |
|
630 |
||
631 |
) |
|
632 |
) |
|
9381 | 633 |
! |
634 |
||
635 |
windowSpecForInfoBar |
|
636 |
"This resource specification was automatically generated |
|
637 |
by the UIPainter of ST/X." |
|
638 |
||
639 |
"Do not manually edit this!! If it is corrupted, |
|
640 |
the UIPainter may not be able to read the specification." |
|
641 |
||
642 |
" |
|
643 |
UIPainter new openOnClass:WorkspaceApplication andSelector:#windowSpecForInfoBar |
|
644 |
WorkspaceApplication new openInterface:#windowSpecForInfoBar |
|
645 |
" |
|
646 |
||
647 |
<resource: #canvas> |
|
648 |
||
649 |
^ |
|
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
650 |
#(FullSpec |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
651 |
name: windowSpecForInfoBar |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
652 |
uuid: '7bc14bc0-940a-11e9-8e2a-606720e43e2c' |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
653 |
window: |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
654 |
(WindowSpec |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
655 |
label: 'Info Bar' |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
656 |
name: 'Info Bar' |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
657 |
uuid: '7bc14bc1-940a-11e9-8e2a-606720e43e2c' |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
658 |
bounds: (Rectangle 0 0 473 30) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
659 |
) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
660 |
component: |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
661 |
(SpecCollection |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
662 |
collection: ( |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
663 |
(ViewSpec |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
664 |
name: 'infoView' |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
665 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
666 |
uuid: '7bc14bc2-940a-11e9-8e2a-606720e43e2c' |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
667 |
component: |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
668 |
(SpecCollection |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
669 |
collection: ( |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
670 |
(LabelSpec |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
671 |
name: 'infoLabel' |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
672 |
layout: (LayoutFrame 0 0.0 0 0.0 -220 1.0 0 1.0) |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
673 |
uuid: '7bc14bc3-940a-11e9-8e2a-606720e43e2c' |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
674 |
level: -1 |
15816
64d953f953a1
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15737
diff
changeset
|
675 |
translateLabel: true |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
676 |
labelChannel: infoLabelHolder |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
677 |
resizeForLabel: false |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
678 |
adjust: left |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
679 |
) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
680 |
(LabelSpec |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
681 |
name: 'namespaceInfoLabelHolder' |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
682 |
layout: (LayoutFrame -220 1.0 0 0.0 -136 1.0 0 1.0) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
683 |
activeHelpKey: namespaceSelection |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
684 |
uuid: '7bc14bc4-940a-11e9-8e2a-606720e43e2c' |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
685 |
level: -1 |
15816
64d953f953a1
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15737
diff
changeset
|
686 |
translateLabel: true |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
687 |
labelChannel: namespaceInfoLabelHolder |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
688 |
resizeForLabel: false |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
689 |
adjust: left |
14635
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
690 |
menu: namespaceInfoLabelMenuHolder |
9381 | 691 |
) |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
692 |
(LabelSpec |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
693 |
name: 'LanguageLabel' |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
694 |
layout: (LayoutFrame -136 1.0 0 0.0 -65 1.0 0 1.0) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
695 |
activeHelpKey: languageSelection |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
696 |
uuid: '7bc14bc5-940a-11e9-8e2a-606720e43e2c' |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
697 |
level: -1 |
15816
64d953f953a1
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15737
diff
changeset
|
698 |
translateLabel: true |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
699 |
labelChannel: languageInfoLabelHolder |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
700 |
resizeForLabel: false |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
701 |
adjust: left |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
702 |
menu: languageInfoLabelMenu |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
703 |
) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
704 |
(LabelSpec |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
705 |
name: 'ModeLabel' |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
706 |
layout: (LayoutFrame -65 1 0 0.0 -50 1 0 1.0) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
707 |
activeHelpKey: modeLabel |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
708 |
uuid: '7bc14bc6-940a-11e9-8e2a-606720e43e2c' |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
709 |
level: -1 |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
710 |
translateLabel: true |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
711 |
labelChannel: modeLabelHolder |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
712 |
postBuildCallback: postBuildEditModeInfoLabel: |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
713 |
) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
714 |
(LabelSpec |
15816
64d953f953a1
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15737
diff
changeset
|
715 |
name: 'CursorLineAndColLabel' |
64d953f953a1
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15737
diff
changeset
|
716 |
layout: (LayoutFrame -50 1 0 0.0 0 1 0 1.0) |
64d953f953a1
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15737
diff
changeset
|
717 |
activeHelpKey: lineAndColumnLabel |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
718 |
uuid: '7bc14bc7-940a-11e9-8e2a-606720e43e2c' |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
719 |
level: -1 |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
720 |
translateLabel: true |
15817
f6046130309e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15816
diff
changeset
|
721 |
labelChannel: cursorLineAndColumnLabelHolder |
15816
64d953f953a1
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15737
diff
changeset
|
722 |
adjust: left |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
723 |
) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
724 |
) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
725 |
|
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
726 |
) |
9381 | 727 |
) |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
728 |
) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
729 |
|
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
730 |
) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
731 |
) |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
732 |
|
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
733 |
"Modified: / 21-06-2019 / 11:26:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
7931 | 734 |
! ! |
735 |
||
3154 | 736 |
!WorkspaceApplication class methodsFor:'menu specs'! |
737 |
||
10169 | 738 |
bufferAddMenuSlice |
739 |
"This resource specification was automatically generated |
|
740 |
by the MenuEditor of ST/X." |
|
741 |
||
742 |
"Do not manually edit this!! If it is corrupted, |
|
743 |
the MenuEditor may not be able to read the specification." |
|
744 |
||
13852 | 745 |
|
10169 | 746 |
" |
747 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#bufferAddMenuSlice |
|
748 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication bufferAddMenuSlice)) startUp |
|
749 |
" |
|
750 |
||
751 |
<resource: #menu> |
|
752 |
||
13852 | 753 |
^ |
10169 | 754 |
#(Menu |
13852 | 755 |
( |
756 |
(MenuItem |
|
757 |
label: 'Terminal' |
|
758 |
itemValue: addTerminal |
|
759 |
translateLabel: true |
|
760 |
) |
|
761 |
(MenuItem |
|
762 |
label: 'Web Browser' |
|
763 |
itemValue: addWebBrowser |
|
764 |
translateLabel: true |
|
765 |
isVisible: isWebBrowserAvailable |
|
766 |
) |
|
767 |
(MenuItem |
|
768 |
enabled: isSQLWorkspaceAvailable |
|
769 |
label: 'SQL Workspace' |
|
770 |
itemValue: addSQLWorkspace |
|
771 |
translateLabel: true |
|
772 |
) |
|
773 |
(MenuItem |
|
774 |
label: 'Tea Timer' |
|
775 |
itemValue: addTeaTimer |
|
776 |
translateLabel: true |
|
777 |
) |
|
778 |
(MenuItem |
|
12032
37dea732aec1
changed: #bufferAddMenuSlice
Claus Gittinger <cg@exept.de>
parents:
12028
diff
changeset
|
779 |
label: 'Stopwatch' |
13852 | 780 |
itemValue: addStopWatch |
781 |
translateLabel: true |
|
782 |
) |
|
783 |
) |
|
784 |
nil |
|
785 |
nil |
|
10169 | 786 |
) |
787 |
! |
|
788 |
||
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
789 |
bufferMenu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
790 |
"This resource specification was automatically generated |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
791 |
by the MenuEditor of ST/X." |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
792 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
793 |
"Do not manually edit this!! If it is corrupted, |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
794 |
the MenuEditor may not be able to read the specification." |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
795 |
|
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
796 |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
797 |
" |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
798 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#bufferMenu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
799 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication bufferMenu)) startUp |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
800 |
" |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
801 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
802 |
<resource: #menu> |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
803 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
804 |
^ |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
805 |
#(Menu ( |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
806 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
807 |
label: 'Add Buffer' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
808 |
itemValue: addWorkspace |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
809 |
isVisible: true |
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
810 |
shortcutKey: AddTab |
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
811 |
) |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
812 |
(MenuItem |
8111 | 813 |
label: '-' |
814 |
isVisible: thisIsASmalltalkWorkspace |
|
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
815 |
) |
8111 | 816 |
(MenuItem |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
817 |
label: 'Add Buffer on MyWorkspace' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
818 |
itemValue: addMyWorkspace |
7866 | 819 |
isVisible: thisIsASmalltalkWorkspace |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
820 |
) |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
821 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
822 |
enabled: anyWorkspaceVariableIsDefined |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
823 |
label: 'Add Buffer on Workspace Variables' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
824 |
itemValue: addWorkspaceVariableInspector |
7866 | 825 |
isVisible: thisIsASmalltalkWorkspace |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
826 |
) |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
827 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
828 |
label: 'Add Buffer on Global Variables' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
829 |
itemValue: addGlobalVariableInspector |
7866 | 830 |
isVisible: thisIsASmalltalkWorkspace |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
831 |
) |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
832 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
833 |
label: 'Add Buffer on Namespace...' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
834 |
itemValue: addNamespaceInspector |
7866 | 835 |
isVisible: thisIsASmalltalkWorkspace |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
836 |
) |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
837 |
(MenuItem |
7944
3d185d0ca8e9
sharedPool inspection support
Claus Gittinger <cg@exept.de>
parents:
7931
diff
changeset
|
838 |
label: 'Add Buffer on SharedPool...' |
3d185d0ca8e9
sharedPool inspection support
Claus Gittinger <cg@exept.de>
parents:
7931
diff
changeset
|
839 |
itemValue: addSharedPoolInspector |
3d185d0ca8e9
sharedPool inspection support
Claus Gittinger <cg@exept.de>
parents:
7931
diff
changeset
|
840 |
isVisible: thisIsASmalltalkWorkspace |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
841 |
) |
7944
3d185d0ca8e9
sharedPool inspection support
Claus Gittinger <cg@exept.de>
parents:
7931
diff
changeset
|
842 |
(MenuItem |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
843 |
label: 'Add Buffer on Class Variables' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
844 |
itemValue: addClassVariableInspector |
7866 | 845 |
isVisible: thisIsASmalltalkWorkspace |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
846 |
) |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
847 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
848 |
label: '-' |
7866 | 849 |
isVisible: thisIsASmalltalkWorkspace |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
850 |
) |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
851 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
852 |
label: 'Add Evaluation Buffer' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
853 |
itemValue: addEvaluationWorkspace |
7866 | 854 |
isVisible: thisIsASmalltalkWorkspace |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
855 |
) |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
856 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
857 |
label: '-' |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
858 |
isVisible: true |
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
859 |
) |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
860 |
(MenuItem |
10169 | 861 |
label: 'Menu Slice' |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
862 |
isVisible: true |
10169 | 863 |
submenuChannel: bufferAddMenuSlice |
864 |
isMenuSlice: true |
|
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
865 |
) |
8111 | 866 |
(MenuItem |
867 |
label: '-' |
|
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
868 |
isVisible: true |
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
869 |
) |
8111 | 870 |
(MenuItem |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
871 |
label: 'Rename...' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
872 |
itemValue: renameWorkspace |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
873 |
isVisible: true |
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
874 |
) |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
875 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
876 |
label: '-' |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
877 |
isVisible: true |
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
878 |
) |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
879 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
880 |
enabled: canRemoveWorkspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
881 |
label: 'Remove Buffer' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
882 |
itemValue: removeWorkspace |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
883 |
isVisible: true |
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
884 |
shortcutKey: CloseTab |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
885 |
) |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
886 |
) nil |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
887 |
nil |
19629
8cdd7e139669
Use `#AddTab` and `#CloseTab` shortcuts for adding/removing tabs
Jan Vrany <jan.vrany@labware.com>
parents:
19594
diff
changeset
|
888 |
) |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
889 |
! |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
890 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
891 |
editMenu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
892 |
"This resource specification was automatically generated |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
893 |
by the MenuEditor of ST/X." |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
894 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
895 |
"Do not manually edit this!! If it is corrupted, |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
896 |
the MenuEditor may not be able to read the specification." |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
897 |
|
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
898 |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
899 |
" |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
900 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#editMenu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
901 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication editMenu)) startUp |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
902 |
" |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
903 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
904 |
<resource: #menu> |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
905 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
906 |
^ |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
907 |
#(Menu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
908 |
( |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
909 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
910 |
enabled: hasSelectionInActiveWorkspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
911 |
label: 'Cut' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
912 |
itemValue: cutSelection |
17390
ce68ee978f93
WorkspaceApplication: Show shortcuts in edit menu
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17219
diff
changeset
|
913 |
shortcutKey: Cut |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
914 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
915 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
916 |
enabled: hasSelectionInActiveWorkspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
917 |
label: 'Copy' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
918 |
itemValue: copySelection |
17390
ce68ee978f93
WorkspaceApplication: Show shortcuts in edit menu
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17219
diff
changeset
|
919 |
shortcutKey: Copy |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
920 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
921 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
922 |
label: 'Paste' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
923 |
itemValue: paste |
17390
ce68ee978f93
WorkspaceApplication: Show shortcuts in edit menu
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17219
diff
changeset
|
924 |
shortcutKey: Paste |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
925 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
926 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
927 |
enabled: hasHistory |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
928 |
label: 'Paste Last' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
929 |
itemValue: pasteLastDoIt |
8492 | 930 |
isVisible: thisIsASmalltalkWorkspace |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
931 |
submenuChannel: pasteRecentDoItMenu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
932 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
933 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
934 |
label: '-' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
935 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
936 |
(MenuItem |
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
937 |
enabled: hasSelectionInActiveWorkspace |
13500 | 938 |
label: 'Copy as Snippet...' |
14830
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
939 |
itemValue: addSelectionToSnippets |
7931 | 940 |
) |
941 |
(MenuItem |
|
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
942 |
enabled: selectedWorkspaceIsTextView |
13500 | 943 |
label: 'Paste Snippet...' |
14830
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
944 |
itemValue: pasteSnippet |
7931 | 945 |
) |
946 |
(MenuItem |
|
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
947 |
enabled: selectedWorkspaceIsTextView |
13500 | 948 |
label: 'Manage Snippets...' |
14830
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
949 |
itemValue: manageSnippets |
7931 | 950 |
) |
951 |
(MenuItem |
|
952 |
label: '-' |
|
953 |
) |
|
954 |
(MenuItem |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
955 |
label: 'Select All' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
956 |
itemValue: selectAll |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
957 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
958 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
959 |
label: '-' |
8134
e2d9bc2a289e
smalltalk functions only in smalltalks workspace
Claus Gittinger <cg@exept.de>
parents:
8133
diff
changeset
|
960 |
isVisible: thisIsASmalltalkWorkspace |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
961 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
962 |
(MenuItem |
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
963 |
enabled: selectedWorkspaceIsTextView |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
964 |
label: 'Filter Text...' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
965 |
itemValue: filterText |
8134
e2d9bc2a289e
smalltalk functions only in smalltalks workspace
Claus Gittinger <cg@exept.de>
parents:
8133
diff
changeset
|
966 |
isVisible: thisIsASmalltalkWorkspace |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
967 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
968 |
(MenuItem |
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
969 |
enabled: selectedWorkspaceIsTextView |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
970 |
label: 'Process Text...' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
971 |
itemValue: processText |
8134
e2d9bc2a289e
smalltalk functions only in smalltalks workspace
Claus Gittinger <cg@exept.de>
parents:
8133
diff
changeset
|
972 |
isVisible: thisIsASmalltalkWorkspace |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
973 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
974 |
(MenuItem |
13917
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
975 |
label: 'Generate Text...' |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
976 |
itemValue: generateText |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
977 |
) |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
978 |
(MenuItem |
11496 | 979 |
label: 'Compare Text Against...' |
980 |
itemValue: compareTextAgainst |
|
981 |
) |
|
982 |
(MenuItem |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
983 |
label: '-' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
984 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
985 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
986 |
label: 'Services' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
987 |
submenu: |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
988 |
(Menu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
989 |
( |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
990 |
(MenuItem |
9632 | 991 |
label: 'Autofetch Selection' |
992 |
itemValue: autoFetchSelection: |
|
11627 | 993 |
hideMenuOnActivated: false |
9632 | 994 |
indication: autoFetchSelection |
995 |
) |
|
996 |
(MenuItem |
|
11627 | 997 |
enabled: autoFetchSelection |
998 |
label: 'Insert as Line (Append CR)' |
|
999 |
hideMenuOnActivated: false |
|
9735 | 1000 |
indication: autoFetchSelectionLines |
1001 |
) |
|
1002 |
(MenuItem |
|
9632 | 1003 |
label: '-' |
9635 | 1004 |
isVisible: thisIsASmalltalkWorkspace |
9632 | 1005 |
) |
1006 |
(MenuItem |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1007 |
enabled: hasSelectionInActiveWorkspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1008 |
label: 'Google Spell' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1009 |
itemValue: googleSpellingSuggestion |
7876 | 1010 |
isVisible: thisIsASmalltalkWorkspace |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1011 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1012 |
(MenuItem |
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
1013 |
enabled: hasSelectionInActiveWorkspace |
9632 | 1014 |
label: 'Translate (babelFish)' |
7876 | 1015 |
isVisible: thisIsASmalltalkWorkspace |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1016 |
submenu: |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1017 |
(Menu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1018 |
( |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1019 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1020 |
enabled: hasSelectionInActiveWorkspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1021 |
label: 'English -> German' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1022 |
itemValue: babelFishTranslate: |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1023 |
argument: 'en_de' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1024 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1025 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1026 |
enabled: hasSelectionInActiveWorkspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1027 |
label: 'English -> French' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1028 |
itemValue: babelFishTranslate: |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1029 |
argument: 'en_fr' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1030 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1031 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1032 |
enabled: hasSelectionInActiveWorkspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1033 |
label: 'English -> Spanish' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1034 |
itemValue: babelFishTranslate: |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1035 |
argument: 'en_es' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1036 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1037 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1038 |
enabled: hasSelectionInActiveWorkspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1039 |
label: 'English -> Portuguese' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1040 |
itemValue: babelFishTranslate: |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1041 |
argument: 'en_pt' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1042 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1043 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1044 |
label: '-' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1045 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1046 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1047 |
enabled: hasSelectionInActiveWorkspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1048 |
label: 'German -> English' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1049 |
itemValue: babelFishTranslate: |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1050 |
argument: 'de_en' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1051 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1052 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1053 |
enabled: hasSelectionInActiveWorkspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1054 |
label: 'French -> English' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1055 |
itemValue: babelFishTranslate: |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1056 |
argument: 'fr_en' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1057 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1058 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1059 |
enabled: hasSelectionInActiveWorkspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1060 |
label: 'Spanish -> English' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1061 |
itemValue: babelFishTranslate: |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1062 |
argument: 'es_en' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1063 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1064 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1065 |
enabled: hasSelectionInActiveWorkspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1066 |
label: 'Portuguese -> English' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1067 |
itemValue: babelFishTranslate: |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1068 |
argument: 'pt_en' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1069 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1070 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1071 |
enabled: hasSelectionInActiveWorkspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1072 |
label: 'Russian -> English' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1073 |
itemValue: babelFishTranslate: |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1074 |
argument: 'ru_en' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1075 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1076 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1077 |
nil |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1078 |
nil |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1079 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1080 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1081 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1082 |
nil |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1083 |
nil |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1084 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1085 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1086 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1087 |
nil |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1088 |
nil |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1089 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1090 |
! |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1091 |
|
9695 | 1092 |
editModeInfoLabelMenu |
1093 |
"This resource specification was automatically generated |
|
1094 |
by the MenuEditor of ST/X." |
|
1095 |
||
1096 |
"Do not manually edit this!! If it is corrupted, |
|
1097 |
the MenuEditor may not be able to read the specification." |
|
1098 |
||
1099 |
" |
|
1100 |
MenuEditor new openOnClass:Tools::NewSystemBrowser andSelector:#editModeInfoLabelMenu |
|
1101 |
(Menu new fromLiteralArrayEncoding:(Tools::NewSystemBrowser editModeInfoLabelMenu)) startUp |
|
1102 |
" |
|
1103 |
||
1104 |
<resource: #menu> |
|
1105 |
||
1106 |
^ |
|
1107 |
#(Menu |
|
1108 |
( |
|
1109 |
(MenuItem |
|
1110 |
label: 'Insert' |
|
1111 |
itemValue: editModeInsert |
|
1112 |
translateLabel: true |
|
1113 |
) |
|
1114 |
(MenuItem |
|
1115 |
label: 'Overwrite' |
|
1116 |
itemValue: editModeOverwrite |
|
1117 |
translateLabel: true |
|
1118 |
) |
|
1119 |
(MenuItem |
|
1120 |
label: 'Insert Selecting' |
|
1121 |
itemValue: editModeInsertAndSelect |
|
1122 |
translateLabel: true |
|
1123 |
) |
|
1124 |
) |
|
1125 |
nil |
|
1126 |
nil |
|
1127 |
) |
|
1128 |
||
1129 |
"Created: / 22-01-2011 / 11:50:05 / cg" |
|
1130 |
! |
|
1131 |
||
8499 | 1132 |
editToolBarMenu |
1133 |
"This resource specification was automatically generated |
|
1134 |
by the MenuEditor of ST/X." |
|
1135 |
||
1136 |
"Do not manually edit this!! If it is corrupted, |
|
1137 |
the MenuEditor may not be able to read the specification." |
|
1138 |
||
1139 |
" |
|
1140 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#editToolBarMenu |
|
1141 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication editToolBarMenu)) startUp |
|
1142 |
" |
|
1143 |
||
1144 |
<resource: #menu> |
|
1145 |
||
1146 |
^ |
|
1147 |
#(Menu |
|
1148 |
( |
|
1149 |
(MenuItem |
|
8506 | 1150 |
activeHelpKey: editCut |
8499 | 1151 |
label: 'Cut' |
1152 |
itemValue: cutSelection |
|
1153 |
translateLabel: true |
|
8508 | 1154 |
labelImage: (ResourceRetriever ToolbarIconLibrary cut16x16Icon) |
8499 | 1155 |
isButton: true |
1156 |
) |
|
1157 |
(MenuItem |
|
8506 | 1158 |
activeHelpKey: editCopy |
8499 | 1159 |
label: 'Copy' |
1160 |
itemValue: copySelection |
|
1161 |
translateLabel: true |
|
1162 |
labelImage: (ResourceRetriever ToolbarIconLibrary copy16x16Icon) |
|
1163 |
isButton: true |
|
1164 |
) |
|
1165 |
(MenuItem |
|
8506 | 1166 |
activeHelpKey: editPaste |
8499 | 1167 |
label: 'Paste' |
1168 |
itemValue: paste |
|
1169 |
translateLabel: true |
|
1170 |
labelImage: (ResourceRetriever ToolbarIconLibrary paste16x16Icon) |
|
1171 |
isButton: true |
|
1172 |
) |
|
1173 |
(MenuItem |
|
1174 |
label: '-' |
|
1175 |
) |
|
1176 |
(MenuItem |
|
8508 | 1177 |
activeHelpKey: editUndo |
1178 |
label: 'Undo' |
|
1179 |
itemValue: undo |
|
1180 |
translateLabel: true |
|
1181 |
labelImage: (ResourceRetriever ToolbarIconLibrary undo16x16Icon) |
|
1182 |
isButton: true |
|
1183 |
) |
|
1184 |
(MenuItem |
|
1185 |
activeHelpKey: editRedo |
|
1186 |
label: 'Redo' |
|
1187 |
itemValue: redo |
|
1188 |
translateLabel: true |
|
1189 |
labelImage: (ResourceRetriever ToolbarIconLibrary redo16x16Icon) |
|
1190 |
isButton: true |
|
1191 |
) |
|
1192 |
(MenuItem |
|
1193 |
label: '-' |
|
1194 |
) |
|
1195 |
(MenuItem |
|
8506 | 1196 |
activeHelpKey: editSearch |
8499 | 1197 |
label: 'Search' |
1198 |
itemValue: search |
|
1199 |
translateLabel: true |
|
1200 |
labelImage: (ResourceRetriever ToolbarIconLibrary search16x16Icon) |
|
1201 |
isButton: true |
|
1202 |
) |
|
1203 |
(MenuItem |
|
1204 |
label: '-' |
|
1205 |
) |
|
1206 |
(MenuItem |
|
8508 | 1207 |
activeHelpKey: doUndent |
1208 |
label: 'Undent' |
|
1209 |
itemValue: undent |
|
1210 |
translateLabel: true |
|
1211 |
isButton: true |
|
1212 |
labelImage: (ResourceRetriever ToolbarIconLibrary undent16x16Icon) |
|
1213 |
) |
|
1214 |
(MenuItem |
|
8506 | 1215 |
activeHelpKey: doIndent |
8499 | 1216 |
label: 'Indent' |
1217 |
itemValue: indent |
|
1218 |
translateLabel: true |
|
1219 |
isButton: true |
|
1220 |
labelImage: (ResourceRetriever ToolbarIconLibrary indent16x16Icon) |
|
1221 |
) |
|
1222 |
) |
|
1223 |
nil |
|
1224 |
nil |
|
1225 |
) |
|
1226 |
! |
|
1227 |
||
8342 | 1228 |
executionMenu |
1229 |
"This resource specification was automatically generated |
|
1230 |
by the MenuEditor of ST/X." |
|
1231 |
||
1232 |
"Do not manually edit this!! If it is corrupted, |
|
1233 |
the MenuEditor may not be able to read the specification." |
|
1234 |
||
11483
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
1235 |
|
8342 | 1236 |
" |
8492 | 1237 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#executionMenu |
1238 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication executionMenu)) startUp |
|
8342 | 1239 |
" |
1240 |
||
1241 |
<resource: #menu> |
|
1242 |
||
1243 |
^ |
|
1244 |
#(Menu |
|
1245 |
( |
|
1246 |
(MenuItem |
|
1247 |
enabled: hasHistory |
|
1248 |
label: 'Redo Last' |
|
1249 |
itemValue: redoLastDoIt |
|
1250 |
submenuChannel: redoRecentDoItMenu |
|
1251 |
) |
|
1252 |
(MenuItem |
|
1253 |
label: '-' |
|
1254 |
) |
|
1255 |
(MenuItem |
|
1256 |
enabled: hasSelectionInActiveWorkspace |
|
1257 |
label: 'DoIt' |
|
1258 |
itemValue: doIt |
|
1259 |
) |
|
1260 |
(MenuItem |
|
17199 | 1261 |
enabled: hasSelectionInActiveWorkspaceAndEditorIsNotReadonly |
8342 | 1262 |
label: 'PrintIt' |
1263 |
itemValue: printIt |
|
1264 |
) |
|
1265 |
(MenuItem |
|
1266 |
enabled: hasSelectionInActiveWorkspace |
|
1267 |
label: 'InspectIt' |
|
1268 |
itemValue: inspectIt |
|
1269 |
) |
|
1270 |
(MenuItem |
|
1271 |
label: '-' |
|
1272 |
) |
|
1273 |
(MenuItem |
|
1274 |
enabled: hasSelectionInActiveWorkspace |
|
11483
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
1275 |
label: 'TimeIt' |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
1276 |
itemValue: timeIt |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
1277 |
) |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
1278 |
(MenuItem |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
1279 |
enabled: hasSelectionInActiveWorkspace |
12028 | 1280 |
label: 'SpyOnIt (Transcript)' |
11483
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
1281 |
itemValue: spyOnIt |
12028 | 1282 |
) |
1283 |
(MenuItem |
|
1284 |
enabled: hasSelectionInActiveWorkspace |
|
1285 |
label: 'ProfileIt (Visual)' |
|
1286 |
itemValue: profileIt |
|
11483
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
1287 |
) |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
1288 |
(MenuItem |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
1289 |
label: '-' |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
1290 |
) |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
1291 |
(MenuItem |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
1292 |
enabled: hasSelectionInActiveWorkspace |
8342 | 1293 |
label: 'Browse Class' |
1294 |
itemValue: browseIt |
|
1295 |
) |
|
1296 |
(MenuItem |
|
1297 |
enabled: hasSelectionInActiveWorkspace |
|
1298 |
label: 'Browse Implementors of It' |
|
1299 |
itemValue: browseImplementorsOfIt |
|
1300 |
) |
|
1301 |
(MenuItem |
|
1302 |
enabled: hasSelectionInActiveWorkspace |
|
1303 |
label: 'Browse References to It' |
|
1304 |
itemValue: browseReferencesToIt |
|
1305 |
) |
|
1306 |
) |
|
1307 |
nil |
|
1308 |
nil |
|
1309 |
) |
|
1310 |
! |
|
1311 |
||
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1312 |
fileMenu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1313 |
"This resource specification was automatically generated |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1314 |
by the MenuEditor of ST/X." |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1315 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1316 |
"Do not manually edit this!! If it is corrupted, |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1317 |
the MenuEditor may not be able to read the specification." |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1318 |
|
13852 | 1319 |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1320 |
" |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1321 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#fileMenu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1322 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication fileMenu)) startUp |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1323 |
" |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1324 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1325 |
<resource: #menu> |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1326 |
|
13852 | 1327 |
^ |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1328 |
#(Menu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1329 |
( |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1330 |
(MenuItem |
13852 | 1331 |
label: 'Connect...' |
1332 |
itemValue: menuSQLConnect |
|
1333 |
translateLabel: true |
|
1334 |
isVisible: isSQLWorkspaceSelected |
|
1335 |
) |
|
1336 |
(MenuItem |
|
1337 |
label: '-' |
|
1338 |
isVisible: isSQLWorkspaceSelected |
|
1339 |
) |
|
1340 |
(MenuItem |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1341 |
label: 'New Workspace' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1342 |
itemValue: newWorkspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1343 |
translateLabel: true |
10169 | 1344 |
shortcutKey: Ctrln |
1345 |
) |
|
1346 |
(MenuItem |
|
1347 |
label: 'New Tab' |
|
1348 |
itemValue: addWorkspace |
|
1349 |
translateLabel: true |
|
1350 |
isVisible: false |
|
1351 |
shortcutKey: Ctrlt |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1352 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1353 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1354 |
label: 'New SystemWorkspace' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1355 |
itemValue: newSystemWorkspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1356 |
translateLabel: true |
7866 | 1357 |
isVisible: thisIsASmalltalkWorkspace |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1358 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1359 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1360 |
label: 'New EvaluationWorkspace' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1361 |
itemValue: newEvaluationWorkspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1362 |
translateLabel: true |
7866 | 1363 |
isVisible: thisIsASmalltalkWorkspace |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1364 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1365 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1366 |
label: '-' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1367 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1368 |
(MenuItem |
13852 | 1369 |
label: 'Open File...' |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1370 |
itemValue: menuLoad |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1371 |
translateLabel: true |
10169 | 1372 |
shortcutKey: Ctrlo |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1373 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1374 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1375 |
label: '-' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1376 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1377 |
(MenuItem |
10169 | 1378 |
label: 'Save' |
1379 |
itemValue: menuSave |
|
1380 |
translateLabel: true |
|
1381 |
shortcutKey: Ctrls |
|
1382 |
) |
|
1383 |
(MenuItem |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1384 |
label: 'Save As...' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1385 |
itemValue: menuSaveAs |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1386 |
translateLabel: true |
10169 | 1387 |
shortcutKey: SaveAs |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1388 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1389 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1390 |
enabled: hasMultipleBuffersHolder |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1391 |
label: 'Save all As...' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1392 |
itemValue: menuSaveAllAs |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1393 |
translateLabel: true |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1394 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1395 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1396 |
label: '-' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1397 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1398 |
(MenuItem |
8529
8d2391313df2
disable print item, if there is nothing to print
Claus Gittinger <cg@exept.de>
parents:
8508
diff
changeset
|
1399 |
enabled: hasTextInActiveWorkspace |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1400 |
label: 'Print...' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1401 |
itemValue: menuPrint |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1402 |
translateLabel: true |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1403 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1404 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1405 |
label: '-' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1406 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1407 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1408 |
label: 'Exit' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1409 |
itemValue: closeRequest |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1410 |
translateLabel: true |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1411 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1412 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1413 |
nil |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1414 |
nil |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1415 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1416 |
! |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1417 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1418 |
helpMenu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1419 |
"This resource specification was automatically generated |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1420 |
by the MenuEditor of ST/X." |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1421 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1422 |
"Do not manually edit this!! If it is corrupted, |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1423 |
the MenuEditor may not be able to read the specification." |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1424 |
|
13581
75759c16ab7f
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13500
diff
changeset
|
1425 |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1426 |
" |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1427 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#helpMenu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1428 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication helpMenu)) startUp |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1429 |
" |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1430 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1431 |
<resource: #menu> |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1432 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1433 |
^ |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1434 |
#(Menu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1435 |
( |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1436 |
(MenuItem |
15384
196b596fa7e3
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15294
diff
changeset
|
1437 |
label: 'Workspace Documentation' |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1438 |
itemValue: openDocumentation |
13581
75759c16ab7f
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13500
diff
changeset
|
1439 |
) |
75759c16ab7f
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13500
diff
changeset
|
1440 |
(MenuItem |
75759c16ab7f
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13500
diff
changeset
|
1441 |
label: 'Editing Text' |
75759c16ab7f
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13500
diff
changeset
|
1442 |
itemValue: openEditingDocumentation |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1443 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1444 |
(MenuItem |
8315 | 1445 |
label: 'Documentation on Smalltalk/X' |
1446 |
itemValue: openSTXDocumentation |
|
1447 |
) |
|
1448 |
(MenuItem |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1449 |
label: '-' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1450 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1451 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1452 |
label: 'About this Application...' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1453 |
itemValue: openAboutThisApplication |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1454 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1455 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1456 |
nil |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1457 |
nil |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1458 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1459 |
! |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1460 |
|
9676 | 1461 |
languageInfoLabelMenu |
1462 |
"This resource specification was automatically generated |
|
1463 |
by the MenuEditor of ST/X." |
|
1464 |
||
1465 |
"Do not manually edit this!! If it is corrupted, |
|
1466 |
the MenuEditor may not be able to read the specification." |
|
1467 |
||
1468 |
" |
|
1469 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#workspaceMenu |
|
1470 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication workspaceMenu)) startUp |
|
1471 |
" |
|
1472 |
||
1473 |
<resource: #menu> |
|
1474 |
||
1475 |
^ |
|
1476 |
#(Menu |
|
1477 |
( |
|
1478 |
(MenuItem |
|
1479 |
label: 'Language List Slice' |
|
1480 |
translateLabel: true |
|
1481 |
submenuChannel: languageListMenuSlice |
|
1482 |
isMenuSlice: true |
|
1483 |
) |
|
1484 |
) |
|
1485 |
nil |
|
1486 |
nil |
|
1487 |
) |
|
1488 |
||
1489 |
"Created: / 24-12-2010 / 02:03:59 / cg" |
|
1490 |
! |
|
1491 |
||
3154 | 1492 |
mainMenu |
1493 |
"This resource specification was automatically generated |
|
1494 |
by the MenuEditor of ST/X." |
|
1495 |
||
1496 |
"Do not manually edit this!! If it is corrupted, |
|
1497 |
the MenuEditor may not be able to read the specification." |
|
1498 |
||
13413
1e726d57eeca
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12942
diff
changeset
|
1499 |
|
3154 | 1500 |
" |
1501 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#mainMenu |
|
1502 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication mainMenu)) startUp |
|
1503 |
" |
|
1504 |
||
1505 |
<resource: #menu> |
|
1506 |
||
1507 |
^ |
|
5852 | 1508 |
#(Menu |
1509 |
( |
|
1510 |
(MenuItem |
|
1511 |
label: 'File' |
|
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
1512 |
isVisible: true |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1513 |
submenuChannel: fileMenu |
3154 | 1514 |
) |
5852 | 1515 |
(MenuItem |
8147 | 1516 |
label: 'Buffers' |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
1517 |
isVisible: true |
8147 | 1518 |
submenuChannel: bufferMenu |
1519 |
) |
|
1520 |
(MenuItem |
|
8146 | 1521 |
label: 'Edit' |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
1522 |
isVisible: true |
8146 | 1523 |
submenuChannel: editMenu |
1524 |
) |
|
1525 |
(MenuItem |
|
7651 | 1526 |
label: 'View' |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
1527 |
isVisible: true |
7651 | 1528 |
submenuChannel: viewMenu |
1529 |
) |
|
1530 |
(MenuItem |
|
10169 | 1531 |
label: 'Bookmarks' |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
1532 |
isVisible: true |
10169 | 1533 |
submenuChannel: bookmarkMenu |
1534 |
) |
|
1535 |
(MenuItem |
|
8501 | 1536 |
label: 'Execute' |
10169 | 1537 |
isVisible: executeMenuVisible |
8501 | 1538 |
submenuChannel: executionMenu |
1539 |
) |
|
1540 |
(MenuItem |
|
5852 | 1541 |
label: 'Workspace' |
8501 | 1542 |
isVisible: thisIsASmalltalkWorkspace |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1543 |
submenuChannel: workspaceMenu |
3722 | 1544 |
) |
5852 | 1545 |
(MenuItem |
9300
07364a10a823
syntax to choose from is fetched via ProgramminLanguage list;
Claus Gittinger <cg@exept.de>
parents:
9166
diff
changeset
|
1546 |
enabled: smalltalkMenuEnabledHolder |
5852 | 1547 |
label: 'Smalltalk' |
8501 | 1548 |
isVisible: thisIsASmalltalkWorkspace |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1549 |
submenuChannel: smalltalkMenu |
3154 | 1550 |
) |
5852 | 1551 |
(MenuItem |
7461
605ae97c85db
support '?' as help (for now: controlled by resources)
Claus Gittinger <cg@exept.de>
parents:
7441
diff
changeset
|
1552 |
label: 'MENU_Help' |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
1553 |
isVisible: true |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1554 |
submenuChannel: helpMenu |
3154 | 1555 |
) |
1556 |
) |
|
1557 |
nil |
|
1558 |
nil |
|
1559 |
) |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1560 |
! |
7831 | 1561 |
|
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1562 |
manageSnippetDialogMenuSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1563 |
"This resource specification was automatically generated |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1564 |
by the MenuEditor of ST/X." |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1565 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1566 |
"Do not manually edit this!! If it is corrupted, |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1567 |
the MenuEditor may not be able to read the specification." |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1568 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1569 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1570 |
" |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1571 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#manageSnippetDialogMenuSpec |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1572 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication manageSnippetDialogMenuSpec)) startUp |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1573 |
" |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1574 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1575 |
<resource: #menu> |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1576 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1577 |
^ |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1578 |
#(Menu |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1579 |
( |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1580 |
(MenuItem |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1581 |
label: 'File' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1582 |
submenu: |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1583 |
(Menu |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1584 |
( |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1585 |
(MenuItem |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1586 |
label: 'Open Snippet File...' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1587 |
itemValue: menuOpenSnippetFile |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1588 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1589 |
(MenuItem |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1590 |
label: '-' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1591 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1592 |
(MenuItem |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1593 |
label: 'Save As Snipped File...' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1594 |
itemValue: menuSaveSnippetFileAs |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1595 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1596 |
(MenuItem |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1597 |
label: '-' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1598 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1599 |
(MenuItem |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1600 |
label: 'Close' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1601 |
itemValue: closeSnippetDialog |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1602 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1603 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1604 |
nil |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1605 |
nil |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1606 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1607 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1608 |
(MenuItem |
15392
5d9d4650b23f
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15384
diff
changeset
|
1609 |
label: 'MENU_Help' |
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1610 |
startGroup: conditionalRight |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1611 |
submenu: |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1612 |
(Menu |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1613 |
( |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1614 |
(MenuItem |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1615 |
label: 'Documentation' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1616 |
itemValue: openSnippetDocumentation |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1617 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1618 |
(MenuItem |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1619 |
label: '-' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1620 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1621 |
(MenuItem |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1622 |
label: 'About this Application...' |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1623 |
itemValue: openAboutThisApplication |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1624 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1625 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1626 |
nil |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1627 |
nil |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1628 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1629 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1630 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1631 |
nil |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1632 |
nil |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1633 |
) |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1634 |
! |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
1635 |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1636 |
smalltalkMenu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1637 |
"This resource specification was automatically generated |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1638 |
by the MenuEditor of ST/X." |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1639 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1640 |
"Do not manually edit this!! If it is corrupted, |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1641 |
the MenuEditor may not be able to read the specification." |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1642 |
|
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
1643 |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1644 |
" |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1645 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#smalltalkMenu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1646 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication smalltalkMenu)) startUp |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1647 |
" |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1648 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1649 |
<resource: #menu> |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1650 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1651 |
^ |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1652 |
#(Menu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1653 |
( |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1654 |
(MenuItem |
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
1655 |
enabled: hasSelectionInActiveWorkspace |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1656 |
label: 'FileIn Text' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1657 |
itemValue: fileInText |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1658 |
translateLabel: true |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1659 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1660 |
(MenuItem |
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
1661 |
enabled: hasSelectionInActiveWorkspace |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1662 |
label: 'ChangeList on Text' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1663 |
itemValue: changesBrowserOnText |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1664 |
translateLabel: true |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1665 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1666 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1667 |
label: '-' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1668 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1669 |
(MenuItem |
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
1670 |
enabled: selectedWorkspaceIsTextView |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1671 |
label: 'Add Global Variable...' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1672 |
itemValue: addGlobalVariable |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1673 |
translateLabel: true |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1674 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1675 |
(MenuItem |
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
1676 |
enabled: selectedWorkspaceIsTextView |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1677 |
label: 'Remove Global Variable...' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1678 |
itemValue: removeGlobalVariable |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1679 |
translateLabel: true |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1680 |
) |
8342 | 1681 |
(MenuItem |
1682 |
label: '-' |
|
1683 |
) |
|
1684 |
(MenuItem |
|
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
1685 |
enabled: selectedWorkspaceIsTextView |
8342 | 1686 |
label: 'Add SharedPool...' |
1687 |
itemValue: addSharedPool |
|
1688 |
translateLabel: true |
|
1689 |
) |
|
1690 |
(MenuItem |
|
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
1691 |
enabled: selectedWorkspaceIsTextView |
8342 | 1692 |
label: 'Remove SharedPool...' |
1693 |
itemValue: removeSharedPool |
|
1694 |
translateLabel: true |
|
1695 |
) |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1696 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1697 |
nil |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1698 |
nil |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1699 |
) |
7658 | 1700 |
! |
1701 |
||
1702 |
toolBarMenu |
|
1703 |
"This resource specification was automatically generated |
|
1704 |
by the MenuEditor of ST/X." |
|
1705 |
||
1706 |
"Do not manually edit this!! If it is corrupted, |
|
1707 |
the MenuEditor may not be able to read the specification." |
|
1708 |
||
14060
fef6bc962708
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13949
diff
changeset
|
1709 |
|
7658 | 1710 |
" |
1711 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#toolBarMenu |
|
1712 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication toolBarMenu)) startUp |
|
1713 |
" |
|
1714 |
||
1715 |
<resource: #menu> |
|
1716 |
||
1717 |
^ |
|
1718 |
#(Menu |
|
1719 |
( |
|
1720 |
(MenuItem |
|
1721 |
label: '' |
|
1722 |
) |
|
1723 |
(MenuItem |
|
1724 |
label: 'Add Buffer' |
|
1725 |
itemValue: addWorkspace |
|
1726 |
isButton: true |
|
1727 |
labelImage: (ResourceRetriever ToolbarIconLibrary addBufferIcon) |
|
1728 |
) |
|
1729 |
(MenuItem |
|
1730 |
label: '-' |
|
1731 |
) |
|
1732 |
(MenuItem |
|
10169 | 1733 |
activeHelpKey: menuSaveOrSaveAs |
1734 |
label: 'Save Text' |
|
1735 |
itemValue: menuSave |
|
7658 | 1736 |
isButton: true |
11612 | 1737 |
labelImage: (ResourceRetriever ToolbarIconLibrary saveToFileIcon) |
7658 | 1738 |
) |
1739 |
(MenuItem |
|
8226 | 1740 |
label: '-' |
13728
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
1741 |
isVisible: doItMenuButtonVisible |
7658 | 1742 |
) |
1743 |
(MenuItem |
|
10169 | 1744 |
activeHelpKey: #'help_doIt' |
7658 | 1745 |
label: 'DoIt' |
1746 |
itemValue: doIt |
|
7789 | 1747 |
isButton: true |
13728
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
1748 |
isVisible: doItMenuButtonVisible |
8226 | 1749 |
labelImage: (ResourceRetriever ToolbarIconLibrary doItIcon) |
1750 |
) |
|
1751 |
(MenuItem |
|
10169 | 1752 |
activeHelpKey: #'help_printIt' |
8226 | 1753 |
label: 'PrintIt' |
1754 |
itemValue: printIt |
|
1755 |
isButton: true |
|
13728
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
1756 |
isVisible: printItMenuButtonVisible |
8226 | 1757 |
labelImage: (ResourceRetriever ToolbarIconLibrary printItIcon) |
7658 | 1758 |
) |
1759 |
(MenuItem |
|
10169 | 1760 |
activeHelpKey: #'help_inspectIt' |
7658 | 1761 |
label: 'InspectIt' |
1762 |
itemValue: inspectIt |
|
7789 | 1763 |
isButton: true |
13728
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
1764 |
isVisible: inspectItMenuButtonVisible |
8226 | 1765 |
labelImage: (ResourceRetriever ToolbarIconLibrary inspectItIcon) |
1766 |
) |
|
1767 |
(MenuItem |
|
10169 | 1768 |
activeHelpKey: #'help_browseIt' |
8226 | 1769 |
label: 'BrowseIt' |
1770 |
itemValue: browseIt |
|
1771 |
isButton: true |
|
13728
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
1772 |
isVisible: browseItMenuButtonVisible |
8226 | 1773 |
labelImage: (ResourceRetriever ToolbarIconLibrary browseItIcon) |
7658 | 1774 |
) |
10169 | 1775 |
(MenuItem |
14060
fef6bc962708
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13949
diff
changeset
|
1776 |
activeHelpKey: #'help_profileIt' |
fef6bc962708
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13949
diff
changeset
|
1777 |
label: 'ProfileIt' |
fef6bc962708
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13949
diff
changeset
|
1778 |
itemValue: profileIt |
fef6bc962708
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13949
diff
changeset
|
1779 |
isButton: true |
fef6bc962708
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13949
diff
changeset
|
1780 |
isVisible: profileItMenuButtonVisible |
fef6bc962708
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13949
diff
changeset
|
1781 |
labelImage: (ResourceRetriever ToolbarIconLibrary profileItIcon) |
fef6bc962708
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13949
diff
changeset
|
1782 |
) |
fef6bc962708
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13949
diff
changeset
|
1783 |
(MenuItem |
10169 | 1784 |
activeHelpKey: addTerminal |
1785 |
label: 'Web Browser' |
|
1786 |
itemValue: addWebBrowser |
|
1787 |
isButton: true |
|
1788 |
startGroup: right |
|
1789 |
isVisible: isWebBrowserAvailable |
|
1790 |
labelImage: (ResourceRetriever ToolbarIconLibrary webKit22x22) |
|
1791 |
) |
|
1792 |
(MenuItem |
|
1793 |
activeHelpKey: addTerminal |
|
1794 |
label: 'Terminal' |
|
1795 |
itemValue: addTerminal |
|
1796 |
isButton: true |
|
1797 |
startGroup: right |
|
1798 |
labelImage: (ResourceRetriever ToolbarIconLibrary shellTerminalIcon) |
|
1799 |
) |
|
7658 | 1800 |
) |
1801 |
nil |
|
1802 |
nil |
|
1803 |
) |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1804 |
! |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1805 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1806 |
workspaceMenu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1807 |
"This resource specification was automatically generated |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1808 |
by the MenuEditor of ST/X." |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1809 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1810 |
"Do not manually edit this!! If it is corrupted, |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1811 |
the MenuEditor may not be able to read the specification." |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1812 |
|
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
1813 |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1814 |
" |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1815 |
MenuEditor new openOnClass:WorkspaceApplication andSelector:#workspaceMenu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1816 |
(Menu new fromLiteralArrayEncoding:(WorkspaceApplication workspaceMenu)) startUp |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1817 |
" |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1818 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1819 |
<resource: #menu> |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1820 |
|
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1821 |
^ |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1822 |
#(Menu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1823 |
( |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1824 |
(MenuItem |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
1825 |
label: 'Language List Slice' |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
1826 |
submenuChannel: languageListMenuSlice |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
1827 |
isMenuSlice: true |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
1828 |
) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
1829 |
(MenuItem |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
1830 |
label: '-' |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
1831 |
) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
1832 |
(MenuItem |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
1833 |
label: 'Namespace for DoIt' |
14635
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
1834 |
submenuChannel: namespaceInfoLabelMenuHolder |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
1835 |
) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
1836 |
(MenuItem |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
1837 |
label: '-' |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
1838 |
) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
1839 |
(MenuItem |
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
1840 |
enabled: selectedWorkspaceIsTextView |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1841 |
label: 'Add Workspace Variable...' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1842 |
itemValue: addWorkspaceVariable |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1843 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1844 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1845 |
enabled: anyWorkspaceVariableIsDefined |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1846 |
label: 'Remove Workspace Variable...' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1847 |
itemValue: removeWorkspaceVariable |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1848 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1849 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1850 |
enabled: anyWorkspaceVariableIsDefined |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1851 |
label: 'Remove all Workspace Variables...' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1852 |
itemValue: removeAllWorkspaceVariables |
10169 | 1853 |
) |
1854 |
(MenuItem |
|
1855 |
label: '-' |
|
1856 |
) |
|
1857 |
(MenuItem |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1858 |
enabled: anyWorkspaceVariableIsDefined |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1859 |
label: 'Inspect Workspace Variables' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1860 |
itemValue: inspectWorkspaceVariables |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1861 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1862 |
(MenuItem |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1863 |
label: '-' |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1864 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1865 |
(MenuItem |
11799 | 1866 |
label: 'Autodefine Variables' |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1867 |
submenu: |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1868 |
(Menu |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1869 |
( |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1870 |
(MenuItem |
11799 | 1871 |
label: 'As Workspace Variable' |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1872 |
hideMenuOnActivated: false |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1873 |
choice: autoDefineVariables |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1874 |
choiceValue: workspace |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1875 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1876 |
(MenuItem |
11799 | 1877 |
label: 'As DoIt Variable' |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1878 |
hideMenuOnActivated: false |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1879 |
choice: autoDefineVariables |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1880 |
choiceValue: doIt |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1881 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1882 |
(MenuItem |
11799 | 1883 |
label: '-' |
1884 |
) |
|
1885 |
(MenuItem |
|
1886 |
label: 'Do not Autodefine' |
|
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1887 |
hideMenuOnActivated: false |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1888 |
choice: autoDefineVariables |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1889 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1890 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1891 |
nil |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1892 |
nil |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1893 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1894 |
) |
13413
1e726d57eeca
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12942
diff
changeset
|
1895 |
(MenuItem |
1e726d57eeca
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12942
diff
changeset
|
1896 |
label: '-' |
1e726d57eeca
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12942
diff
changeset
|
1897 |
) |
1e726d57eeca
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12942
diff
changeset
|
1898 |
(MenuItem |
1e726d57eeca
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12942
diff
changeset
|
1899 |
label: 'Terminate Processes Forked Here' |
1e726d57eeca
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12942
diff
changeset
|
1900 |
itemValue: terminateBackgroundProcesses |
1e726d57eeca
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12942
diff
changeset
|
1901 |
) |
7865
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1902 |
) |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1903 |
nil |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1904 |
nil |
ae5b649724dd
separated submenus into separate specs (for easier customization in subclasses)
Claus Gittinger <cg@exept.de>
parents:
7853
diff
changeset
|
1905 |
) |
3154 | 1906 |
! ! |
1907 |
||
10169 | 1908 |
!WorkspaceApplication class methodsFor:'private'! |
1909 |
||
1910 |
createWorkspaceView |
|
13585
3e4d51ef27a2
Refactoring after moving codeAspect to EditTextView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13581
diff
changeset
|
1911 |
| view | |
3e4d51ef27a2
Refactoring after moving codeAspect to EditTextView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13581
diff
changeset
|
1912 |
|
3e4d51ef27a2
Refactoring after moving codeAspect to EditTextView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13581
diff
changeset
|
1913 |
view := (UserPreferences current useCodeView2In:#Workspace) |
15294
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
1914 |
ifTrue:[Tools::CodeView2 new] |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
1915 |
ifFalse:[HVScrollableView for:Workspace]. |
13585
3e4d51ef27a2
Refactoring after moving codeAspect to EditTextView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13581
diff
changeset
|
1916 |
^ view |
3e4d51ef27a2
Refactoring after moving codeAspect to EditTextView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13581
diff
changeset
|
1917 |
|
3e4d51ef27a2
Refactoring after moving codeAspect to EditTextView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13581
diff
changeset
|
1918 |
"Modified: / 27-09-2013 / 10:23:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10169 | 1919 |
! ! |
1920 |
||
3332 | 1921 |
!WorkspaceApplication class methodsFor:'special startup'! |
1922 |
||
7403
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1923 |
openEvaluationWorkspace |
11728
eb5cf1a80189
comment/format in: #openEvaluationWorkspace
Stefan Vogel <sv@exept.de>
parents:
11725
diff
changeset
|
1924 |
|wsApp needRemove| |
7403
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1925 |
|
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1926 |
needRemove := true. |
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1927 |
|
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1928 |
wsApp := self new. |
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1929 |
wsApp allButOpen. |
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1930 |
wsApp window extent:400@500. |
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1931 |
|
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1932 |
wsApp addEvaluationWorkspace. |
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1933 |
wsApp removeWorkspace:1. |
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1934 |
wsApp renameWorkspace:1 to:'Evaluator'. |
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1935 |
|
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1936 |
wsApp openWindow. |
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1937 |
wsApp selectedWorkspaceIndexHolder value:1. |
7849
e3e01db99dd9
open methods return the just created ws
Claus Gittinger <cg@exept.de>
parents:
7848
diff
changeset
|
1938 |
^ wsApp |
7403
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1939 |
|
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1940 |
" |
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1941 |
self openEvaluationWorkspace |
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1942 |
" |
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1943 |
|
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1944 |
"Created: / 13-10-2006 / 12:14:13 / cg" |
7849
e3e01db99dd9
open methods return the just created ws
Claus Gittinger <cg@exept.de>
parents:
7848
diff
changeset
|
1945 |
"Modified: / 25-09-2007 / 21:00:45 / cg" |
7403
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1946 |
! |
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
1947 |
|
9085 | 1948 |
openForSinglePageDoing:aBlock |
1949 |
|wsApp needRemove| |
|
1950 |
||
1951 |
needRemove := true. |
|
1952 |
||
1953 |
wsApp := self new. |
|
1954 |
wsApp allButOpen. |
|
1955 |
||
1956 |
(wsApp builder componentAt:'NoteBook') destroyTabAction:nil. |
|
1957 |
||
1958 |
wsApp window height:500. |
|
1959 |
||
1960 |
aBlock value:wsApp. |
|
1961 |
wsApp removeWorkspace:1. "/ the original Workspace |
|
1962 |
"/ wsApp renameWorkspace:1 to:'LICENCE README'. |
|
1963 |
||
1964 |
wsApp openWindow. |
|
1965 |
wsApp selectedWorkspaceIndexHolder value:1. |
|
1966 |
^ wsApp |
|
1967 |
||
1968 |
" |
|
1969 |
self openWithGlobalsInspector |
|
1970 |
" |
|
1971 |
! |
|
1972 |
||
8317 | 1973 |
openMyWorkspace |
15608
0f4b14944011
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15409
diff
changeset
|
1974 |
|ws| |
0f4b14944011
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15409
diff
changeset
|
1975 |
|
17035 | 1976 |
"/ openMyWorkspace_new leads to an error in root /, which we don't understand... |
15608
0f4b14944011
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15409
diff
changeset
|
1977 |
ws := self openMyWorkspace_new. |
12699 | 1978 |
"/ self openMyWorkspace_old. |
1979 |
MyWorkspaceOpened := true. |
|
15608
0f4b14944011
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15409
diff
changeset
|
1980 |
^ ws |
10318 | 1981 |
|
1982 |
" |
|
10562 | 1983 |
WorkspaceApplication openMyWorkspace |
10318 | 1984 |
" |
1985 |
||
1986 |
"Modified: / 21-06-2011 / 08:58:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1987 |
"Modified: / 14-07-2011 / 13:12:04 / Administrator" |
|
10562 | 1988 |
"Modified (comment): / 09-08-2011 / 22:59:13 / cg" |
10318 | 1989 |
! |
1990 |
||
1991 |
openMyWorkspace_new |
|
10730
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
1992 |
"open showing tabs for ALL bookmarked workspace files" |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
1993 |
|
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
1994 |
|workspace| |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
1995 |
|
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
1996 |
"/ workspace := self openWith: nil. |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
1997 |
"/ workspace enqueueDelayedAction:[ |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
1998 |
"/ Error handle:[:ex | |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
1999 |
"/ "/ no time to debug that stuff now... |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2000 |
"/ Dialog information:'Error in bookmark handling: ',ex description |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2001 |
"/ ] do:[ |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2002 |
"/ BookmarkList forWorkspace myWorkspaces do:[:bookmark| |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2003 |
"/ workspace switchToBookmarkEntry: bookmark |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2004 |
"/ ]. |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2005 |
"/ |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2006 |
"/ |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2007 |
"/ |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2008 |
"/ ]. |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2009 |
"/ workspace selectedWorkspaceIndexHolder value: 1. |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2010 |
"/ ]. |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2011 |
|
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2012 |
workspace := self new. |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2013 |
workspace allButOpen. |
11483
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
2014 |
workspace initialSyntax:SmalltalkLanguage instance. |
10730
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2015 |
|
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2016 |
Error handle:[:ex | |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2017 |
ex reject. |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2018 |
"/ no time to debug that stuff now... |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2019 |
Dialog information:'Error in bookmark handling: ',ex description |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2020 |
] do:[ |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2021 |
BookmarkList forWorkspace myWorkspaces do:[:bookmark| |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2022 |
workspace switchToBookmarkEntry: bookmark |
10169 | 2023 |
]. |
2024 |
]. |
|
10730
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2025 |
workspace selectedWorkspaceIndexHolder value: 1. |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2026 |
workspace openWindow. |
15608
0f4b14944011
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15409
diff
changeset
|
2027 |
^ workspace |
10169 | 2028 |
|
2029 |
" |
|
10730
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2030 |
WorkspaceApplication openMyWorkspace |
10169 | 2031 |
" |
2032 |
||
2033 |
"Modified: / 21-06-2011 / 08:58:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10318 | 2034 |
"Created: / 14-07-2011 / 13:11:32 / Administrator" |
11483
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
2035 |
"Modified: / 26-04-2012 / 12:45:50 / cg" |
10169 | 2036 |
! |
2037 |
||
2038 |
openMyWorkspace_old |
|
10730
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2039 |
"open showing the single file: MyWorkspace.wsp" |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2040 |
|
15608
0f4b14944011
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15409
diff
changeset
|
2041 |
^ self openOnFile:'MyWorkspace.wsp' |
8317 | 2042 |
|
2043 |
" |
|
2044 |
self openMyWorkspace. |
|
2045 |
" |
|
10169 | 2046 |
|
2047 |
"Created: / 21-06-2011 / 08:51:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10730
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
2048 |
"Modified (comment): / 28-09-2011 / 07:48:07 / cg" |
8317 | 2049 |
! |
2050 |
||
6022 | 2051 |
openOnFile:aFilename |
2052 |
"launch a new workspace on the contents of some file" |
|
2053 |
||
2054 |
|ws| |
|
2055 |
||
2056 |
ws := self openWith:nil. |
|
8369 | 2057 |
|
2058 |
"/ let the ws load the file - instead of the caller. |
|
2059 |
"/ so the error dialog is shown in its context, |
|
2060 |
"/ and the caller (Launcher) is not blocked. |
|
2061 |
ws enqueueDelayedAction:[ws loadFile:aFilename]. |
|
2062 |
"/ ws loadFile:aFilename. |
|
6022 | 2063 |
^ ws |
2064 |
||
2065 |
" |
|
2066 |
WorkspaceApplication openOnFile:'Makefile' |
|
2067 |
" |
|
2068 |
! |
|
2069 |
||
3332 | 2070 |
openSystemWorkspace |
14747 | 2071 |
^ self new openSystemWorkspace. |
3332 | 2072 |
|
2073 |
" |
|
7850 | 2074 |
|ws b| |
2075 |
ws := self openSystemWorkspace. |
|
7853 | 2076 |
ws addMyWorkspace. |
2077 |
ws selectedWorkspaceIndexHolder value:(ws workspaces size). |
|
2078 |
ws selectedWorkspace contents:'Tools::NewSystemBrowser open'; selectAll. |
|
7850 | 2079 |
ws selectedWorkspace |
7851 | 2080 |
add:(b := Button label:'DoIt' action:[ws doIt. b destroy]) |
3332 | 2081 |
" |
7853 | 2082 |
" |
2083 |
|ws b| |
|
2084 |
ws := self new. |
|
2085 |
ws open. |
|
2086 |
ws selectedWorkspace contents:'Tools::NewSystemBrowser open'; selectAll. |
|
2087 |
" |
|
7612
42b1c57c6cc7
Private.wsp and MyWorkspace.wsp
Claus Gittinger <cg@exept.de>
parents:
7544
diff
changeset
|
2088 |
|
10169 | 2089 |
"Modified: / 14-02-2010 / 23:02:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2090 |
"Modified: / 05-07-2011 / 15:34:40 / cg" |
|
4542 | 2091 |
! |
2092 |
||
2093 |
openWith:initialText |
|
15046
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2094 |
"launch a new workspace with some initial contents. |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2095 |
The workspace will be opened in smalltalk syntax mode" |
4542 | 2096 |
|
13852 | 2097 |
^ self openWith:initialText selected:false |
5098 | 2098 |
|
2099 |
" |
|
13852 | 2100 |
WorkspaceApplication openWith:'Transcript showCR:''hello world''' |
5098 | 2101 |
" |
2102 |
! |
|
2103 |
||
2104 |
openWith:initialText selected:selectedBoolean |
|
15046
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2105 |
"launch a new workspace with some initial contents. |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2106 |
The workspace will be opened in smalltalk syntax mode" |
5098 | 2107 |
|
13852 | 2108 |
|workspace| |
2109 |
||
2110 |
workspace := self new. |
|
2111 |
workspace open. |
|
2112 |
workspace selectedWorkspace contents:initialText selected:selectedBoolean. |
|
2113 |
^ workspace |
|
12639
6a0a5bf99236
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12479
diff
changeset
|
2114 |
|
6a0a5bf99236
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12479
diff
changeset
|
2115 |
" |
13852 | 2116 |
WorkspaceApplication openWith:'Transcript showCR:''hello world''' |
12639
6a0a5bf99236
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12479
diff
changeset
|
2117 |
" |
6a0a5bf99236
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12479
diff
changeset
|
2118 |
! |
6a0a5bf99236
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12479
diff
changeset
|
2119 |
|
6a0a5bf99236
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12479
diff
changeset
|
2120 |
openWith:initialText selected:selectedBoolean title:titleString |
15046
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2121 |
"launch a new workspace with some initial contents. |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2122 |
The workspace will be opened in smalltalk syntax mode" |
12639
6a0a5bf99236
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12479
diff
changeset
|
2123 |
|
4542 | 2124 |
|workspace| |
2125 |
||
2126 |
workspace := self new. |
|
2127 |
workspace open. |
|
12639
6a0a5bf99236
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12479
diff
changeset
|
2128 |
titleString notNil ifTrue:[workspace setLabel:titleString]. |
5098 | 2129 |
workspace selectedWorkspace contents:initialText selected:selectedBoolean. |
4542 | 2130 |
^ workspace |
2131 |
||
2132 |
" |
|
12639
6a0a5bf99236
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12479
diff
changeset
|
2133 |
WorkspaceApplication |
6a0a5bf99236
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12479
diff
changeset
|
2134 |
openWith:'Transcript showCR:''hello world''' |
6a0a5bf99236
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12479
diff
changeset
|
2135 |
selected:false |
6a0a5bf99236
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12479
diff
changeset
|
2136 |
title:'hello' |
4542 | 2137 |
" |
9085 | 2138 |
! |
2139 |
||
2140 |
openWithGlobalsInspector |
|
2141 |
"open a workspaceApp with a single initial pane, showing global variables. |
|
2142 |
Same as Smalltalk inspect, but looks nicer..." |
|
2143 |
||
2144 |
^ self openForSinglePageDoing:[:wsApp | wsApp addNamespaceInspectorFor:Smalltalk] |
|
2145 |
||
2146 |
" |
|
2147 |
self openWithGlobalsInspector |
|
2148 |
" |
|
2149 |
! |
|
2150 |
||
15046
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2151 |
openWithText:initialText |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2152 |
"like openWith, but will set the language to 'text', so it is not incorrectly syntax highlighted" |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2153 |
|
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2154 |
|ws| |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2155 |
|
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2156 |
ws := self openWith:initialText selected:false. |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2157 |
ws syntax:nil. |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2158 |
^ ws. |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2159 |
|
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2160 |
" |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2161 |
WorkspaceApplication openWithText:'foo 1 2 3 4' |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2162 |
" |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2163 |
! |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2164 |
|
9085 | 2165 |
openWithWorkspaceVariableInspector |
2166 |
"open a workspaceApp with a single initial pane, showing workspace variables. |
|
2167 |
Same as Workspace workspaceVariables inspect, but looks nicer..." |
|
2168 |
||
2169 |
^ self openForSinglePageDoing:[:wsApp | wsApp addWorkspaceVariableInspector] |
|
2170 |
||
2171 |
" |
|
2172 |
self openWithWorkspaceVariableInspector |
|
2173 |
" |
|
3332 | 2174 |
! ! |
2175 |
||
10169 | 2176 |
!WorkspaceApplication class methodsFor:'startup'! |
2177 |
||
2178 |
open |
|
2179 |
"/ the very first open opens a MyWorkspace |
|
2180 |
||
2181 |
(MyWorkspaceOpened == true) ifTrue:[ |
|
15608
0f4b14944011
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15409
diff
changeset
|
2182 |
^ self openRegularWorkspace |
10169 | 2183 |
] ifFalse:[ |
15608
0f4b14944011
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15409
diff
changeset
|
2184 |
^ self openMyWorkspace |
10169 | 2185 |
]. |
2186 |
||
2187 |
" |
|
2188 |
MyWorkspaceOpened := nil. |
|
2189 |
WorkspaceApplication open. |
|
2190 |
" |
|
2191 |
||
2192 |
"Created: / 21-06-2011 / 09:03:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2193 |
"Modified (comment): / 05-07-2011 / 15:23:53 / cg" |
|
15234
e00c67bae495
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15046
diff
changeset
|
2194 |
! |
e00c67bae495
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15046
diff
changeset
|
2195 |
|
e00c67bae495
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15046
diff
changeset
|
2196 |
openRegularWorkspace |
e00c67bae495
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15046
diff
changeset
|
2197 |
"/ always open a normal MyWorkspace |
e00c67bae495
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15046
diff
changeset
|
2198 |
|
15608
0f4b14944011
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15409
diff
changeset
|
2199 |
^ super open |
15234
e00c67bae495
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15046
diff
changeset
|
2200 |
|
e00c67bae495
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15046
diff
changeset
|
2201 |
" |
e00c67bae495
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15046
diff
changeset
|
2202 |
MyWorkspaceOpened := nil. |
e00c67bae495
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15046
diff
changeset
|
2203 |
WorkspaceApplication open. |
e00c67bae495
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15046
diff
changeset
|
2204 |
" |
10169 | 2205 |
! ! |
2206 |
||
3193 | 2207 |
!WorkspaceApplication methodsFor:'aspects'! |
2208 |
||
4474 | 2209 |
autoDefineVariables |
2210 |
autoDefineVariables isNil ifTrue:[ |
|
2211 |
autoDefineVariables := ValueHolder new. |
|
2212 |
(UserPreferences current autoDefineWorkspaceVariables) ifTrue:[ |
|
5547
65af7af97085
initial value of #autoDefine was not set correctly
Claus Gittinger <cg@exept.de>
parents:
5490
diff
changeset
|
2213 |
autoDefineVariables value:#workspace. |
9381 | 2214 |
] ifFalse:[ |
2215 |
autoDefineVariables value:#doIt. |
|
4474 | 2216 |
]. |
2217 |
autoDefineVariables onChangeSend:#autoDefineVariablesChanged to:self. |
|
2218 |
]. |
|
2219 |
^ autoDefineVariables. |
|
2220 |
! |
|
2221 |
||
10169 | 2222 |
bookmarks |
2223 |
|ws app| |
|
2224 |
||
2225 |
ws := self selectedWorkspace scrolledView. |
|
2226 |
ws isTextView ifTrue:[ |
|
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2227 |
^ self bookmarksForWorkspace |
10169 | 2228 |
]. |
11725
0b626c2b4b2d
Avoid #isKindOf: where possible
Stefan Vogel <sv@exept.de>
parents:
11713
diff
changeset
|
2229 |
(ws isApplicationSubView) ifTrue:[ |
10169 | 2230 |
app := ws application. |
2231 |
(app respondsTo:#bookmarks) ifTrue:[ |
|
2232 |
^ app bookmarks |
|
2233 |
]. |
|
2234 |
(app respondsTo:#bookmarkListHolder) ifTrue:[ |
|
2235 |
^ app bookmarkListHolder value |
|
2236 |
]. |
|
2237 |
]. |
|
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2238 |
^ nil. |
10169 | 2239 |
|
2240 |
"Created: / 20-06-2011 / 22:23:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2241 |
"Modified (format): / 05-07-2011 / 14:21:10 / cg" |
|
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2242 |
"Modified: / 23-06-2019 / 12:35:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2243 |
! |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2244 |
|
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2245 |
bookmarksForWorkspace |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2246 |
"Return bookmarks to use when in text workspace mode |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2247 |
(i.e., workspace is a text editor). |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2248 |
|
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2249 |
Subclasses may (should) override this method. |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2250 |
" |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2251 |
|
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2252 |
"/ By default return (smalltalk_ workspace bookmarks only |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2253 |
"/ for myself, custom subclasses may override this method |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2254 |
"/ to provide theur own bookmarks |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2255 |
self class == WorkspaceApplication ifTrue:[ |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2256 |
^ BookmarkList forWorkspace |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2257 |
] ifFalse:[ |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2258 |
^ nil |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2259 |
]. |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2260 |
|
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2261 |
"Created: / 20-06-2019 / 21:47:34 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2262 |
"Modified (comment): / 23-06-2019 / 12:38:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10169 | 2263 |
! |
2264 |
||
8226 | 2265 |
browseItMenuButtonVisibile |
13728
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2266 |
"/ typo in previous version |
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2267 |
^ self browseItMenuButtonVisible |
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2268 |
|
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2269 |
"Modified: / 17-12-2013 / 16:34:59 / cg" |
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2270 |
! |
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2271 |
|
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2272 |
browseItMenuButtonVisible |
8226 | 2273 |
^ self thisIsASmalltalkWorkspace |
13728
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2274 |
|
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2275 |
"Created: / 17-12-2013 / 16:34:04 / cg" |
8226 | 2276 |
! |
2277 |
||
13852 | 2278 |
canChangeLanguageHolder |
2279 |
"return/create the 'canChangeLanguageHolder' value holder (automatically generated)" |
|
2280 |
||
2281 |
canChangeLanguageHolder isNil ifTrue:[ |
|
2282 |
canChangeLanguageHolder := ValueHolder with: true. |
|
2283 |
]. |
|
2284 |
^ canChangeLanguageHolder |
|
2285 |
||
2286 |
"Modified: / 10-05-2012 / 23:43:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2287 |
! |
|
2288 |
||
2289 |
canChangeLanguageHolder:something |
|
2290 |
"set the 'canChangeLanguageHolder' value holder (automatically generated)" |
|
2291 |
||
2292 |
canChangeLanguageHolder := something. |
|
2293 |
! |
|
2294 |
||
9695 | 2295 |
cursorColHolder |
2296 |
cursorColHolder isNil ifTrue:[ |
|
15273
a6606b8ea2f6
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15234
diff
changeset
|
2297 |
cursorColHolder := IndirectValue for:(ValueHolder with:1) |
9695 | 2298 |
]. |
2299 |
^ cursorColHolder |
|
2300 |
||
2301 |
"Created: / 22-01-2011 / 11:36:00 / cg" |
|
2302 |
! |
|
2303 |
||
2304 |
cursorColLabelHolder |
|
2305 |
^ BlockValue |
|
2306 |
with:[:v | v isNil ifTrue:[''] ifFalse:[v printString]] |
|
2307 |
argument:self cursorColHolder. |
|
2308 |
||
2309 |
"Created: / 22-01-2011 / 11:36:08 / cg" |
|
2310 |
! |
|
2311 |
||
15817
f6046130309e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15816
diff
changeset
|
2312 |
cursorLineAndColumnLabelHolder |
f6046130309e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15816
diff
changeset
|
2313 |
cursorLineAndColumnLabelHolder isNil ifTrue:[ |
f6046130309e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15816
diff
changeset
|
2314 |
cursorLineAndColumnLabelHolder := IndirectValue for:(ValueHolder with:1) |
15816
64d953f953a1
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15737
diff
changeset
|
2315 |
]. |
15817
f6046130309e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15816
diff
changeset
|
2316 |
^ cursorLineAndColumnLabelHolder |
15816
64d953f953a1
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15737
diff
changeset
|
2317 |
! |
64d953f953a1
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15737
diff
changeset
|
2318 |
|
9695 | 2319 |
cursorLineHolder |
2320 |
cursorLineHolder isNil ifTrue:[ |
|
15273
a6606b8ea2f6
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15234
diff
changeset
|
2321 |
cursorLineHolder := IndirectValue for:(ValueHolder with:1) |
9695 | 2322 |
]. |
2323 |
^ cursorLineHolder |
|
2324 |
||
2325 |
"Created: / 22-01-2011 / 11:35:22 / cg" |
|
2326 |
! |
|
2327 |
||
2328 |
cursorLineLabelHolder |
|
2329 |
^ BlockValue |
|
2330 |
with:[:v | v isNil ifTrue:[''] ifFalse:[v printString]] |
|
2331 |
argument:self cursorLineHolder. |
|
2332 |
||
2333 |
"Modified: / 22-01-2011 / 11:42:56 / cg" |
|
2334 |
! |
|
2335 |
||
8133
8b09d048b345
doIt button only in smalltalks workspace
Claus Gittinger <cg@exept.de>
parents:
8111
diff
changeset
|
2336 |
doItMenuButtonVisibile |
13728
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2337 |
"/ typo in previous version |
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2338 |
^ self doItMenuButtonVisible |
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2339 |
|
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2340 |
"Modified: / 17-12-2013 / 16:35:05 / cg" |
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2341 |
! |
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2342 |
|
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2343 |
doItMenuButtonVisible |
8133
8b09d048b345
doIt button only in smalltalks workspace
Claus Gittinger <cg@exept.de>
parents:
8111
diff
changeset
|
2344 |
^ self thisIsASmalltalkWorkspace |
13728
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2345 |
|
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2346 |
"Created: / 17-12-2013 / 16:34:10 / cg" |
8133
8b09d048b345
doIt button only in smalltalks workspace
Claus Gittinger <cg@exept.de>
parents:
8111
diff
changeset
|
2347 |
! |
8b09d048b345
doIt button only in smalltalks workspace
Claus Gittinger <cg@exept.de>
parents:
8111
diff
changeset
|
2348 |
|
4136 | 2349 |
hasHistory |
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2350 |
^ Workspace doItHistory notEmptyOrNil. |
5852 | 2351 |
! |
2352 |
||
9381 | 2353 |
hasInfoLabel |
2354 |
^ true |
|
2355 |
! |
|
2356 |
||
8133
8b09d048b345
doIt button only in smalltalks workspace
Claus Gittinger <cg@exept.de>
parents:
8111
diff
changeset
|
2357 |
inspectItMenuButtonVisibile |
13728
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2358 |
"/ typo in previous version |
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2359 |
^ self inspectItMenuButtonVisible |
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2360 |
|
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2361 |
"Modified: / 17-12-2013 / 16:35:17 / cg" |
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2362 |
! |
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2363 |
|
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2364 |
inspectItMenuButtonVisible |
8133
8b09d048b345
doIt button only in smalltalks workspace
Claus Gittinger <cg@exept.de>
parents:
8111
diff
changeset
|
2365 |
^ self thisIsASmalltalkWorkspace |
13728
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2366 |
|
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2367 |
"Created: / 17-12-2013 / 16:34:17 / cg" |
8133
8b09d048b345
doIt button only in smalltalks workspace
Claus Gittinger <cg@exept.de>
parents:
8111
diff
changeset
|
2368 |
! |
8b09d048b345
doIt button only in smalltalks workspace
Claus Gittinger <cg@exept.de>
parents:
8111
diff
changeset
|
2369 |
|
9381 | 2370 |
languageInfoLabelHolder |
2371 |
^ BlockValue |
|
11612 | 2372 |
with:[:syntax | |
2373 |
syntax notNil ifTrue:[ |
|
2374 |
"'Syntax: ',"syntax name |
|
2375 |
] ifFalse:[ |
|
11615
f9dfb7daa5e4
corrected switching languages between tabs
Claus Gittinger <cg@exept.de>
parents:
11612
diff
changeset
|
2376 |
'Text' |
11612 | 2377 |
] |
2378 |
] |
|
9381 | 2379 |
argument:self syntaxHolder |
11483
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
2380 |
|
11615
f9dfb7daa5e4
corrected switching languages between tabs
Claus Gittinger <cg@exept.de>
parents:
11612
diff
changeset
|
2381 |
"Modified: / 19-07-2012 / 16:53:30 / cg" |
9381 | 2382 |
! |
2383 |
||
9695 | 2384 |
modeLabelHolder |
2385 |
modeLabelHolder isNil ifTrue:[ |
|
15273
a6606b8ea2f6
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15234
diff
changeset
|
2386 |
modeLabelHolder := IndirectValue for:(ValueHolder with:'I') |
9695 | 2387 |
]. |
2388 |
^ modeLabelHolder |
|
2389 |
||
2390 |
"Created: / 22-01-2011 / 11:37:25 / cg" |
|
2391 |
! |
|
2392 |
||
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2393 |
namespaceHolder |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2394 |
namespaceHolder isNil ifTrue:[ |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2395 |
namespaceHolder := self defaultNameSpaceForDoIts asValue. |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2396 |
namespaceHolder onChangeSend:#setNameSpaceForDoIts to:self |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2397 |
]. |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2398 |
^ namespaceHolder |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2399 |
! |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2400 |
|
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2401 |
namespaceInfoLabelHolder |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2402 |
^ BlockValue |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2403 |
with:[:ns :syntax | |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2404 |
(ns notNil and:[syntax value == SmalltalkLanguage instance]) ifTrue:[ |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2405 |
ns name |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2406 |
] ifFalse:[ |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2407 |
'' |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2408 |
] |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2409 |
] |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2410 |
arguments:(Array with: self namespaceHolder with: self syntaxHolder) |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2411 |
|
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2412 |
"Modified: / 23-06-2019 / 12:14:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2413 |
! |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2414 |
|
8226 | 2415 |
printItMenuButtonVisibile |
13728
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2416 |
"/ typo in previous version |
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2417 |
^ self printItMenuButtonVisible |
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2418 |
|
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2419 |
"Modified: / 17-12-2013 / 16:35:11 / cg" |
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2420 |
! |
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2421 |
|
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2422 |
printItMenuButtonVisible |
8226 | 2423 |
^ self thisIsASmalltalkWorkspace |
13728
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2424 |
|
01b72a80639e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13690
diff
changeset
|
2425 |
"Created: / 17-12-2013 / 16:34:23 / cg" |
8226 | 2426 |
! |
2427 |
||
14060
fef6bc962708
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13949
diff
changeset
|
2428 |
profileItMenuButtonVisible |
fef6bc962708
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13949
diff
changeset
|
2429 |
^ self thisIsASmalltalkWorkspace |
fef6bc962708
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13949
diff
changeset
|
2430 |
|
fef6bc962708
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13949
diff
changeset
|
2431 |
"Created: / 17-12-2013 / 16:34:04 / cg" |
fef6bc962708
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13949
diff
changeset
|
2432 |
! |
fef6bc962708
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13949
diff
changeset
|
2433 |
|
10169 | 2434 |
setWindowLabel: label |
2435 |
||
2436 |
self setWindowLabel: label language: self syntaxHolder value |
|
2437 |
! |
|
2438 |
||
2439 |
setWindowLabel: label language: language |
|
11624 | 2440 |
|languageName| |
2441 |
||
2442 |
language notNil ifTrue:[ |
|
2443 |
languageName := ' - ', language name. |
|
2444 |
] ifFalse:[ |
|
2445 |
languageName := ''. |
|
2446 |
]. |
|
2447 |
self window label:label, ' - ' , languageName |
|
10169 | 2448 |
! |
2449 |
||
9300
07364a10a823
syntax to choose from is fetched via ProgramminLanguage list;
Claus Gittinger <cg@exept.de>
parents:
9166
diff
changeset
|
2450 |
smalltalkMenuEnabledHolder |
07364a10a823
syntax to choose from is fetched via ProgramminLanguage list;
Claus Gittinger <cg@exept.de>
parents:
9166
diff
changeset
|
2451 |
smalltalkMenuEnabledHolder isNil ifTrue:[ |
15273
a6606b8ea2f6
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15234
diff
changeset
|
2452 |
smalltalkMenuEnabledHolder := ValueHolder with:true. |
9300
07364a10a823
syntax to choose from is fetched via ProgramminLanguage list;
Claus Gittinger <cg@exept.de>
parents:
9166
diff
changeset
|
2453 |
]. |
07364a10a823
syntax to choose from is fetched via ProgramminLanguage list;
Claus Gittinger <cg@exept.de>
parents:
9166
diff
changeset
|
2454 |
^ smalltalkMenuEnabledHolder |
5852 | 2455 |
! |
2456 |
||
15046
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2457 |
syntax:aProgrammingLanguageOrNil |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2458 |
"the argument must sth. like SmalltalkLanguage" |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2459 |
|
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2460 |
self syntaxHolder value:aProgrammingLanguageOrNil |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2461 |
! |
0441bc4caefc
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14837
diff
changeset
|
2462 |
|
5852 | 2463 |
syntaxHolder |
2464 |
syntaxHolder isNil ifTrue:[ |
|
9341
aa3c5825ec98
refactored to allow redefinition of defaultSyntax
Claus Gittinger <cg@exept.de>
parents:
9304
diff
changeset
|
2465 |
syntaxHolder := self defaultEvaluatorSyntax asValue. |
5852 | 2466 |
syntaxHolder onChangeSend:#setCompilerForSyntax to:self |
2467 |
]. |
|
2468 |
^ syntaxHolder |
|
10169 | 2469 |
! |
2470 |
||
2471 |
toolBarView |
|
2472 |
||
2473 |
toolBarView isNil ifTrue:[ |
|
2474 |
toolBarView := SubCanvas new. |
|
2475 |
toolBarView level: 0. |
|
2476 |
toolBarView client: self spec: #toolBarSpec builder: builder. |
|
2477 |
]. |
|
2478 |
^toolBarView |
|
2479 |
||
2480 |
"Created: / 10-06-2011 / 22:52:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2481 |
"Modified: / 11-06-2011 / 00:06:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3193 | 2482 |
! ! |
2483 |
||
4358 | 2484 |
!WorkspaceApplication methodsFor:'aspects-queries'! |
3193 | 2485 |
|
3812 | 2486 |
anyWorkspaceVariableIsDefined |
6267 | 2487 |
^ Workspace anyWorkspaceVariableIsDefined |
2488 |
||
2489 |
"Modified: / 20-04-2005 / 11:57:59 / cg" |
|
10169 | 2490 |
! |
2491 |
||
2492 |
canAddBookmark |
|
2493 |
||
16259 | 2494 |
| ws | |
10169 | 2495 |
|
2496 |
ws := self selectedWorkspace scrolledView. |
|
16259 | 2497 |
ws isTextView ifFalse:[^ true]. |
2498 |
||
2499 |
^ ws defaultFileNameForFileDialog notNil. |
|
10169 | 2500 |
|
2501 |
"Created: / 20-06-2011 / 22:43:30 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2502 |
! |
|
2503 |
||
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2504 |
hasBookmarksAspect |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2505 |
|
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2506 |
^ BlockValue |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2507 |
with:[ :ignored | self bookmarks notNil ] |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2508 |
argument: self selectedWorkspaceIndexHolder |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2509 |
|
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2510 |
"Created: / 23-06-2019 / 12:41:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2511 |
! |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2512 |
|
13852 | 2513 |
isSQLWorkspaceAvailable |
2514 |
||
2515 |
^(Smalltalk at:#'SQL::WorkspacePage') notNil |
|
2516 |
||
2517 |
"Created: / 10-05-2012 / 18:49:34 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2518 |
! |
|
2519 |
||
2520 |
isSQLWorkspaceSelected |
|
2521 |
||
2522 |
builder isNil ifTrue:[self createBuilder]. |
|
14168
f3b4d93f0481
class: WorkspaceApplication
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14060
diff
changeset
|
2523 |
^ builder bindings at: #isSQLWorkspaceSelected ifAbsentPut: [ |
13852 | 2524 |
BlockValue |
14168
f3b4d93f0481
class: WorkspaceApplication
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14060
diff
changeset
|
2525 |
with:[:ignored| |
f3b4d93f0481
class: WorkspaceApplication
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14060
diff
changeset
|
2526 |
self selectedWorkspaceApplication isKindOf: (Smalltalk at:#'SQL::WorkspacePage') |
f3b4d93f0481
class: WorkspaceApplication
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14060
diff
changeset
|
2527 |
] |
13852 | 2528 |
argument: self selectedWorkspaceIndexHolder |
2529 |
] |
|
2530 |
||
2531 |
"Created: / 11-05-2012 / 09:41:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
14168
f3b4d93f0481
class: WorkspaceApplication
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14060
diff
changeset
|
2532 |
"Modified: / 27-03-2014 / 16:38:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
13852 | 2533 |
! |
2534 |
||
10169 | 2535 |
isWebBrowserAvailable |
2536 |
||
2537 |
^(Smalltalk at:#WebKitView) notNil |
|
2538 |
||
2539 |
"Created: / 11-06-2011 / 00:30:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2540 |
! |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2541 |
|
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2542 |
selectedWorkspaceIsTextView |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2543 |
^ self selectedWorkspacesTextView notNil |
3154 | 2544 |
! ! |
2545 |
||
9632 | 2546 |
!WorkspaceApplication methodsFor:'autofetch selection'! |
2547 |
||
2548 |
autoFetchSelection |
|
19594
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
2549 |
^ BlockValue with:[ |
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
2550 |
clipBoardWatcherProcess notNil |
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
2551 |
] |
9632 | 2552 |
|
2553 |
"Created: / 16-11-2010 / 14:55:39 / cg" |
|
19594
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
2554 |
"Modified (format): / 16-11-2020 / 23:13:10 / Jan Vrany <jan.vrany@labware.com>" |
9632 | 2555 |
! |
2556 |
||
2557 |
autoFetchSelection:aBoolean |
|
14746 | 2558 |
Screen current isWindowsPlatform ifTrue:[ |
9632 | 2559 |
aBoolean ifTrue:[ |
2560 |
self startClipboardWatcher |
|
2561 |
] ifFalse:[ |
|
2562 |
self stopClipboardWatcher |
|
2563 |
]. |
|
2564 |
^ self. |
|
2565 |
]. |
|
2566 |
||
2567 |
aBoolean ifTrue:[ |
|
2568 |
self window windowGroup addPreEventHook:self. |
|
19594
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
2569 |
device addSelectionHandler:self. |
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
2570 |
clipBoardWatcherProcess := 1. |
9632 | 2571 |
] ifFalse:[ |
2572 |
self window windowGroup removePreEventHook:self. |
|
19594
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
2573 |
device removeSelectionHandler:self. |
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
2574 |
clipBoardWatcherProcess := nil. |
9632 | 2575 |
]. |
2576 |
||
2577 |
"Created: / 16-11-2010 / 14:34:15 / cg" |
|
19594
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
2578 |
"Modified: / 16-11-2020 / 23:12:36 / Jan Vrany <jan.vrany@labware.com>" |
9632 | 2579 |
! |
2580 |
||
9735 | 2581 |
autoFetchSelectionLines |
2582 |
fetchClipboardLines isNil ifTrue:[ |
|
15273
a6606b8ea2f6
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15234
diff
changeset
|
2583 |
fetchClipboardLines := ValueHolder with:true |
9735 | 2584 |
]. |
2585 |
^ fetchClipboardLines |
|
2586 |
||
2587 |
"Created: / 04-02-2011 / 17:52:34 / cg" |
|
2588 |
! |
|
2589 |
||
9632 | 2590 |
itemFromClipboard |
2591 |
|text| |
|
2592 |
||
2593 |
text := self window getClipboardText. |
|
2594 |
(text notNil and:[text isString]) ifTrue:[ |
|
9735 | 2595 |
self autoFetchSelectionLines value ifTrue:[ |
2596 |
text := text , Character cr |
|
2597 |
]. |
|
9632 | 2598 |
self paste:text. |
2599 |
]. |
|
2600 |
||
2601 |
"Created: / 16-11-2010 / 14:44:26 / cg" |
|
9735 | 2602 |
"Modified: / 04-02-2011 / 17:53:46 / cg" |
9632 | 2603 |
! |
2604 |
||
19594
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
2605 |
selectionClear: ignored |
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
2606 |
"/ What to do here? |
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
2607 |
|
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
2608 |
"Modified (comment): / 16-11-2020 / 23:02:39 / Jan Vrany <jan.vrany@labware.com>" |
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
2609 |
! |
5c646fbd4742
`WorkspaceApplication`: add (emoty) `#selectionClear:`
Jan Vrany <jan.vrany@labware.com>
parents:
18832
diff
changeset
|
2610 |
|
9632 | 2611 |
startClipboardWatcher |
2612 |
clipBoardWatcherProcess isNil ifTrue:[ |
|
2613 |
ClipBoardFetchingInstance notNil ifTrue:[ |
|
2614 |
ClipBoardFetchingInstance stopClipboardWatcher |
|
2615 |
]. |
|
2616 |
clipBoardWatcherProcess := |
|
2617 |
[ |
|
2618 |
[true] whileTrue:[ |
|
2619 |
self waitForClipBoardToChange. |
|
2620 |
]. |
|
2621 |
] newProcess. |
|
2622 |
||
2623 |
clipBoardWatcherProcess resume. |
|
2624 |
ClipBoardFetchingInstance := self. |
|
2625 |
]. |
|
2626 |
||
2627 |
"Created: / 16-11-2010 / 14:35:55 / cg" |
|
2628 |
! |
|
2629 |
||
2630 |
stopClipboardWatcher |
|
2631 |
|p| |
|
2632 |
||
2633 |
(p := clipBoardWatcherProcess) notNil ifTrue:[ |
|
2634 |
ClipBoardFetchingInstance := nil. |
|
2635 |
clipBoardWatcherProcess := nil. |
|
2636 |
p terminate |
|
2637 |
]. |
|
2638 |
||
2639 |
"Created: / 16-11-2010 / 14:36:12 / cg" |
|
2640 |
! |
|
2641 |
||
2642 |
waitForClipBoardToChange |
|
2643 |
|prev| |
|
2644 |
||
2645 |
prev := self window getClipboardText. |
|
2646 |
[ |
|
2647 |
Delay waitForSeconds:0.2. |
|
2648 |
self window getClipboardText = prev |
|
2649 |
] whileTrue. |
|
2650 |
self itemFromClipboard. |
|
2651 |
||
2652 |
"Created: / 16-11-2010 / 14:44:05 / cg" |
|
2653 |
! ! |
|
2654 |
||
7474
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2655 |
!WorkspaceApplication methodsFor:'defaults'! |
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2656 |
|
9341
aa3c5825ec98
refactored to allow redefinition of defaultSyntax
Claus Gittinger <cg@exept.de>
parents:
9304
diff
changeset
|
2657 |
defaultEvaluatorSyntax |
9653 | 2658 |
LastLanguage notNil ifTrue:[^ LastLanguage]. |
9341
aa3c5825ec98
refactored to allow redefinition of defaultSyntax
Claus Gittinger <cg@exept.de>
parents:
9304
diff
changeset
|
2659 |
^ SmalltalkLanguage instance. |
9653 | 2660 |
|
2661 |
"Modified: / 01-12-2010 / 12:21:41 / cg" |
|
9341
aa3c5825ec98
refactored to allow redefinition of defaultSyntax
Claus Gittinger <cg@exept.de>
parents:
9304
diff
changeset
|
2662 |
! |
aa3c5825ec98
refactored to allow redefinition of defaultSyntax
Claus Gittinger <cg@exept.de>
parents:
9304
diff
changeset
|
2663 |
|
7474
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2664 |
defaultFileNameForLoad |
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2665 |
^ 'file.wsp' |
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2666 |
|
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2667 |
"Created: / 25-10-2006 / 14:56:10 / cg" |
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2668 |
! |
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2669 |
|
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2670 |
defaultFileNameForSave |
8324 | 2671 |
|ws| |
2672 |
||
9695 | 2673 |
ws := self selectedWorkspace scrolledView. |
8324 | 2674 |
ws isTextView ifFalse:[ |
2675 |
"/ eval-ws |
|
2676 |
^ super defaultFileNameForSave |
|
2677 |
]. |
|
2678 |
^ ws defaultFileNameForFileDialog ? super defaultFileNameForSave |
|
9695 | 2679 |
|
2680 |
"Modified: / 22-01-2011 / 12:01:27 / cg" |
|
7474
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2681 |
! |
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2682 |
|
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2683 |
defaultFileNameForSaveAll |
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2684 |
^ 'file.wsp' |
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2685 |
|
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2686 |
"Created: / 25-10-2006 / 14:56:04 / cg" |
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2687 |
! |
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2688 |
|
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2689 |
defaultNameSpaceForDoIts |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2690 |
LastNamespace notNil ifTrue:[^ LastNamespace]. |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2691 |
^ Smalltalk. |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2692 |
! |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
2693 |
|
7474
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2694 |
defaultPatternLoad |
8032 | 2695 |
^ '*.wsp; *.txt; *.rc' |
7474
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2696 |
|
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2697 |
"Created: / 25-10-2006 / 14:57:25 / cg" |
7866 | 2698 |
! |
2699 |
||
9341
aa3c5825ec98
refactored to allow redefinition of defaultSyntax
Claus Gittinger <cg@exept.de>
parents:
9304
diff
changeset
|
2700 |
executeMenuVisible |
aa3c5825ec98
refactored to allow redefinition of defaultSyntax
Claus Gittinger <cg@exept.de>
parents:
9304
diff
changeset
|
2701 |
^ self thisIsASmalltalkWorkspace |
aa3c5825ec98
refactored to allow redefinition of defaultSyntax
Claus Gittinger <cg@exept.de>
parents:
9304
diff
changeset
|
2702 |
! |
aa3c5825ec98
refactored to allow redefinition of defaultSyntax
Claus Gittinger <cg@exept.de>
parents:
9304
diff
changeset
|
2703 |
|
7866 | 2704 |
thisIsASmalltalkWorkspace |
9300
07364a10a823
syntax to choose from is fetched via ProgramminLanguage list;
Claus Gittinger <cg@exept.de>
parents:
9166
diff
changeset
|
2705 |
"can be redefined in a subclass to disable smalltalk-specific menu items |
07364a10a823
syntax to choose from is fetched via ProgramminLanguage list;
Claus Gittinger <cg@exept.de>
parents:
9166
diff
changeset
|
2706 |
(expecco uses workspaces as scratchpads)" |
7866 | 2707 |
|
2708 |
^ true |
|
7474
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2709 |
! ! |
f18ef25a1ca6
refactored to allow for standAlone multiTab editors
Claus Gittinger <cg@exept.de>
parents:
7461
diff
changeset
|
2710 |
|
9372 | 2711 |
!WorkspaceApplication methodsFor:'drag & drop'! |
2712 |
||
2713 |
droppedFile:aFilename in:aComponent |
|
2714 |
"this is a notification from my textView component" |
|
2715 |
||
2716 |
self |
|
2717 |
renameWorkspace:(self selectedWorkspaceIndexHolder value) |
|
2718 |
to:aFilename asFilename baseName |
|
2719 |
! ! |
|
2720 |
||
17390
ce68ee978f93
WorkspaceApplication: Show shortcuts in edit menu
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17219
diff
changeset
|
2721 |
|
10169 | 2722 |
!WorkspaceApplication methodsFor:'help'! |
2723 |
||
2724 |
flyByHelpSpec |
|
10220 | 2725 |
"/ dynamically adjust the menuSave item's flyByhelpText |
2726 |
^ self updateHelpSpec:(super flyByHelpSpec) |
|
2727 |
||
2728 |
"Created: / 05-07-2011 / 15:42:25 / cg" |
|
2729 |
! |
|
2730 |
||
2731 |
updateHelpSpec:aSpec |
|
2732 |
|file ws| |
|
10169 | 2733 |
|
2734 |
"/ dynamically adjust the menuSave item's flyByhelpText |
|
2735 |
ws := self selectedWorkspace scrolledView. |
|
2736 |
ws isTextView ifTrue:[ |
|
2737 |
file := ws defaultFileNameForFileDialog. |
|
2738 |
]. |
|
2739 |
||
10220 | 2740 |
aSpec |
10169 | 2741 |
at:#menuSaveOrSaveAs |
10220 | 2742 |
put:(file isNil ifTrue:[aSpec at:#menuSaveAs] ifFalse:[aSpec at:#menuSave]). |
2743 |
||
10277 | 2744 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
2745 |
aSpec |
|
2746 |
at:#addTerminal |
|
2747 |
put:(aSpec at:#addTerminalWindows). |
|
2748 |
||
2749 |
]. |
|
10220 | 2750 |
^ aSpec |
2751 |
||
2752 |
"Created: / 06-07-2011 / 16:32:13 / cg" |
|
10169 | 2753 |
! ! |
2754 |
||
3154 | 2755 |
!WorkspaceApplication methodsFor:'initialization & release'! |
2756 |
||
2757 |
closeRequest |
|
6636 | 2758 |
"asks for permission before closing" |
2759 |
||
14818
c76a3a590773
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14804
diff
changeset
|
2760 |
(self askIfAnyModified:'Text in %1 was not saved. Close anyway ?' yesButton:'Close') ifFalse:[ |
3154 | 2761 |
^ self |
2762 |
]. |
|
2763 |
||
2764 |
^ super closeRequest |
|
9341
aa3c5825ec98
refactored to allow redefinition of defaultSyntax
Claus Gittinger <cg@exept.de>
parents:
9304
diff
changeset
|
2765 |
! |
aa3c5825ec98
refactored to allow redefinition of defaultSyntax
Claus Gittinger <cg@exept.de>
parents:
9304
diff
changeset
|
2766 |
|
11483
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
2767 |
initialSyntax: aLanguage |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
2768 |
self syntaxHolder value: aLanguage. |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
2769 |
|
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
2770 |
"Created: / 26-04-2012 / 12:26:48 / cg" |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
2771 |
! |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
2772 |
|
9695 | 2773 |
postBuildEditModeInfoLabel:aLabel |
2774 |
aLabel menuHolder:self; menuMessage:#editModeInfoLabelMenu. |
|
2775 |
||
2776 |
"Created: / 22-01-2011 / 11:32:57 / cg" |
|
2777 |
! |
|
2778 |
||
9341
aa3c5825ec98
refactored to allow redefinition of defaultSyntax
Claus Gittinger <cg@exept.de>
parents:
9304
diff
changeset
|
2779 |
postBuildWith:aBuilder |
aa3c5825ec98
refactored to allow redefinition of defaultSyntax
Claus Gittinger <cg@exept.de>
parents:
9304
diff
changeset
|
2780 |
super postBuildWith:aBuilder. |
9381 | 2781 |
self setCompilerForSyntax. |
2782 |
||
2783 |
self infoVisibilityChanged. "/ force geometry update |
|
2784 |
self autoDefineVariablesChanged. "/ force workspaceView update |
|
9695 | 2785 |
! |
2786 |
||
2787 |
postOpenWith:aBuilder |
|
2788 |
self windowGroup addPreEventHook:self. |
|
2789 |
super postOpenWith:aBuilder. |
|
2790 |
||
2791 |
"Created: / 22-01-2011 / 12:09:20 / cg" |
|
9746
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
2792 |
"Modified: / 08-02-2011 / 21:33:49 / cg" |
9695 | 2793 |
! |
2794 |
||
2795 |
processEvent:anEvent |
|
2796 |
"filter double click in line-label. |
|
2797 |
Return true, if I have eaten the event" |
|
2798 |
||
2799 |
anEvent isButtonMultiPressEvent ifTrue:[ |
|
2800 |
anEvent view name = 'CursorLineLabel' ifTrue:[ |
|
2801 |
self selectedWorkspace scrolledView gotoLine. |
|
2802 |
^ true |
|
2803 |
]. |
|
2804 |
]. |
|
2805 |
^ false |
|
2806 |
||
2807 |
"Created: / 22-01-2011 / 12:10:01 / cg" |
|
3154 | 2808 |
! ! |
2809 |
||
4359 | 2810 |
!WorkspaceApplication methodsFor:'menu-actions'! |
3154 | 2811 |
|
3752 | 2812 |
askForFilterBlock:message template:template rememberIn:nameOfClassVar |
2813 |
|filterBlockString filterBlock dialog textHolder classVarValue| |
|
2814 |
||
2815 |
classVarValue := self class classVarAt:nameOfClassVar ifAbsent:nil. |
|
2816 |
classVarValue isNil ifTrue:[ |
|
2817 |
self class classVarAt:nameOfClassVar put:template. |
|
2818 |
classVarValue := template. |
|
2819 |
]. |
|
2820 |
||
2821 |
textHolder := ValueHolder new. |
|
2822 |
dialog := Dialog |
|
2823 |
forRequestText:(resources string:message) |
|
13917
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
2824 |
editViewClass:CodeView |
3752 | 2825 |
lines:25 |
2826 |
columns:70 |
|
2827 |
initialAnswer:classVarValue |
|
2828 |
model:textHolder. |
|
2829 |
dialog addButton:(Button label:'Template' action:[textHolder value:template. textHolder changed:#value.]). |
|
2830 |
dialog open. |
|
2831 |
dialog accepted ifFalse:[^ nil]. |
|
2832 |
||
2833 |
filterBlockString := textHolder value. |
|
2834 |
self class classVarAt:nameOfClassVar put:filterBlockString. |
|
2835 |
||
2836 |
filterBlock := Parser evaluate:filterBlockString. |
|
2837 |
filterBlock isBlock ifFalse:[ |
|
13917
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
2838 |
self error:'bad input for block' mayProceed:true. |
3752 | 2839 |
^ nil |
2840 |
]. |
|
2841 |
||
2842 |
^ filterBlock |
|
2843 |
! |
|
2844 |
||
4474 | 2845 |
autoDefineVariablesChanged |
2846 |
|autoDefine| |
|
2847 |
||
2848 |
autoDefine := autoDefineVariables value. |
|
2849 |
UserPreferences current autoDefineWorkspaceVariables:(autoDefine == #workspace). |
|
2850 |
workspaces do:[:each | |
|
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2851 |
MessageNotUnderstood catch:[ each autoDefineVariables:autoDefine ] |
4474 | 2852 |
]. |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2853 |
|
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
2854 |
"Modified: / 20-06-2019 / 18:01:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4474 | 2855 |
! |
2856 |
||
3198 | 2857 |
basicInspectIt |
2858 |
self inspectIt:true |
|
2859 |
! |
|
2860 |
||
3383
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
2861 |
browseImplementorsOfIt |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
2862 |
self selectedWorkspacesTextView browseImplementorsOfIt |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
2863 |
! |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
2864 |
|
3154 | 2865 |
browseIt |
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2866 |
|ws| |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2867 |
|
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2868 |
ws := self selectedWorkspacesTextView. |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2869 |
ws notNil ifTrue:[ |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2870 |
ws browseIt |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2871 |
] |
3154 | 2872 |
! |
2873 |
||
3383
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
2874 |
browseReferencesToIt |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
2875 |
self selectedWorkspacesTextView browseReferencesToIt |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
2876 |
! |
fb3b6909bd1a
+ browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents:
3347
diff
changeset
|
2877 |
|
4136 | 2878 |
clearHistory |
2879 |
Workspace clearDoItHistory |
|
2880 |
! |
|
2881 |
||
11496 | 2882 |
compareTextAgainst |
2883 |
|ws otherText thisText| |
|
2884 |
||
2885 |
ws := self selectedWorkspace scrolledView. |
|
2886 |
ws isTextView ifFalse:[ |
|
2887 |
^ self |
|
2888 |
]. |
|
2889 |
||
2890 |
ws hasSelection ifTrue:[ |
|
2891 |
thisText := ws selectionAsString. |
|
2892 |
] ifFalse:[ |
|
2893 |
thisText := ws contents asString. |
|
2894 |
]. |
|
2895 |
||
2896 |
otherText := Dialog requestText:'Paste other text below:'. |
|
2897 |
otherText isEmptyOrNil ifTrue:[^ self ]. |
|
2898 |
||
2899 |
DiffTextView |
|
2900 |
openOn: thisText label: 'Workspace' |
|
2901 |
and: otherText label: 'Other Text' |
|
2902 |
title: 'Comparing Workspace Contents' |
|
2903 |
||
2904 |
"Created: / 04-05-2012 / 15:35:32 / cg" |
|
2905 |
! |
|
2906 |
||
3154 | 2907 |
doIt |
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2908 |
|ws| |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2909 |
|
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2910 |
ws := self selectedWorkspacesTextView. |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2911 |
ws notNil ifTrue:[ |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2912 |
ws doIt |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2913 |
] |
3154 | 2914 |
! |
2915 |
||
2916 |
inspectIt |
|
3198 | 2917 |
self inspectIt:false |
2918 |
! |
|
2919 |
||
4086
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
2920 |
inspectIt:isBasicInspector |
9f685ed7ad3f
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
4031
diff
changeset
|
2921 |
|ws| |
3196 | 2922 |
|
3198 | 2923 |
ws := self selectedWorkspacesTextView. |
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2924 |
ws isNil ifTrue:[ |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2925 |
"there is none - i.e. it is a HTMLDocumentView" |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2926 |
^ self. |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
2927 |
]. |
3196 | 2928 |
ws |
2929 |
do:(ws selection) |
|
2930 |
withValueDo:[:result | |
|
4096
1c393b3edbcd
Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents:
4086
diff
changeset
|
2931 |
self addInspectorOn:result basic:isBasicInspector suppressPseudoSlots:false |
3196 | 2932 |
] |
2933 |
||
2934 |
"/ self selectedWorkspace inspectIt |
|
3154 | 2935 |
! |
2936 |
||
3812 | 2937 |
inspectWorkspaceVariables |
2938 |
|wsvars| |
|
2939 |
||
2940 |
wsvars := Workspace workspaceVariables. |
|
2941 |
wsvars size == 0 ifTrue:[ |
|
2942 |
Dialog information:'No Workspace Variables are defined'. |
|
2943 |
^ self |
|
2944 |
]. |
|
2945 |
wsvars inspect |
|
2946 |
! |
|
2947 |
||
10169 | 2948 |
loadFile:aFileName encoding:encodingSymbolOrNil label:label |
2949 |
||
2950 |
"This small hack allows programmers to have their own |
|
2951 |
MyWorkspace.wsp in their ~/.smalltalk directory" |
|
2952 |
||
2953 |
| f | |
|
2954 |
f := aFileName asFilename. |
|
2955 |
(f exists not and:[f isAbsolute not]) ifTrue:[ |
|
2956 |
f := Filename homeDirectory / '.smalltalk' / f pathName. |
|
2957 |
f exists ifFalse:[ |
|
2958 |
(aFileName = 'MyWorkspace.wsp') |
|
2959 |
ifTrue: |
|
2960 |
[| s| |
|
2961 |
s := f writeStream. |
|
2962 |
[s nextPutAll:'"Edit and save as ', f pathName , '"'] |
|
2963 |
ensure:[s close]] |
|
2964 |
ifFalse: |
|
2965 |
[f := aFileName asFilename] |
|
2966 |
]]. |
|
2967 |
^super loadFile:f pathName encoding:encodingSymbolOrNil label:label |
|
2968 |
||
2969 |
"Created: / 23-12-2009 / 10:13:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2970 |
"Modified: / 11-02-2010 / 10:15:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2971 |
! |
|
2972 |
||
14830
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
2973 |
manageSnippets |
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
2974 |
|bindings listOfSnippets removeAction pasteAction |
7931 | 2975 |
hasSelectionHolder removeEnabledHolder pasteEnabledHolder |
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
2976 |
selectedSnippetHolder selectedSnippetsTextHolder selectedSnippetsKeyHolder |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
2977 |
selectedSnippetsName |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
2978 |
snippetsDictionary defineEnabledHolder defineAction |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
2979 |
snippetTextAcceptHolder snippetTextModifiedHolder |
16260 | 2980 |
loadFileAction saveFileAction| |
13500 | 2981 |
|
14830
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
2982 |
snippetsDictionary := Workspace snippets. |
13500 | 2983 |
snippetsDictionary isEmptyOrNil ifTrue:[ |
2984 |
Dialog information:(resources string:'No Snippets to Manage'). |
|
7944
3d185d0ca8e9
sharedPool inspection support
Claus Gittinger <cg@exept.de>
parents:
7931
diff
changeset
|
2985 |
^ self. |
3d185d0ca8e9
sharedPool inspection support
Claus Gittinger <cg@exept.de>
parents:
7931
diff
changeset
|
2986 |
]. |
3d185d0ca8e9
sharedPool inspection support
Claus Gittinger <cg@exept.de>
parents:
7931
diff
changeset
|
2987 |
|
14830
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
2988 |
listOfSnippets := List withAll:(snippetsDictionary keysSorted). |
15273
a6606b8ea2f6
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15234
diff
changeset
|
2989 |
selectedSnippetsTextHolder := ValueHolder with:''. |
a6606b8ea2f6
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15234
diff
changeset
|
2990 |
selectedSnippetsKeyHolder := ValueHolder with:''. |
13500 | 2991 |
|
2992 |
selectedSnippetHolder := nil asValue. |
|
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
2993 |
selectedSnippetHolder |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
2994 |
onChangeEvaluate:[ |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
2995 |
(selectedSnippetHolder value) isNil ifTrue:[ |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
2996 |
selectedSnippetsName := nil. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
2997 |
selectedSnippetsTextHolder value:''. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
2998 |
selectedSnippetsKeyHolder value:nil. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
2999 |
] ifFalse:[ |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3000 |
selectedSnippetsName := listOfSnippets at:(selectedSnippetHolder value). |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3001 |
selectedSnippetsKeyHolder value:selectedSnippetsName. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3002 |
selectedSnippetsTextHolder value:(snippetsDictionary at:selectedSnippetsName). |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3003 |
]. |
7931 | 3004 |
]. |
3005 |
||
13500 | 3006 |
hasSelectionHolder := BlockValue with:[:m | m value notNil] argument:selectedSnippetHolder. |
7931 | 3007 |
removeEnabledHolder := hasSelectionHolder. |
3008 |
pasteEnabledHolder := hasSelectionHolder. |
|
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3009 |
defineEnabledHolder := |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3010 |
BlockValue |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3011 |
with:[:key :text| |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3012 |
key notEmptyOrNil |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3013 |
and:[(snippetsDictionary includesKey:key) not |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3014 |
or:[ (snippetsDictionary at:key) ~= text]] |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3015 |
] |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3016 |
argument: selectedSnippetsKeyHolder argument: selectedSnippetsTextHolder. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3017 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3018 |
removeAction := |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3019 |
[ |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3020 |
snippetsDictionary removeKey:selectedSnippetsName. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3021 |
listOfSnippets remove:selectedSnippetsName. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3022 |
]. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3023 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3024 |
pasteAction := |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3025 |
[ |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3026 |
|text| |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3027 |
text := snippetsDictionary at:selectedSnippetsName. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3028 |
self paste:text |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3029 |
]. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3030 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3031 |
defineAction := |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3032 |
[ |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3033 |
|originalText newText key| |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3034 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3035 |
key := selectedSnippetsKeyHolder value. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3036 |
key notEmptyOrNil ifTrue:[ |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3037 |
originalText := snippetsDictionary at:key ifAbsent:nil. "/ selectedSnippetsName. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3038 |
newText := selectedSnippetsTextHolder value withoutTrailingSeparators. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3039 |
originalText ~= newText ifTrue:[ |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3040 |
snippetsDictionary at: key put: newText. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3041 |
snippetTextModifiedHolder value:false. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3042 |
]. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3043 |
]. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3044 |
defineEnabledHolder recomputeValue. |
8286 | 3045 |
]. |
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3046 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3047 |
loadFileAction := |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3048 |
[ |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3049 |
|file fileSnippets| |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3050 |
|
16260 | 3051 |
file := Dialog requestFileName:'Load Snippet Definition File' default:(LastSnippetFilename ? 'snippets.txt'). |
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3052 |
file notEmptyOrNil ifTrue:[ |
16260 | 3053 |
LastSnippetFilename := file. |
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3054 |
file asFilename readingFileDo:[:s | |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3055 |
fileSnippets := (Object readFrom:s onError:#()) decodeAsLiteralArray. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3056 |
]. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3057 |
fileSnippets notEmptyOrNil ifTrue:[ |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3058 |
snippetsDictionary declareAllFrom:fileSnippets. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3059 |
listOfSnippets contents:(snippetsDictionary keysSorted). |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3060 |
selectedSnippetHolder value:nil. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3061 |
selectedSnippetsTextHolder value:''. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3062 |
selectedSnippetsKeyHolder value:''. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3063 |
] |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3064 |
] |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3065 |
]. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3066 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3067 |
saveFileAction := |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3068 |
[ |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3069 |
|file| |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3070 |
|
16260 | 3071 |
file := Dialog requestFileName:'Save Snippet Definition File' default:(LastSnippetFilename ? 'snippets.txt'). |
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3072 |
file notEmptyOrNil ifTrue:[ |
16260 | 3073 |
LastSnippetFilename := file. |
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3074 |
file asFilename writingFileDo:[:s | |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3075 |
s nextPutLine:'#( Dictionary'. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3076 |
snippetsDictionary keys asSortedCollection do:[:k | |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3077 |
k storeOn:s. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3078 |
s spaces:2. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3079 |
(snippetsDictionary at:k) storeOn:s. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3080 |
s cr. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3081 |
]. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3082 |
s nextPutLine:')'. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3083 |
] |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3084 |
] |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3085 |
]. |
7931 | 3086 |
|
3087 |
bindings := IdentityDictionary new. |
|
14830
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
3088 |
bindings at:#listOfSnippets put:listOfSnippets. |
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
3089 |
bindings at:#selectedSnippet put:selectedSnippetHolder asValue. |
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3090 |
bindings at:#selectedSnippetsKeyHolder put:selectedSnippetsKeyHolder. |
14830
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
3091 |
bindings at:#selectedSnippetsText put:selectedSnippetsTextHolder. |
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
3092 |
bindings at:#removeSelectedSnippet put:removeAction. |
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
3093 |
bindings at:#pasteSelectedSnippet put:pasteAction. |
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3094 |
bindings at:#defineSelectedSnippet put:defineAction. |
7931 | 3095 |
bindings at:#removeEnabled put:removeEnabledHolder. |
8286 | 3096 |
bindings at:#pasteEnabled put:pasteEnabledHolder. |
14837
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3097 |
bindings at:#defineEnabled put:defineEnabledHolder. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3098 |
bindings at:#menuOpenSnippetFile put:loadFileAction. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3099 |
bindings at:#menuSaveSnippetFileAs put:saveFileAction. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3100 |
bindings at:#closeSnippetDialog put:[:a :menu | menu topView closeRequest]. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3101 |
bindings at:#snippetTextAcceptHolder put:(snippetTextAcceptHolder := TriggerValue new). |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3102 |
bindings at:#snippetTextModified put:(snippetTextModifiedHolder := TriggerValue new). |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3103 |
bindings at:#openSnippetDocumentation put:[self halt. self openHTMLDocument: 'tools/misc/TOP.html#WORKSPACE']. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3104 |
|
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3105 |
snippetTextModifiedHolder onChangeEvaluate:[snippetTextAcceptHolder value:true. defineEnabledHolder recomputeValue ]. |
d7de71154d37
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14830
diff
changeset
|
3106 |
selectedSnippetsKeyHolder onChangeEvaluate:[defineEnabledHolder recomputeValue ]. |
7931 | 3107 |
|
14830
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
3108 |
self openDialogInterface:#manageSnippetsDialogSpec withBindings:bindings |
7931 | 3109 |
! |
3110 |
||
13852 | 3111 |
menuSQLConnect |
3112 |
||
3113 |
self selectedWorkspaceApplication menuConnect |
|
3114 |
||
3115 |
"Created: / 11-05-2012 / 10:00:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3116 |
! |
|
3117 |
||
10169 | 3118 |
menuSave |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
3119 |
| selectedWorkspace ws file| |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
3120 |
|
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
3121 |
selectedWorkspace := self selectedWorkspace scrolledView. |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
3122 |
selectedWorkspace isNil ifTrue:[ ^ self ]. |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
3123 |
ws := self workspaceViewOfView: selectedWorkspace. |
10169 | 3124 |
ws isTextView ifFalse:[ |
3125 |
self shouldImplement:'Functionality not yet implemented'. |
|
3126 |
]. |
|
3127 |
file := ws defaultFileNameForFileDialog. |
|
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
3128 |
file isNil ifTrue:[ |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
3129 |
self menuSaveAs. |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
3130 |
^ self |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
3131 |
]. |
10169 | 3132 |
ws saveAs:file doAppend:false. |
10786
2499584c6260
changed: #menuSave (support for CodeView2 accept/cancel bar)
vrany
parents:
10730
diff
changeset
|
3133 |
ws isCodeView2 ifTrue:[ |
2499584c6260
changed: #menuSave (support for CodeView2 accept/cancel bar)
vrany
parents:
10730
diff
changeset
|
3134 |
ws beUnmodified |
2499584c6260
changed: #menuSave (support for CodeView2 accept/cancel bar)
vrany
parents:
10730
diff
changeset
|
3135 |
] |
10169 | 3136 |
|
3137 |
"Created: / 21-06-2011 / 11:42:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3138 |
"Modified (format): / 05-07-2011 / 15:44:27 / cg" |
|
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
3139 |
"Modified: / 21-06-2019 / 11:59:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10169 | 3140 |
! |
3141 |
||
7403
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
3142 |
newEvaluationWorkspace |
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
3143 |
self class openEvaluationWorkspace |
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
3144 |
|
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
3145 |
"Created: / 13-10-2006 / 12:19:47 / cg" |
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
3146 |
! |
73712386ea82
menu: open/add evaluation workspace
Claus Gittinger <cg@exept.de>
parents:
6865
diff
changeset
|
3147 |
|
3334 | 3148 |
newSystemWorkspace |
3149 |
self class openSystemWorkspace |
|
3150 |
! |
|
3151 |
||
3154 | 3152 |
openDocumentation |
3153 |
"opens the documentation file" |
|
3154 |
||
3155 |
self openHTMLDocument: 'tools/misc/TOP.html#WORKSPACE' |
|
3156 |
! |
|
3157 |
||
13581
75759c16ab7f
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13500
diff
changeset
|
3158 |
openEditingDocumentation |
75759c16ab7f
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13500
diff
changeset
|
3159 |
"opens the documentation file" |
75759c16ab7f
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13500
diff
changeset
|
3160 |
|
75759c16ab7f
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13500
diff
changeset
|
3161 |
self openHTMLDocument: 'tools/codeeditor.html' |
75759c16ab7f
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13500
diff
changeset
|
3162 |
! |
75759c16ab7f
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13500
diff
changeset
|
3163 |
|
4267 | 3164 |
pasteAndExecute:aString |
3165 |
self paste:aString. |
|
4136 | 3166 |
self printIt |
3167 |
! |
|
3168 |
||
14830
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
3169 |
pasteSnippet |
13500 | 3170 |
|allSnippets snippetToPaste snippetsDictionary| |
3171 |
||
14830
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
3172 |
snippetsDictionary := Workspace snippets. |
13500 | 3173 |
snippetsDictionary isEmptyOrNil ifTrue:[ |
3174 |
Dialog information:(resources string:'No Snippet to Paste'). |
|
7944
3d185d0ca8e9
sharedPool inspection support
Claus Gittinger <cg@exept.de>
parents:
7931
diff
changeset
|
3175 |
^ self. |
3d185d0ca8e9
sharedPool inspection support
Claus Gittinger <cg@exept.de>
parents:
7931
diff
changeset
|
3176 |
]. |
13500 | 3177 |
allSnippets := snippetsDictionary keysSorted. |
3178 |
||
3179 |
snippetToPaste := Dialog |
|
3180 |
choose:(resources string:'Paste Snippet:') |
|
3181 |
fromList:allSnippets |
|
7931 | 3182 |
lines:10. |
13500 | 3183 |
snippetToPaste isNil ifTrue:[ |
7931 | 3184 |
^ self |
3185 |
]. |
|
13500 | 3186 |
self paste:(snippetsDictionary at:snippetToPaste) withCRs. |
9616 | 3187 |
|
3188 |
"Modified: / 29-10-2010 / 10:21:29 / cg" |
|
7931 | 3189 |
! |
3190 |
||
3154 | 3191 |
printIt |
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3192 |
|ws| |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3193 |
|
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3194 |
ws := self selectedWorkspacesTextView. |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3195 |
ws notNil ifTrue:[ |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3196 |
ws printIt |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3197 |
] |
3193 | 3198 |
! |
3199 |
||
12028 | 3200 |
profileIt |
3201 |
self selectedWorkspacesTextView profileIt |
|
3202 |
! |
|
3203 |
||
4136 | 3204 |
redoLastDoIt |
4267 | 3205 |
|s| |
4136 | 3206 |
|
4267 | 3207 |
s := self lastDoItsString. |
3208 |
s notNil ifTrue:[ |
|
3209 |
self pasteAndExecute:s |
|
3210 |
] |
|
4136 | 3211 |
! |
3212 |
||
3722 | 3213 |
removeAllWorkspaceVariables |
5846 | 3214 |
(Dialog confirm:(resources string:'Do you really want to remove all Workspace Variables ?')) |
3722 | 3215 |
ifTrue:[ |
3216 |
Workspace removeAllWorkspaceVariables |
|
3217 |
]. |
|
3218 |
! |
|
3219 |
||
4284 | 3220 |
removeGlobalVariable |
3221 |
|name nameKey selection value| |
|
3222 |
||
3223 |
selection := self selectedWorkspacesTextView selection ? ''. |
|
3224 |
||
3225 |
name := Dialog |
|
3226 |
request:'Remove Global Variable:' |
|
3227 |
initialAnswer:(selection asString string) |
|
3228 |
okLabel:'Remove' |
|
3229 |
title:'Remove Global'. |
|
3230 |
||
3231 |
name size == 0 ifTrue:[^ self]. |
|
3232 |
nameKey := name asSymbolIfInterned. |
|
3233 |
nameKey isNil ifTrue:[^ self]. |
|
3234 |
||
3235 |
(Smalltalk includesKey:nameKey) ifFalse:[ |
|
3236 |
self warn:('No such Global Binding: ''%1''.' bindWith:name). |
|
3237 |
^ self. |
|
3238 |
]. |
|
3239 |
||
3240 |
value := Smalltalk at:nameKey. |
|
3241 |
value notNil ifTrue:[ |
|
3242 |
(self confirm:('Global ''%1'' is currently bound to %2\\Remove Binding ?' bindWith:name with:value) withCRs) |
|
3243 |
ifFalse:[ |
|
3244 |
^ self. |
|
3245 |
]. |
|
3246 |
]. |
|
3247 |
Smalltalk at:nameKey put:nil. |
|
3248 |
Smalltalk removeKey:nameKey |
|
3249 |
! |
|
3250 |
||
7931 | 3251 |
removeSharedPool |
3252 |
|poolToRemove| |
|
3253 |
||
3254 |
poolsConsideredInDoIts isEmptyOrNil ifTrue:[ |
|
3255 |
Dialog information:'No pools have been added yet'. |
|
3256 |
^ self. |
|
3257 |
]. |
|
3258 |
||
3259 |
poolToRemove := Dialog |
|
3260 |
choose:'Pool to Remove (No longer known in doIt-Evaluations):' |
|
3261 |
fromList:(poolsConsideredInDoIts asOrderedCollection sort) |
|
3262 |
lines:10. |
|
3263 |
||
3264 |
poolToRemove isNil ifTrue:[ |
|
3265 |
^ self |
|
3266 |
]. |
|
3267 |
poolsConsideredInDoIts remove:poolToRemove. |
|
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3268 |
workspaces do:[:eachWs | |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3269 |
|ws| |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3270 |
ws := self workspaceViewOfView:eachWs. |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3271 |
ws notNil ifTrue:[ |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3272 |
ws poolsConsideredInDoIts:poolsConsideredInDoIts. |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3273 |
]. |
7931 | 3274 |
]. |
3275 |
||
3276 |
"Modified: / 24-11-2006 / 12:44:16 / cg" |
|
3277 |
! |
|
3278 |
||
3722 | 3279 |
removeWorkspaceVariable |
6266 | 3280 |
|name selection wsVarNames| |
3812 | 3281 |
|
6266 | 3282 |
wsVarNames := Workspace workspaceVariableNames. |
3283 |
wsVarNames isEmpty ifTrue:[ |
|
3812 | 3284 |
Dialog information:'No Workspace Variables are defined'. |
3285 |
^ self |
|
3286 |
]. |
|
3722 | 3287 |
|
3288 |
selection := self selectedWorkspacesTextView selection ? ''. |
|
3289 |
||
3290 |
name := Dialog |
|
3291 |
request:'Variable to remove:' |
|
3292 |
initialAnswer:(selection asString string) |
|
3293 |
okLabel:'Remove' |
|
3294 |
title:'Enter Variable Name' |
|
6266 | 3295 |
list:(wsVarNames asOrderedCollection sort). |
3296 |
name isEmptyOrNil ifTrue:[ |
|
3722 | 3297 |
^ self |
3298 |
]. |
|
3299 |
Workspace removeWorkspaceVariable:name. |
|
6266 | 3300 |
|
3301 |
"Modified: / 20-04-2005 / 11:56:28 / cg" |
|
3722 | 3302 |
! |
3303 |
||
10169 | 3304 |
renameWorkspace:wsIndex to:newName |
3305 |
|tabList| |
|
3306 |
||
3307 |
tabList := self tabList. |
|
3308 |
tabList notEmpty ifTrue:[ |
|
3309 |
tabList at:wsIndex put:newName. |
|
3310 |
]. |
|
3311 |
wsIndex == self selectedWorkspaceIndexHolder value ifTrue:[ |
|
3312 |
self setWindowLabel: newName. |
|
3313 |
]. |
|
3314 |
! |
|
3315 |
||
9746
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
3316 |
setCompilerForSyntax |
11811
41a4ebfe2da2
changed: #setCompilerForSyntax
Claus Gittinger <cg@exept.de>
parents:
11799
diff
changeset
|
3317 |
|selectedWorkspace ws| |
11654
7ac01328f0ef
changed: #setCompilerForSyntax
Claus Gittinger <cg@exept.de>
parents:
11627
diff
changeset
|
3318 |
|
7ac01328f0ef
changed: #setCompilerForSyntax
Claus Gittinger <cg@exept.de>
parents:
11627
diff
changeset
|
3319 |
(selectedWorkspace := self selectedWorkspace) notNil ifTrue:[ |
11811
41a4ebfe2da2
changed: #setCompilerForSyntax
Claus Gittinger <cg@exept.de>
parents:
11799
diff
changeset
|
3320 |
(ws := self workspaceViewOfView:selectedWorkspace) notNil ifTrue:[ |
41a4ebfe2da2
changed: #setCompilerForSyntax
Claus Gittinger <cg@exept.de>
parents:
11799
diff
changeset
|
3321 |
self setCompilerForSyntaxIn:ws. |
41a4ebfe2da2
changed: #setCompilerForSyntax
Claus Gittinger <cg@exept.de>
parents:
11799
diff
changeset
|
3322 |
] |
11654
7ac01328f0ef
changed: #setCompilerForSyntax
Claus Gittinger <cg@exept.de>
parents:
11627
diff
changeset
|
3323 |
]. |
7ac01328f0ef
changed: #setCompilerForSyntax
Claus Gittinger <cg@exept.de>
parents:
11627
diff
changeset
|
3324 |
|
11811
41a4ebfe2da2
changed: #setCompilerForSyntax
Claus Gittinger <cg@exept.de>
parents:
11799
diff
changeset
|
3325 |
"Modified: / 26-09-2012 / 11:55:59 / cg" |
9746
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
3326 |
! |
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
3327 |
|
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
3328 |
setCompilerForSyntaxIn:aWorkspace |
11826 | 3329 |
|compilerClass language| |
9746
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
3330 |
|
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
3331 |
language := self syntaxHolder value. |
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
3332 |
language isSymbol ifTrue:[ |
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
3333 |
language := ProgrammingLanguage named:language |
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
3334 |
]. |
11612 | 3335 |
language isNil ifTrue:[ |
11826 | 3336 |
compilerClass := nil |
11612 | 3337 |
] ifFalse:[ |
11826 | 3338 |
compilerClass := (language evaluatorClass "self compilerClassForSyntaxName:syntax"). |
11612 | 3339 |
]. |
11826 | 3340 |
[ |
3341 |
"/ could be a non-text view (VT100Terminal) |
|
3342 |
aWorkspace compilerClass:compilerClass. |
|
13581
75759c16ab7f
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13500
diff
changeset
|
3343 |
aWorkspace editedLanguage:language. |
11826 | 3344 |
] on:MessageNotUnderstood do:[]. |
3345 |
||
11612 | 3346 |
self smalltalkMenuEnabledHolder value:(language notNil and:[language isSmalltalk]). |
9746
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
3347 |
|
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
3348 |
"Created: / 08-02-2011 / 21:32:39 / cg" |
10602 | 3349 |
"Modified: / 17-08-2011 / 08:47:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
11826 | 3350 |
"Modified: / 28-09-2012 / 19:55:18 / cg" |
9746
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
3351 |
! |
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
3352 |
|
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
3353 |
setNameSpaceForDoIts |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
3354 |
|selectedWorkspace ws| |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
3355 |
|
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
3356 |
(selectedWorkspace := self selectedWorkspace) notNil ifTrue:[ |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
3357 |
(ws := self workspaceViewOfView:selectedWorkspace) notNil ifTrue:[ |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
3358 |
(self compilerClassOf:selectedWorkspace) notNil ifTrue:[ |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
3359 |
ws nameSpaceForDoits:(self namespaceHolder value). |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
3360 |
]. |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
3361 |
] |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
3362 |
]. |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
3363 |
! |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
3364 |
|
3384 | 3365 |
spyOnIt |
3366 |
self selectedWorkspacesTextView spyOnIt |
|
3367 |
! |
|
3368 |
||
10169 | 3369 |
switchToBookmarkEntry: bookmark |
11829
2e8997ff4629
changed: #switchToBookmarkEntry:
Claus Gittinger <cg@exept.de>
parents:
11826
diff
changeset
|
3370 |
| ws file app | |
10169 | 3371 |
|
3372 |
ws := self selectedWorkspace scrolledView. |
|
11725
0b626c2b4b2d
Avoid #isKindOf: where possible
Stefan Vogel <sv@exept.de>
parents:
11713
diff
changeset
|
3373 |
(ws isApplicationSubView) ifTrue:[ |
11829
2e8997ff4629
changed: #switchToBookmarkEntry:
Claus Gittinger <cg@exept.de>
parents:
11826
diff
changeset
|
3374 |
((app := ws application) respondsTo:#switchToBookmarkEntry:) ifTrue:[ |
2e8997ff4629
changed: #switchToBookmarkEntry:
Claus Gittinger <cg@exept.de>
parents:
11826
diff
changeset
|
3375 |
app switchToBookmarkEntry: bookmark |
10730
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
3376 |
]. |
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
3377 |
^ self. |
10169 | 3378 |
]. |
3379 |
||
3380 |
bookmark isFileBookmark ifTrue:[ |
|
3381 |
file := bookmark path asFilename. |
|
10730
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
3382 |
(ws isTextView not or:[ws contents notEmpty]) ifTrue:[ |
10169 | 3383 |
self addWindow: (self createWorkspace) named: file withoutSuffix baseName. |
3384 |
]. |
|
3385 |
file exists ifFalse:[ |
|
3386 |
Transcript showCR:('Bookmarked workspace file no longer exists: %1' bindWith:file) |
|
3387 |
] ifTrue:[ |
|
3388 |
self loadFile: file. |
|
3389 |
]. |
|
10730
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
3390 |
^ self. |
10169 | 3391 |
]. |
3392 |
||
3393 |
"Created: / 20-06-2011 / 22:45:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3394 |
"Modified: / 21-06-2011 / 08:18:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10730
23c04d952143
much faster startup in openMyWorkspace_new
Claus Gittinger <cg@exept.de>
parents:
10602
diff
changeset
|
3395 |
"Modified: / 28-09-2011 / 07:44:53 / cg" |
10169 | 3396 |
! |
3397 |
||
13413
1e726d57eeca
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12942
diff
changeset
|
3398 |
terminateBackgroundProcesses |
1e726d57eeca
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12942
diff
changeset
|
3399 |
Processor activeProcess terminateAllSubprocessesInGroup |
1e726d57eeca
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12942
diff
changeset
|
3400 |
! |
1e726d57eeca
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12942
diff
changeset
|
3401 |
|
3384 | 3402 |
timeIt |
3403 |
self selectedWorkspacesTextView timeIt |
|
3154 | 3404 |
! ! |
3405 |
||
8763 | 3406 |
!WorkspaceApplication methodsFor:'menu-actions-adding'! |
3407 |
||
10169 | 3408 |
addBookmark |
3409 |
||
3410 |
self menuAddBookmarkTo: self bookmarks root. |
|
3411 |
||
3412 |
"Created: / 20-06-2011 / 22:34:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3413 |
"Modified: / 21-06-2011 / 08:56:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3414 |
! |
|
3415 |
||
8763 | 3416 |
addClassVariableInspector |
3417 |
|v| |
|
3418 |
||
3419 |
ClassVariablesInspectorView isNil ifTrue:[ |
|
3420 |
self error:'Missing class: "ClassVariablesInspectorView"'. |
|
3421 |
^ self. |
|
3422 |
]. |
|
3423 |
v := self addInspectorOn:Smalltalk inspectorClass:ClassVariablesInspectorView suppressPseudoSlots:true. |
|
3424 |
||
3425 |
v fieldListLabel:'Name'. |
|
3426 |
self renameWorkspace:(self selectedWorkspaceIndexHolder value) to:'Class Variables'. |
|
3427 |
||
3428 |
"Modified: / 22-10-2006 / 11:28:14 / cg" |
|
3429 |
! |
|
3430 |
||
3431 |
addEvaluationWorkspace |
|
3432 |
^ self addWindow:(self createEvaluationWorkspace) named:'Eval%1' |
|
3433 |
||
3434 |
"Modified: / 13-10-2006 / 12:16:35 / cg" |
|
3435 |
! |
|
3436 |
||
3437 |
addGlobalVariable |
|
3438 |
|name nameKey selection| |
|
3439 |
||
3440 |
selection := self selectedWorkspacesTextView selection ? ''. |
|
3441 |
||
3442 |
name := Dialog |
|
3443 |
request:'Name of new Global Variable:' |
|
3444 |
initialAnswer:(selection asString string) |
|
3445 |
okLabel:'Add' |
|
3446 |
title:'Enter Variable Name'. |
|
3447 |
name size == 0 ifTrue:[ |
|
3448 |
^ self |
|
3449 |
]. |
|
3450 |
nameKey := name asSymbol. |
|
3451 |
||
3452 |
(Smalltalk includesKey:nameKey) ifTrue:[ |
|
3453 |
self warn:'Global named ''' , name , ''' already exists.'. |
|
3454 |
^ self. |
|
3455 |
]. |
|
3456 |
Smalltalk at:nameKey put:nil. |
|
3457 |
! |
|
3458 |
||
3459 |
addGlobalVariableInspector |
|
3460 |
^ self addNamespaceInspectorFor:Smalltalk |
|
3461 |
||
3462 |
"Modified: / 29-05-2007 / 19:08:58 / cg" |
|
3463 |
! |
|
3464 |
||
3465 |
addInspectorOn:aValue basic:isBasicInspector suppressPseudoSlots:suppressPseudoSlots |
|
3466 |
|inspectorClass| |
|
3467 |
||
3468 |
isBasicInspector ifFalse:[ |
|
12737 | 3469 |
"/ Inspector2 does not work yet!! |
3470 |
"(Tools::Inspector2 notNil and:[UserPreferences current useInspector2])" false ifTrue:[ |
|
3471 |
inspectorClass := Tools::Inspector2. |
|
3472 |
] ifFalse:[ |
|
3473 |
inspectorClass := aValue inspectorClass. |
|
3474 |
]. |
|
8763 | 3475 |
]. |
3476 |
inspectorClass isNil ifTrue:[ |
|
3477 |
inspectorClass := InspectorView |
|
3478 |
]. |
|
3479 |
||
3480 |
^ self |
|
3481 |
addInspectorOn:aValue |
|
3482 |
inspectorClass:inspectorClass |
|
3483 |
suppressPseudoSlots:suppressPseudoSlots |
|
3484 |
! |
|
3485 |
||
3486 |
addInspectorOn:aValue inspectorClass:inspectorClass suppressPseudoSlots:suppressPseudoSlots |
|
3487 |
|view resultString| |
|
3488 |
||
3489 |
view := inspectorClass new. |
|
3490 |
view suppressPseudoSlots:suppressPseudoSlots. |
|
3491 |
view inspect:aValue. |
|
3492 |
"/ v allowFollow:true. |
|
3493 |
aValue isBehavior ifTrue:[ |
|
3494 |
resultString := aValue name |
|
3495 |
] ifFalse:[ |
|
3496 |
resultString := aValue classNameWithArticle |
|
3497 |
]. |
|
3498 |
self addWindow:view named:('Inspecting: ' , resultString). |
|
3499 |
^ view |
|
3500 |
! |
|
3501 |
||
3502 |
addMyWorkspace |
|
16261 | 3503 |
|ws f| |
8763 | 3504 |
|
10169 | 3505 |
self |
16261 | 3506 |
addWindow:(ws := self createWorkspaceView) |
10169 | 3507 |
named:'My Workspace' |
3508 |
asFirst:false. |
|
3509 |
||
3510 |
f := Filename homeDirectory / 'MyWorkspace.wsp'. |
|
3511 |
f exists ifFalse:[ |
|
3512 |
f := Filename homeDirectory / '.smalltalk' / 'MyWorkspace.wsp'. |
|
3513 |
f exists ifFalse:[ |
|
3514 |
f := 'MyWorkspace.wsp' asFilename |
|
3515 |
] |
|
3516 |
]. |
|
3517 |
f exists ifTrue:[ |
|
3518 |
self loadFile:f label:'My Workspace'. |
|
8763 | 3519 |
] ifFalse:[ |
16261 | 3520 |
ws defaultFileNameForFileDialog: f pathName. |
8763 | 3521 |
]. |
3522 |
||
10169 | 3523 |
"Modified: / 21-06-2010 / 08:40:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3524 |
"Modified: / 05-07-2011 / 15:39:08 / cg" |
|
8763 | 3525 |
! |
3526 |
||
3527 |
addNamespaceInspector |
|
3528 |
|ns| |
|
3529 |
||
3530 |
ns := Dialog requestNameSpace:'Namespace' initialAnswer:nil. |
|
3531 |
ns isEmptyOrNil ifTrue:[^ self]. |
|
3532 |
^ self addNamespaceInspectorFor:(Smalltalk at:ns asSymbol) |
|
3533 |
||
3534 |
"Created: / 29-05-2007 / 19:10:50 / cg" |
|
3535 |
! |
|
3536 |
||
3537 |
addNamespaceInspectorFor:aNameSpaceOrSharedPool |
|
3538 |
|v label| |
|
3539 |
||
3540 |
SmalltalkInspectorView isNil ifTrue:[ |
|
3541 |
self error:'Missing class: "SmalltalkInspectorView"'. |
|
3542 |
^ nil. |
|
3543 |
]. |
|
3544 |
||
3545 |
v := self |
|
3546 |
addInspectorOn:aNameSpaceOrSharedPool |
|
3547 |
inspectorClass:SmalltalkInspectorView |
|
3548 |
suppressPseudoSlots:true. |
|
3549 |
||
3550 |
v fieldListLabel:'Name'. |
|
3551 |
aNameSpaceOrSharedPool == Smalltalk ifTrue:[ |
|
3552 |
label := 'Smalltalk (Globals)' |
|
3553 |
] ifFalse:[ |
|
3554 |
aNameSpaceOrSharedPool isSharedPool ifTrue:[ |
|
3555 |
label := aNameSpaceOrSharedPool name,' (SharedPool)' |
|
3556 |
] ifFalse:[ |
|
3557 |
label := aNameSpaceOrSharedPool name,' (Namespace)' |
|
3558 |
]. |
|
3559 |
]. |
|
3560 |
||
3561 |
self |
|
3562 |
renameWorkspace:(self selectedWorkspaceIndexHolder value) |
|
3563 |
to:label. |
|
3564 |
^ v |
|
3565 |
||
3566 |
"Created: / 29-05-2007 / 19:08:45 / cg" |
|
3567 |
! |
|
3568 |
||
13852 | 3569 |
addSQLWorkspace |
3570 |
|page view | |
|
3571 |
||
3572 |
page := (Smalltalk at:#'SQL::WorkspacePage') new. |
|
3573 |
view := ApplicationSubView new. |
|
3574 |
view client:page spec:#windowSpec. |
|
3575 |
self addWindow:view named:'SQL Workspace %1'. |
|
3576 |
||
3577 |
"Created: / 10-05-2012 / 18:48:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3578 |
! |
|
3579 |
||
14830
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
3580 |
addSelectionToSnippets |
13500 | 3581 |
|selection snippetsBaseName snippetsName nr snippetsDictionary| |
8763 | 3582 |
|
3583 |
selection := (self selectedWorkspacesTextView selection ? '') asString. |
|
3584 |
selection isEmpty ifTrue:[ |
|
3585 |
Dialog information:(resources string:'Nothing Selected'). |
|
3586 |
^ self |
|
3587 |
]. |
|
3588 |
||
13500 | 3589 |
snippetsBaseName := Dialog request:(resources string:'Name of Snippet:'). |
3590 |
snippetsBaseName isNil ifTrue:[ |
|
8763 | 3591 |
^ self |
3592 |
]. |
|
13500 | 3593 |
snippetsBaseName isEmpty ifTrue:[ |
3594 |
snippetsBaseName := Time now asString. |
|
8763 | 3595 |
]. |
14830
ae72eee69f1c
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14818
diff
changeset
|
3596 |
snippetsDictionary := Workspace snippets. |
13500 | 3597 |
|
3598 |
snippetsName := snippetsBaseName. |
|
3599 |
(snippetsDictionary includesKey:snippetsName) ifTrue:[ |
|
3600 |
(Dialog confirm:(resources string:'Replace existing snippet named "%1" ?' with:snippetsName)) |
|
8763 | 3601 |
ifFalse:[ |
13500 | 3602 |
[snippetsDictionary includesKey:snippetsName] whileTrue:[ |
8763 | 3603 |
nr := (nr ? 1) + 1. |
13500 | 3604 |
snippetsName := (snippetsBaseName,'(%1)') bindWith:nr |
8763 | 3605 |
]. |
3606 |
] |
|
3607 |
]. |
|
13500 | 3608 |
snippetsDictionary at:snippetsName put:selection |
8763 | 3609 |
|
3610 |
"Modified: / 24-11-2006 / 12:44:16 / cg" |
|
3611 |
! |
|
3612 |
||
3613 |
addSharedPool |
|
3614 |
|allPools poolToAdd| |
|
3615 |
||
3616 |
allPools := SharedPool allSubclasses collect:[:p | p name]. |
|
3617 |
allPools removeAll:(poolsConsideredInDoIts ? #()). |
|
9671 | 3618 |
allPools sort. |
8763 | 3619 |
|
3620 |
poolToAdd := Dialog |
|
3621 |
choose:'Select a SharedPool to Add (To be known in doIt-Evaluations):' |
|
3622 |
fromList:allPools |
|
3623 |
lines:15. |
|
3624 |
poolToAdd isNil ifTrue:[ |
|
3625 |
^ self |
|
3626 |
]. |
|
3627 |
poolsConsideredInDoIts isNil ifTrue:[ |
|
3628 |
poolsConsideredInDoIts := (Set new). |
|
3629 |
]. |
|
3630 |
poolsConsideredInDoIts add:poolToAdd. |
|
11481
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3631 |
workspaces do:[:eachWs | |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3632 |
|ws| |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3633 |
ws := self workspaceViewOfView:eachWs. |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3634 |
ws notNil ifTrue:[ |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3635 |
ws poolsConsideredInDoIts:poolsConsideredInDoIts. |
d0a2a73ed69d
added: #selectedWorkspaceIsTextView
Stefan Vogel <sv@exept.de>
parents:
11480
diff
changeset
|
3636 |
]. |
8763 | 3637 |
]. |
3638 |
||
3639 |
"Modified: / 24-11-2006 / 12:44:16 / cg" |
|
3640 |
! |
|
3641 |
||
3642 |
addSharedPoolInspector |
|
3643 |
|pool| |
|
3644 |
||
3645 |
pool := Dialog requestSharedPool:'SharedPool' title:nil initialAnswer:nil. |
|
3646 |
pool isEmptyOrNil ifTrue:[^ self]. |
|
3647 |
^ self addNamespaceInspectorFor:(Smalltalk at:pool asSymbol) |
|
3648 |
||
3649 |
"Created: / 29-05-2007 / 19:10:50 / cg" |
|
3650 |
! |
|
3651 |
||
3652 |
addStopWatch |
|
16485 | 3653 |
|v clockViewClass clock| |
8763 | 3654 |
|
3655 |
v := View new. |
|
3656 |
v viewBackground:Color white. |
|
16485 | 3657 |
"/ avoid making stx:libwidg3 a prerequisite. |
3658 |
Smalltalk loadPackage:#'stx:libwidg3'. "/ ClockView package |
|
3659 |
clockViewClass := Smalltalk at:#ClockView. |
|
3660 |
||
3661 |
clock := clockViewClass in:v. |
|
8763 | 3662 |
clock beStopWatch. |
3663 |
||
3664 |
clock |
|
3665 |
origin:[ |
|
3666 |
|ext| |
|
3667 |
||
3668 |
ext := (v height) min:(v width). |
|
3669 |
(v extent - ext) // 2 |
|
3670 |
] |
|
3671 |
extent:[ |
|
3672 |
|ext| |
|
3673 |
||
3674 |
ext := (v height) min:(v width). |
|
3675 |
ext @ ext |
|
3676 |
]. |
|
3677 |
||
14804
3cd896cf9959
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14747
diff
changeset
|
3678 |
self addWindow:v named:'StopWatch%1' tabIcon:(ToolbarIconLibrary clock13x13Icon). |
8763 | 3679 |
! |
3680 |
||
3681 |
addTeaTimer |
|
10169 | 3682 |
"you think that is a useless gimmick ? |
3683 |
I use it in the office and as a wakeup clock timer" |
|
3684 |
||
9569 | 3685 |
|l dt tEnd dur answer confirmed confirmButton| |
8763 | 3686 |
|
3687 |
dt := LastTeaWaitTime ? (3*60). |
|
3688 |
answer := Dialog |
|
3689 |
request:'Delta-Time (seconds), Duration (n s/m/h) or End-Time (hh:mm:ss):' |
|
3690 |
initialAnswer:(TimeDuration seconds:dt) printString. |
|
3691 |
answer isEmptyOrNil ifTrue:[^ self]. |
|
3692 |
||
3693 |
"/ allow 3 formats: |
|
3694 |
"/ hh:mm:ss -> endTime |
|
3695 |
"/ nnn s -> x seconds |
|
3696 |
"/ nnn m -> x minutes |
|
3697 |
"/ nnn h -> x hours |
|
3698 |
"/ nnn -> seconds |
|
3699 |
||
3700 |
tEnd := Time readFromString:answer onError:nil. |
|
3701 |
tEnd isNil ifTrue:[ |
|
3702 |
dur := TimeDuration readFromString:answer onError:nil. |
|
3703 |
dur isNil ifTrue:[ |
|
3704 |
dt := Number readFromString:answer onError:[^ self]. |
|
3705 |
LastTeaWaitTime := dt. |
|
3706 |
tEnd := Timestamp now addSeconds:dt. |
|
3707 |
] ifFalse:[ |
|
3708 |
dt := dur asSeconds. |
|
3709 |
tEnd := Timestamp now + dur. |
|
3710 |
]. |
|
3711 |
] ifFalse:[ |
|
9569 | 3712 |
tEnd < Time now ifTrue:[ |
3713 |
(Dialog confirm:'Tomorrow ?') ifFalse:[^ self]. |
|
3714 |
tEnd := tEnd asTimestamp addDays:1. |
|
3715 |
dt := tEnd - Timestamp now. |
|
3716 |
] ifFalse:[ |
|
3717 |
dt := tEnd - Time now. |
|
3718 |
tEnd := tEnd asTimestamp. |
|
3719 |
]. |
|
8763 | 3720 |
]. |
3721 |
||
3722 |
l := Label new. |
|
3723 |
l sizeFixed:true. |
|
14368 | 3724 |
l label:'Waiting... [', dt printString, ']'. |
8763 | 3725 |
l viewBackground:Color red. |
9569 | 3726 |
confirmButton := (Button label:'OK') action:[ confirmed := true. confirmButton beInvisible. ]. |
3727 |
confirmButton beInvisible. |
|
3728 |
l add:confirmButton. |
|
14804
3cd896cf9959
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14747
diff
changeset
|
3729 |
|
3cd896cf9959
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14747
diff
changeset
|
3730 |
self addWindow:l named:'TeaTimer%1' tabIcon:(ToolbarIconLibrary clock13x13Icon). |
8763 | 3731 |
|
3732 |
[ |
|
10169 | 3733 |
Error handle:[ |
14368 | 3734 |
self error:'check this, please'. |
8763 | 3735 |
#intentionallyLeftBlank |
3736 |
] do:[ |
|
14368 | 3737 |
|remaining wg waitTime| |
3738 |
||
3739 |
waitTime := TimeDuration fromSeconds:1. |
|
9569 | 3740 |
confirmed := false. |
11480 | 3741 |
[Timestamp now < tEnd ] whileTrue:[ |
14368 | 3742 |
remaining := (tEnd - Timestamp now) roundTo:waitTime. |
3743 |
l label:'Waiting... [', remaining printString, ']'. |
|
3744 |
Delay waitFor:waitTime. |
|
8763 | 3745 |
]. |
9569 | 3746 |
|
8763 | 3747 |
l label:'TEA is ready !!'. |
12735
44e8ea95cd2f
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12699
diff
changeset
|
3748 |
self window topView raiseDeiconified. |
9632 | 3749 |
"/ could have been removed in the meantime.... |
3750 |
(wg := confirmButton windowGroup) notNil ifTrue:[ |
|
3751 |
confirmButton beVisible. |
|
3752 |
wg repairDamage. |
|
3753 |
||
3754 |
[ confirmed ] whileFalse:[ |
|
12735
44e8ea95cd2f
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12699
diff
changeset
|
3755 |
self window topView raiseDeiconified. |
9632 | 3756 |
3 timesRepeat:[ l beep. Delay waitForSeconds:0.4 ]. |
3757 |
Delay waitForSeconds:5. |
|
3758 |
]. |
|
3759 |
||
3760 |
l viewBackground:Color green. |
|
9569 | 3761 |
]. |
8763 | 3762 |
] |
3763 |
] fork. |
|
3764 |
||
9632 | 3765 |
"Modified: / 16-11-2010 / 14:54:05 / cg" |
10169 | 3766 |
"Modified (comment): / 05-07-2011 / 14:30:48 / cg" |
3767 |
! |
|
3768 |
||
3769 |
addTerminal |
|
3770 |
| v termView | |
|
3771 |
||
13906
e13d8ad35a46
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13901
diff
changeset
|
3772 |
(OperatingSystem isUNIXlike |
14457
75bcb6c122a7
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14446
diff
changeset
|
3773 |
"/ mhm - xterm embedding seems to no longer work; the default from user prefs is therefore false |
75bcb6c122a7
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14446
diff
changeset
|
3774 |
and:[UserPreferences current useXTermViewIfAvailable |
13906
e13d8ad35a46
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13901
diff
changeset
|
3775 |
and:[XTermView notNil |
e13d8ad35a46
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13901
diff
changeset
|
3776 |
and:[XTermView isAvailable]]]) ifTrue:[ |
10169 | 3777 |
v := termView := XTermView new |
3778 |
] ifFalse:[ |
|
14457
75bcb6c122a7
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14446
diff
changeset
|
3779 |
VT100TerminalView isNil ifTrue:[ |
75bcb6c122a7
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14446
diff
changeset
|
3780 |
Dialog warn:('Missing class: ' , 'VT100TerminalView' allBold). |
75bcb6c122a7
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14446
diff
changeset
|
3781 |
AbortOperationRequest raise |
75bcb6c122a7
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14446
diff
changeset
|
3782 |
]. |
10169 | 3783 |
v := (HVScrollableView for:VT100TerminalView). |
3784 |
termView := v scrolledView. |
|
3785 |
v autoHideScrollBars:false. |
|
3786 |
v horizontalMini:true. |
|
3787 |
"/ the startShell seems to realize the view, which is not allowed. |
|
3788 |
"/ do it later (after adding to myself) |
|
3789 |
"/ termView startShellIn: Filename currentDirectory asString. |
|
3790 |
]. |
|
3791 |
||
14804
3cd896cf9959
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14747
diff
changeset
|
3792 |
self addWindow:v named:'Terminal%1' tabIcon:(ToolbarIconLibrary console13x13Icon). |
10169 | 3793 |
|
3794 |
termView shellTerminateAction:[ termView cr; nextPutLine:'*** shell terminated ***' allBold; cr.]. |
|
3795 |
termView startShellIn: Filename currentDirectory asString. |
|
3796 |
||
3797 |
"Modified: / 09-12-2010 / 23:22:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3798 |
"Modified: / 05-07-2011 / 14:42:39 / cg" |
|
3799 |
! |
|
3800 |
||
3801 |
addWebBrowser |
|
3802 |
|view browser| |
|
3803 |
||
3804 |
browser := Tools::WebBrowserPage new. |
|
3805 |
browser toolBarVisibleHolder value:false. |
|
3806 |
view := ApplicationSubView new. |
|
3807 |
view client:browser spec:#windowSpec. |
|
13852 | 3808 |
self addWindow:view named:'Web Browser %1'. |
10169 | 3809 |
|
3810 |
"Created: / 10-06-2011 / 23:27:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3811 |
"Modified (format): / 05-07-2011 / 14:30:59 / cg" |
|
13852 | 3812 |
"Modified: / 10-05-2012 / 18:49:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8763 | 3813 |
! |
3814 |
||
3815 |
addWorkspaceVariable |
|
3816 |
|name selectedWorkspacesTextView selection| |
|
3817 |
||
3818 |
selectedWorkspacesTextView := self selectedWorkspacesTextView. |
|
3819 |
selectedWorkspacesTextView notNil ifTrue:[ |
|
3820 |
selection := selectedWorkspacesTextView selection. |
|
3821 |
]. |
|
3822 |
||
3823 |
name := Dialog |
|
3824 |
request:'Name of new Workspace Variable:' |
|
3825 |
initialAnswer:(selection ? '') asString string |
|
3826 |
okLabel:'Add' |
|
3827 |
title:'Enter Variable Name'. |
|
3828 |
name size == 0 ifTrue:[ |
|
3829 |
^ self |
|
3830 |
]. |
|
3831 |
Workspace addWorkspaceVariable:name. |
|
3832 |
||
3833 |
"Modified: / 24-11-2006 / 12:44:16 / cg" |
|
3834 |
! |
|
3835 |
||
3836 |
addWorkspaceVariableInspector |
|
3837 |
|v| |
|
3838 |
||
3839 |
v := self addInspectorOn:(Workspace workspaceVariables) basic:false suppressPseudoSlots:true. |
|
3840 |
v dereferenceValueHolders:true. |
|
3841 |
v fieldListLabel:'Name'. |
|
9085 | 3842 |
self renameWorkspace:(self selectedWorkspaceIndexHolder value) to:'Workspace Variables'. |
10169 | 3843 |
! |
3844 |
||
3845 |
menuAddBookmarkTo: folder |
|
3846 |
||
3847 |
| ws file | |
|
3848 |
||
3849 |
ws := self selectedWorkspace scrolledView. |
|
3850 |
ws isTextView ifTrue:[ |
|
3851 |
file := ws defaultFileNameForFileDialog. |
|
3852 |
file ifNotNil:[folder add: (Bookmark forFile: file)]. |
|
3853 |
folder model save. |
|
3854 |
] ifFalse:[ |
|
11480 | 3855 |
self shouldImplement |
10169 | 3856 |
] |
3857 |
||
3858 |
"Created: / 21-06-2011 / 08:56:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
8763 | 3859 |
! ! |
3860 |
||
4790 | 3861 |
!WorkspaceApplication methodsFor:'menu-actions-editing'! |
3862 |
||
3863 |
babelFishTranslate:fromToModeString |
|
17054 | 3864 |
"translate the selected text and paste it after the selection. |
3865 |
This is now obsolete, as that web service no longer exists (sigh)" |
|
4790 | 3866 |
|
9653 | 3867 |
SOAP::BabelFishClient isNil ifTrue:[ |
3868 |
Dialog information:'Sorry the SOAP-BabelFish translation-client is not available'. |
|
3869 |
^ self. |
|
3870 |
]. |
|
4790 | 3871 |
self selectedWorkspace babelFishTranslate:fromToModeString |
9653 | 3872 |
|
3873 |
"Modified: / 01-12-2010 / 12:24:34 / cg" |
|
4790 | 3874 |
! |
3875 |
||
7831 | 3876 |
changesBrowserOnText |
11713
3073bed82974
changed: #changesBrowserOnText
Claus Gittinger <cg@exept.de>
parents:
11654
diff
changeset
|
3877 |
(UserPreferences current changeSetBrowserClass) |
7831 | 3878 |
openOn:(ChangeSet fromStream:self selectedWorkspacesTextView contentsAsString readStream) |
3879 |
||
3880 |
"Created: / 27-08-2007 / 10:57:30 / cg" |
|
3881 |
! |
|
3882 |
||
10169 | 3883 |
editBookmarks |
3884 |
||
3885 |
BookmarkListEditor new |
|
3886 |
bookmarkList: self bookmarks; |
|
3887 |
open. |
|
3888 |
||
3889 |
"Created: / 20-06-2011 / 22:34:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3890 |
! |
|
3891 |
||
9695 | 3892 |
editModeInsert |
3893 |
self selectedWorkspace editModeInsert |
|
3894 |
||
3895 |
"Created: / 22-01-2011 / 11:51:12 / cg" |
|
3896 |
! |
|
3897 |
||
3898 |
editModeInsertAndSelect |
|
3899 |
self selectedWorkspace editModeInsertAndSelect |
|
3900 |
||
3901 |
"Created: / 22-01-2011 / 11:52:52 / cg" |
|
3902 |
! |
|
3903 |
||
3904 |
editModeOverwrite |
|
3905 |
self selectedWorkspace editModeOverwrite |
|
3906 |
||
3907 |
"Created: / 22-01-2011 / 11:52:15 / cg" |
|
3908 |
! |
|
3909 |
||
5261 | 3910 |
fileInText |
13917
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3911 |
"filein the selected workspace's contents as if read from a file" |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3912 |
|
5261 | 3913 |
self selectedWorkspacesTextView contentsAsString readStream fileIn |
3914 |
! |
|
3915 |
||
4790 | 3916 |
filterText |
13917
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3917 |
"a filterblock is asked for, which is applied to the |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3918 |
selected line range. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3919 |
Each line for which the filter evaluats to false is removed" |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3920 |
|
11496 | 3921 |
|template filterBlock newList oldList answer nDeleted deletedLines |
3922 |
prevLine nextLine line| |
|
4790 | 3923 |
|
17054 | 3924 |
template := self class filterTemplate. |
4790 | 3925 |
|
11496 | 3926 |
filterBlock := self askForFilterBlock:'Filter block (to remove lines):' |
4790 | 3927 |
template:template |
3928 |
rememberIn:#LastFilterBlockString. |
|
3929 |
filterBlock isNil ifTrue:[^ self]. |
|
3930 |
||
3931 |
oldList := self selectedWorkspacesTextView list. |
|
11496 | 3932 |
newList := StringCollection new. |
3933 |
deletedLines := OrderedCollection new. |
|
3934 |
||
3935 |
oldList notEmptyOrNil ifTrue:[ |
|
3936 |
line := nil. |
|
3937 |
nextLine := oldList at: 1. |
|
3938 |
1 to: oldList size do:[:lineNr | |
|
3939 |
prevLine := line. |
|
3940 |
line := nextLine. |
|
3941 |
nextLine := oldList at: lineNr + 1 ifAbsent: nil. |
|
3942 |
||
3943 |
(filterBlock |
|
3944 |
value:(line ? '') |
|
3945 |
value: lineNr |
|
3946 |
value: (prevLine ? '') |
|
3947 |
value: (nextLine ? '') |
|
3948 |
) ifTrue: [ |
|
3949 |
newList add: line |
|
3950 |
] ifFalse:[ |
|
3951 |
deletedLines add: line. |
|
3952 |
] |
|
3953 |
]. |
|
3954 |
||
3955 |
newList := newList collect:[:line | (line isString and:[line size == 0]) ifTrue:[nil] ifFalse:[line]]. |
|
3956 |
]. |
|
3957 |
||
3958 |
nDeleted := deletedLines size. |
|
4790 | 3959 |
nDeleted == 0 ifTrue:[ |
3960 |
self information:'No lines were deleted.'. |
|
3961 |
^ self |
|
3962 |
]. |
|
3963 |
||
11496 | 3964 |
answer := OptionBox |
3965 |
request:(resources |
|
4790 | 3966 |
string:'%1 lines remain (%2 deleted). Change text ?' |
3967 |
with:newList size |
|
3968 |
with:nDeleted) |
|
11496 | 3969 |
buttonLabels:#( 'Cancel' 'No, Show Deleted' 'Yes, but Show Deleted' 'Yes') |
3970 |
values:#(nil false yesAndShow true) |
|
3971 |
default:true. |
|
4790 | 3972 |
answer isNil ifTrue:[^ self]. |
11496 | 3973 |
(answer ~~ true) ifTrue:[ |
4790 | 3974 |
TextBox openOn:(deletedLines asStringCollection) title:'Filtered lines'. |
11496 | 3975 |
(answer == false) ifTrue:[ |
3976 |
^ self. |
|
3977 |
]. |
|
4790 | 3978 |
]. |
3979 |
||
3980 |
self selectedWorkspacesTextView list:newList. |
|
11496 | 3981 |
|
3982 |
"Modified: / 04-05-2012 / 16:03:32 / cg" |
|
4790 | 3983 |
! |
3984 |
||
13917
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3985 |
generateText |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3986 |
"a generatorblock is asked for, which is evaluated to generate |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3987 |
lines onto an output stream. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3988 |
The generated text is inserted (or replaces the current selection)" |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3989 |
|
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3990 |
|template generatorBlock oldText outStream| |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3991 |
|
17054 | 3992 |
template := self class generatorTemplate. |
13917
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3993 |
|
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3994 |
generatorBlock := self askForFilterBlock:'Generator block (to insert text):' |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3995 |
template:template |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3996 |
rememberIn:#LastGeneratorBlockString. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3997 |
generatorBlock isNil ifTrue:[^ self]. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3998 |
|
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
3999 |
oldText := self selectedWorkspacesTextView selection. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4000 |
outStream := '' writeStream. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4001 |
generatorBlock |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4002 |
value:outStream |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4003 |
value:oldText. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4004 |
|
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4005 |
self selectedWorkspacesTextView pasteOrReplace:(outStream contents). |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4006 |
! |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4007 |
|
4790 | 4008 |
googleSpellingSuggestion |
4009 |
self selectedWorkspacesTextView googleSpellingSuggestion |
|
4010 |
! |
|
4011 |
||
8499 | 4012 |
indent |
9810 | 4013 |
self selectedWorkspacesTextView indentBy4. |
8499 | 4014 |
! |
4015 |
||
4790 | 4016 |
pasteLastDoIt |
4017 |
|s| |
|
4018 |
||
4019 |
s := self lastDoItsString. |
|
4020 |
s notNil ifTrue:[ |
|
4021 |
self paste:s |
|
4022 |
] |
|
8499 | 4023 |
! |
4024 |
||
13917
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4025 |
processText |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4026 |
"a block is asked for, which is applied to each line of the selected line range. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4027 |
Each line is replaced by the corresponding output of the processing block" |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4028 |
|
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4029 |
|template filterBlock newList oldList answer nChanged changedLines flags| |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4030 |
|
17054 | 4031 |
template := self class textProcessorTemplate. |
4032 |
||
13917
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4033 |
filterBlock := self askForFilterBlock:'Processing block:' |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4034 |
template:template |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4035 |
rememberIn:#LastProcessingBlockString. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4036 |
filterBlock isNil ifTrue:[^ self]. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4037 |
|
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4038 |
oldList := self selectedWorkspacesTextView list. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4039 |
oldList := oldList collect:[:lineOrNil | lineOrNil ? '']. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4040 |
newList := oldList collect:[:line | |newLine| |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4041 |
newLine := line. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4042 |
Error handle:[:ex | |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4043 |
] do:[ |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4044 |
newLine := filterBlock value:line |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4045 |
]. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4046 |
newLine |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4047 |
]. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4048 |
newList := newList collect:[:line | (line isString and:[line size == 0]) ifTrue:[nil] ifFalse:[line]]. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4049 |
|
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4050 |
flags := (1 to:oldList size) collect:[:i | (oldList at:i) ~= (newList at:i)]. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4051 |
flags := flags select:[:flag | flag]. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4052 |
nChanged := flags size. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4053 |
nChanged == 0 ifTrue:[ |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4054 |
self information:'No lines were changed.'. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4055 |
^ self |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4056 |
]. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4057 |
|
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4058 |
answer := Dialog confirmWithCancel:(resources |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4059 |
string:'%1 lines changed. Change text ?' |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4060 |
with:nChanged) |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4061 |
labels:#( 'Cancel' 'No, Show Changed' 'Yes'). |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4062 |
answer isNil ifTrue:[^ self]. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4063 |
answer ifFalse:[ |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4064 |
changedLines := (1 to:oldList size) select:[:i | (oldList at:i) ~= (newList at:i)]. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4065 |
changedLines := changedLines collect:[:i | (newList at:i)]. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4066 |
TextBox openOn:(changedLines asStringCollection) title:'Changed lines'. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4067 |
^ self. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4068 |
]. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4069 |
|
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4070 |
self selectedWorkspacesTextView list:newList. |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4071 |
! |
2e1f7f77627e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13914
diff
changeset
|
4072 |
|
8499 | 4073 |
undent |
9810 | 4074 |
self selectedWorkspacesTextView undentBy4. |
4790 | 4075 |
! ! |
4076 |
||
4136 | 4077 |
!WorkspaceApplication methodsFor:'menu-dynamic'! |
4078 |
||
10169 | 4079 |
bookmarkMenu |
14635
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
4080 |
<resource: #programMenu > |
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
4081 |
|
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4082 |
| bookmarks menu item | |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4083 |
|
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4084 |
bookmarks := self bookmarks. |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4085 |
bookmarks isNil ifTrue:[ |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4086 |
^ nil |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4087 |
]. |
10283 | 4088 |
menu := self bookmarks asMenuUsingBuilder: (BookmarkMenuBuilder new resources:resources). |
10169 | 4089 |
menu hasItems ifTrue:[menu addSeparator]. |
4090 |
||
13432
1f561d84a826
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13413
diff
changeset
|
4091 |
item := MenuItem |
1f561d84a826
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13413
diff
changeset
|
4092 |
label:(resources string:'Add Bookmark') |
1f561d84a826
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13413
diff
changeset
|
4093 |
itemValue:#addBookmark |
1f561d84a826
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13413
diff
changeset
|
4094 |
enabled:[self canAddBookmark]. |
10169 | 4095 |
menu addItem: item. |
4096 |
||
4097 |
menu addSeparator. |
|
4098 |
||
13432
1f561d84a826
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13413
diff
changeset
|
4099 |
item := MenuItem |
1f561d84a826
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13413
diff
changeset
|
4100 |
label:(resources string:'Edit Bookmarks') |
1f561d84a826
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13413
diff
changeset
|
4101 |
itemValue:#editBookmarks. |
10169 | 4102 |
menu addItem: item. |
4103 |
^menu |
|
4104 |
||
4105 |
"Created: / 20-06-2011 / 22:21:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11787 | 4106 |
"Modified: / 09-09-2012 / 13:25:48 / cg" |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4107 |
"Modified: / 23-06-2019 / 12:36:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10169 | 4108 |
! |
4109 |
||
9695 | 4110 |
editModeInfoLabelMenu |
4111 |
^ self class editModeInfoLabelMenu |
|
4112 |
||
4113 |
"Created: / 22-01-2011 / 11:50:35 / cg" |
|
4114 |
! |
|
4115 |
||
9300
07364a10a823
syntax to choose from is fetched via ProgramminLanguage list;
Claus Gittinger <cg@exept.de>
parents:
9166
diff
changeset
|
4116 |
languageListMenuSlice |
16057 | 4117 |
"dynamicall generate a slice containing the available |
4118 |
programming languages" |
|
4119 |
||
14635
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
4120 |
<resource: #programMenu > |
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
4121 |
|
13852 | 4122 |
|m allLanguages | |
4123 |
||
4124 |
allLanguages := OrderedCollection new. |
|
4125 |
ProgrammingLanguage allDo:[:eachLanguage | |
|
4126 |
eachLanguage isSmalltalk ifFalse:[ |
|
4127 |
allLanguages add:eachLanguage |
|
4128 |
] |
|
4129 |
]. |
|
9300
07364a10a823
syntax to choose from is fetched via ProgramminLanguage list;
Claus Gittinger <cg@exept.de>
parents:
9166
diff
changeset
|
4130 |
allLanguages sort:[:a :b | a name < b name]. |
07364a10a823
syntax to choose from is fetched via ProgramminLanguage list;
Claus Gittinger <cg@exept.de>
parents:
9166
diff
changeset
|
4131 |
|
07364a10a823
syntax to choose from is fetched via ProgramminLanguage list;
Claus Gittinger <cg@exept.de>
parents:
9166
diff
changeset
|
4132 |
m := Menu new. |
13914
052e6eae550d
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13906
diff
changeset
|
4133 |
m addItem:((MenuItem |
052e6eae550d
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13906
diff
changeset
|
4134 |
label:'Text' |
052e6eae550d
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13906
diff
changeset
|
4135 |
choice: #syntaxHolder |
14635
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
4136 |
choiceValue:nil) |
13914
052e6eae550d
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13906
diff
changeset
|
4137 |
itemValue:#syntaxChangedByUser). |
13852 | 4138 |
m addItem:((MenuItem |
11483
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
4139 |
label:'Smalltalk' |
13852 | 4140 |
choice:#syntaxHolder |
4141 |
choiceValue:SmalltalkLanguage instance) |
|
14635
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
4142 |
translateLabel:false; |
13852 | 4143 |
enabled: self canChangeLanguageHolder). |
9341
aa3c5825ec98
refactored to allow redefinition of defaultSyntax
Claus Gittinger <cg@exept.de>
parents:
9304
diff
changeset
|
4144 |
|
11235
9a0429235c45
changed: #languageListMenuSlice
Claus Gittinger <cg@exept.de>
parents:
10786
diff
changeset
|
4145 |
"/ allLanguages notEmpty ifTrue:[ |
9a0429235c45
changed: #languageListMenuSlice
Claus Gittinger <cg@exept.de>
parents:
10786
diff
changeset
|
4146 |
"/ m addItem:(MenuItem separator). |
9300
07364a10a823
syntax to choose from is fetched via ProgramminLanguage list;
Claus Gittinger <cg@exept.de>
parents:
9166
diff
changeset
|
4147 |
|
9304
6d9d835a55bf
changed: #languageListMenuSlice
Claus Gittinger <cg@exept.de>
parents:
9301
diff
changeset
|
4148 |
allLanguages do:[:eachLanguage | |
13852 | 4149 |
"JV@2012-02-18: Add language only iff it supports |
4150 |
evaluation (most of then do, but some may not - |
|
4151 |
such as Java)" |
|
4152 |
(eachLanguage isJava not |
|
4153 |
"/ Java is funny - we don't have an evaluator for Java |
|
4154 |
"/ but we have to define evaluatorClass to return GroovyEvaluator |
|
4155 |
"/ to be able to inspect code in debugger/inspector. Hence this hack. |
|
4156 |
"/ We may need something like evaluatorClassForInspector/Debugger. |
|
4157 |
and:[eachLanguage evaluatorClass notNil |
|
16057 | 4158 |
and:[true "eachLanguage evaluatorClass canUnderstand: #evaluate:in:receiver:notifying:logged:ifFail:"] |
4159 |
]) |
|
14635
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
4160 |
ifTrue:[ |
13852 | 4161 |
m addItem:((MenuItem |
4162 |
label:(eachLanguage name) |
|
4163 |
choice:#syntaxHolder |
|
4164 |
choiceValue:eachLanguage) |
|
14635
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
4165 |
translateLabel:false; |
13852 | 4166 |
enabled: self canChangeLanguageHolder). |
4167 |
]. |
|
9304
6d9d835a55bf
changed: #languageListMenuSlice
Claus Gittinger <cg@exept.de>
parents:
9301
diff
changeset
|
4168 |
]. |
11235
9a0429235c45
changed: #languageListMenuSlice
Claus Gittinger <cg@exept.de>
parents:
10786
diff
changeset
|
4169 |
"/ ]. |
9300
07364a10a823
syntax to choose from is fetched via ProgramminLanguage list;
Claus Gittinger <cg@exept.de>
parents:
9166
diff
changeset
|
4170 |
^ m |
11235
9a0429235c45
changed: #languageListMenuSlice
Claus Gittinger <cg@exept.de>
parents:
10786
diff
changeset
|
4171 |
|
13852 | 4172 |
"Modified: / 04-02-2012 / 11:52:07 / cg" |
4173 |
"Modified: / 29-08-2013 / 12:18:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
9300
07364a10a823
syntax to choose from is fetched via ProgramminLanguage list;
Claus Gittinger <cg@exept.de>
parents:
9166
diff
changeset
|
4174 |
! |
07364a10a823
syntax to choose from is fetched via ProgramminLanguage list;
Claus Gittinger <cg@exept.de>
parents:
9166
diff
changeset
|
4175 |
|
8350 | 4176 |
makeRecentDoItsMenuFor:aSelector |
14635
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
4177 |
<resource: #programMenu > |
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
4178 |
|
8350 | 4179 |
|doIts m cmdLabelLen| |
4180 |
||
4181 |
cmdLabelLen := 40. |
|
4182 |
||
4183 |
doIts := Workspace doItHistory. |
|
4184 |
doIts size > 0 ifTrue:[ |
|
4185 |
m := Menu new. |
|
4186 |
doIts do:[:doItEntry | |
|
4187 |
|lines label item| |
|
4188 |
||
4189 |
lines := doItEntry withoutLeadingSeparators asStringCollection. |
|
4190 |
label := lines first. |
|
4191 |
(label size > cmdLabelLen) ifTrue:[ |
|
4192 |
label := (label contractTo:cmdLabelLen) |
|
4193 |
]. |
|
4194 |
(lines size > 1) ifTrue:[ |
|
4195 |
label := label , ' [...]' |
|
4196 |
]. |
|
4197 |
label := '''' , label , ''''. |
|
4198 |
||
14594
5c29d5fd8235
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14457
diff
changeset
|
4199 |
item := MenuItem label:label itemValue:aSelector argument:doItEntry. |
8350 | 4200 |
m addItem:item. |
4201 |
]. |
|
11787 | 4202 |
m addSeparator. |
8350 | 4203 |
m addItem: (MenuItem new |
14594
5c29d5fd8235
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14457
diff
changeset
|
4204 |
label: (resources string:'Clear History') |
5c29d5fd8235
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14457
diff
changeset
|
4205 |
itemValue: #clearHistory |
5c29d5fd8235
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14457
diff
changeset
|
4206 |
translateLabel:false; |
5c29d5fd8235
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14457
diff
changeset
|
4207 |
activeHelpKey: #historyEmptyMenu ). |
8350 | 4208 |
]. |
4209 |
^ m |
|
11787 | 4210 |
|
4211 |
"Modified: / 09-09-2012 / 13:25:30 / cg" |
|
8350 | 4212 |
! |
4213 |
||
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4214 |
namespaceInfoLabelMenu |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4215 |
|m allNamespaces| |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4216 |
|
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4217 |
allNamespaces := NameSpace allNameSpaces asNewOrderedCollection. |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4218 |
allNamespaces sort:[:a :b | a name < b name]. |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4219 |
allNamespaces remove:Smalltalk. |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4220 |
allNamespaces addFirst:Smalltalk. |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4221 |
|
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4222 |
m := Menu new. |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4223 |
|
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4224 |
allNamespaces do:[:eachNameSpace | |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4225 |
m addItem:((MenuItem |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4226 |
label:(eachNameSpace name) |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4227 |
choice: #namespaceHolder |
14635
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
4228 |
choiceValue:eachNameSpace) |
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
4229 |
translateLabel:false; |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4230 |
itemValue:#namespaceChangedByUser). |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4231 |
eachNameSpace == Smalltalk ifTrue:[ |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4232 |
m addSeparator |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4233 |
]. |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4234 |
]. |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4235 |
^ m |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4236 |
! |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4237 |
|
14635
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
4238 |
namespaceInfoLabelMenuHolder |
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
4239 |
^ [self namespaceInfoLabelMenu] |
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
4240 |
! |
bed940a94253
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14594
diff
changeset
|
4241 |
|
4267 | 4242 |
pasteRecentDoItMenu |
4243 |
<resource: #programMenu > |
|
4244 |
||
4245 |
^ self recentDoItsMenuFor:#'paste:' |
|
4246 |
! |
|
4247 |
||
4248 |
recentDoItsMenuFor:aSelector |
|
4136 | 4249 |
<resource: #programMenu > |
4250 |
||
4251 |
^ [ |
|
8350 | 4252 |
self makeRecentDoItsMenuFor:aSelector |
4136 | 4253 |
]. |
4267 | 4254 |
! |
4255 |
||
4256 |
redoRecentDoItMenu |
|
4257 |
<resource: #programMenu > |
|
4258 |
||
4259 |
^ self recentDoItsMenuFor:#'pasteAndExecute:' |
|
4136 | 4260 |
! ! |
4261 |
||
3154 | 4262 |
!WorkspaceApplication methodsFor:'private'! |
4263 |
||
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4264 |
askIfAnyModified:question yesButton:yesButtonText |
14818
c76a3a590773
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14804
diff
changeset
|
4265 |
|someModifiedWorkspace index label| |
c76a3a590773
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14804
diff
changeset
|
4266 |
|
c76a3a590773
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14804
diff
changeset
|
4267 |
someModifiedWorkspace := workspaces detect:[:aView | self isModifiedWorkspace:aView] |
c76a3a590773
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14804
diff
changeset
|
4268 |
ifNone:nil. |
c76a3a590773
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14804
diff
changeset
|
4269 |
someModifiedWorkspace isNil ifTrue:[^ true]. |
c76a3a590773
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14804
diff
changeset
|
4270 |
|
c76a3a590773
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14804
diff
changeset
|
4271 |
index := workspaces indexOf:someModifiedWorkspace. |
c76a3a590773
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14804
diff
changeset
|
4272 |
label := tabList at:index ifAbsent:'Edit Window'. |
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4273 |
|
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4274 |
(Dialog |
14818
c76a3a590773
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14804
diff
changeset
|
4275 |
confirm:(resources stringWithCRs:question with:label) |
6636 | 4276 |
yesLabel:(resources string:yesButtonText) |
4277 |
noLabel:(resources string:'Cancel')) |
|
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4278 |
ifTrue:[ |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4279 |
"/ reset modified flag so question is asked only once |
6045 | 4280 |
workspaces |
4281 |
select:[:aView | (self isModifiedWorkspace:aView)] |
|
4282 |
thenDo:[:eachModifiedTextView | |
|
7662 | 4283 |
eachModifiedTextView |
4284 |
perform:#modified: with:false |
|
4285 |
ifNotUnderstood:[]. |
|
6045 | 4286 |
]. |
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4287 |
^ true |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4288 |
]. |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4289 |
^ false |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4290 |
! |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4291 |
|
5852 | 4292 |
compilerClassForSyntaxName:syntax |
4293 |
syntax == #Smalltalk ifTrue:[ |
|
4294 |
^ Compiler |
|
4295 |
]. |
|
4296 |
syntax == #JavaScript ifTrue:[ |
|
4297 |
^ JavaScriptCompiler |
|
4298 |
]. |
|
4299 |
^ Compiler |
|
4300 |
! |
|
4301 |
||
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4302 |
compilerClassOf:aWorkspace |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4303 |
| compilerClass | |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4304 |
|
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4305 |
"/ catch, because it could be a non-edit view there (VT100, TeaTimer etc.) |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4306 |
MessageNotUnderstood catch:[ compilerClass := aWorkspace compilerClass ]. |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4307 |
^ compilerClass |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4308 |
|
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4309 |
"Modified: / 21-06-2019 / 11:11:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4310 |
! |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4311 |
|
6699 | 4312 |
createEvaluationWorkspace |
8292 | 4313 |
|ws l b box resultView environmentView panel workspaceVariables timeLabel| |
6699 | 4314 |
|
4315 |
workspaceVariables := Workspace workspaceVariables. |
|
4316 |
||
4317 |
panel := VariableVerticalPanel new. |
|
7541
957ae975e391
handles in the eval-workspace
Claus Gittinger <cg@exept.de>
parents:
7537
diff
changeset
|
4318 |
panel showHandle:true. |
6699 | 4319 |
|
4320 |
box := View new. |
|
4321 |
l := Label new. |
|
8292 | 4322 |
l label:(resources string:'Eval:'). |
6865 | 4323 |
l layout:((0.0@0.0 corner:0.5@0.0) asLayout bottomOffset:22). |
6699 | 4324 |
l adjust:#left. |
4325 |
box add:l. |
|
4326 |
||
4327 |
ws := HVScrollableView for:Workspace. |
|
7662 | 4328 |
ws scrolledView name:#'Workspace'. |
6699 | 4329 |
ws autoDefineVariables:#workspace. |
6865 | 4330 |
ws layout:((0.0@0.0 corner:1.0@1.0) asLayout topOffset:22; bottomOffset:-22). |
6699 | 4331 |
box add:ws. |
6865 | 4332 |
|
4333 |
b := Button new. |
|
4334 |
b label:'DoIt'. |
|
4335 |
b layout:((0.25@1.0 corner:0.5@1.0) asLayout topOffset:-22). |
|
4336 |
b adjust:#left. |
|
4337 |
b action:[ws doIt]. |
|
4338 |
box add:b. |
|
4339 |
||
4340 |
b := Button new. |
|
4341 |
b label:'InspectIt'. |
|
4342 |
b layout:((0.5@1.0 corner:0.75@1.0) asLayout topOffset:-22). |
|
4343 |
b adjust:#left. |
|
4344 |
b action:[ws inspectIt]. |
|
4345 |
box add:b. |
|
4346 |
||
4347 |
b := Button new. |
|
4348 |
b label:'BrowseIt'. |
|
4349 |
b layout:((0.75@1.0 corner:1.0@1.0) asLayout topOffset:-22). |
|
4350 |
b adjust:#left. |
|
4351 |
b action:[ws browseIt]. |
|
4352 |
box add:b. |
|
4353 |
||
6699 | 4354 |
panel add:box. |
4355 |
||
4356 |
box := View new. |
|
8292 | 4357 |
box add:(Label new label:(resources string:'Value:'); adjust:#left; layout:((0.0@0.0 corner:0.5@0.0) asLayout bottomOffset:22)). |
4358 |
box add:(timeLabel := Label new label:''; adjust:#right; layout:((0.5@0.0 corner:1.0@0.0) asLayout bottomOffset:22)). |
|
6699 | 4359 |
resultView := HVScrollableView for:TextCollector. |
4360 |
box add:(resultView layout:((0@0 corner:1.0@1.0) asLayout topOffset:22); yourself). |
|
4361 |
||
4362 |
panel add:box. |
|
4363 |
||
4364 |
box := View new. |
|
8292 | 4365 |
box add:(Label new label:(resources string:'Environment:'); adjust:#left; layout:((0.0@0.0 corner:1.0@0.0) asLayout bottomOffset:22)). |
6699 | 4366 |
environmentView := DictionaryInspectorView new. |
4367 |
environmentView suppressPseudoSlots:true. |
|
4368 |
environmentView inspect:workspaceVariables. |
|
4369 |
environmentView dereferenceValueHolders:true. |
|
4370 |
environmentView fieldListLabel:'Variable'. |
|
4371 |
box add:(environmentView layout:((0@0 corner:1.0@1.0) asLayout topOffset:22); yourself). |
|
4372 |
||
4373 |
panel add:box. |
|
4374 |
||
4375 |
"/ self renameWorkspace:(self selectedWorkspaceIndexHolder value) to:'Eval'. |
|
4376 |
||
4377 |
ws doItAction:[:theCode | |
|
8292 | 4378 |
|t result resultString| |
6699 | 4379 |
|
8292 | 4380 |
t := TimeDuration toRun:[ |
4381 |
result := ws executeDoIt:theCode. |
|
4382 |
]. |
|
4383 |
timeLabel label:(resources string:'Exec. Time: %1' with:t printString). |
|
4384 |
||
6752 | 4385 |
resultString := [ |
4386 |
result storeString |
|
4387 |
] on:Error do:[ |
|
4388 |
result printString |
|
4389 |
]. |
|
4390 |
||
4391 |
resultView showCR:resultString. |
|
17014 | 4392 |
Workspace rememberResultAsWorkspaceVariable:result. |
6699 | 4393 |
environmentView doUpdate. |
4394 |
result. |
|
4395 |
]. |
|
6865 | 4396 |
panel relativeCorners:#(0.4 0.6 1.0). |
6699 | 4397 |
^ panel |
7541
957ae975e391
handles in the eval-workspace
Claus Gittinger <cg@exept.de>
parents:
7537
diff
changeset
|
4398 |
|
957ae975e391
handles in the eval-workspace
Claus Gittinger <cg@exept.de>
parents:
7537
diff
changeset
|
4399 |
"Modified: / 24-11-2006 / 11:06:33 / cg" |
6699 | 4400 |
! |
4401 |
||
5295
e3c5a7b20d9d
refactored (added abstract superclass)
Claus Gittinger <cg@exept.de>
parents:
5262
diff
changeset
|
4402 |
createWorkspace |
5547
65af7af97085
initial value of #autoDefine was not set correctly
Claus Gittinger <cg@exept.de>
parents:
5490
diff
changeset
|
4403 |
|ws| |
65af7af97085
initial value of #autoDefine was not set correctly
Claus Gittinger <cg@exept.de>
parents:
5490
diff
changeset
|
4404 |
|
10169 | 4405 |
ws := self createWorkspaceView. |
13852 | 4406 |
ws autoDefineVariables:self autoDefineVariables value. |
7931 | 4407 |
ws poolsConsideredInDoIts:poolsConsideredInDoIts. |
5547
65af7af97085
initial value of #autoDefine was not set correctly
Claus Gittinger <cg@exept.de>
parents:
5490
diff
changeset
|
4408 |
^ ws |
9746
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
4409 |
|
10169 | 4410 |
"Modified (format): / 05-07-2011 / 14:18:52 / cg" |
13852 | 4411 |
"Modified: / 18-03-2012 / 23:37:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3193 | 4412 |
! |
4413 |
||
10169 | 4414 |
createWorkspaceView |
11615
f9dfb7daa5e4
corrected switching languages between tabs
Claus Gittinger <cg@exept.de>
parents:
11612
diff
changeset
|
4415 |
|ws language| |
10169 | 4416 |
|
4417 |
ws := self class createWorkspaceView. |
|
15294
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4418 |
|
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4419 |
ws codeAspect: SyntaxHighlighter codeAspectExpression. |
13852 | 4420 |
ws acceptAction:[:code | self menuSave ]. |
15294
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4421 |
|
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4422 |
"/ (ws respondsTo:#languageHolder:) ifTrue:[ |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4423 |
"/ ws languageHolder:self syntaxHolder |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4424 |
"/ ]. |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4425 |
language := self syntaxHolder value ? self defaultEvaluatorSyntax. |
15294
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4426 |
language notNil ifTrue:[ |
11615
f9dfb7daa5e4
corrected switching languages between tabs
Claus Gittinger <cg@exept.de>
parents:
11612
diff
changeset
|
4427 |
ws compilerClass:(language evaluatorClass). |
13581
75759c16ab7f
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13500
diff
changeset
|
4428 |
ws editedLanguage:language. |
11615
f9dfb7daa5e4
corrected switching languages between tabs
Claus Gittinger <cg@exept.de>
parents:
11612
diff
changeset
|
4429 |
]. |
10169 | 4430 |
^ ws |
4431 |
||
11615
f9dfb7daa5e4
corrected switching languages between tabs
Claus Gittinger <cg@exept.de>
parents:
11612
diff
changeset
|
4432 |
"Modified: / 19-07-2012 / 16:39:15 / cg" |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4433 |
"Modified: / 21-06-2019 / 11:15:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10169 | 4434 |
! |
4435 |
||
15294
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4436 |
createWorkspaceViewForText |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4437 |
"creates a language unaware workspace" |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4438 |
|
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4439 |
|ws| |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4440 |
|
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4441 |
ws := self class createWorkspaceView. |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4442 |
|
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4443 |
ws acceptAction:[:code | self menuSave ]. |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4444 |
"/ (ws respondsTo:#languageHolder:) ifTrue:[ |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4445 |
"/ ws languageHolder:nil |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4446 |
"/ ]. |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4447 |
ws compilerClass:(Smalltalk programmingLanguage). |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4448 |
ws editedLanguage:nil. |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4449 |
ws codeAspect:nil. |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4450 |
^ ws |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4451 |
! |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4452 |
|
10169 | 4453 |
isModifiedWorkspace:aView |
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4454 |
|view| |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4455 |
|
10169 | 4456 |
aView isNil ifTrue:[ |
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4457 |
^ false |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4458 |
]. |
10169 | 4459 |
view := self workspaceViewOfView:aView. |
4460 |
(view isNil |
|
4461 |
or:[ view modified not |
|
4462 |
or:[ view contentsWasSaved |
|
4463 |
or:[ view contents withoutSeparators isEmpty ]]]) |
|
4464 |
ifTrue:[ |
|
4465 |
^ false |
|
4466 |
]. |
|
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4467 |
^ true |
10169 | 4468 |
|
4469 |
"Modified: / 03-06-2011 / 11:03:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
4470 |
"Modified (format): / 05-07-2011 / 15:01:08 / cg" |
|
4031
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4471 |
! |
4ace4ff5fbbd
look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents:
3845
diff
changeset
|
4472 |
|
4267 | 4473 |
lastDoItsString |
4474 |
|history| |
|
3198 | 4475 |
|
4267 | 4476 |
history := Workspace doItHistory. |
4477 |
history size > 0 ifFalse:[ |
|
4478 |
self selectedWorkspacesTextView flash. |
|
4479 |
^ nil |
|
3198 | 4480 |
]. |
4267 | 4481 |
^ history first |
5852 | 4482 |
! |
4483 |
||
14724
74a5e633ef41
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14635
diff
changeset
|
4484 |
syntaxFromEvaluatorClass:aClass |
74a5e633ef41
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14635
diff
changeset
|
4485 |
"knowing the evaluator class, determine the syntax highlighter class" |
74a5e633ef41
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14635
diff
changeset
|
4486 |
|
74a5e633ef41
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14635
diff
changeset
|
4487 |
aClass notNil ifTrue:[ |
74a5e633ef41
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14635
diff
changeset
|
4488 |
ProgrammingLanguage allDo:[:lang | |
74a5e633ef41
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14635
diff
changeset
|
4489 |
lang evaluatorClass = aClass ifTrue:[ |
74a5e633ef41
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14635
diff
changeset
|
4490 |
^ lang |
74a5e633ef41
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14635
diff
changeset
|
4491 |
] |
74a5e633ef41
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14635
diff
changeset
|
4492 |
]. |
5852 | 4493 |
]. |
14724
74a5e633ef41
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
14635
diff
changeset
|
4494 |
"Unknown language - should not happen :-)" |
10169 | 4495 |
^ nil |
4496 |
||
11483
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
4497 |
"Created: / 26-04-2012 / 12:59:32 / cg" |
5852 | 4498 |
! |
4499 |
||
4500 |
workspaceSelectionChanged |
|
9695 | 4501 |
"attach line, col and mode holders to the current workspace window" |
4502 |
||
13852 | 4503 |
|compilerClass selectedWorkspace selectedWorkspaceApp | |
4504 |
||
4505 |
"JV@2012-05-10: Modified to better support complex application models as tabs" |
|
5852 | 4506 |
|
4507 |
super workspaceSelectionChanged. |
|
9695 | 4508 |
|
5855 | 4509 |
selectedWorkspace := self selectedWorkspace. |
13852 | 4510 |
selectedWorkspaceApp := self selectedWorkspaceApplication. |
4511 |
||
4512 |
(selectedWorkspace notNil and:[selectedWorkspace isScrollWrapper]) ifTrue:[ |
|
9746
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
4513 |
selectedWorkspace := selectedWorkspace scrolledView |
d7c05875edc0
initial language setting fixed
Claus Gittinger <cg@exept.de>
parents:
9745
diff
changeset
|
4514 |
]. |
13852 | 4515 |
|
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4516 |
compilerClass := self compilerClassOf: (selectedWorkspaceApp notNil |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4517 |
ifTrue:[selectedWorkspaceApp] |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4518 |
ifFalse:[selectedWorkspace isNil ifTrue:[nil] ifFalse:[self workspaceViewOfView: selectedWorkspace]]). |
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4519 |
|
13852 | 4520 |
self canChangeLanguageHolder value: |
4521 |
(selectedWorkspaceApp ? selectedWorkspace respondsTo: #compilerClass:). |
|
4522 |
||
4523 |
self syntaxHolder value:(self syntaxFromEvaluatorClass:compilerClass). |
|
4524 |
||
4525 |
(selectedWorkspace notNil and:[ selectedWorkspace scrolledView isTextView or:[selectedWorkspaceApp notNil] ]) ifTrue:[ |
|
15817
f6046130309e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15816
diff
changeset
|
4526 |
self cursorLineAndColumnLabelHolder valueHolder:( selectedWorkspaceApp ? selectedWorkspace perform:#cursorLineAndColumnLabelHolder ifNotUnderstood:nil ). |
13852 | 4527 |
self cursorLineHolder valueHolder:( selectedWorkspaceApp ? selectedWorkspace perform:#cursorLineHolder ifNotUnderstood:nil ). |
4528 |
self cursorColHolder valueHolder:( selectedWorkspaceApp ? selectedWorkspace perform:#cursorColHolder ifNotUnderstood:nil ). |
|
4529 |
self modeLabelHolder valueHolder:( selectedWorkspaceApp ? selectedWorkspace perform:#modeLabelHolder ifNotUnderstood:nil ). |
|
9695 | 4530 |
] ifFalse:[ |
15817
f6046130309e
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15816
diff
changeset
|
4531 |
self cursorLineAndColumnLabelHolder valueHolder:nil. |
9695 | 4532 |
self cursorLineHolder valueHolder:nil. |
4533 |
self cursorColHolder valueHolder:nil. |
|
4534 |
self modeLabelHolder valueHolder:nil. |
|
4535 |
]. |
|
4536 |
||
10169 | 4537 |
"Update toolbar" |
15409
cfc502624aeb
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15392
diff
changeset
|
4538 |
(selectedWorkspaceApp notNil |
cfc502624aeb
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15392
diff
changeset
|
4539 |
and:[ (selectedWorkspaceApp class respondsTo: #toolBarSpec) ]) ifTrue:[ |
cfc502624aeb
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15392
diff
changeset
|
4540 |
"/ client provides one |
cfc502624aeb
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15392
diff
changeset
|
4541 |
self toolBarView client: selectedWorkspaceApp spec: #toolBarSpec |
10169 | 4542 |
] ifFalse:[ |
15816
64d953f953a1
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15737
diff
changeset
|
4543 |
"/ I provide it |
15409
cfc502624aeb
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15392
diff
changeset
|
4544 |
self toolBarView client: self spec: #toolBarSpec builder: builder. |
10169 | 4545 |
] |
18832
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4546 |
|
74115b507c3d
Generalize `WorkspaceApplication` for easier reuse
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18226
diff
changeset
|
4547 |
"Modified: / 21-06-2019 / 12:06:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3154 | 4548 |
! ! |
4549 |
||
14747 | 4550 |
!WorkspaceApplication methodsFor:'special startup'! |
4551 |
||
4552 |
openSystemWorkspace |
|
15294
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4553 |
"create the tabs for the initial welcome system workspace" |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4554 |
|
14747 | 4555 |
|path needRemove font| |
4556 |
||
4557 |
needRemove := true. |
|
4558 |
||
4559 |
self allButOpen. |
|
4560 |
||
4561 |
(self builder componentAt:'NoteBook') |
|
4562 |
destroyTabAction:[:tabIndex| self removeWorkspace:tabIndex]. |
|
4563 |
||
4564 |
self window extent:640@400. |
|
4565 |
||
4566 |
path := (Smalltalk getSystemFileName:'README') ? '../../README'. |
|
4567 |
path := path asFilename. |
|
4568 |
path isReadable ifTrue:[ |
|
15294
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4569 |
self addWindow:(self createWorkspaceViewForText) named:'README' asFirst:false. |
14747 | 4570 |
self loadFile:path. |
4571 |
self removeWorkspace:1. "/ the original Workspace |
|
4572 |
self renameWorkspace:1 to:'LICENCE README'. |
|
4573 |
needRemove := false. |
|
4574 |
]. |
|
4575 |
||
4576 |
"/ path := (Smalltalk getSystemFileName:'doc/online/english/LICENCE_STX.html') ? '../../doc/online/english/LICENCE_STX.html'. |
|
4577 |
"/ path asFilename exists ifTrue:[ |
|
4578 |
"/ self addWindow:(licenceView := HVScrollableView for:HTMLDocumentView) named:'License' asFirst:false. |
|
4579 |
"/ licenceView homeDocument:'../../doc/online/english/LICENCE_STX.html'. |
|
4580 |
"/ licenceView updateLabelFlag:false. |
|
4581 |
"/ needRemove ifTrue:[self removeWorkspace:1]. "/ the original Workspace |
|
4582 |
"/ needRemove := false. |
|
4583 |
"/ ]. |
|
4584 |
||
16290 | 4585 |
device platformName == #X11 ifTrue:[ |
17014 | 4586 |
"/ font := Font family:'DejaVuSansMono' face:'medium' style:'roman' size:16 encoding:'iso10646-1'. |
4587 |
"/ font := font onDevice:device ifAbsent:nil. |
|
4588 |
font isNil ifTrue:[ |
|
4589 |
font := Font family:'FreeMono' face:'regular' style:'roman' size:16 encoding:'iso10646-1'. |
|
16966 | 4590 |
font := font onDevice:device ifAbsent:nil. |
16967 | 4591 |
font isNil ifTrue:[ |
17014 | 4592 |
font := Font family:'unifont' face:'medium' style:'roman' size:16 encoding:'iso10646-1'. |
16957 | 4593 |
font := font onDevice:device ifAbsent:nil. |
4594 |
font isNil ifTrue:[ |
|
17014 | 4595 |
font := Font family:'arial' face:'medium' style:'roman' size:12 encoding:'iso10646-1'. |
16957 | 4596 |
font := font onDevice:device ifAbsent:nil. |
4597 |
]. |
|
4598 |
]. |
|
14747 | 4599 |
]. |
4600 |
] ifFalse:[ |
|
4601 |
"/ font := Font family:'Arial Unicode MS' face:'medium' style:'roman' size:10 encoding:'ms-ansi'. |
|
4602 |
font := Font family:'arial' face:'medium' style:'roman' size:10 encoding:'ms-ansi'. |
|
16244 | 4603 |
font := font onDevice:device ifAbsent:nil. |
14747 | 4604 |
]. |
4605 |
||
4606 |
#( "/ file resourceKey title forcedEncoding type |
|
4607 |
('Hello_utf8.wsp' HELLO_UTF_FILE 'Hello' #'utf8' #text) |
|
4608 |
('Welcome.wsp' WELCOME_FILE 'This Release' nil #text) |
|
4609 |
"/ ('Setup.wsp' SETUP_FILE 'Setup' nil #text) |
|
4610 |
('Keyboard.wsp' KEYBOARD_FILE 'Keyboard' nil #text) |
|
4611 |
"/ ('GettingStarted.wsp' GETTING_STARTED_FILE 'Getting Started' nil #text) |
|
4612 |
('../../doc/online/english/GettingStarted.html' GETTING_STARTED_TML_FILE 'Getting Started' nil #html) |
|
4613 |
('../../doc/books/JoyOfST/IntroToST.html' INTRO_TO_ST_FILE 'Smalltalk Introduction' nil #html) |
|
4614 |
"/ if these are present, show them. |
|
15294
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4615 |
('Private.wsp' PRIVATE_FILE 'Private Workspace' nil #code) |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4616 |
('MyWorkspace.wsp' MYWORKSPACE_FILE 'My Workspace' nil #code) |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4617 |
('PackageLoading.wsp' PACKAGELOADING_FILE 'Packages' nil #code) |
14747 | 4618 |
) do:[:tuple | |
4619 |
|file resKey title forcedEncoding type pane encoding htmlView| |
|
4620 |
||
4621 |
file := tuple at:1. |
|
4622 |
resKey := tuple at:2. |
|
4623 |
file := self resources string:resKey default:file. |
|
4624 |
||
4625 |
title := tuple at:3. |
|
4626 |
forcedEncoding := tuple at:4. |
|
4627 |
type := tuple at:5. |
|
4628 |
||
4629 |
path := Smalltalk getSystemFileName:file. |
|
4630 |
(path notNil and:[path asFilename isReadable]) ifTrue:[ |
|
4631 |
type == #html ifTrue:[ |
|
4632 |
self addWindow:(htmlView := HVScrollableView for:HTMLDocumentView) named:title asFirst:false. |
|
4633 |
htmlView homeDocument:path. |
|
4634 |
htmlView infoHolder:self infoLabelHolder. |
|
4635 |
htmlView updateTopViewsTitleFlag:false. |
|
4636 |
] ifFalse:[ |
|
15294
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4637 |
type == #code ifTrue:[ |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4638 |
self addWindow:(pane := self createWorkspaceView) named:title asFirst:false. |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4639 |
] ifFalse:[ |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4640 |
self addWindow:(pane := self createWorkspaceViewForText) named:title asFirst:false. |
4bd3f000c743
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15273
diff
changeset
|
4641 |
]. |
14747 | 4642 |
forcedEncoding notNil ifTrue:[ |
4643 |
encoding := forcedEncoding. |
|
4644 |
font notNil ifTrue:[ |
|
4645 |
pane font:font. |
|
4646 |
] |
|
4647 |
] ifFalse:[ |
|
4648 |
encoding := CharacterEncoder guessEncodingOfFile:path. |
|
4649 |
(encoding == #'iso8859-1' or:[encoding == #'ascii']) ifTrue:[ |
|
4650 |
encoding := nil |
|
4651 |
]. |
|
4652 |
]. |
|
4653 |
self loadFile:path encoding:encoding label:title. |
|
4654 |
]. |
|
4655 |
needRemove ifTrue:[self removeWorkspace:1]. "/ the original Workspace |
|
4656 |
needRemove := false. |
|
4657 |
]. |
|
4658 |
]. |
|
4659 |
self openWindow. |
|
4660 |
self selectedWorkspaceIndexHolder value:2. |
|
4661 |
||
4662 |
" |
|
4663 |
|ws b| |
|
4664 |
ws := self openSystemWorkspace. |
|
4665 |
ws addMyWorkspace. |
|
4666 |
ws selectedWorkspaceIndexHolder value:(ws workspaces size). |
|
4667 |
ws selectedWorkspace contents:'Tools::NewSystemBrowser open'; selectAll. |
|
4668 |
ws selectedWorkspace |
|
4669 |
add:(b := Button label:'DoIt' action:[ws doIt. b destroy]) |
|
4670 |
" |
|
4671 |
" |
|
4672 |
|ws b| |
|
4673 |
ws := self new. |
|
4674 |
ws open. |
|
4675 |
ws selectedWorkspace contents:'Tools::NewSystemBrowser open'; selectAll. |
|
4676 |
" |
|
4677 |
||
4678 |
"Modified: / 14-02-2010 / 23:02:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
4679 |
"Modified: / 05-07-2011 / 15:34:40 / cg" |
|
4680 |
! ! |
|
4681 |
||
7825 | 4682 |
!WorkspaceApplication methodsFor:'user actions'! |
4683 |
||
4684 |
infoVisibilityChanged |
|
4685 |
super infoVisibilityChanged. |
|
4686 |
UserPreferences current infoVisibleInWorkspace:(self infoVisibleHolder value) |
|
4687 |
||
4688 |
"Created: / 14-07-2007 / 16:46:58 / cg" |
|
4689 |
! |
|
4690 |
||
13643
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4691 |
namespaceChangedByUser |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4692 |
"remember as default for next new workspace" |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4693 |
|
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4694 |
LastNamespace := self namespaceHolder value. |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4695 |
! |
38d9fae397cd
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
13585
diff
changeset
|
4696 |
|
11483
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
4697 |
syntaxChangedByUser |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
4698 |
"remember as default for next new workspace" |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
4699 |
LastLanguage := self syntaxHolder value. |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
4700 |
|
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
4701 |
"Created: / 26-04-2012 / 12:31:04 / cg" |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
4702 |
! |
5f545a7d153a
fixed language related valueholder handling
Claus Gittinger <cg@exept.de>
parents:
11481
diff
changeset
|
4703 |
|
7825 | 4704 |
toolBarVisibilityChanged |
4705 |
super toolBarVisibilityChanged. |
|
8499 | 4706 |
UserPreferences current toolbarVisibleInWorkspace:(self toolBarVisibleHolder value). |
4707 |
UserPreferences current editToolbarVisibleInWorkspace:(self editToolBarVisibleHolder value). |
|
7825 | 4708 |
|
4709 |
"Created: / 14-07-2007 / 16:45:31 / cg" |
|
4710 |
! ! |
|
4711 |
||
3154 | 4712 |
!WorkspaceApplication class methodsFor:'documentation'! |
4713 |
||
10318 | 4714 |
version |
15737
5f5dd0d93690
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15608
diff
changeset
|
4715 |
^ '$Header$' |
10318 | 4716 |
! |
4717 |
||
9059 | 4718 |
version_CVS |
15737
5f5dd0d93690
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15608
diff
changeset
|
4719 |
^ '$Header$' |
10394 | 4720 |
! |
4721 |
||
17390
ce68ee978f93
WorkspaceApplication: Show shortcuts in edit menu
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17219
diff
changeset
|
4722 |
version_HG |
ce68ee978f93
WorkspaceApplication: Show shortcuts in edit menu
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17219
diff
changeset
|
4723 |
|
ce68ee978f93
WorkspaceApplication: Show shortcuts in edit menu
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17219
diff
changeset
|
4724 |
^ '$Changeset: <not expanded> $' |
ce68ee978f93
WorkspaceApplication: Show shortcuts in edit menu
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17219
diff
changeset
|
4725 |
! |
ce68ee978f93
WorkspaceApplication: Show shortcuts in edit menu
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17219
diff
changeset
|
4726 |
|
10394 | 4727 |
version_SVN |
15737
5f5dd0d93690
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
15608
diff
changeset
|
4728 |
^ '$Id$' |
3154 | 4729 |
! ! |
12340
8332590c5a41
class: WorkspaceApplication
Claus Gittinger <cg@exept.de>
parents:
12032
diff
changeset
|
4730 |