author | Claus Gittinger <cg@exept.de> |
Mon, 09 Jan 2012 01:05:54 +0100 | |
changeset 2703 | ab7ca731270d |
parent 2636 | e64a277189eb |
child 2705 | f2efec40fdea |
permissions | -rw-r--r-- |
1530 | 1 |
" |
2 |
COPYRIGHT (c) 2006 eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
"{ Package: 'stx:libbasic3' }" |
|
13 |
||
14 |
AbstractSourceCodeManager subclass:#StoreSourceCodeManager |
|
15 |
instanceVariableNames:'' |
|
2703 | 16 |
classVariableNames:'Verbose Connection DefaultDBInfo DBInfoPerModule |
17 |
ShownInBrowserMenus' |
|
1530 | 18 |
poolDictionaries:'' |
19 |
category:'System-SourceCodeManagement' |
|
20 |
! |
|
21 |
||
1731 | 22 |
Object subclass:#DBInfo |
23 |
instanceVariableNames:'hostName dbName userName password' |
|
24 |
classVariableNames:'' |
|
25 |
poolDictionaries:'' |
|
26 |
privateIn:StoreSourceCodeManager |
|
27 |
! |
|
28 |
||
1530 | 29 |
!StoreSourceCodeManager class methodsFor:'documentation'! |
30 |
||
31 |
copyright |
|
32 |
" |
|
33 |
COPYRIGHT (c) 2006 eXept Software AG |
|
34 |
All Rights Reserved |
|
35 |
||
36 |
This software is furnished under a license and may be used |
|
37 |
only in accordance with the terms of that license and with the |
|
38 |
inclusion of the above copyright notice. This software may not |
|
39 |
be provided or otherwise made available to, or used by, any |
|
40 |
other person. No title to or ownership of the software is |
|
41 |
hereby transferred. |
|
42 |
" |
|
43 |
! |
|
44 |
||
45 |
documentation |
|
46 |
" |
|
47 |
WARNING: |
|
48 |
this class is incomplete and provided as a sceletton |
|
49 |
if CVS is not to be used as a SourceCodeManager. |
|
50 |
We highly recommend to use CVS. |
|
51 |
||
52 |
SourceCodeManager which accesses sourcecode through a Store Database. |
|
53 |
This class is part of ongoing development and not yet released for public use. |
|
54 |
" |
|
55 |
! ! |
|
56 |
||
1731 | 57 |
!StoreSourceCodeManager class methodsFor:'initialization'! |
58 |
||
59 |
connectToDatabase |
|
1734 | 60 |
|session dbInfo| |
61 |
||
62 |
dbInfo := self defaultDBInfo. |
|
1731 | 63 |
|
64 |
SQL::SQLError handle:[:ex | |
|
65 |
self warn:('Failed to connect to Database:\\' withCRs,ex description). |
|
66 |
^ self. |
|
67 |
] do:[ |
|
1734 | 68 |
session := self tryToConnectToDatabase:dbInfo. |
1731 | 69 |
]. |
70 |
||
71 |
session isNil ifTrue:[ |
|
72 |
self warn:'OOPS - Failed to connect to Database'. |
|
73 |
^ self |
|
74 |
]. |
|
75 |
Connection := session. |
|
1734 | 76 |
Transcript showCR:('Connected to Store-DB: ',dbInfo hostAndDBName). |
1731 | 77 |
! |
78 |
||
79 |
tryToConnectToDatabase:dbInfo |
|
80 |
|session| |
|
81 |
||
82 |
session := SQL::ODBCSession new. |
|
83 |
session |
|
84 |
connectWithUsername:(dbInfo userName) |
|
85 |
password:(dbInfo password) |
|
86 |
dbname:(dbInfo dbName). |
|
87 |
||
88 |
(session isConnected) ifFalse:[ |
|
89 |
^ nil. |
|
90 |
]. |
|
91 |
^ session |
|
92 |
! ! |
|
93 |
||
1530 | 94 |
!StoreSourceCodeManager class methodsFor:'accessing'! |
95 |
||
1731 | 96 |
dbName |
97 |
^ self defaultDBInfo dbName |
|
98 |
! |
|
99 |
||
100 |
dbName:aString |
|
101 |
self defaultDBInfo dbName:aString. |
|
102 |
! |
|
103 |
||
104 |
defaultDBInfo |
|
105 |
DefaultDBInfo isNil ifTrue:[ |
|
106 |
DefaultDBInfo := DBInfo new |
|
107 |
]. |
|
108 |
^ DefaultDBInfo |
|
109 |
! |
|
110 |
||
111 |
hostAndDBName |
|
112 |
^ self defaultDBInfo hostAndDBName |
|
113 |
! |
|
114 |
||
115 |
hostAndDBName:aString |
|
116 |
self defaultDBInfo hostAndDBName:aString. |
|
117 |
! |
|
118 |
||
119 |
hostName |
|
120 |
^ self defaultDBInfo hostName |
|
121 |
! |
|
122 |
||
123 |
hostName:aString |
|
124 |
self defaultDBInfo hostName:aString. |
|
125 |
! |
|
126 |
||
127 |
newDBInfo |
|
128 |
^ DBInfo new |
|
129 |
! |
|
130 |
||
131 |
password |
|
132 |
^ self defaultDBInfo password |
|
133 |
! |
|
134 |
||
135 |
password:aString |
|
136 |
self defaultDBInfo password:aString. |
|
137 |
! |
|
138 |
||
139 |
repositoryInfoPerModule |
|
140 |
^ DBInfoPerModule ? #() |
|
141 |
||
142 |
"Created: / 16-08-2006 / 11:06:09 / cg" |
|
143 |
! |
|
144 |
||
145 |
repositoryInfoPerModule:aCollectionOfDBinfos |
|
146 |
DBInfoPerModule := aCollectionOfDBinfos |
|
147 |
||
148 |
"Created: / 16-08-2006 / 11:06:09 / cg" |
|
149 |
! |
|
150 |
||
2594 | 151 |
repositoryNameForPackage:packageId |
2566 | 152 |
"superclass AbstractSourceCodeManager class says that I am responsible to implement this method" |
2594 | 153 |
|
2566 | 154 |
^ self shouldImplement |
155 |
! |
|
156 |
||
2703 | 157 |
shownInBrowserMenus |
158 |
^ ShownInBrowserMenus ? true |
|
159 |
||
160 |
"Created: / 08-01-2012 / 19:53:20 / cg" |
|
161 |
! |
|
162 |
||
163 |
shownInBrowserMenus:aBoolean |
|
164 |
ShownInBrowserMenus := aBoolean |
|
165 |
||
166 |
"Created: / 08-01-2012 / 19:53:34 / cg" |
|
167 |
! |
|
168 |
||
1731 | 169 |
userName |
170 |
^ self defaultDBInfo userName |
|
171 |
! |
|
172 |
||
173 |
userName:aString |
|
174 |
self defaultDBInfo userName:aString. |
|
175 |
! ! |
|
176 |
||
2566 | 177 |
!StoreSourceCodeManager class methodsFor:'basic access'! |
178 |
||
179 |
checkinClass:aClass fileName:classFileName directory:packageDir module:moduleDir source:sourceFile logMessage:logMessage force:force |
|
180 |
"checkin of a class into the source repository. |
|
181 |
Return true if ok, false if not." |
|
182 |
||
183 |
^ self shouldImplement |
|
184 |
! |
|
185 |
||
186 |
checkoutModule:aModule directory:aPackage andDo:aBlock |
|
187 |
"check out everything from a package into a temporary directory. |
|
188 |
Then evaluate aBlock, passing the name of that temp-directory. |
|
189 |
Afterwards, the tempDir is removed. |
|
190 |
Return true, if OK, false if any error occurred." |
|
191 |
||
192 |
^ self shouldImplement |
|
193 |
! |
|
194 |
||
195 |
streamForClass:aClass fileName:classFileName revision:revision directory:packageDir module:moduleDir cache:doCache |
|
196 |
"extract a classes source code and return an open readStream on it. |
|
197 |
A revision of nil selects the current (in image) revision. |
|
198 |
The classes source code is extracted using the revision and the sourceCodeInfo, |
|
199 |
which itself is extracted from the classes packageString." |
|
200 |
||
201 |
^ self shouldImplement |
|
202 |
! ! |
|
203 |
||
204 |
!StoreSourceCodeManager class methodsFor:'basic administration'! |
|
205 |
||
206 |
checkForExistingContainer:fileName inModule:moduleName directory:dirName |
|
207 |
"check for a container to be present" |
|
208 |
||
209 |
^ self shouldImplement |
|
210 |
! |
|
211 |
||
212 |
checkForExistingModule:moduleName |
|
213 |
"check for a module directory to be present" |
|
214 |
||
215 |
^ self shouldImplement |
|
216 |
! |
|
217 |
||
218 |
createContainerFor:aClass inModule:moduleName directory:dirName container:fileName |
|
219 |
"create a new container & check into it an initial version of aClass" |
|
220 |
||
221 |
^ self shouldImplement |
|
222 |
! |
|
223 |
||
224 |
createModule:moduleName |
|
225 |
"create a new module directory" |
|
226 |
||
227 |
^ self shouldImplement |
|
228 |
! |
|
229 |
||
230 |
createModule:module directory:directory |
|
231 |
"create a new package directory" |
|
232 |
||
233 |
^ self shouldImplement |
|
234 |
! |
|
235 |
||
236 |
initialRevisionStringFor:aClass inModule:moduleDir directory:packageDir container:fileName |
|
237 |
"return a string usable as initial revision string" |
|
238 |
||
239 |
^ self shouldImplement |
|
240 |
! |
|
241 |
||
242 |
revisionLogOf:clsOrNil fromRevision:rev1OrNil toRevision:rev2OrNil numberOfRevisions:limitOrNil fileName:classFileName directory:packageDir module:moduleDir |
|
243 |
"actually do return a revisionLog. The main worker method. |
|
244 |
This must be implemented by a concrete source-code manager" |
|
245 |
||
246 |
^ self shouldImplement |
|
247 |
! ! |
|
248 |
||
1731 | 249 |
!StoreSourceCodeManager class methodsFor:'queries'! |
250 |
||
2198
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
251 |
isExperimental |
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
252 |
^ OperatingSystem getLoginName ~= 'cg'. |
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
253 |
^ true |
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
254 |
|
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
255 |
"Created: / 16-08-2006 / 11:23:09 / cg" |
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
256 |
! |
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
257 |
|
2566 | 258 |
isResponsibleForPackage:aStringOrSymbol |
259 |
"superclass AbstractSourceCodeManager class says that I am responsible to implement this method" |
|
260 |
||
261 |
^ self shouldImplement |
|
262 |
! |
|
263 |
||
1530 | 264 |
managerTypeName |
265 |
^ 'Store DB' |
|
266 |
||
267 |
"Created: / 16-08-2006 / 11:06:09 / cg" |
|
2139
00a8e5ffba8e
added nameOfVersionMethodInClasses
Claus Gittinger <cg@exept.de>
parents:
1900
diff
changeset
|
268 |
! |
00a8e5ffba8e
added nameOfVersionMethodInClasses
Claus Gittinger <cg@exept.de>
parents:
1900
diff
changeset
|
269 |
|
2553
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
270 |
managerTypeNameShort |
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
271 |
"Answers short version manager name suitable for UI, |
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
272 |
i,e., CVS, SVN, P4. Used in cases where sorter strings |
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
273 |
are preferred. Defaults to #managerTypeName" |
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
274 |
|
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
275 |
^'StORE' |
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
276 |
|
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
277 |
"Created: / 03-10-2011 / 13:29:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2636
e64a277189eb
format in: #managerTypeNameShort
Claus Gittinger <cg@exept.de>
parents:
2594
diff
changeset
|
278 |
"Modified (format): / 04-12-2011 / 10:15:45 / cg" |
2553
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
279 |
! |
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
280 |
|
2198
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
281 |
nameOfVersionMethodForExtensions |
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
282 |
^ #'extensionsVersion_STORE' |
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
283 |
! |
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
284 |
|
2139
00a8e5ffba8e
added nameOfVersionMethodInClasses
Claus Gittinger <cg@exept.de>
parents:
1900
diff
changeset
|
285 |
nameOfVersionMethodInClasses |
00a8e5ffba8e
added nameOfVersionMethodInClasses
Claus Gittinger <cg@exept.de>
parents:
1900
diff
changeset
|
286 |
^ #'version_STORE' |
2346 | 287 |
! |
288 |
||
289 |
settingsApplicationClass |
|
2352
28840a6d762f
added: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents:
2346
diff
changeset
|
290 |
"link to my settings application (needed for the settings dialog" |
28840a6d762f
added: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents:
2346
diff
changeset
|
291 |
|
2346 | 292 |
^ StoreSourceCodeManagementSettingsAppl |
293 |
||
294 |
"Created: / 19-04-2011 / 12:44:26 / cg" |
|
2352
28840a6d762f
added: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents:
2346
diff
changeset
|
295 |
"Modified: / 19-04-2011 / 13:52:34 / cg" |
2526
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
296 |
! |
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
297 |
|
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
298 |
versionMethodKeyword |
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
299 |
|
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
300 |
"Answers the keyword used by the version management system to |
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
301 |
expand a current version in a file (_without_ dollars). For |
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
302 |
CVS it is 'Header', for SVN 'Id', others may use different |
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
303 |
keywords. If nil is returned, then the version management does |
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
304 |
not use any keyword." |
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
305 |
|
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
306 |
^nil |
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
307 |
|
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
308 |
"Created: / 27-09-2011 / 16:47:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1530 | 309 |
! ! |
310 |
||
1892 | 311 |
!StoreSourceCodeManager class methodsFor:'saving'! |
312 |
||
313 |
savePreferencesOn:aStream |
|
1900 | 314 |
aStream nextPutLine:' StoreSourceCodeManager notNil ifTrue:['. |
315 |
aStream nextPutLine:' StoreSourceCodeManager repositoryInfoPerModule:' , self repositoryInfoPerModule storeString , '.'. |
|
2328
4620ff63e9b2
comment/format in: #savePreferencesOn:
Claus Gittinger <cg@exept.de>
parents:
2309
diff
changeset
|
316 |
|
1892 | 317 |
(Smalltalk at:#SourceCodeManager) == StoreSourceCodeManager ifTrue:[ |
1900 | 318 |
aStream nextPutLine:' Smalltalk at:#SourceCodeManager put: StoreSourceCodeManager.'. |
319 |
aStream nextPutLine:' StoreSourceCodeManager hostAndDBName:' , self hostAndDBName storeString , '.'. |
|
320 |
aStream nextPutLine:' StoreSourceCodeManager dbName:' , self dbName storeString , '.'. |
|
321 |
aStream nextPutLine:' StoreSourceCodeManager userName:' , self userName storeString , '.'. |
|
1892 | 322 |
]. |
1900 | 323 |
aStream nextPutLine:' ].'. |
1892 | 324 |
|
325 |
"Created: / 09-11-2006 / 15:10:25 / cg" |
|
2328
4620ff63e9b2
comment/format in: #savePreferencesOn:
Claus Gittinger <cg@exept.de>
parents:
2309
diff
changeset
|
326 |
"Modified: / 18-04-2011 / 17:15:12 / cg" |
1892 | 327 |
! ! |
328 |
||
2566 | 329 |
!StoreSourceCodeManager class methodsFor:'source code administration'! |
330 |
||
331 |
getExistingContainersInModule:aModule directory:aPackage |
|
332 |
"{ Pragma: +optSpace }" |
|
333 |
||
334 |
^ self shouldImplement |
|
335 |
! |
|
336 |
||
337 |
getExistingDirectoriesInModule:aModule |
|
338 |
"{ Pragma: +optSpace }" |
|
339 |
||
340 |
^ self shouldImplement |
|
341 |
! |
|
342 |
||
343 |
getExistingModules |
|
344 |
"{ Pragma: +optSpace }" |
|
345 |
||
346 |
^ self shouldImplement |
|
347 |
! |
|
348 |
||
349 |
revisionInfoFromString:aString |
|
350 |
"{ Pragma: +optSpace }" |
|
351 |
||
352 |
^ self shouldImplement |
|
353 |
! ! |
|
354 |
||
355 |
!StoreSourceCodeManager class methodsFor:'subclass responsibility'! |
|
356 |
||
357 |
reportHistoryLogSince:timeGoal filterSTSources:filter filterUser:userFilter filterRepository:repositoryFilter filterModules:moduleFilter inTo:aBlock |
|
358 |
"superclass AbstractSourceCodeManager class says that I am responsible to implement this method" |
|
359 |
||
360 |
^ self shouldImplement |
|
361 |
! ! |
|
362 |
||
1530 | 363 |
!StoreSourceCodeManager class methodsFor:'testing'! |
364 |
||
365 |
isStore |
|
366 |
^ true |
|
367 |
||
368 |
"Created: / 16-08-2006 / 10:59:06 / cg" |
|
369 |
! ! |
|
370 |
||
1731 | 371 |
!StoreSourceCodeManager::DBInfo methodsFor:'accessing'! |
372 |
||
373 |
dbName |
|
374 |
^ dbName |
|
375 |
! |
|
376 |
||
377 |
dbName:something |
|
378 |
dbName := something. |
|
379 |
! |
|
380 |
||
381 |
hostAndDBName |
|
382 |
hostName isEmptyOrNil ifTrue:[ ^ dbName ]. |
|
383 |
^ dbName,'@',hostName |
|
384 |
! |
|
385 |
||
386 |
hostAndDBName: aString |
|
387 |
|idx| |
|
388 |
||
389 |
idx := aString indexOf:$@. |
|
390 |
idx == 0 ifTrue:[ |
|
391 |
dbName := aString. |
|
392 |
hostName := nil. |
|
393 |
] ifFalse:[ |
|
394 |
dbName := aString copyTo:idx-1. |
|
395 |
hostName := (aString copyFrom:idx+1). |
|
396 |
] |
|
397 |
! |
|
398 |
||
1732 | 399 |
hostAndDBName:hostAndDBNameArg userName:userNameArg password:passwordArg |
400 |
self hostAndDBName:hostAndDBNameArg. |
|
401 |
userName := userNameArg. |
|
402 |
password := passwordArg. |
|
403 |
! |
|
404 |
||
1731 | 405 |
hostName |
406 |
^ hostName |
|
407 |
! |
|
408 |
||
409 |
hostName:something |
|
410 |
hostName := something. |
|
411 |
! |
|
412 |
||
413 |
hostName:hostNameArg dbName:dbNameArg userName:userNameArg password:passwordArg |
|
414 |
"set instance variables (automatically generated)" |
|
415 |
||
416 |
hostName := hostNameArg. |
|
417 |
dbName := dbNameArg. |
|
418 |
userName := userNameArg. |
|
419 |
password := passwordArg. |
|
420 |
! |
|
421 |
||
422 |
password |
|
423 |
^ password |
|
424 |
! |
|
425 |
||
426 |
password:something |
|
427 |
password := something. |
|
428 |
! |
|
429 |
||
430 |
userName |
|
431 |
^ userName |
|
432 |
! |
|
433 |
||
434 |
userName:something |
|
435 |
userName := something. |
|
436 |
! ! |
|
437 |
||
2309 | 438 |
!StoreSourceCodeManager::DBInfo methodsFor:'printing & storing'! |
1732 | 439 |
|
440 |
storeOn:aStream |
|
441 |
aStream |
|
442 |
nextPutAll:'('; |
|
443 |
nextPutAll:self class name; |
|
444 |
nextPutAll:' basicNew'; |
|
445 |
nextPutAll:' hostAndDBName:'; |
|
446 |
store: self hostAndDBName; |
|
447 |
nextPutAll:' userName:'; |
|
448 |
store: self userName; |
|
449 |
nextPutAll:' password:'; |
|
450 |
store: self password; |
|
451 |
nextPutAll:')'. |
|
452 |
||
453 |
" |
|
454 |
self readFrom:(self basicNew hostAndDBName:'a' userName:'b' password:'c') storeString |
|
455 |
self readFrom:(self basicNew hostAndDBName:'a@h' userName:'b' password:'c') storeString |
|
456 |
" |
|
457 |
! ! |
|
458 |
||
1530 | 459 |
!StoreSourceCodeManager class methodsFor:'documentation'! |
460 |
||
2198
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
461 |
version_CVS |
2703 | 462 |
^ '$Header: /cvs/stx/stx/libbasic3/StoreSourceCodeManager.st,v 1.21 2012-01-09 00:05:54 cg Exp $' |
1530 | 463 |
! ! |