DataBaseSourceCodeManagementSettingsAppl.st
author Claus Gittinger <cg@exept.de>
Mon, 20 Jan 2020 21:02:47 +0100
changeset 19422 c6ca1c3e0fd7
parent 18912 c325bc25e08e
permissions -rw-r--r--
#REFACTORING by exept class: MultiViewToolApplication added: #askForFile:default:forSave:thenDo: changed: #askForFile:default:thenDo: #askForFile:thenDo: #menuSaveAllAs #menuSaveAs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18905
0856350e128d #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17911
diff changeset
     1
"{ Encoding: utf8 }"
0856350e128d #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17911
diff changeset
     2
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
"
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
 COPYRIGHT (c) 2011 by eXept Software AG
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
              All Rights Reserved
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 This software is furnished under a license and may be used
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 only in accordance with the terms of that license and with the
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 be provided or otherwise made available to, or used by, any
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
 other person.  No title to or ownership of the software is
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
 hereby transferred.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
"
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
"{ Package: 'stx:libtool' }"
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
16154
5939931ac858 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14666
diff changeset
    16
"{ NameSpace: Smalltalk }"
5939931ac858 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14666
diff changeset
    17
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
AbstractSourceCodeManagementSettingsAppl subclass:#DataBaseSourceCodeManagementSettingsAppl
11329
902ee5164fd7 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11322
diff changeset
    19
	instanceVariableNames:'pathPerModule dbNameHolder selectedPerModuleDatabase
902ee5164fd7 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11322
diff changeset
    20
		perModuleDatabaseModule perModuleDB dbPerModule'
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    21
	classVariableNames:''
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
	poolDictionaries:''
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
	category:'System-SourceCodeManagement'
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
!DataBaseSourceCodeManagementSettingsAppl class methodsFor:'documentation'!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
copyright
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
"
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 COPYRIGHT (c) 2011 by eXept Software AG
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
              All Rights Reserved
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 This software is furnished under a license and may be used
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 only in accordance with the terms of that license and with the
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 inclusion of the above copyright notice.   This software may not
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
 be provided or otherwise made available to, or used by, any
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
 other person.  No title to or ownership of the software is
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
 hereby transferred.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
"
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
documentation
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
"
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
    This settings app controls the parameters of the DataBaseSourceCodeManager.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
"
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
! !
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
!DataBaseSourceCodeManagementSettingsAppl class methodsFor:'defaults'!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
defaultTableName
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
    ^ 'stx_versions'
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    "Created: / 21-12-2011 / 23:43:04 / cg"
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
! !
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    57
!DataBaseSourceCodeManagementSettingsAppl class methodsFor:'help specs'!
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    58
17911
f1432fe75d27 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16154
diff changeset
    59
