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