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