author | Claus Gittinger <cg@exept.de> |
Tue, 15 May 2018 18:09:37 +0200 | |
changeset 4090 | 8e3704b9d8f7 |
parent 3997 | f388b337715a |
child 4366 | 808d9c5e8712 |
permissions | -rw-r--r-- |
867 | 1 |
" |
896 | 2 |
COPYRIGHT (c) 1997-1998 by eXept Software AG |
867 | 3 |
All Rights Reserved |
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
1390
35f90684be49
browserClass from preferences
Claus Gittinger <cg@exept.de>
parents:
1201
diff
changeset
|
12 |
"{ Package: 'stx:libview2' }" |
35f90684be49
browserClass from preferences
Claus Gittinger <cg@exept.de>
parents:
1201
diff
changeset
|
13 |
|
3519 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
867 | 16 |
ToolApplicationModel subclass:#ResourceSpecEditor |
2097 | 17 |
instanceVariableNames:'specClass specClassName specSelector aspects modified hasSaved |
2748
03b9b57d2076
fixed usage as subcomponent in browser
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
18 |
tabSelection isEmbeddedInBrowser' |
867 | 19 |
classVariableNames:'' |
20 |
poolDictionaries:'' |
|
21 |
category:'Interface-Framework' |
|
22 |
! |
|
23 |
||
24 |
!ResourceSpecEditor class methodsFor:'documentation'! |
|
25 |
||
26 |
copyright |
|
27 |
" |
|
896 | 28 |
COPYRIGHT (c) 1997-1998 by eXept Software AG |
867 | 29 |
All Rights Reserved |
30 |
||
31 |
This software is furnished under a license and may be used |
|
32 |
only in accordance with the terms of that license and with the |
|
33 |
inclusion of the above copyright notice. This software may not |
|
34 |
be provided or otherwise made available to, or used by, any |
|
35 |
other person. No title to or ownership of the software is |
|
36 |
hereby transferred. |
|
37 |
" |
|
38 |
||
39 |
||
40 |
||
41 |
||
42 |
! |
|
43 |
||
44 |
documentation |
|
45 |
" |
|
896 | 46 |
Abstract super class for the MenuEditor, HierarchicalListEditor, |
47 |
and the TabListEditor. |
|
48 |
It provides common behavior for initializing, loading, saving, and |
|
49 |
asking for modifications of the resource specs (#menu, #hierarchicalList, |
|
50 |
#tabList) for the concrete subclasses. |
|
51 |
||
52 |
[instance variables:] |
|
53 |
specClass <Symbol> class implementing the resource spec |
|
54 |
specSelector <Symbol> selector returning the resource spec |
|
55 |
aspects <IdentityDictionary> dictionary with the attributes of the resource spec |
|
56 |
modified <Boolean> flag whether the resource spec was modified |
|
57 |
hasSaved <Boolean> flag whether the resource spec was saved |
|
58 |
tabSelection <Integer> index of the tab selection |
|
59 |
||
60 |
[see also:] |
|
61 |
MenuEditor |
|
62 |
HierarchicalListEditor |
|
63 |
TabListEditor |
|
867 | 64 |
|
65 |
[author:] |
|
876 | 66 |
Thomas Zwick, eXept Software AG |
867 | 67 |
" |
68 |
! ! |
|
69 |
||
70 |
!ResourceSpecEditor class methodsFor:'instance creation'! |
|
71 |
||
72 |
openModalOnClass:aClass andSelector:aSelector |
|
896 | 73 |
"opens modal the Resource Spec Editor on aClass and aSelector" |
867 | 74 |
|
75 |
^self new openModalOnClass:aClass andSelector:aSelector |
|
76 |
||
77 |
! |
|
78 |
||
79 |
openOnClass:aClass andSelector:aSelector |
|
896 | 80 |
"opens the Resource Spec Editor on aClass and aSelector" |
867 | 81 |
|
2102 | 82 |
^ self new openOnClass:aClass andSelector:aSelector |
867 | 83 |
! ! |
84 |
||
85 |
!ResourceSpecEditor class methodsFor:'accessing'! |
|
86 |
||
87 |
codeGenerationComment |
|
896 | 88 |
"returns a comment for the method code generated by myself" |
867 | 89 |
|
90 |
^self codeGenerationCommentForClass: self |
|
91 |
||
92 |
||
93 |
||
94 |
||
95 |
! |
|
96 |
||
1994 | 97 |
codeGenerationCommentForClass: generatingClass |
98 |
"returns a comment for the method code generated by generatingClass" |
|
99 |
||
100 |
|generatingClassName| |
|
101 |
||
102 |
generatingClassName := generatingClass name. |
|
867 | 103 |
|
104 |
^' "This resource specification was automatically generated\', |
|
1994 | 105 |
' by the ', generatingClassName, ' of ST/X."\\', |
867 | 106 |
|
107 |
' "Do not manually edit this!! If it is corrupted,\', |
|
1994 | 108 |
' the ', generatingClassName, ' may not be able to read the specification."' |
867 | 109 |
! |
110 |
||
111 |
resourceType |
|
896 | 112 |
"returns the type of resource of the method generated by the Resource Spec Editor; |
113 |
concrete subclasses has to reimplement this method" |
|
867 | 114 |
|
868 | 115 |
^self subclassResponsibility |
867 | 116 |
! ! |
117 |
||
118 |
!ResourceSpecEditor class methodsFor:'aspects'! |
|
119 |
||
120 |
aspects |
|
896 | 121 |
"returns the aspects for the attributes of the resource spec components; |
122 |
concrete subclasses might reimplement this method in order to return an array" |
|
867 | 123 |
|
124 |
^#() |
|
125 |
! ! |
|
126 |
||
3823 | 127 |
!ResourceSpecEditor class methodsFor:'help spec'! |
128 |
||
129 |
helpSpec |
|
130 |
"This resource specification was automatically generated |
|
131 |
by the UIHelpTool of ST/X." |
|
132 |
||
133 |
"Do not manually edit this!! If it is corrupted, |
|
134 |
the UIHelpTool may not be able to read the specification." |
|
135 |
||
136 |
" |
|
137 |
UIHelpTool openOnClass:ToolApplicationModel |
|
138 |
" |
|
139 |
||
140 |
<resource: #help> |
|
141 |
||
142 |
^ super helpSpec addPairsFrom:#( |
|
143 |
#fileShowStoreString |
|
144 |
'Show the Smalltalk storeString (to be pasted into code)' |
|
145 |
||
146 |
) |
|
147 |
! ! |
|
148 |
||
896 | 149 |
!ResourceSpecEditor class methodsFor:'queries'! |
150 |
||
3876 | 151 |
isAbstract |
152 |
"Return if this class is an abstract class. |
|
153 |
True is returned here for myself only; false for subclasses. |
|
154 |
Abstract subclasses must redefine this again." |
|
155 |
||
156 |
^ self == ResourceSpecEditor. |
|
157 |
! |
|
158 |
||
896 | 159 |
isVisualStartable |
1427 | 160 |
"return true, if this application can be started via #open. |
161 |
(to allow start of a change browser via double-click in the browser)" |
|
896 | 162 |
|
163 |
self == ResourceSpecEditor ifTrue:[^false]. |
|
164 |
^super isVisualStartable |
|
1967 | 165 |
! |
166 |
||
167 |
resourcePackage |
|
168 |
^ #'stx:libtool2' |
|
896 | 169 |
! ! |
170 |
||
2539 | 171 |
!ResourceSpecEditor class methodsFor:'startup & release'! |
876 | 172 |
|
173 |
preSnapshot |
|
896 | 174 |
"before a snapshot; updates the channels, |
175 |
because the clipboard has removed" |
|
876 | 176 |
|
177 |
super preSnapshot. |
|
178 |
||
1090 | 179 |
instances notNil ifTrue:[ |
180 |
instances do:[:inst | |
|
181 |
inst updateChannels. |
|
2103 | 182 |
inst enablingCommitButtonsHolder value: false. |
1147 | 183 |
inst modifiedChannel value: false. |
1090 | 184 |
] |
876 | 185 |
] |
186 |
||
1090 | 187 |
"Modified: / 4.2.1999 / 15:32:17 / cg" |
876 | 188 |
! ! |
189 |
||
867 | 190 |
!ResourceSpecEditor methodsFor:'accessing'! |
191 |
||
3809 | 192 |
alternativeSpecSelectors |
193 |
"returns an alternative method selector of the resource spec" |
|
194 |
||
195 |
^ nil |
|
196 |
! |
|
197 |
||
2097 | 198 |
clearModified |
2111
c3aee5cae2fe
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
199 |
self modified:false |
2097 | 200 |
! |
201 |
||
2748
03b9b57d2076
fixed usage as subcomponent in browser
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
202 |
isEmbeddedInBrowser |
03b9b57d2076
fixed usage as subcomponent in browser
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
203 |
^ isEmbeddedInBrowser ? false |
03b9b57d2076
fixed usage as subcomponent in browser
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
204 |
! |
03b9b57d2076
fixed usage as subcomponent in browser
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
205 |
|
03b9b57d2076
fixed usage as subcomponent in browser
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
206 |
isEmbeddedInBrowser:something |
03b9b57d2076
fixed usage as subcomponent in browser
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
207 |
isEmbeddedInBrowser := something. |
03b9b57d2076
fixed usage as subcomponent in browser
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
208 |
! |
03b9b57d2076
fixed usage as subcomponent in browser
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
209 |
|
867 | 210 |
modified |
889 | 211 |
"returns whether the resource spec was modified" |
867 | 212 |
|
2110 | 213 |
^ modified |
867 | 214 |
! |
215 |
||
3997 | 216 |
modified:aBoolean |
896 | 217 |
"sets the resource spec modified as aBoolean" |
867 | 218 |
|
3997 | 219 |
modified := aBoolean. |
220 |
self updateInfoLabel |
|
221 |
||
222 |
"Modified: / 29-08-2017 / 19:56:04 / cg" |
|
867 | 223 |
! |
224 |
||
2097 | 225 |
setModified |
2111
c3aee5cae2fe
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
226 |
self modified:true |
2097 | 227 |
! |
228 |
||
867 | 229 |
specClass |
2296 | 230 |
"return the class where the resource spec is implemented" |
867 | 231 |
|
2097 | 232 |
^ specClass |
867 | 233 |
! |
234 |
||
2097 | 235 |
specClass:aClassOrClassName |
889 | 236 |
"sets the class (or name) where the resource spec is (or should be) implemented" |
867 | 237 |
|
2097 | 238 |
aClassOrClassName isBehavior |
239 |
ifTrue: [ specClass := aClassOrClassName ] |
|
2374 | 240 |
ifFalse:[ specClass := Smalltalk classNamed:aClassOrClassName ]. |
241 |
||
242 |
"Modified: / 14-01-2008 / 17:38:54 / cg" |
|
2097 | 243 |
! |
244 |
||
245 |
specClassName |
|
2296 | 246 |
"return the classes name where the resource spec is implemented" |
2097 | 247 |
|
248 |
^ specClass name |
|
867 | 249 |
! |
250 |
||
251 |
specSelector |
|
889 | 252 |
"returns the method selector of the resource spec" |
867 | 253 |
|
254 |
^specSelector |
|
255 |
||
256 |
! |
|
257 |
||
258 |
specSelector:aSelector |
|
3809 | 259 |
"sets the method selector of the resource spec. |
260 |
That is the spec method being edited (i.e. #helpSpec, #windowSpec, #menuSpec, etc.)" |
|
867 | 261 |
|
262 |
specSelector := aSelector |
|
263 |
! ! |
|
264 |
||
265 |
!ResourceSpecEditor methodsFor:'aspects'! |
|
266 |
||
2120 | 267 |
aspectAt:aKey put:aValueHolder |
268 |
aspects at: aKey put:aValueHolder |
|
269 |
! |
|
270 |
||
867 | 271 |
aspectFor:aKey |
889 | 272 |
"returns the aspect for a aKey or nil" |
867 | 273 |
|
2498 | 274 |
^ aspects at: aKey ifAbsent: [super aspectFor:aKey] |
867 | 275 |
! |
276 |
||
2200
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
277 |
autoAcceptOnSelectionChange |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
278 |
^ builder valueAspectFor:#autoAcceptOnSelectionChange initialValue:true |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
279 |
! |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
280 |
|
2103 | 281 |
canPasteHolder |
282 |
"returns whether the application can paste; as value holder" |
|
283 |
||
284 |
|holder| |
|
285 |
||
286 |
holder := super canPasteHolder. |
|
287 |
holder value:(self class clipboard notNil). |
|
288 |
^ holder |
|
289 |
! |
|
290 |
||
291 |
enableMovingInAboveHolder |
|
292 |
"returns whether the selected item can move into the previous item as child; |
|
293 |
as a value holder" |
|
294 |
||
295 |
^builder booleanValueAspectFor: #valueOfEnableMovingInAbove |
|
296 |
! |
|
297 |
||
298 |
enableMovingInHolder |
|
299 |
"returns whether the selected item can move into next item as child; as value holder" |
|
300 |
||
301 |
^builder booleanValueAspectFor: #valueOfEnableMovingIn |
|
302 |
! |
|
303 |
||
304 |
enableMovingOutHolder |
|
305 |
"returns whether the selected item can move out from its parent item; as value holder" |
|
306 |
||
307 |
^builder booleanValueAspectFor: #valueOfEnableMovingOut |
|
308 |
! |
|
309 |
||
310 |
enableMovingUpOrDownHolder |
|
311 |
"returns whether the selected item can move up or down; as value holder" |
|
312 |
||
313 |
^builder booleanValueAspectFor: #valueOfEnableMovingUpOrDown |
|
314 |
! |
|
315 |
||
867 | 316 |
tabModel |
889 | 317 |
"returns the value holder for the tab selection" |
867 | 318 |
|
319 |
|holder| |
|
320 |
(holder := builder bindingAt:#tabModel) isNil ifTrue:[ |
|
321 |
holder := AspectAdaptor new subject:self; forAspect:#tabSelection. |
|
322 |
builder aspectAt:#tabModel put:holder. |
|
323 |
]. |
|
324 |
^ holder |
|
325 |
! |
|
326 |
||
327 |
valueOfEnableMovingIn |
|
2606 | 328 |
<resource: #obsolete> |
1470 | 329 |
"returns whether the selected item can move into next item as child; as value holder" |
867 | 330 |
|
2103 | 331 |
self obsoleteMethodWarning:'stupid name - use #enableMovingInHolder'. |
332 |
^ self enableMovingInHolder |
|
1470 | 333 |
! |
867 | 334 |
|
1470 | 335 |
valueOfEnableMovingInAbove |
2606 | 336 |
<resource: #obsolete> |
1470 | 337 |
"returns whether the selected item can move into the previous item as child; |
338 |
as a value holder" |
|
867 | 339 |
|
2103 | 340 |
self obsoleteMethodWarning:'stupid name - use #enableMovingInAboveHolder'. |
341 |
^ self enableMovingInAboveHolder |
|
867 | 342 |
! |
343 |
||
344 |
valueOfEnableMovingOut |
|
2606 | 345 |
<resource: #obsolete> |
1470 | 346 |
"returns whether the selected item can move out from its parent item; as value holder" |
867 | 347 |
|
2103 | 348 |
self obsoleteMethodWarning:'stupid name - use #enableMovingOutHolder'. |
349 |
^ self enableMovingOutHolder |
|
867 | 350 |
! |
351 |
||
352 |
valueOfEnableMovingUpOrDown |
|
2606 | 353 |
<resource: #obsolete> |
1470 | 354 |
"returns whether the selected item can move up or down; as value holder" |
867 | 355 |
|
2103 | 356 |
self obsoleteMethodWarning:'stupid name - use #enableMovingUpOrDownHolder'. |
357 |
^ self enableMovingUpOrDownHolder |
|
867 | 358 |
! ! |
359 |
||
360 |
!ResourceSpecEditor methodsFor:'building'! |
|
361 |
||
2037 | 362 |
buildFromClass: aClass andSelector: aSelector |
2097 | 363 |
^ self loadFromClass: aClass andSelector: aSelector |
2037 | 364 |
! |
365 |
||
867 | 366 |
buildFromResourceSpec: aResourceSpec |
868 | 367 |
"concrete subclass has to reimplement this method |
867 | 368 |
in order to build its resource spec from aResourceSpec" |
369 |
||
2097 | 370 |
^ self loadFromResourceSpec:aResourceSpec |
371 |
! |
|
372 |
||
373 |
loadFromClass: aClass andSelector: aSelector |
|
374 |
^ self subclassResponsibility |
|
375 |
! |
|
376 |
||
377 |
loadFromResourceSpec: aResourceSpec |
|
378 |
"concrete subclass has to reimplement this method |
|
379 |
in order to build its resource spec from aResourceSpec" |
|
380 |
||
2693 | 381 |
^ self subclassResponsibility |
867 | 382 |
! ! |
383 |
||
384 |
!ResourceSpecEditor methodsFor:'change & update'! |
|
385 |
||
1874
4bd4f25fdada
oops - modified flag was always re-turned on
Claus Gittinger <cg@exept.de>
parents:
1870
diff
changeset
|
386 |
update:something with:aParameter from:changedObject |
867 | 387 |
"one of my aspects has changed; update modified channel for the commit buttons" |
388 |
||
1874
4bd4f25fdada
oops - modified flag was always re-turned on
Claus Gittinger <cg@exept.de>
parents:
1870
diff
changeset
|
389 |
|enableCommitButtonsHolder| |
4bd4f25fdada
oops - modified flag was always re-turned on
Claus Gittinger <cg@exept.de>
parents:
1870
diff
changeset
|
390 |
|
2103 | 391 |
enableCommitButtonsHolder := self enablingCommitButtonsHolder. |
1874
4bd4f25fdada
oops - modified flag was always re-turned on
Claus Gittinger <cg@exept.de>
parents:
1870
diff
changeset
|
392 |
|
4bd4f25fdada
oops - modified flag was always re-turned on
Claus Gittinger <cg@exept.de>
parents:
1870
diff
changeset
|
393 |
changedObject ~~ enableCommitButtonsHolder ifTrue:[ |
4bd4f25fdada
oops - modified flag was always re-turned on
Claus Gittinger <cg@exept.de>
parents:
1870
diff
changeset
|
394 |
enableCommitButtonsHolder value: true |
4bd4f25fdada
oops - modified flag was always re-turned on
Claus Gittinger <cg@exept.de>
parents:
1870
diff
changeset
|
395 |
] |
876 | 396 |
! |
397 |
||
398 |
updateAllToolInstances |
|
896 | 399 |
"updates the channels of all other instances of my class" |
876 | 400 |
|
401 |
self allToolInstances do: [:inst| inst updateChannels] |
|
402 |
||
403 |
! |
|
404 |
||
405 |
updateChannels |
|
896 | 406 |
"updates my channels" |
876 | 407 |
|
2103 | 408 |
"/ self valueOfCanPaste |
867 | 409 |
! ! |
410 |
||
411 |
!ResourceSpecEditor methodsFor:'help'! |
|
412 |
||
413 |
defaultInfoLabel |
|
889 | 414 |
"returns the default label for the info bar" |
867 | 415 |
|
2097 | 416 |
specClass isBehavior ifTrue:[ |
417 |
(specClass respondsTo:specSelector) ifTrue:[ |
|
418 |
^ specClass name, ' >> ', specSelector |
|
876 | 419 |
]. |
2097 | 420 |
specSelector isNil ifTrue:[ |
421 |
^ specClass name, ' >> ? (no selector defined)' |
|
422 |
]. |
|
423 |
^ specClass name, ' >> ', specSelector, ' (not implemented)' |
|
867 | 424 |
]. |
2097 | 425 |
^ 'No class and selector defined.' |
867 | 426 |
! ! |
427 |
||
428 |
!ResourceSpecEditor methodsFor:'initialization'! |
|
429 |
||
430 |
initialize |
|
431 |
"initialize the flags and the aspects" |
|
432 |
||
433 |
super initialize. |
|
434 |
||
896 | 435 |
hasSaved := modified := false. |
436 |
aspects := IdentityDictionary new. |
|
867 | 437 |
tabSelection := 0. |
438 |
||
2874
6a5590e8b647
comment/format in: #initialize
Claus Gittinger <cg@exept.de>
parents:
2748
diff
changeset
|
439 |
self class aspects do:[:aKey| |
867 | 440 |
|holder| |
441 |
aspects at:aKey put: (holder := ValueHolder new). |
|
442 |
holder addDependent: self |
|
896 | 443 |
] |
2874
6a5590e8b647
comment/format in: #initialize
Claus Gittinger <cg@exept.de>
parents:
2748
diff
changeset
|
444 |
|
6a5590e8b647
comment/format in: #initialize
Claus Gittinger <cg@exept.de>
parents:
2748
diff
changeset
|
445 |
"Modified: / 25-10-2010 / 10:31:32 / cg" |
867 | 446 |
! ! |
447 |
||
448 |
!ResourceSpecEditor methodsFor:'private'! |
|
449 |
||
450 |
askForItemModification |
|
889 | 451 |
"asks for resource item modification" |
867 | 452 |
|
1524
6a0a84872e73
added cancel to ask-if-modified dialog
Claus Gittinger <cg@exept.de>
parents:
1504
diff
changeset
|
453 |
|anythingChangedHolder anythingChanged answer| |
6a0a84872e73
added cancel to ask-if-modified dialog
Claus Gittinger <cg@exept.de>
parents:
1504
diff
changeset
|
454 |
|
2103 | 455 |
anythingChangedHolder := self enablingCommitButtonsHolder. |
1524
6a0a84872e73
added cancel to ask-if-modified dialog
Claus Gittinger <cg@exept.de>
parents:
1504
diff
changeset
|
456 |
anythingChanged := anythingChangedHolder value. |
2200
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
457 |
anythingChanged ifFalse:[^ true]. |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
458 |
|
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
459 |
self autoAcceptOnSelectionChange value ifTrue:[ |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
460 |
self accept. |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
461 |
^ true |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
462 |
]. |
1524
6a0a84872e73
added cancel to ask-if-modified dialog
Claus Gittinger <cg@exept.de>
parents:
1504
diff
changeset
|
463 |
|
2200
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
464 |
answer := Dialog |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
465 |
confirmWithCancel:(resources string:'Item was modified !!\Save it ?\' withCRs) |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
466 |
labels:(resources array:#('Cancel' 'No' 'Yes')) |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
467 |
default:3. |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
468 |
answer isNil ifTrue:[ |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
469 |
^ false |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
470 |
]. |
1524
6a0a84872e73
added cancel to ask-if-modified dialog
Claus Gittinger <cg@exept.de>
parents:
1504
diff
changeset
|
471 |
|
2200
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
472 |
answer ifTrue:[ |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
473 |
self accept |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
474 |
] ifFalse:[ |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
475 |
anythingChangedHolder value: false. |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
476 |
self clearModifiedFlag. |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
477 |
self clearModified. |
867 | 478 |
]. |
2200
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
479 |
^ true |
867 | 480 |
|
2200
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
481 |
"Modified: / 05-09-2006 / 18:41:11 / cg" |
867 | 482 |
! |
483 |
||
484 |
askForListModification |
|
889 | 485 |
"asks for resource modification" |
867 | 486 |
|
1870
c0475972bf3e
Use 'Discard Changes and Exit' instead of 'Forget it...'
Stefan Vogel <sv@exept.de>
parents:
1767
diff
changeset
|
487 |
self modified ifTrue: |
867 | 488 |
[ |
2265 | 489 |
((YesNoBox title:(resources string:'Modified %1 spec was not saved. Proceed?' with:self class resourceType asUppercaseFirst)) |
929 | 490 |
noText:(resources string:'Cancel'); |
2037 | 491 |
yesText:(resources string:'Discard Changes and Proceed'); |
867 | 492 |
showAtPointer; |
2037 | 493 |
accepted) ifFalse: [^ false]. |
2097 | 494 |
self clearModified |
867 | 495 |
]. |
2037 | 496 |
^ true |
929 | 497 |
|
2265 | 498 |
"Modified: / 17-10-2006 / 17:43:53 / cg" |
867 | 499 |
! |
500 |
||
501 |
askForModification |
|
889 | 502 |
"asks first for item and then for resource modification" |
867 | 503 |
|
504 |
^self askForItemModification and: [self askForListModification] |
|
505 |
||
506 |
! |
|
507 |
||
2097 | 508 |
extractClassAndSelectorFrom:aString |
509 |
"extracts class and selector from a resource string. On success |
|
510 |
an association with the key a class and the selector as value |
|
511 |
is returned. Otherwise nil is returned |
|
512 |
" |
|
513 |
|words newClass newSel| |
|
514 |
||
515 |
aString size ~~ 0 ifTrue:[ |
|
516 |
words := aString asCollectionOfWords. |
|
867 | 517 |
|
2097 | 518 |
words size == 2 ifTrue:[ |
519 |
newClass := self resolveName:(words first). |
|
520 |
||
521 |
(newClass isClass and:[newClass isLoaded]) ifTrue:[ |
|
522 |
newSel := words last asSymbol. |
|
523 |
||
524 |
(newClass class includesSelector:newSel) ifTrue:[ |
|
525 |
^ Association key:newClass value:newSel |
|
526 |
]. |
|
527 |
]. |
|
528 |
]. |
|
529 |
]. |
|
530 |
^ nil |
|
867 | 531 |
! |
532 |
||
2097 | 533 |
updateHistory |
534 |
"updates the history, if there was loaded a resource spec" |
|
535 |
||
536 |
specClass notNil ifTrue:[ |
|
537 |
self addHistoryEntryForClass:specClass selector:specSelector |
|
538 |
] |
|
539 |
! |
|
867 | 540 |
|
2097 | 541 |
xxresourceMessage:aString |
542 |
"extracts the specClass and the specSelector from aString " |
|
543 |
||
544 |
|msg cls| |
|
545 |
||
546 |
(aString notNil and:[self askForModification]) ifTrue:[ |
|
867 | 547 |
msg := aString asCollectionOfWords. |
2097 | 548 |
(msg size == 2 |
549 |
and: [ (cls := self resolveName:(msg at:1)) notNil ]) |
|
550 |
ifTrue:[ |
|
551 |
specClass := cls. |
|
867 | 552 |
specSelector := (msg at: 2) asSymbol. |
553 |
^true |
|
554 |
] |
|
555 |
]. |
|
556 |
^false |
|
557 |
! ! |
|
558 |
||
559 |
!ResourceSpecEditor methodsFor:'queries'! |
|
560 |
||
561 |
hasSaved |
|
2107 | 562 |
"returns true if the resource spec was saved" |
867 | 563 |
|
2107 | 564 |
^ hasSaved |
867 | 565 |
! |
566 |
||
2110 | 567 |
isModified |
2111
c3aee5cae2fe
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
2110
diff
changeset
|
568 |
^ self modified |
2110 | 569 |
! |
570 |
||
2097 | 571 |
isNotStandAlone |
3905 | 572 |
"returns true if the editor was NOT started from or in another tool; |
573 |
i.e. is embedded in another tool, such as the inspector" |
|
2097 | 574 |
|
2107 | 575 |
^ self masterApplication notNil |
3905 | 576 |
|
577 |
"Modified (comment): / 20-02-2017 / 10:47:10 / cg" |
|
2097 | 578 |
! |
579 |
||
867 | 580 |
isStandAlone |
3905 | 581 |
"returns true if the editor was started from or in another tool; |
582 |
i.e. is not embedded in another tool such as the inspector" |
|
867 | 583 |
|
2107 | 584 |
^ self masterApplication isNil |
3905 | 585 |
|
586 |
"Modified (comment): / 20-02-2017 / 10:46:50 / cg" |
|
867 | 587 |
! ! |
588 |
||
589 |
!ResourceSpecEditor methodsFor:'selection'! |
|
590 |
||
2200
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
591 |
selectionChangeAllowed:newSelection |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
592 |
self isModified ifFalse:[^ true]. |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
593 |
|
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
594 |
self autoAcceptOnSelectionChange value ifTrue:[ |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
595 |
self accept |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
596 |
] ifFalse:[ |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
597 |
self askForUnsavedModifications ifFalse:[^ false]. |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
598 |
]. |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
599 |
^ true |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
600 |
! |
98ec425dc11c
shared code between Menu- and UIPainter
Claus Gittinger <cg@exept.de>
parents:
2120
diff
changeset
|
601 |
|
867 | 602 |
tabSelection |
603 |
"returns selected tab index or 0" |
|
604 |
||
605 |
^tabSelection |
|
606 |
||
607 |
! ! |
|
608 |
||
1767 | 609 |
!ResourceSpecEditor methodsFor:'startup & release'! |
867 | 610 |
|
611 |
closeRequest |
|
2120 | 612 |
"asks for permission before closing" |
867 | 613 |
|
2120 | 614 |
self askForModification ifTrue: [ |
615 |
super closeRequest |
|
616 |
] |
|
867 | 617 |
! |
618 |
||
2097 | 619 |
loadFromMessage:classAndSelector |
896 | 620 |
"builds by evaluating aString the resource spec for editing" |
867 | 621 |
|
2097 | 622 |
|cls sel| |
623 |
||
624 |
self askForModification ifFalse:[ ^ false]. |
|
625 |
classAndSelector isNil ifTrue:[^ false]. |
|
934
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
626 |
|
2097 | 627 |
cls := classAndSelector methodClass. |
628 |
sel := classAndSelector methodSelector. |
|
629 |
self isStandAlone |
|
630 |
ifFalse: [self loadFromResourceSpec: (cls perform: sel).] |
|
631 |
ifTrue: [self loadFromClass:cls andSelector:sel ]. |
|
632 |
^ true |
|
934
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
633 |
|
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
634 |
"Modified: / 21.5.1998 / 02:56:46 / cg" |
867 | 635 |
! |
636 |
||
637 |
openModalOnClass:aClass andSelector:aSelector |
|
896 | 638 |
"sets the specClass and specSelector and opens modal the interface" |
867 | 639 |
|
2097 | 640 |
specClass := aClass isClass ifTrue: [aClass] ifFalse: [ Smalltalk classNamed:aClass]. |
867 | 641 |
specSelector := aSelector. |
642 |
||
1735 | 643 |
self openInterfaceModal. |
867 | 644 |
! |
645 |
||
646 |
openModalOnResourceSpec: aListSpec |
|
896 | 647 |
"builds first from specClass and specSelector the resource spec for editing, |
648 |
then opens modal the interface" |
|
867 | 649 |
|
1735 | 650 |
self allButOpen. |
2097 | 651 |
self loadFromResourceSpec:aListSpec. |
1735 | 652 |
self openWindowModal. |
867 | 653 |
! |
654 |
||
655 |
openOnClass:aClass andSelector:aSelector |
|
896 | 656 |
"sets the specClass and specSelector and opens the interface" |
867 | 657 |
|
2097 | 658 |
specClass := aClass isBehavior ifTrue: [aClass] ifFalse: [ Smalltalk classNamed:aClass]. |
867 | 659 |
specSelector := aSelector. |
660 |
||
1735 | 661 |
self openInterface. |
867 | 662 |
! |
663 |
||
934
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
664 |
postBuildWith:aBuilder |
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
665 |
"after creating the views and before opening, |
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
666 |
adds myself to the instances dictionary in the settings" |
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
667 |
|
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
668 |
super postBuildWith:aBuilder. |
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
669 |
|
1090 | 670 |
self class rememberInstance:self |
934
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
671 |
|
1090 | 672 |
"Modified: / 4.2.1999 / 15:33:23 / cg" |
934
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
673 |
! |
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
674 |
|
867 | 675 |
postOpenWith:aBuilder |
896 | 676 |
"after opening, builds from specClass and specSelector the resource spec for editing" |
867 | 677 |
|
678 |
super postOpenWith:aBuilder. |
|
679 |
||
2097 | 680 |
specClass notNil ifTrue:[ |
681 |
self loadFromClass: specClass andSelector: specSelector |
|
682 |
] |
|
876 | 683 |
! |
684 |
||
685 |
uninitialize |
|
896 | 686 |
"uninitializes; removes myself from the instances dictionary in the settings" |
876 | 687 |
|
688 |
super uninitialize. |
|
689 |
||
1090 | 690 |
self class forgetInstance:self |
876 | 691 |
|
1090 | 692 |
"Modified: / 4.2.1999 / 15:34:25 / cg" |
867 | 693 |
! ! |
694 |
||
695 |
!ResourceSpecEditor methodsFor:'user actions'! |
|
696 |
||
697 |
accept |
|
896 | 698 |
"invoked by the OK button; disables the commit buttons and sets myself modified" |
867 | 699 |
|
1157 | 700 |
self acceptChannel |
1158 | 701 |
value:false; |
1157 | 702 |
value:true; "/ toggle to force inputFields to accept |
703 |
value:false. |
|
704 |
||
2103 | 705 |
self enablingCommitButtonsHolder value: false. |
1201 | 706 |
self clearModifiedFlag. |
2097 | 707 |
self setModified |
867 | 708 |
! |
709 |
||
710 |
doBrowseClass |
|
889 | 711 |
"opens a System Browser on the specClass and specSelector" |
867 | 712 |
|
2097 | 713 |
specClass notNil |
3519 | 714 |
ifTrue: [specClass browserClass openInClass:specClass class selector: specSelector] |
867 | 715 |
ifFalse:[self information:'No class defined!!'] |
716 |
! |
|
717 |
||
718 |
doEditImage |
|
896 | 719 |
"opens a Image Editor on the resource retriever and the icon selector" |
867 | 720 |
|
2097 | 721 |
|resourceClass resourceSelector classAndSelector retrieverName| |
867 | 722 |
|
2097 | 723 |
resourceSelector := (aspects at:#icon) value. |
724 |
resourceSelector isEmptyOrNil ifTrue:[ resourceSelector := #icon ]. |
|
934
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
725 |
|
2097 | 726 |
retrieverName := (aspects at:#retriever) value. |
727 |
retrieverName notEmptyOrNil ifTrue:[ |
|
728 |
resourceClass := Smalltalk classNamed:retrieverName |
|
1147 | 729 |
] ifFalse:[ |
2097 | 730 |
specClass notNil ifTrue:[ |
731 |
resourceClass := specClass withAllSuperclasses |
|
732 |
detect:[:cls| cls class includesSelector: resourceSelector] |
|
733 |
ifNone:[specClass] |
|
1003 | 734 |
] |
735 |
]. |
|
867 | 736 |
|
2097 | 737 |
(classAndSelector := ImageEditor openModalOnClass: resourceClass andSelector: resourceSelector) notNil |
1147 | 738 |
ifTrue: [ |
2097 | 739 |
resourceClass := classAndSelector at:1. |
740 |
resourceSelector := classAndSelector at:2. |
|
741 |
(aspects at:#retriever) value: resourceClass name. |
|
742 |
(aspects at:#icon) value: resourceSelector. |
|
2103 | 743 |
self enablingCommitButtonsHolder value: true |
867 | 744 |
] |
745 |
||
934
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
746 |
"Modified: / 21.5.1998 / 02:44:04 / cg" |
867 | 747 |
! |
748 |
||
749 |
doLoad |
|
889 | 750 |
"opens a Resource Selection Browser in order to get a resource message" |
867 | 751 |
|
2097 | 752 |
|myResourceType classAndSelector| |
934
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
753 |
|
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
754 |
myResourceType := self class resourceType. |
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
755 |
|
2097 | 756 |
classAndSelector := ResourceSelectionBrowser |
934
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
757 |
request: 'Load ', myResourceType asUppercaseFirst, ' Spec From Class' |
867 | 758 |
onSuperclass: nil |
759 |
andClass: specClass |
|
934
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
760 |
andSelector: specSelector ? myResourceType |
2097 | 761 |
withResourceTypes: (Array with: myResourceType). |
934
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
762 |
|
2097 | 763 |
classAndSelector isNil ifTrue:[ ^ self ]. |
764 |
^ self loadFromClass:(classAndSelector methodClass) andSelector:(classAndSelector methodSelector) |
|
867 | 765 |
! |
766 |
||
767 |
doNew |
|
768 |
"first ask for modification; then clean specClass and specSelector, |
|
769 |
but only, if the editor is opened as stand alone; |
|
770 |
finally make a build of a resource spec containing no items" |
|
771 |
||
2037 | 772 |
self askForModification ifTrue:[ |
867 | 773 |
self isStandAlone ifTrue: [specClass := specSelector := nil]. |
2097 | 774 |
self loadFromClass:nil andSelector:(self class resourceType). |
2037 | 775 |
^ true |
867 | 776 |
]. |
2037 | 777 |
^ false |
867 | 778 |
! |
779 |
||
780 |
doSave |
|
781 |
"before saving ask for modification; if no specClass and specSelector |
|
782 |
is defined, do save as" |
|
783 |
||
784 |
self askForItemModification. |
|
785 |
||
786 |
(specClass isNil or:[specSelector isNil]) ifTrue:[ |
|
787 |
self doSaveAs. |
|
2097 | 788 |
^ false |
867 | 789 |
]. |
2097 | 790 |
^ true |
867 | 791 |
! |
792 |
||
793 |
doSaveAs |
|
794 |
"first ask for modification; |
|
795 |
then open a ResourceSelectionBrowser; |
|
796 |
after that extract the resource message; |
|
797 |
finally do save and make a new build" |
|
798 |
||
2394
5dd56d160a09
support editing spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2374
diff
changeset
|
799 |
|masterApplication resourceMessage myResourceType| |
5dd56d160a09
support editing spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2374
diff
changeset
|
800 |
|
5dd56d160a09
support editing spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2374
diff
changeset
|
801 |
masterApplication := self masterApplication. |
5dd56d160a09
support editing spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2374
diff
changeset
|
802 |
masterApplication notNil ifTrue:[ |
5dd56d160a09
support editing spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2374
diff
changeset
|
803 |
masterApplication isEditingSpecOnly ifTrue:[ |
5dd56d160a09
support editing spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2374
diff
changeset
|
804 |
"/ there is no class to store into |
5dd56d160a09
support editing spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2374
diff
changeset
|
805 |
^ true |
5dd56d160a09
support editing spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2374
diff
changeset
|
806 |
]. |
5dd56d160a09
support editing spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2374
diff
changeset
|
807 |
]. |
867 | 808 |
|
809 |
self askForItemModification. |
|
810 |
||
934
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
811 |
myResourceType := self class resourceType. |
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
812 |
|
2097 | 813 |
resourceMessage := ResourceSelectionBrowser |
934
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
814 |
request: 'Save ', myResourceType asUppercaseFirst, ' Spec In Class' |
867 | 815 |
onSuperclass: #Object |
2097 | 816 |
andClass: specClass name |
934
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
817 |
andSelector: specSelector ? myResourceType |
2097 | 818 |
withResourceTypes: (Array with: myResourceType). |
819 |
||
820 |
resourceMessage isNil ifTrue:[ ^ false ]. |
|
821 |
||
822 |
self clearModified. |
|
823 |
specClass := resourceMessage methodClass. |
|
824 |
specSelector := resourceMessage methodSelector. |
|
825 |
self doSave. |
|
826 |
self loadFromClass: specClass andSelector: specSelector. |
|
827 |
^ true |
|
934
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
828 |
|
c32a44c8913e
should not redefine AllButOpenInterface;
Claus Gittinger <cg@exept.de>
parents:
929
diff
changeset
|
829 |
"Modified: / 21.5.1998 / 02:59:46 / cg" |
867 | 830 |
! ! |
831 |
||
832 |
!ResourceSpecEditor class methodsFor:'documentation'! |
|
833 |
||
834 |
version |
|
3519 | 835 |
^ '$Header$' |
2874
6a5590e8b647
comment/format in: #initialize
Claus Gittinger <cg@exept.de>
parents:
2748
diff
changeset
|
836 |
! |
6a5590e8b647
comment/format in: #initialize
Claus Gittinger <cg@exept.de>
parents:
2748
diff
changeset
|
837 |
|
6a5590e8b647
comment/format in: #initialize
Claus Gittinger <cg@exept.de>
parents:
2748
diff
changeset
|
838 |
version_CVS |
3519 | 839 |
^ '$Header$' |
867 | 840 |
! ! |
3519 | 841 |