helpSpec
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    60
    "This resource specification was automatically generated
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    61
     by the UIHelpTool of ST/X."
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    62
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    63
    "Do not manually edit this!! If it is corrupted,
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    64
     the UIHelpTool may not be able to read the specification."
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    65
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    66
    "
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    67
     UIHelpTool openOnClass:DataBaseSourceCodeManagementSettingsAppl    
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    68
    "
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    69
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    70
    <resource: #help>
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    71
17911
f1432fe75d27 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16154
diff changeset
    72
    ^ super helpSpec addPairsFrom:#(
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    73
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    74
#defaultDBName
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    75
'Default database; used for all modules which are not listed below'
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    76
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    77
#perModuleDB
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    78
'Per module database configuration'
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    79
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    80
#perModuleDBModule
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    81
'The module for which a specific database is defined'
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    82
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    83
#perModuleDBName
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    84
'Database for the selected module (scheme:[user[.password]@hostname:databaseName[.tableName]'
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    85
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    86
)
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    87
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    88
    "Created: / 25-12-2011 / 13:46:07 / cg"
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    89
! !
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
    90
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
!DataBaseSourceCodeManagementSettingsAppl class methodsFor:'image specs'!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
defaultIcon
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
    "This resource specification was automatically generated
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
     by the ImageEditor of ST/X."
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
    "Do not manually edit this!! If it is corrupted,
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
     the ImageEditor may not be able to read the specification."
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
    "
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
     self defaultIcon inspect
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
     ImageEditor openOnClass:self andSelector:#defaultIcon
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
     Icon flushCachedIcons
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
    "
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
    <resource: #image>
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
    ^Icon
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
        constantNamed:'DataBaseSourceCodeManagementSettingsAppl class defaultIcon'
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
        ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BFFH=<AS8@@@@@@@@@@@@@
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
@@@@@E8=X(!!#T!!0-X@D@@@@@@@@@@@@@@C%%CC@K"B9SUF$QR@@@@@@@@@@@@@A[K00LL@.H]P%SGUUZ@@@@@@@@@@@@R"$<F&P0B8]ONGECQ @@@@@@@@@@
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
@BX[G7X, T$BIR)(^E @@@@@@@@@@@A?F4T''[F]@XXNDZFYX@@@@@@@@@@@@Z9VU$)I''PFFC!!H.IV@@@@@@@@@@@@IJU%YVU$$@+["P1N$X@@@@@@@@@@IFU
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
%P"ESQBR^3LTHG&N@@@@@@@@@@BR$9IEI61''PFFC!!F!!VZ @@@@@@@IJR%YRU%"],%4A!! 8Q(G% @@@@@@@@@$)RU$$T''%9^WXXNDQDIX@@@@@@@@@@BR&0<G
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
%9*Z&Y]]D 9P# @@@@@@@@@@@@AG%9^X%9^WH49AU50@@@@@@@@@%0@@@HA>%9^L#BEF_(@@@@@@@@@@@@BW%9^W%9^P@@@@@@@@@@@@@@@@@@@@@I"W%9^P
14395
1361c2036f88 Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents: 14317
diff changeset
   116
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[219 185 65 198 168 74 219 190 79 243 243 243 247 247 247 212 188 103 224 198 109 222 200 122 234 215 144 254 223 141 240 223 165 253 234 173 253 237 183 241 231 193 188 151 42 211 174 48 191 161 59 254 242 210 208 176 66 242 239 229 220 189 76 242 242 242 245 245 245 255 255 255 222 198 111 244 220 117 237 216 141 255 233 149 254 227 155 250 228 170 196 152 26 252 239 190 253 238 192 212 212 212 249 242 210 207 171 55 211 178 65 225 194 72 230 197 74 255 251 236 250 248 244 231 203 98 246 219 105 245 221 117 227 210 143 241 216 146 253 228 154 249 232 171 253 237 182 174 139 37 239 228 192 202 168 50 209 174 52 210 173 51 214 179 60 222 188 68 210 174 70 224 193 81 208 180 89 254 254 254 225 200 105 232 208 118 220 202 138 252 229 143 252 235 160 205 200 181 186 147 30 202 156 27 251 235 189 255 244 201 216 216 216 233 228 211 193 161 65 207 177 72 230 197 73 252 249 237 252 251 244 208 183 100 213 188 101 231 202 112 206 189 131 252 230 145 254 225 148 254 228 160 254 233 176 187 149 35 198 153 27 211 211 211 215 215 215 248 241 209 225 225 225 223 192 70 231 231 231 231 201 81 225 195 86 253 253 253 219 192 114 251 228 125 243 221 145 253 226 149 247 229 168 252 236 180 201 155 26 253 243 195 255 240 196 255 239 199 217 217 217 220 185 61 254 249 224 223 188 69 232 203 81 244 244 244 252 252 252 211 183 100 236 208 111 227 205 125 252 230 144 253 226 148 236 222 171 197 156 25 202 156 26 190 149 32 187 154 48 197 165 54 203 172 59 215 179 59 224 224 224 228 196 72 236 236 236 210 184 89 249 249 249 250 223 100 251 225 111 217 194 122 233 215 148 246 222 149 253 230 161 186 145 25 200 158 27 251 236 189 209 209 209 205 168 48 218 218 218 208 177 64 0 0 0 0 64 0 32 96 32 96 192 128 32 128 64 32 160 64 32 128 32 64 64 64 96 96 96 128 128 128 32 32 32 32 64 32]; mask:((ImageMask new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@O0@@?<@A?>@A??@A??@A??@A??@A??@A??@C??@C??@O??@G??@C??@@??@D_>@C>@@A<@@@@@@') ; yourself); yourself]
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
! !
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
!DataBaseSourceCodeManagementSettingsAppl class methodsFor:'interface specs'!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
windowSpec
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
    "This resource specification was automatically generated
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
     by the UIPainter of ST/X."
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
    "Do not manually edit this!! If it is corrupted,
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
     the UIPainter may not be able to read the specification."
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
    "
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
     UIPainter new openOnClass:DataBaseSourceCodeManagementSettingsAppl andSelector:#windowSpec
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
     DataBaseSourceCodeManagementSettingsAppl new openInterface:#windowSpec
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
     DataBaseSourceCodeManagementSettingsAppl open
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
    "
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
    <resource: #canvas>
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
    ^ 
14255
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   137
    #(FullSpec
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   138
       name: windowSpec
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   139
       window: 
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   140
      (WindowSpec
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   141
         label: 'DB SCM Settings'
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   142
         name: 'DB SCM Settings'
14317
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   143
         flags: 1
14255
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   144
         min: (Point 10 10)
14317
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   145
         bounds: (Rectangle 0 0 724 736)
14255
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   146
       )
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   147
       component: 
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   148
      (SpecCollection
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   149
         collection: (
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   150
          (VerticalPanelViewSpec
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   151
             name: 'VerticalPanel2'
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   152
             layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   153
             horizontalLayout: fit
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   154
             verticalLayout: topSpace
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   155
             horizontalSpace: 3
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   156
             verticalSpace: 20
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   157
             component: 
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   158
            (SpecCollection
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   159
               collection: (
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   160
                (LabelSpec
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   161
                   label: 'Demo Only'
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   162
                   name: 'Label10'
16154
5939931ac858 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14666
diff changeset
   163
                   style: (FontDescription #'Segoe UI' medium roman 16 #'ms-default' nil nil)
5939931ac858 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14666
diff changeset
   164
                   foregroundColor: (Color 87.0 0.0 0.0)
14255
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   165
                   translateLabel: true
14317
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   166
                   extent: (Point 724 37)
14255
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   167
                 )
14317
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   168
                (FramedBoxSpec
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   169
                   label: 'Database Source Repository Manager Settings'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   170
                   name: 'FileRepositorySetupBox'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   171
                   labelPosition: topLeft
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   172
                   translateLabel: true
14255
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   173
                   component: 
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   174
                  (SpecCollection
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   175
                     collection: (
14317
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   176
                      (CheckBoxSpec
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   177
                         label: 'Show in Browser Menus'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   178
                         name: 'CheckBox1'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   179
                         layout: (LayoutFrame 0 0 5 0 0 1 35 0)
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   180
                         activeHelpKey: shownInBrowserMenus
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   181
                         model: shownInBrowserMenusHolder
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   182
                         translateLabel: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   183
                       )
14255
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   184
                      (ViewSpec
14317
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   185
                         name: 'Box1'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   186
                         layout: (LayoutFrame 0 0 43 0 0 1 73 0)
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   187
                         activeHelpKey: defaultDBName
14255
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   188
                         component: 
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   189
                        (SpecCollection
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   190
                           collection: (
14317
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   191
                            (LabelSpec
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   192
                               label: 'DB Name:'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   193
                               name: 'Label1'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   194
                               layout: (LayoutFrame 0 0.0 0 0 60 0.25 30 0)
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   195
                               activeHelpKey: defaultDBName
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   196
                               level: 0
14255
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   197
                               translateLabel: true
14317
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   198
                               adjust: right
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   199
                             )
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   200
                            (ComboBoxSpec
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   201
                               name: 'RepositoryPathField2'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   202
                               layout: (LayoutFrame 64 0.25 0 0 0 1 30 0)
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   203
                               activeHelpKey: defaultDBName
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   204
                               tabable: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   205
                               model: dbNameHolder
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   206
                               immediateAccept: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   207
                               acceptOnLeave: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   208
                               acceptOnReturn: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   209
                               acceptOnTab: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   210
                               acceptOnLostFocus: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   211
                               acceptChannel: acceptChannel
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   212
                               acceptOnPointerLeave: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   213
                               comboList: dbPrototypeList
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
                             )
14255
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   215
                            )
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   216
                          
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   217
                         )
14317
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   218
                       )
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   219
                      (LabelSpec
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   220
                         label: 'DB per Module:'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   221
                         name: 'knownModulesLabel'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   222
                         layout: (LayoutFrame 0 0.0 82 0 60 0.25 112 0)
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   223
                         activeHelpKey: perModuleDB
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   224
                         translateLabel: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   225
                         adjust: right
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   226
                       )
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   227
                      (SequenceViewSpec
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   228
                         name: 'List1'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   229
                         layout: (LayoutFrame 64 0.25 82 0 0 1 201 0)
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   230
                         activeHelpKey: perModuleDB
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   231
                         tabable: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   232
                         model: selectedPerModuleDatabase
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   233
                         hasHorizontalScrollBar: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   234
                         hasVerticalScrollBar: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   235
                         miniScrollerHorizontal: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   236
                         useIndex: false
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   237
                         sequenceList: listOfModules
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   238
                       )
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   239
                      (LabelSpec
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   240
                         label: 'Module:'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   241
                         name: 'moduleLabel'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   242
                         layout: (LayoutFrame 0 0.0 212 0 60 0.25 242 0)
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   243
                         activeHelpKey: perModuleDBModule
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   244
                         translateLabel: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   245
                         adjust: right
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   246
                       )
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   247
                      (ComboBoxSpec
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   248
                         name: 'ComboBox1'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   249
                         layout: (LayoutFrame 64 0.25 210 0 0 1 240 0)
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   250
                         activeHelpKey: perModuleDBModule
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   251
                         tabable: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   252
                         model: perModuleDatabaseModule
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   253
                         acceptChannel: acceptChannel
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   254
                         acceptOnPointerLeave: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   255
                         comboList: sampleModuleList
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   256
                       )
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   257
                      (LabelSpec
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   258
                         label: 'DB:'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   259
                         name: 'cvsRootLabel'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   260
                         layout: (LayoutFrame 0 0.0 243 0 60 0.25 273 0)
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   261
                         activeHelpKey: perModuleDBName
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   262
                         translateLabel: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   263
                         adjust: right
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   264
                       )
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   265
                      (ComboBoxSpec
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   266
                         name: 'perModulePathComboBox'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   267
                         layout: (LayoutFrame 64 0.25 243 0 0 1.0 273 0)
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   268
                         activeHelpKey: perModuleDBName
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   269
                         tabable: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   270
                         model: perModuleDB
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   271
                         immediateAccept: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   272
                         acceptOnLeave: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   273
                         acceptOnReturn: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   274
                         acceptOnTab: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   275
                         acceptOnLostFocus: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   276
                         acceptChannel: acceptChannel
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   277
                         acceptOnPointerLeave: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   278
                         comboList: dbPrototypeList
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   279
                       )
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   280
                      (HorizontalPanelViewSpec
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   281
                         name: 'HorizontalPanel2'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   282
                         layout: (LayoutFrame 64 0.25 278 0 -1 1 308 0)
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   283
                         horizontalLayout: fitSpace
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   284
                         verticalLayout: center
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   285
                         horizontalSpace: 3
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   286
                         verticalSpace: 3
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   287
                         component: 
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   288
                        (SpecCollection
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   289
                           collection: (
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   290
                            (ActionButtonSpec
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   291
                               label: 'Add/Apply'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   292
                               name: 'addButton'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   293
                               translateLabel: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   294
                               tabable: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   295
                               model: addPerModuleDB
16154
5939931ac858 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14666
diff changeset
   296
                               extent: (Point 143 30)
14317
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   297
                             )
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   298
                            (ActionButtonSpec
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   299
                               label: 'Remove'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   300
                               name: 'removeButton'
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   301
                               translateLabel: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   302
                               tabable: true
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   303
                               model: removePerModuleDB
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   304
                               enableChannel: removeEnabled
16154
5939931ac858 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14666
diff changeset
   305
                               extent: (Point 143 30)
14317
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   306
                             )
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   307
                            (ViewSpec
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   308
                               name: 'Box11'
16154
5939931ac858 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14666
diff changeset
   309
                               extent: (Point 144 10)
14317
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   310
                             )
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   311
                            )
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   312
                          
72893bcf6179 changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 14268
diff changeset
   313
                         )
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   314
                       )
14255
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   315
                      )
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   316
                    
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   317
                   )
16154
5939931ac858 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14666
diff changeset
   318
                   extent: (Point 724 346)
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
                 )
14255
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   320
                )
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   321
              
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   322
             )
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
           )
14255
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   324
          )
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   325
        
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   326
       )
9442e9d5491e class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
   327
     )
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
! !
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   330
!DataBaseSourceCodeManagementSettingsAppl class methodsFor:'queries'!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   331
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   332
managerClass
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
    "backlink to my manager class (needed by the settings app)"
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
    ^ DataBaseSourceCodeManager
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   337
    "Created: / 19-04-2011 / 12:46:52 / cg"
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
! !
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
!DataBaseSourceCodeManagementSettingsAppl methodsFor:'actions'!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   342
addModule:module withData:data
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   343
    (self listOfModules includes:module) ifFalse:[
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   344
        self listOfModules add:module; sort.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   345
    ].
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   346
    dbPerModule at:module put:data.
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   347
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   348
    self updateModifiedChannel.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   349
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   350
    "Created: / 08-11-2006 / 19:25:21 / cg"
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   351
!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   352
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   353
addPerModuleDB
14666
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   354
    |module db path|
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   355
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   356
    acceptChannel value:true.    
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   357
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   358
    module := self perModuleDatabaseModule value.
14666
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   359
    db := self perModuleDB value.
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   360
    db size > 0 ifTrue:[
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   361
        (db startsWith:'sqlite:') ifTrue:[
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   362
            path := db copyFrom:'sqlite:' size + 1.        
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   363
            self validateDatabaseExistsAndIsWritable:db.
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   364
        ].
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   365
        self addModule:module withData:{ DataBaseSourceCodeManager . db }.
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   366
    ].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   367
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   368
    "Created: / 25-12-2011 / 13:18:30 / cg"
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   369
!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   370
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   371
basicReadSettings
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   372
    |infoPerModule|
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   373
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   374
    self initialize.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   375
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   376
    infoPerModule := DataBaseSourceCodeManager repositoryInfoPerModule.
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   377
    infoPerModule keysAndValuesDo:[:module :info | 
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   378
        dbPerModule at:module put:(Array with:DataBaseSourceCodeManager with:info).
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   379
    ].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   380
11119
6f9d0c528f36 default
Claus Gittinger <cg@exept.de>
parents: 11081
diff changeset
   381
    self dbNameHolder value:DataBaseSourceCodeManager repositoryName. 
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   382
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   383
    dbPerModule notNil ifTrue:[
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   384
        self listOfModules removeAll.
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   385
        listOfModules addAll:dbPerModule keys asList.
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   386
    ].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   387
11070
84fad278c24f preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   388
    self shownInBrowserMenusHolder value:DataBaseSourceCodeManager shownInBrowserMenus.
84fad278c24f preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   389
11119
6f9d0c528f36 default
Claus Gittinger <cg@exept.de>
parents: 11081
diff changeset
   390
    "Modified (comment): / 12-01-2012 / 14:00:48 / cg"
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   391
!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   392
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   393
basicSaveSettings
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   394
    |infoPerModule modules|
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   395
11031
28041a6aa9ab changed:
Claus Gittinger <cg@exept.de>
parents: 11029
diff changeset
   396
    DataBaseSourceCodeManager repositoryName:self dbNameHolder value.    
28041a6aa9ab changed:
Claus Gittinger <cg@exept.de>
parents: 11029
diff changeset
   397
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   398
    modules := dbPerModule select:[:entry | entry first == DataBaseSourceCodeManager].
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   399
    infoPerModule := Dictionary new.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   400
    modules keysAndValuesDo:[:module :entry | 
14666
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   401
        infoPerModule at:module put:(entry second).
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   402
    ].
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   403
    DataBaseSourceCodeManager repositoryInfoPerModule:infoPerModule.
11070
84fad278c24f preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11064
diff changeset
   404
    DataBaseSourceCodeManager shownInBrowserMenus:self shownInBrowserMenusHolder value. 
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   405
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   406
    self acceptChannel value.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   407
11408
adc1a0348abb added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11329
diff changeset
   408
    "/ make sure, that the DB libs are present
adc1a0348abb added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11329
diff changeset
   409
    Smalltalk loadPackage:'stx:libdb'.
adc1a0348abb added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11329
diff changeset
   410
    Smalltalk loadPackage:'stx:libdb/libsqlite'.
adc1a0348abb added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11329
diff changeset
   411
    Smalltalk loadPackage:'stx:libdb/libodbc'.
adc1a0348abb added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11329
diff changeset
   412
adc1a0348abb added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11329
diff changeset
   413
    "Modified (comment): / 12-03-2012 / 11:27:10 / cg"
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   414
!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   415
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   416
removePerModuleDB
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   417
    |module|
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   418
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   419
    acceptChannel value:true.    
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   420
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   421
    module := self perModuleDatabaseModule value.
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   422
    self listOfModules remove:module ifAbsent:nil.
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   423
    dbPerModule removeKey:module ifAbsent:nil.
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   424
    self perModuleDatabaseModule value:nil.
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   425
    self perModuleDB value:nil.
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   426
    self updateModifiedChannel.
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   427
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   428
    "Created: / 25-12-2011 / 13:19:45 / cg"
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   429
!
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   430
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   431
removePerModulePath
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   432
    |module|
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   433
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   434
    acceptChannel value:true.    
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   435
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   436
    module := self perModuleDatabaseModule value.
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   437
    self listOfModules remove:module ifAbsent:nil.
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   438
    dbPerModule removeKey:module ifAbsent:nil.
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   439
    self perModuleDatabaseModule value:nil.
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   440
    self perModuleDB value:nil.
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   441
    self updateModifiedChannel.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   442
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   443
    "Created: / 21-12-2011 / 14:26:08 / cg"
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   444
! !
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   445
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   446
!DataBaseSourceCodeManagementSettingsAppl methodsFor:'aspects'!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   447
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   448
dbNameHolder
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   449
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   450
    dbNameHolder isNil ifTrue:[
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   451
        dbNameHolder := DataBaseSourceCodeManager defaultRepositoryName asValue.
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   452
        dbNameHolder addDependent:self.
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   453
    ].
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   454
    ^ dbNameHolder.
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   455
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   456
    "Created: / 25-12-2011 / 13:14:17 / cg"
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   457
!
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   458
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   459
dbPrototypeList
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   460
    ^ #(
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   461
            'sqlite:repository.db'
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   462
            'odbc:localhost:stxRepository'
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   463
            'sqlite:pathname'
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   464
            'odbc:user.password@host:table'
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   465
        )
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   466
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   467
    "Created: / 25-12-2011 / 13:13:20 / cg"
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   468
!
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   469
11329
902ee5164fd7 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11322
diff changeset
   470
initialListOfModules
902ee5164fd7 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11322
diff changeset
   471
    ^ dbPerModule keys asList sort.
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   472
11329
902ee5164fd7 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11322
diff changeset
   473
    "Created: / 02-03-2012 / 14:39:53 / cg"
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   474
!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   475
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   476
perModuleDB
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   477
    perModuleDB isNil ifTrue:[
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   478
        perModuleDB := ValueHolder new.
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   479
    ].
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   480
    ^ perModuleDB.
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   481
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   482
    "Created: / 25-12-2011 / 13:18:55 / cg"
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   483
!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   484
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   485
perModuleDatabaseModule
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   486
    perModuleDatabaseModule isNil ifTrue:[
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   487
        perModuleDatabaseModule := ValueHolder new.
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   488
    ].
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   489
    ^ perModuleDatabaseModule.
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   490
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   491
    "Created: / 25-12-2011 / 13:16:55 / cg"
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   492
!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   493
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   494
selectedPerModuleDatabase
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   495
    selectedPerModuleDatabase isNil ifTrue:[
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   496
        selectedPerModuleDatabase := ValueHolder new.
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   497
        selectedPerModuleDatabase addDependent:self.
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   498
    ].
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   499
    ^ selectedPerModuleDatabase.
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   500
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   501
    "Created: / 25-12-2011 / 13:15:10 / cg"
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   502
! !
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   503
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   504
!DataBaseSourceCodeManagementSettingsAppl methodsFor:'change & update'!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   505
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   506
selectedPerModuleDatabaseChanged
18910
b823f83d08ad #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18905
diff changeset
   507
    |module entry newPerModuleDatabaseModule newRemoveEnabled newPerModuleDB|
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   508
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   509
    self acceptChannel value:true. 
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
18910
b823f83d08ad #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18905
diff changeset
   511
    newPerModuleDatabaseModule := ' '.
b823f83d08ad #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18905
diff changeset
   512
    newRemoveEnabled := false.
b823f83d08ad #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18905
diff changeset
   513
    newPerModuleDB := ''.
18911
34df63498d78 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18910
diff changeset
   514
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   515
    module := self selectedPerModuleDatabase value.
18911
34df63498d78 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18910
diff changeset
   516
    module notNil ifTrue:[ 
18910
b823f83d08ad #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18905
diff changeset
   517
        entry := dbPerModule at:module ifAbsent:#().    
b823f83d08ad #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18905
diff changeset
   518
        (entry first = DataBaseSourceCodeManager) ifTrue:[
b823f83d08ad #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18905
diff changeset
   519
            newRemoveEnabled := true.
b823f83d08ad #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18905
diff changeset
   520
            newPerModuleDatabaseModule := module.
b823f83d08ad #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18905
diff changeset
   521
            newPerModuleDB := (entry at:2).
b823f83d08ad #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18905
diff changeset
   522
        ] ifFalse:[
18912
c325bc25e08e #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18911
diff changeset
   523
            newPerModuleDatabaseModule := (module,' ',('<< use ',entry first managerTypeName,' >>') allBold).
18910
b823f83d08ad #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18905
diff changeset
   524
        ].
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   525
    ].
18910
b823f83d08ad #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18905
diff changeset
   526
    
b823f83d08ad #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18905
diff changeset
   527
    self perModuleDatabaseModule value:newPerModuleDatabaseModule.
b823f83d08ad #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18905
diff changeset
   528
    self removeEnabled value:newRemoveEnabled.
b823f83d08ad #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18905
diff changeset
   529
    self perModuleDB value:newPerModuleDB.
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   530
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   531
    "Created: / 25-12-2011 / 13:15:54 / cg"
18912
c325bc25e08e #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18911
diff changeset
   532
    "Modified (format): / 16-07-2019 / 14:42:58 / Claus Gittinger"
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   534
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   535
update:something with:aParameter from:changedObject 
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   536
    changedObject == selectedPerModuleDatabase ifTrue:[
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   537
        self selectedPerModuleDatabaseChanged.
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   538
        ^ self
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   539
    ].
11031
28041a6aa9ab changed:
Claus Gittinger <cg@exept.de>
parents: 11029
diff changeset
   540
    changedObject == dbNameHolder ifTrue:[
28041a6aa9ab changed:
Claus Gittinger <cg@exept.de>
parents: 11029
diff changeset
   541
        self updateModifiedChannel.
28041a6aa9ab changed:
Claus Gittinger <cg@exept.de>
parents: 11029
diff changeset
   542
        ^ self
28041a6aa9ab changed:
Claus Gittinger <cg@exept.de>
parents: 11029
diff changeset
   543
    ].
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   544
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   545
    super update:something with:aParameter from:changedObject
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   546
11031
28041a6aa9ab changed:
Claus Gittinger <cg@exept.de>
parents: 11029
diff changeset
   547
    "Modified: / 26-12-2011 / 01:11:59 / cg"
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   548
!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   549
14666
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   550
validateDatabaseExistsAndIsWritable:dbPath
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   551
    |nm fn|
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   552
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   553
    (dbPath startsWith:'sqlite:') ifFalse:[
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   554
        (DataBaseSourceCodeManager openDB:dbPath) close.
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   555
        ^ true
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   556
    ].
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   557
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   558
    fn := dbPath asFilename.
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   559
    nm := fn baseName.
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   560
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   561
    fn exists ifFalse:[
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   562
        (self confirm:(resources 
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   563
                            stringWithCRs:'Database "%1" does not exist.\Create ?'
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   564
                            with:nm)
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   565
        ) ifFalse:[
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   566
            ^ false.
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   567
        ].
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   568
        fn directory exists ifFalse:[
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   569
            fn directory
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   570
                recursiveMakeDirectory; 
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   571
                makeReadableForAll;
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   572
                makeWritableForAll;
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   573
                makeExecutableForAll.
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   574
        ].
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   575
        (DataBaseSourceCodeManager openDB:dbPath) close.
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   576
        ^ true.
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   577
    ].
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   578
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   579
    (fn isDirectory) ifTrue:[
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   580
        self warn:(resources 
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   581
                            stringWithCRs:'"%1" exists but is a directory'
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   582
                            with:nm).
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   583
        ^ false.
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   584
    ].
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   585
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   586
    (fn isWritable and:[fn isReadable]) ifFalse:[
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   587
        (self confirm:(resources 
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   588
                            stringWithCRs:'"%1" is not both readable and writable.\Change ?'
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   589
                            with:nm)
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   590
        ) ifFalse:[
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   591
            ^ false.
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   592
        ].
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   593
        fn
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   594
            makeReadable;
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   595
            makeWritable.
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   596
        (fn isWritable and:[fn isReadable]) ifFalse:[
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   597
            self warn:(resources 
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   598
                                stringWithCRs:'"%1" cannot be made both readable and writable.'
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   599
                                with:nm).
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   600
            ^ false.
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   601
        ].
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   602
    ].
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   603
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   604
    ^ true
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   605
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   606
    "Created: / 21-12-2011 / 14:43:11 / cg"
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   607
!
28321a5ff34f class: DataBaseSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 14395
diff changeset
   608
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   609
validateDirectoryExistsAndIsWritable:aDirectory
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   610
    |nm fn|
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   611
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   612
    fn := aDirectory asFilename.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   613
    nm := fn baseName.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   614
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   615
    fn exists ifFalse:[
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   616
        (self confirm:(resources 
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   617
                            stringWithCRs:'Directory "%1" does not exist.\Create ?'
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   618
                            with:nm)
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   619
        ) ifFalse:[
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   620
            ^ false.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   621
        ].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   622
        fn 
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   623
            recursiveMakeDirectory; 
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   624
            makeReadableForAll;
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   625
            makeWritableForAll;
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   626
            makeExecutableForAll.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   627
        ^ true.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   628
    ].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   629
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   630
    (fn isDirectory) ifFalse:[
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   631
        self warn:(resources 
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   632
                            stringWithCRs:'Not a directory: "%1"'
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   633
                            with:nm).
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   634
        ^ false.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   635
    ].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   636
13242
702ca7368f83 Use #isWritableDirectory
Stefan Vogel <sv@exept.de>
parents: 11426
diff changeset
   637
    (fn isWritableDirectory and:[fn isReadable]) ifFalse:[
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   638
        (self confirm:(resources 
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   639
                            stringWithCRs:'Directory "%1" is not both readable and writable.\Change ?'
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   640
                            with:nm)
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   641
        ) ifFalse:[
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   642
            ^ false.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   643
        ].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   644
        fn
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   645
            makeReadableForAll;
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   646
            makeWritableForAll;
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   647
            makeExecutableForAll.
13242
702ca7368f83 Use #isWritableDirectory
Stefan Vogel <sv@exept.de>
parents: 11426
diff changeset
   648
        (fn isWritableDirectory and:[fn isReadable]) ifFalse:[
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   649
            self warn:(resources 
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   650
                                stringWithCRs:'Directory "%1" cannot be made both readable and writable.'
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   651
                                with:nm).
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   652
            ^ false.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   653
        ].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   654
    ].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   655
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   656
    ^ true
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   657
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   658
    "Created: / 21-12-2011 / 14:43:11 / cg"
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   659
! !
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   660
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   661
!DataBaseSourceCodeManagementSettingsAppl methodsFor:'help'!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   662
14247
39f648023f37 halp url
Claus Gittinger <cg@exept.de>
parents: 13242
diff changeset
   663
editorHelpRelativeWikiURL
39f648023f37 halp url
Claus Gittinger <cg@exept.de>
parents: 13242
diff changeset
   664
    "the relative URL of the dialog-description in the Wiki"
39f648023f37 halp url
Claus Gittinger <cg@exept.de>
parents: 13242
diff changeset
   665
39f648023f37 halp url
Claus Gittinger <cg@exept.de>
parents: 13242
diff changeset
   666
    ^ 'Settings_DataBaseSourceCodeManagerSettings'
39f648023f37 halp url
Claus Gittinger <cg@exept.de>
parents: 13242
diff changeset
   667
!
39f648023f37 halp url
Claus Gittinger <cg@exept.de>
parents: 13242
diff changeset
   668
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   669
helpFilename
11120
c4c7351037b3 changed: #helpFilename
Claus Gittinger <cg@exept.de>
parents: 11119
diff changeset
   670
    ^ 'Launcher/dataBaseRepositorySetup.html'
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   671
11120
c4c7351037b3 changed: #helpFilename
Claus Gittinger <cg@exept.de>
parents: 11119
diff changeset
   672
    "Modified: / 12-01-2012 / 14:03:04 / cg"
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   673
! !
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   674
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   675
!DataBaseSourceCodeManagementSettingsAppl methodsFor:'initialization & release'!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   676
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   677
initialize
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   678
    (AbstractSourceCodeManager notNil) ifTrue:[ AbstractSourceCodeManager autoload ].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   679
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   680
    dbPerModule := Dictionary new.
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   681
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   682
    DataBaseSourceCodeManager repositoryInfoPerModule 
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   683
        keysAndValuesDo:[:module :info |
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   684
            module withoutSeparators ~= module ifTrue:[
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   685
                self halt:'should not happen any longer'
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   686
            ].
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   687
            dbPerModule at:module put:(Array with:DataBaseSourceCodeManager with:info)
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   688
        ].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   689
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   690
    super initialize.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   691
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   692
    "Modified: / 25-12-2011 / 13:23:44 / cg"
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   693
! !
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   694
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   695
!DataBaseSourceCodeManagementSettingsAppl methodsFor:'queries'!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   696
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   697
cvsRootFromCVSRootFileOrNil
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   698
    |cvsDir cvsRootFile cvsRoot|
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   699
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   700
    cvsDir := 'CVS' asFilename.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   701
    cvsDir isDirectory ifTrue:[
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   702
        cvsRootFile := cvsDir construct:'Root'.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   703
        cvsRootFile isReadable ifTrue:[
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   704
            cvsRoot := cvsRootFile contents firstIfEmpty:nil.
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   705
        ].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   706
    ].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   707
    ^ cvsRoot
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   708
!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   709
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   710
hasUnsavedChanges
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   711
    |modules|
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   712
11031
28041a6aa9ab changed:
Claus Gittinger <cg@exept.de>
parents: 11029
diff changeset
   713
    (DataBaseSourceCodeManager repositoryName) ~= self dbNameHolder value    
28041a6aa9ab changed:
Claus Gittinger <cg@exept.de>
parents: 11029
diff changeset
   714
        ifTrue:[^ true].
11074
845f8310b0c9 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11070
diff changeset
   715
    (DataBaseSourceCodeManager shownInBrowserMenus ~= self shownInBrowserMenusHolder value)
845f8310b0c9 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11070
diff changeset
   716
        ifTrue:[^ true].
11031
28041a6aa9ab changed:
Claus Gittinger <cg@exept.de>
parents: 11029
diff changeset
   717
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   718
    modules := dbPerModule select:[:entry | entry first == DataBaseSourceCodeManager].
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   719
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   720
    DataBaseSourceCodeManager repositoryInfoPerModule keysAndValuesDo:[:module :info |
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   721
        ((modules includesKey:module) and:[info = (modules at:module) second])
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   722
        ifFalse:[^ true].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   723
    ].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   724
    modules keysAndValuesDo:[:module :info|
11029
189b0dfccd0a class definition
Claus Gittinger <cg@exept.de>
parents: 11013
diff changeset
   725
        ((DataBaseSourceCodeManager repositoryInfoPerModule includesKey:module) and:[(DataBaseSourceCodeManager repositoryInfoPerModule at:module) = info second])
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   726
        ifFalse:[^ true].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   727
    ].
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   728
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   729
    ^ false
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   730
11074
845f8310b0c9 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11070
diff changeset
   731
    "Modified: / 10-01-2012 / 00:31:19 / cg"
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   732
! !
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   733
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   734
!DataBaseSourceCodeManagementSettingsAppl class methodsFor:'documentation'!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   735
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   736
version
16154
5939931ac858 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14666
diff changeset
   737
    ^ '$Header$'
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   738
!
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   739
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   740
version_CVS
16154
5939931ac858 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14666
diff changeset
   741
    ^ '$Header$'
11013
c52144537d6d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   742
! !
13242
702ca7368f83 Use #isWritableDirectory
Stefan Vogel <sv@exept.de>
parents: 11426
diff changeset
   743