author | Claus Gittinger <cg@exept.de> |
Thu, 21 Mar 2013 17:37:05 +0100 | |
changeset 736 | 43645227af41 |
parent 732 | 7ae1f57f3af9 |
child 786 | 8c0dffd42eb8 |
permissions | -rw-r--r-- |
429 | 1 |
"{ Package: 'stx:goodies/monticello' }"! |
2 |
||
3 |
!Annotation class methodsFor:'instance creation'! |
|
395 | 4 |
|
5 |
mctimestamp: aString |
|
6 |
||
7 |
^MCTimestampAnnotation new timestamp: aString |
|
8 |
||
9 |
"Created: / 14-09-2010 / 15:35:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10 |
! ! |
|
11 |
||
429 | 12 |
!Behavior methodsFor:'*monticello-squeakCompatibility'! |
395 | 13 |
|
14 |
includesLocalSelector:aSymbol |
|
15 |
^ self localSelectors includes:aSymbol |
|
16 |
||
17 |
"Created: / 26-08-2009 / 11:50:00 / Jaroslav Havlin <havlij6@fel.cvut.cz>" |
|
18 |
! ! |
|
19 |
||
429 | 20 |
!Behavior methodsFor:'*monticello-squeakCompatibility'! |
395 | 21 |
|
22 |
localSelectors |
|
23 |
^ self methodDictionary collect:[:x | x selector asSymbol ] |
|
24 |
||
25 |
"Created: / 26-08-2009 / 11:53:47 / Jaroslav Havlin <havlij6@fel.cvut.cz>" |
|
26 |
! ! |
|
27 |
||
429 | 28 |
!Behavior methodsFor:'*monticello-squeakCompatibility'! |
395 | 29 |
|
30 |
traitCompositionString |
|
31 |
^ '{}' |
|
32 |
||
33 |
"Created: / 26-08-2009 / 12:43:23 / Jaroslav Havlin <havlij6@fel.cvut.cz>" |
|
34 |
! ! |
|
35 |
||
429 | 36 |
!Behavior methodsFor:'*monticello-squeakCompatibility'! |
150 | 37 |
|
38 |
typeOfClass |
|
395 | 39 |
"Answer a symbol uniquely describing the type of the receiver" |
40 |
"self instSpec = CompiledMethod instSpec ifTrue:[^#compiledMethod]." "Very special!!" |
|
41 |
self isBytes ifTrue:[^#bytes]. |
|
42 |
(self isWords and:[self isPointers not]) ifTrue:[^#words]. |
|
43 |
self isWeakPointers ifTrue:[^#weak]. |
|
44 |
self isVariable ifTrue:[^#variable]. |
|
45 |
^#normal. |
|
46 |
||
47 |
"Created: / 26-08-2009 / 12:45:50 / Jaroslav Havlin <havlij6@fel.cvut.cz>" |
|
48 |
! ! |
|
49 |
||
429 | 50 |
!Change methodsFor:'accessing'! |
395 | 51 |
|
52 |
mcDefinition |
|
53 |
||
54 |
^self objectAttributeAt: #mcDefinition |
|
55 |
||
56 |
"Created: / 08-11-2010 / 17:56:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
57 |
! ! |
|
58 |
||
429 | 59 |
!Change methodsFor:'accessing'! |
395 | 60 |
|
61 |
mcDefinition: aMCDefinition |
|
62 |
||
63 |
^self objectAttributeAt: #mcDefinition put: aMCDefinition |
|
64 |
||
65 |
"Created: / 08-11-2010 / 17:56:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
150 | 66 |
! ! |
136 | 67 |
|
436
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
68 |
!CharacterArray methodsFor:'*monticello-squeakCompatibility'! |
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
69 |
|
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
70 |
asStringWithNativeLineEndings |
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
71 |
|
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
72 |
^self copyReplaceAll:Character return with: Character cr |
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
73 |
|
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
74 |
"Created: / 12-09-2010 / 16:00:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
75 |
"Modified: / 13-10-2010 / 17:27:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
76 |
! ! |
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
77 |
|
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
78 |
!CharacterArray methodsFor:'*monticello-squeakCompatibility'! |
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
79 |
|
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
80 |
asStringWithSqueakLineEndings |
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
81 |
|
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
82 |
^self copyReplaceAll:Character cr with: Character return |
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
83 |
|
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
84 |
"Created: / 12-09-2010 / 16:00:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
85 |
"Modified: / 13-10-2010 / 17:28:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
86 |
! ! |
436066f63a27
moved asStringWith*LineEndings to CharacterArray
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
429
diff
changeset
|
87 |
|
429 | 88 |
!Class methodsFor:'*monticello'! |
136 | 89 |
|
90 |
asClassDefinition |
|
395 | 91 |
^ MCClassDefinition |
92 |
name: self name |
|
736
43645227af41
care for nil superclass in Class >> asClassDefinition
Claus Gittinger <cg@exept.de>
parents:
732
diff
changeset
|
93 |
superclassName: (self superclass isNil ifTrue:['nil'] ifFalse:[self superclass name]) |
395 | 94 |
traitComposition: self traitCompositionString |
95 |
classTraitComposition: self class traitCompositionString |
|
96 |
category: self category |
|
97 |
instVarNames: self instVarNames |
|
98 |
classVarNames: self classVarNames |
|
99 |
poolDictionaryNames: self poolDictionaryNames |
|
100 |
classInstVarNames: self class instVarNames |
|
101 |
type: self typeOfClass |
|
102 |
comment: (self organization classComment ? '') asStringWithSqueakLineEndings |
|
103 |
commentStamp: self organization commentStamp |
|
104 |
||
105 |
"Modified: / 12-09-2010 / 17:19:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
136 | 106 |
! ! |
107 |
||
429 | 108 |
!Class methodsFor:'*monticello'! |
136 | 109 |
|
110 |
classDefinitions |
|
111 |
^ Array with: self asClassDefinition |
|
112 |
! ! |
|
113 |
||
429 | 114 |
!Class methodsFor:'*monticello'! |
136 | 115 |
|
116 |
poolDictionaryNames |
|
160 | 117 |
^ self sharedPools "/ collect: [:ea | ea name "self environment keyAtIdentityValue: ea"] |
136 | 118 |
! ! |
119 |
||
429 | 120 |
!ClassDescription methodsFor:'*monticello-squeakCompatibility'! |
395 | 121 |
|
122 |
mcDefinition |
|
123 |
||
124 |
|s| |
|
125 |
||
126 |
s := WriteStream on:(String new). |
|
127 |
self |
|
128 |
basicFileOutDefinitionOn:s |
|
129 |
withNameSpace:false |
|
130 |
withPackage:false. |
|
131 |
s position: s position - 1. |
|
132 |
||
133 |
^ s contents |
|
134 |
||
135 |
"Created: / 11-09-2010 / 18:06:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
136 |
! ! |
|
137 |
||
429 | 138 |
!Object methodsFor:'*monticello'! |
136 | 139 |
|
140 |
isConflict |
|
141 |
^false |
|
142 |
! ! |
|
143 |
||
429 | 144 |
!ProjectDefinition class methodsFor:'code generation'! |
395 | 145 |
|
452
cbc2f85f11f8
fixes for remembering Monticello metadata
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
437
diff
changeset
|
146 |
monticelloAncestry_code |
cbc2f85f11f8
fixes for remembering Monticello metadata
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
437
diff
changeset
|
147 |
|
459
cae7224c4ab3
fixes for remembering Monticello metadata
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
452
diff
changeset
|
148 |
^'#()' |
452
cbc2f85f11f8
fixes for remembering Monticello metadata
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
437
diff
changeset
|
149 |
|
cbc2f85f11f8
fixes for remembering Monticello metadata
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
437
diff
changeset
|
150 |
"Created: / 25-08-2011 / 16:49:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
cbc2f85f11f8
fixes for remembering Monticello metadata
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
437
diff
changeset
|
151 |
! ! |
cbc2f85f11f8
fixes for remembering Monticello metadata
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
437
diff
changeset
|
152 |
|
cbc2f85f11f8
fixes for remembering Monticello metadata
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
437
diff
changeset
|
153 |
!ProjectDefinition class methodsFor:'code generation'! |
cbc2f85f11f8
fixes for remembering Monticello metadata
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
437
diff
changeset
|
154 |
|
395 | 155 |
monticelloTimestamps_code |
156 |
||
157 |
| methodsWithTimestamp | |
|
158 |
methodsWithTimestamp := OrderedCollection new. |
|
159 |
||
160 |
self classes do:[:cls| |
|
161 |
cls methodsDo:[:mthd| |
|
162 |
(mthd hasAnnotation: #mctimestamp:) ifTrue:[ |
|
163 |
methodsWithTimestamp add: mthd |
|
164 |
] |
|
165 |
]. |
|
166 |
]. |
|
167 |
self extensionMethods do:[:mthd| |
|
168 |
(mthd hasAnnotation: #mctimestamp:) ifTrue:[ |
|
169 |
methodsWithTimestamp add: mthd |
|
170 |
] |
|
171 |
]. |
|
172 |
||
173 |
^self monticelloTimestamps_codeFor: methodsWithTimestamp |
|
174 |
||
175 |
" |
|
176 |
stx_goodies_mondrian_core monticelloTimestamps_code |
|
177 |
" |
|
178 |
||
179 |
"Created: / 09-11-2010 / 18:23:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
180 |
! ! |
|
181 |
||
429 | 182 |
!ProjectDefinition class methodsFor:'code generation'! |
395 | 183 |
|
184 |
monticelloTimestamps_codeFor: methods |
|
185 |
||
186 |
| code | |
|
187 |
code := String new writeStream. |
|
188 |
code nextPutAll:'monticelloTimestamps |
|
189 |
||
190 |
^#('. |
|
191 |
methods do:[:mthd| |
|
192 |
code |
|
193 |
tab; tab; |
|
194 |
nextPut:$(; |
|
195 |
nextPutAll: mthd mclass fullName; |
|
196 |
space; |
|
197 |
nextPutAll: mthd selector; |
|
198 |
space; |
|
199 |
nextPutAll: (mthd annotationAt: #mctimestamp:) timestamp storeString; |
|
200 |
nextPut:$); |
|
201 |
cr. |
|
202 |
]. |
|
203 |
code nextPutAll:' |
|
204 |
)'. |
|
205 |
||
206 |
^code contents |
|
207 |
||
208 |
" |
|
209 |
stx_goodies_mondrian_core mcTimestamps_code |
|
210 |
" |
|
211 |
||
212 |
"Created: / 09-11-2010 / 18:27:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
213 |
! ! |
|
214 |
||
429 | 215 |
!SequenceableCollection methodsFor:'*monticello-squeakCompatibility'! |
395 | 216 |
|
217 |
copyReplaceAll: oldSubstring with: newSubstring asTokens: ifTokens |
|
218 |
"Answer a copy of the receiver in which all occurrences of |
|
219 |
oldSubstring have been replaced by newSubstring. |
|
220 |
ifTokens (valid for Strings only) specifies that the characters |
|
221 |
surrounding the recplacement must not be alphanumeric. |
|
222 |
Bruce Simth, must be incremented by 1 and not |
|
223 |
newSubstring if ifTokens is true. See example below. " |
|
224 |
||
225 |
| aString startSearch currentIndex endIndex | |
|
226 |
(ifTokens and: [(self isString) not]) |
|
227 |
ifTrue: [(self isKindOf: Text) ifFalse: [ |
|
228 |
self error: 'Token replacement only valid for Strings']]. |
|
229 |
aString := self. |
|
230 |
startSearch := 1. |
|
231 |
[(currentIndex := aString indexOfSubCollection: oldSubstring startingAt: startSearch) |
|
232 |
> 0] |
|
233 |
whileTrue: |
|
234 |
[endIndex := currentIndex + oldSubstring size - 1. |
|
235 |
(ifTokens not |
|
236 |
or: [(currentIndex = 1 |
|
237 |
or: [(aString at: currentIndex-1) isAlphaNumeric not]) |
|
238 |
and: [endIndex = aString size |
|
239 |
or: [(aString at: endIndex+1) isAlphaNumeric not]]]) |
|
240 |
ifTrue: [aString := aString |
|
241 |
copyReplaceFrom: currentIndex |
|
242 |
to: endIndex |
|
243 |
with: newSubstring. |
|
244 |
startSearch := currentIndex + newSubstring size] |
|
245 |
ifFalse: [ |
|
246 |
ifTokens |
|
247 |
ifTrue: [startSearch := currentIndex + 1] |
|
248 |
ifFalse: [startSearch := currentIndex + newSubstring size]]]. |
|
249 |
^ aString |
|
250 |
||
251 |
"Test case: |
|
252 |
'test te string' copyReplaceAll: 'te' with: 'longone' asTokens: true " |
|
253 |
||
254 |
"Created: / 26-08-2009 / 12:40:34 / Jaroslav Havlin <havlij6@fel.cvut.cz>" |
|
255 |
! ! |
|
256 |
||
429 | 257 |
!Stream methodsFor:'*monticello'! |
136 | 258 |
|
259 |
isMessageStream |
|
260 |
^ false |
|
261 |
! ! |
|
262 |
||
429 | 263 |
!String methodsFor:'*monticello'! |
136 | 264 |
|
265 |
extractNumber |
|
266 |
^ ('0', self select: [:ea | ea isDigit]) asNumber |
|
267 |
! ! |
|
268 |
||
429 | 269 |
!String methodsFor:'*monticello-squeakCompatibility'! |
395 | 270 |
|
271 |
withSqueakLineEndings |
|
272 |
"Answer a copy of myself in which all sequences of <CR><LF> or <LF> have been changed to <CR>" |
|
273 |
| newText | |
|
274 |
(self includes: Character lf) ifFalse: [ ^self copy ]. |
|
275 |
newText := self copyReplaceAll: String crlf with: String cr. |
|
276 |
(newText asString includes: Character lf) ifFalse: [ ^newText ]. |
|
277 |
^newText copyReplaceAll: String lf with: String cr asTokens: false. |
|
278 |
||
279 |
"Created: / 26-08-2009 / 11:35:56 / Jaroslav Havlin <havlij6@fel.cvut.cz>" |
|
280 |
! ! |
|
281 |
||
429 | 282 |
!StringCollection methodsFor:'converting'! |
395 | 283 |
|
284 |
asStringWithNativeLineEndings |
|
285 |
||
286 |
^self asString |
|
287 |
||
288 |
"Created: / 12-09-2010 / 15:58:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
289 |
! ! |
|
290 |
||
429 | 291 |
!StringCollection methodsFor:'converting'! |
395 | 292 |
|
293 |
asStringWithSqueakLineEndings |
|
294 |
||
295 |
^ self |
|
296 |
asStringWith:Character return |
|
297 |
from:1 to:(self size) |
|
298 |
compressTabs:false |
|
299 |
final:nil |
|
300 |
||
301 |
"Created: / 12-09-2010 / 15:58:41 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
302 |
! ! |
|
303 |
||
429 | 304 |
!Symbol methodsFor:'*monticello-squeakCompatibility'! |
395 | 305 |
|
306 |
isDoIt |
|
307 |
^ (self == #DoIt) or:[ self == #DoItIn: ]. |
|
308 |
||
309 |
"Created: / 26-08-2009 / 11:46:44 / Jaroslav Havlin <havlij6@fel.cvut.cz>" |
|
310 |
! ! |
|
311 |
||
429 | 312 |
!Timestamp class methodsFor:'*monticello-instance creation'! |
395 | 313 |
|
314 |
fromMethodTimeStamp: aString |
|
315 |
| stream | |
|
316 |
stream := ReadStream on: aString. |
|
317 |
stream skipSeparators. |
|
318 |
stream skipTo: Character space. |
|
319 |
^self readFrom: stream. |
|
320 |
! ! |
|
321 |
||
429 | 322 |
!Tools::NewSystemBrowser methodsFor:'menu actions-monticello'! |
395 | 323 |
|
324 |
projectMenuMonticelloCommit |
|
736
43645227af41
care for nil superclass in Class >> asClassDefinition
Claus Gittinger <cg@exept.de>
parents:
732
diff
changeset
|
325 |
| packageName package workingCopy | |
395 | 326 |
|
327 |
packageName := self theSingleSelectedProject. |
|
736
43645227af41
care for nil superclass in Class >> asClassDefinition
Claus Gittinger <cg@exept.de>
parents:
732
diff
changeset
|
328 |
packageName isNil ifTrue:[ |
43645227af41
care for nil superclass in Class >> asClassDefinition
Claus Gittinger <cg@exept.de>
parents:
732
diff
changeset
|
329 |
Dialog information:'Please select a single project'. |
43645227af41
care for nil superclass in Class >> asClassDefinition
Claus Gittinger <cg@exept.de>
parents:
732
diff
changeset
|
330 |
^ self. |
43645227af41
care for nil superclass in Class >> asClassDefinition
Claus Gittinger <cg@exept.de>
parents:
732
diff
changeset
|
331 |
]. |
43645227af41
care for nil superclass in Class >> asClassDefinition
Claus Gittinger <cg@exept.de>
parents:
732
diff
changeset
|
332 |
|
395 | 333 |
package := MCPackage named: packageName. |
334 |
workingCopy := package workingCopy. |
|
335 |
MCCommitDialog new |
|
336 |
workingCopy: workingCopy; |
|
337 |
open |
|
338 |
||
339 |
"Created: / 14-09-2010 / 22:54:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
340 |
! ! |
|
341 |
||
736
43645227af41
care for nil superclass in Class >> asClassDefinition
Claus Gittinger <cg@exept.de>
parents:
732
diff
changeset
|
342 |
!UndefinedObject methodsFor:'* monticello'! |
150 | 343 |
|
344 |
typeOfClass |
|
345 |
"Necessary to support disjoint class hierarchies." |
|
346 |
||
347 |
^#normal |
|
348 |
! ! |
|
349 |
||
554 | 350 |
!UserPreferences methodsFor:'accessing-scm-monticello'! |
395 | 351 |
|
352 |
mcEnabled |
|
554 | 353 |
"/ needed for MCSettingsApp |
395 | 354 |
|
355 |
^self at: #mcEnabled ifAbsent: [true]. |
|
356 |
||
357 |
"Created: / 16-09-2010 / 09:44:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
358 |
"Modified: / 16-09-2010 / 14:50:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
554 | 359 |
"Modified (comment): / 15-01-2012 / 14:12:53 / cg" |
395 | 360 |
! ! |
361 |
||
554 | 362 |
!UserPreferences methodsFor:'accessing-scm-monticello'! |
395 | 363 |
|
364 |
mcEnabled: aBoolean |
|
554 | 365 |
"/ needed for MCSettingsApp |
395 | 366 |
|
367 |
self at: #mcEnabled put: aBoolean. |
|
368 |
||
369 |
"Created: / 16-09-2010 / 09:44:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
571 | 370 |
"Modified: / 27-08-2012 / 11:54:43 / cg" |
395 | 371 |
! ! |
372 |
||
554 | 373 |
!UserPreferences methodsFor:'accessing-scm-monticello'! |
395 | 374 |
|
375 |
mcRepositories |
|
562
d48401867000
Fixes in preferences reading/storing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
554
diff
changeset
|
376 |
"Returns a list of MCRepository as in LITERAL ARRAY ENCODING" |
395 | 377 |
|
562
d48401867000
Fixes in preferences reading/storing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
554
diff
changeset
|
378 |
^self at: #mcRepositories ifAbsent:[#(Array)]. |
395 | 379 |
|
380 |
" |
|
562
d48401867000
Fixes in preferences reading/storing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
554
diff
changeset
|
381 |
UserPreferences current mcRepositories |
d48401867000
Fixes in preferences reading/storing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
554
diff
changeset
|
382 |
UserPreferences current mcRepositories: #(Array) |
395 | 383 |
" |
384 |
||
385 |
"Created: / 16-09-2010 / 09:47:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
562
d48401867000
Fixes in preferences reading/storing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
554
diff
changeset
|
386 |
"Modified (comment): / 04-04-2012 / 11:08:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
395 | 387 |
! ! |
388 |
||
571 | 389 |
!UserPreferences methodsFor:'accessing-scm-monticello'! |
390 |
||
391 |
mcRepositories: aCollection |
|
392 |
"/ needed for MCSettingsApp |
|
393 |
||
394 |
self at: #mcRepositories put: aCollection. |
|
395 |
||
396 |
"Created: / 27-08-2012 / 11:54:34 / cg" |
|
397 |
! ! |
|
398 |
||
429 | 399 |
!VersionInfo methodsFor:'accessing'! |
395 | 400 |
|
401 |
timeStamp |
|
402 |
||
403 |
^Timestamp |
|
404 |
fromDate: (Date fromString: date) |
|
405 |
andTime: (Time fromString: time) |
|
406 |
||
407 |
"Created: / 09-09-2010 / 15:20:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
408 |
! ! |
|
409 |
||
429 | 410 |
!stx_goodies_monticello class methodsFor:'documentation'! |
182 | 411 |
|
412 |
extensionsVersion_CVS |
|
736
43645227af41
care for nil superclass in Class >> asClassDefinition
Claus Gittinger <cg@exept.de>
parents:
732
diff
changeset
|
413 |
^ '$Header: /cvs/stx/stx/goodies/monticello/extensions.st,v 1.19 2013-03-21 16:37:05 cg Exp $' |
429 | 414 |
! ! |