StoreSourceCodeManagementSettingsAppl.st
author Stefan Vogel <sv@exept.de>
Thu, 19 Jul 2012 17:28:21 +0200
changeset 11623 b748d338ff6b
parent 11427 4b712ac287fb
child 11656 7c2dda57187c
permissions -rw-r--r--
Remove obsolete #sourceDirChanged (is now in AbstractSettingsApplication::SourceCodeManagementSettingsAppl)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
10031
ab9f8be764b6 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9871
diff changeset
     2
 COPYRIGHT (c) 2011 by eXept Software AG
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libtool' }"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
9857
c61cd22ba25b added: #managerClass
Claus Gittinger <cg@exept.de>
parents: 9824
diff changeset
    14
AbstractSourceCodeManagementSettingsAppl subclass:#StoreSourceCodeManagementSettingsAppl
11327
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
    15
	instanceVariableNames:'useManager repositoryHolder manager addPerModuleRoot
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
    16
		perModuleRootModule perModuleRoot selectedPerModuleRoot
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
    17
		rootsPerModule managerIsCVSSourceCodeManager
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
    18
		managerIsStoreSourceCodeManager storeLoginEnabled
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
    19
		storeHostPrototypeList storeHostnameHolder storeUsernameHolder
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
    20
		storePasswordHolder perStoreModuleHostnameHolder
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
    21
		perStoreModuleUsernameHolder perStoreModulePasswordHolder
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
    22
		perStoreModuleRoot perStoreModuleRootModule
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
    23
		selectedPerStoreModuleRoot storeConnectEnabled
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
    24
		storeConnectInModuleEnabled perModuleFieldsEnableHolder
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
    25
		managerIsSmallTeamSourceCodeManager
11126
6ac7a4d1e195 refactored
Claus Gittinger <cg@exept.de>
parents: 11083
diff changeset
    26
		perSmallTeamModuleFieldsEnableHolder'
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
	classVariableNames:'RecentlyUsedCVSRoots RecentlyUsedStoreHosts
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
		RecentlyUsedSmallTeamHosts LastStoreHost LastStoreUser
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
		LastStorePassword'
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
	poolDictionaries:''
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
	category:'System-SourceCodeManagement'
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
!StoreSourceCodeManagementSettingsAppl class methodsFor:'documentation'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
copyright
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
"
10031
ab9f8be764b6 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9871
diff changeset
    38
 COPYRIGHT (c) 2011 by eXept Software AG
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
              All Rights Reserved
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
 This software is furnished under a license and may be used
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
 only in accordance with the terms of that license and with the
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
 inclusion of the above copyright notice.   This software may not
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
 be provided or otherwise made available to, or used by, any
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
 other person.  No title to or ownership of the software is
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
 hereby transferred.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
documentation
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
    Store (visualWorks repository access) source code settings - highly experimental and unsupported.  
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
!StoreSourceCodeManagementSettingsAppl class methodsFor:'image specs'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
defaultIcon
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
    "This resource specification was automatically generated
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
     by the ImageEditor of ST/X."
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
    "Do not manually edit this!! If it is corrupted,
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
     the ImageEditor may not be able to read the specification."
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
    "
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
     self defaultIcon inspect
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
     ImageEditor openOnClass:self andSelector:#defaultIcon
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
     Icon flushCachedIcons
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    "
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    <resource: #image>
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
    ^Icon
10987
b79d8f3ada76 added: #dbIcon2
Claus Gittinger <cg@exept.de>
parents: 10737
diff changeset
    74
        constantNamed:'StoreSourceCodeManagementSettingsAppl class defaultIcon'
b79d8f3ada76 added: #dbIcon2
Claus Gittinger <cg@exept.de>
parents: 10737
diff changeset
    75
        ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
b79d8f3ada76 added: #dbIcon2
Claus Gittinger <cg@exept.de>
parents: 10737
diff changeset
    76
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BFFH=<AS8@@@@@@@@@@@@@
b79d8f3ada76 added: #dbIcon2
Claus Gittinger <cg@exept.de>
parents: 10737
diff changeset
    77
@@@@@E8=X(!!#T!!0-X@D@@@@@@@@@@@@@@C%%CC@K"B9SUF$QR@@@@@@@@@@@@@A[K00LL@.H]P%SGUUZ@@@@@@@@@@@@R"$<F&P0B8]ONGECQ @@@@@@@@@@
b79d8f3ada76 added: #dbIcon2
Claus Gittinger <cg@exept.de>
parents: 10737
diff changeset
    78
@BX[G7X, T$BIR)(^E @@@@@@@@@@@A?F4T''[F]@XXNDZFYX@@@@@@@@@@@@Z9VU$)I''PFFC!!H.IV@@@@@@@@@@@@IJU%YVU$$@+["P1N$X@@@@@@@@@@IFU
b79d8f3ada76 added: #dbIcon2
Claus Gittinger <cg@exept.de>
parents: 10737
diff changeset
    79
%P"ESQBR^3LTHG&N@@@@@@@@@@BR$9IEI61''PFFC!!F!!VZ @@@@@@@IJR%YRU%"],%4A!! 8Q(G% @@@@@@@@@$)RU$$T''%9^WXXNDQDIX@@@@@@@@@@BR&0<G
b79d8f3ada76 added: #dbIcon2
Claus Gittinger <cg@exept.de>
parents: 10737
diff changeset
    80
%9*Z&Y]]D 9P# @@@@@@@@@@@@AG%9^X%9^WH49AU50@@@@@@@@@%0@@@HA>%9^L#BEF_(@@@@@@@@@@@@BW%9^W%9^P@@@@@@@@@@@@@@@@@@@@@I"W%9^P
b79d8f3ada76 added: #dbIcon2
Claus Gittinger <cg@exept.de>
parents: 10737
diff changeset
    81
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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:((Depth1Image 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]
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
!StoreSourceCodeManagementSettingsAppl class methodsFor:'interface specs'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
windowSpec
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
    "This resource specification was automatically generated
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
     by the UIPainter of ST/X."
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
    "Do not manually edit this!! If it is corrupted,
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
     the UIPainter may not be able to read the specification."
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
    "
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
     UIPainter new openOnClass:StoreSourceCodeManagementSettingsAppl andSelector:#windowSpec
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
     StoreSourceCodeManagementSettingsAppl new openInterface:#windowSpec
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
     StoreSourceCodeManagementSettingsAppl open
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
    "
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
    <resource: #canvas>
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
    ^ 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
     #(FullSpec
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
        name: windowSpec
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
        window: 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
       (WindowSpec
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
          label: 'Source Code Manager Settings'
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
          name: 'Source Code Manager Settings'
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
          min: (Point 10 10)
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   109
          bounds: (Rectangle 0 0 659 592)
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
        )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
        component: 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
       (SpecCollection
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
          collection: (
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
           (VerticalPanelViewSpec
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   115
              name: 'VerticalPanel3'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   116
              layout: (LayoutFrame 0 0 0 0 0 1 0 1)
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
              horizontalLayout: fit
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
              verticalLayout: topSpace
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
              horizontalSpace: 3
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   120
              verticalSpace: 4
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
              component: 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
             (SpecCollection
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
                collection: (
11427
4b712ac287fb changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 11411
diff changeset
   124
                 (LabelSpec
4b712ac287fb changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 11411
diff changeset
   125
                    label: 'Experimental (Only for Transport)'
4b712ac287fb changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 11411
diff changeset
   126
                    name: 'Label10'
4b712ac287fb changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 11411
diff changeset
   127
                    style: (FontDescription #'Segoe UI' medium roman 16 #'ms-default')
4b712ac287fb changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 11411
diff changeset
   128
                    foregroundColor: (Color 86.9993133440146 0.0 0.0)
4b712ac287fb changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 11411
diff changeset
   129
                    translateLabel: true
4b712ac287fb changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 11411
diff changeset
   130
                    extent: (Point 659 37)
4b712ac287fb changed: #windowSpec
Claus Gittinger <cg@exept.de>
parents: 11411
diff changeset
   131
                  )
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   132
                 (ViewSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   133
                    name: 'ManagerSetupBoxx'
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
                    component: 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
                   (SpecCollection
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
                      collection: (
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   137
                       (FramedBoxSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   138
                          label: 'Store-DB Source Repository Settings'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   139
                          name: 'StoreSetupBox'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   140
                          layout: (LayoutFrame 0 0 0 0 0 1 0 1)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   141
                          labelPosition: topLeft
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   142
                          translateLabel: true
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
                          component: 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
                         (SpecCollection
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
                            collection: (
11411
74469d327c8d added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11327
diff changeset
   146
                             (ComboBoxSpec
74469d327c8d added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11327
diff changeset
   147
                                name: 'ComboBox1'
74469d327c8d added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11327
diff changeset
   148
                                layout: (LayoutFrame 44 0.25 222 0 0 1 244 0)
74469d327c8d added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11327
diff changeset
   149
                                tabable: true
74469d327c8d added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11327
diff changeset
   150
                                model: perStoreModuleRoot
74469d327c8d added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11327
diff changeset
   151
                                acceptChannel: acceptChannel
74469d327c8d added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11327
diff changeset
   152
                                acceptOnPointerLeave: true
74469d327c8d added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11327
diff changeset
   153
                                comboList: sampleModuleList
74469d327c8d added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11327
diff changeset
   154
                              )
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   155
                             (CheckBoxSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   156
                                label: 'Show in Browser Menus'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   157
                                name: 'CheckBox1'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   158
                                layout: (LayoutFrame 0 0 5 0 0 1 27 0)
11411
74469d327c8d added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11327
diff changeset
   159
                                activeHelpKey: shownInBrowserMenus
11072
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   160
                                model: shownInBrowserMenusHolder
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
                                translateLabel: true
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   162
                              )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   163
                             (ViewSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   164
                                name: 'HostBox'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   165
                                layout: (LayoutFrame 0 0 40 0 0 1 65 0)
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
                                component: 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
                               (SpecCollection
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
                                  collection: (
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
                                   (LabelSpec
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   170
                                      label: 'DB or DB@Host:'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   171
                                      name: 'StoreHostLabel'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   172
                                      layout: (LayoutFrame 0 0.0 0 0 40 0.25 22 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   173
                                      level: 0
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
                                      translateLabel: true
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
                                      adjust: right
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
                                    )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
                                   (ComboBoxSpec
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   178
                                      name: 'StoreHostComboBox'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   179
                                      layout: (LayoutFrame 44 0.25 0 0 0 1 22 0)
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
                                      tabable: true
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   181
                                      model: storeHostnameHolder
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
                                      immediateAccept: true
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
                                      acceptOnLeave: true
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
                                      acceptOnReturn: true
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
                                      acceptOnTab: true
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
                                      acceptOnLostFocus: true
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
                                      acceptChannel: acceptChannel
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
                                      acceptOnPointerLeave: true
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
                                      comboList: storeHostPrototypeList
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
                                    )
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   191
                                   )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   192
                                 
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   193
                                )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   194
                              )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   195
                             (ViewSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   196
                                name: 'UserBox'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   197
                                layout: (LayoutFrame 0 0.0 67 0 0 1 92 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   198
                                component: 
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   199
                               (SpecCollection
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   200
                                  collection: (
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
                                   (LabelSpec
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   202
                                      label: 'Username:'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   203
                                      name: 'StoreUserLabel'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   204
                                      layout: (LayoutFrame 0 0.0 0 0 40 0.25 22 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   205
                                      level: 0
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
                                      translateLabel: true
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
                                      adjust: right
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   208
                                    )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
                                   (InputFieldSpec
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   210
                                      name: 'StoreUserEntryField'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   211
                                      layout: (LayoutFrame 44 0.25 0 0 0 1 22 0)
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
                                      tabable: true
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   213
                                      model: storeUsernameHolder
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
                                      acceptChannel: acceptChannel
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
                                      acceptOnPointerLeave: true
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
                                    )
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   217
                                   )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   218
                                 
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   219
                                )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   220
                              )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   221
                             (ViewSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   222
                                name: 'PasswordBox'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   223
                                layout: (LayoutFrame 0 0.0 94 0 0 1 119 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   224
                                component: 
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   225
                               (SpecCollection
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   226
                                  collection: (
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   227
                                   (LabelSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   228
                                      label: 'Password:'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   229
                                      name: 'Label7'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   230
                                      layout: (LayoutFrame 0 0.0 0 0 40 0.25 22 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   231
                                      level: 0
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   232
                                      translateLabel: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   233
                                      adjust: right
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   234
                                    )
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   235
                                   (InputFieldSpec
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   236
                                      name: 'PasswordEntryField'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   237
                                      layout: (LayoutFrame 44 0.25 0 0 -130 1 22 0)
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
                                      tabable: true
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   239
                                      model: storePasswordHolder
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
                                      type: password
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
                                      acceptChannel: acceptChannel
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
                                      acceptOnPointerLeave: true
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
                                    )
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   244
                                   )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   245
                                 
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   246
                                )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   247
                              )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   248
                             (HorizontalPanelViewSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   249
                                name: 'HorizontalPanel4'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   250
                                layout: (LayoutFrame -130 1 91 0 0 1 122 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   251
                                horizontalLayout: fitSpace
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   252
                                verticalLayout: center
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   253
                                horizontalSpace: 3
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   254
                                verticalSpace: 3
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   255
                                component: 
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   256
                               (SpecCollection
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   257
                                  collection: (
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   258
                                   (ActionButtonSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   259
                                      label: 'Try to Connect'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   260
                                      name: 'TryConnectButton1'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   261
                                      translateLabel: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   262
                                      tabable: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   263
                                      model: storeConnect
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   264
                                      enableChannel: storeConnectEnabled
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   265
                                      extent: (Point 124 22)
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
                                    )
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   267
                                   )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   268
                                 
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   269
                                )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   270
                              )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   271
                             (LabelSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   272
                                label: 'DB per Module:'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   273
                                name: 'Label4'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   274
                                layout: (LayoutFrame 0 0.0 122 0 40 0.25 144 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   275
                                translateLabel: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   276
                                adjust: right
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   277
                              )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   278
                             (SequenceViewSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   279
                                name: 'List2'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   280
                                layout: (LayoutFrame 44 0.25 122 0 0 1 220 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   281
                                tabable: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   282
                                model: selectedPerStoreModuleRoot
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   283
                                hasHorizontalScrollBar: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   284
                                hasVerticalScrollBar: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   285
                                miniScrollerHorizontal: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   286
                                useIndex: false
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   287
                                sequenceList: listOfModules
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   288
                              )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   289
                             (LabelSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   290
                                label: 'Module:'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   291
                                name: 'perModuleModuleLabel'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   292
                                layout: (LayoutFrame 0 0.0 226 0 40 0.25 243 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   293
                                translateLabel: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   294
                                adjust: right
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   295
                              )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   296
                             (LabelSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   297
                                label: 'DB:'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   298
                                name: 'perModuleDBLabel'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   299
                                layout: (LayoutFrame 0 0.0 251 0 40 0.25 268 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   300
                                translateLabel: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   301
                                adjust: right
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   302
                              )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   303
                             (ComboBoxSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   304
                                name: 'perModuleModuleHostComboBox2'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   305
                                layout: (LayoutFrame 44 0.25 247 0 0 1 269 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   306
                                tabable: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   307
                                model: perStoreModuleHostnameHolder
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   308
                                immediateAccept: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   309
                                acceptOnLeave: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   310
                                acceptOnReturn: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   311
                                acceptOnTab: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   312
                                acceptOnLostFocus: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   313
                                acceptChannel: acceptChannel
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   314
                                acceptOnPointerLeave: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   315
                                comboList: storeHostPrototypeList
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   316
                              )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   317
                             (LabelSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   318
                                label: 'User / Password:'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   319
                                name: 'perModuleUserPasswordLabel'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   320
                                layout: (LayoutFrame 0 0.0 276 0 40 0.25 293 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   321
                                translateLabel: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   322
                                adjust: right
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   323
                              )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   324
                             (InputFieldSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   325
                                name: 'perModuleUserEntryField'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   326
                                layout: (LayoutFrame 44 0.25 272 0 -2 0.65 294 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   327
                                tabable: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   328
                                model: perStoreModuleUsernameHolder
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   329
                                acceptChannel: acceptChannel
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   330
                                acceptOnPointerLeave: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   331
                              )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   332
                             (InputFieldSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   333
                                name: 'perModulePasswordEntryField'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   334
                                layout: (LayoutFrame 5 0.65 272 0 0 1 294 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   335
                                tabable: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   336
                                model: perStoreModulePasswordHolder
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   337
                                type: password
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   338
                                acceptChannel: acceptChannel
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   339
                                acceptOnPointerLeave: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   340
                              )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   341
                             (HorizontalPanelViewSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   342
                                name: 'HorizontalPanel5'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   343
                                layout: (LayoutFrame 44 0.25 295 0 -10 0.65 326 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   344
                                horizontalLayout: fit
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   345
                                verticalLayout: center
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   346
                                horizontalSpace: 3
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   347
                                verticalSpace: 3
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   348
                                component: 
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   349
                               (SpecCollection
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   350
                                  collection: (
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   351
                                   (ActionButtonSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   352
                                      label: 'Add/Apply'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   353
                                      name: 'AddButton2'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   354
                                      translateLabel: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   355
                                      tabable: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   356
                                      model: addPerStoreModuleDB
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   357
                                      extent: (Point 96 22)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   358
                                    )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   359
                                   (ActionButtonSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   360
                                      label: 'Remove'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   361
                                      name: 'RemoveButton3'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   362
                                      translateLabel: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   363
                                      tabable: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   364
                                      model: removePerStoreModuleDB
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   365
                                      enableChannel: removeEnabled
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   366
                                      extent: (Point 97 22)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   367
                                    )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   368
                                   )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   369
                                 
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   370
                                )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   371
                              )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   372
                             (HorizontalPanelViewSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   373
                                name: 'HorizontalPanel6'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   374
                                layout: (LayoutFrame 10 0.65 295 0 0 1 326 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   375
                                horizontalLayout: fit
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   376
                                verticalLayout: center
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   377
                                horizontalSpace: 3
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   378
                                verticalSpace: 3
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   379
                                component: 
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   380
                               (SpecCollection
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   381
                                  collection: (
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   382
                                   (ActionButtonSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   383
                                      label: 'Try to Connect'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   384
                                      name: 'ConnectPerStoreModuleButton'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   385
                                      translateLabel: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   386
                                      tabable: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   387
                                      model: connectPerStoreModuleDB
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   388
                                      enableChannel: storeConnectInModuleEnabled
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   389
                                      extent: (Point 103 22)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   390
                                    )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   391
                                   (ActionButtonSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   392
                                      label: 'Browse'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   393
                                      name: 'BrowsePerStoreModuleButton'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   394
                                      translateLabel: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   395
                                      tabable: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   396
                                      model: browsePerStoreModuleDB
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   397
                                      enableChannel: storeConnectInModuleEnabled
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   398
                                      extent: (Point 103 22)
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   399
                                    )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   400
                                   )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   401
                                 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   402
                                )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   403
                              )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   404
                             )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   405
                           
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   406
                          )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   407
                        )
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   408
                       )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   409
                     
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   410
                    )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   411
                    extent: (Point 659 357)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   412
                  )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   413
                 (FramedBoxSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   414
                    label: 'Source Cache'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   415
                    name: 'FramedBox1'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   416
                    visibilityChannel: false
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   417
                    labelPosition: topLeft
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   418
                    translateLabel: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   419
                    component: 
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   420
                   (SpecCollection
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   421
                      collection: (
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   422
                       (ViewSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   423
                          name: 'SourceCacheDirBox'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   424
                          layout: (LayoutFrame 0 0 0 0 0 1 30 0)
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   425
                          component: 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   426
                         (SpecCollection
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   427
                            collection: (
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   428
                             (LabelSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   429
                                label: 'Source Cache Dir:'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   430
                                name: 'SourceCacheDirLabel'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   431
                                layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   432
                                translateLabel: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   433
                                adjust: right
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   434
                              )
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   435
                             (InputFieldSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   436
                                name: 'SourceCacheDirEntryField'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   437
                                layout: (LayoutFrame 64 0.25 0 0 0 1 22 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   438
                                enableChannel: useManager
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   439
                                model: sourceCacheDir
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   440
                                immediateAccept: false
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   441
                                acceptOnReturn: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   442
                                acceptOnTab: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   443
                                acceptOnLostFocus: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   444
                                acceptOnPointerLeave: true
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   445
                              )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   446
                             )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   447
                           
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   448
                          )
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   449
                        )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   450
                       (HorizontalPanelViewSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   451
                          name: 'CacheActionsHorizontalPanel'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   452
                          layout: (LayoutFrame 44 0.25 33 0 0 1 67 0)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   453
                          horizontalLayout: fitSpace
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   454
                          verticalLayout: center
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   455
                          horizontalSpace: 3
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   456
                          verticalSpace: 3
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   457
                          component: 
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   458
                         (SpecCollection
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   459
                            collection: (
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   460
                             (ActionButtonSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   461
                                label: 'Flush Cache now'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   462
                                name: 'FlushCacheNowButton'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   463
                                translateLabel: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   464
                                tabable: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   465
                                model: flushSourceCache
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   466
                                enableChannel: useManager
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   467
                                extent: (Point 208 22)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   468
                              )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   469
                             (ActionButtonSpec
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   470
                                label: 'Condense Cache now'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   471
                                name: 'CondenseCacheNowButton'
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   472
                                translateLabel: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   473
                                tabable: true
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   474
                                model: condenseSourceCache
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   475
                                enableChannel: useManager
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   476
                                extent: (Point 208 22)
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   477
                              )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   478
                             )
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   479
                           
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   480
                          )
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   481
                        )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   482
                       )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   483
                     
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   484
                    )
11066
906c882b32d1 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11008
diff changeset
   485
                    extent: (Point 659 95)
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   486
                  )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   487
                 )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   488
               
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   489
              )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   490
            )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   491
           )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   492
         
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   493
        )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   494
      )
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   495
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   496
9857
c61cd22ba25b added: #managerClass
Claus Gittinger <cg@exept.de>
parents: 9824
diff changeset
   497
!StoreSourceCodeManagementSettingsAppl class methodsFor:'queries'!
c61cd22ba25b added: #managerClass
Claus Gittinger <cg@exept.de>
parents: 9824
diff changeset
   498
c61cd22ba25b added: #managerClass
Claus Gittinger <cg@exept.de>
parents: 9824
diff changeset
   499
managerClass
c61cd22ba25b added: #managerClass
Claus Gittinger <cg@exept.de>
parents: 9824
diff changeset
   500
    "backlink to my manager class (needed by the settings app)"
c61cd22ba25b added: #managerClass
Claus Gittinger <cg@exept.de>
parents: 9824
diff changeset
   501
c61cd22ba25b added: #managerClass
Claus Gittinger <cg@exept.de>
parents: 9824
diff changeset
   502
    ^ StoreSourceCodeManager
c61cd22ba25b added: #managerClass
Claus Gittinger <cg@exept.de>
parents: 9824
diff changeset
   503
c61cd22ba25b added: #managerClass
Claus Gittinger <cg@exept.de>
parents: 9824
diff changeset
   504
    "Created: / 19-04-2011 / 12:48:57 / cg"
c61cd22ba25b added: #managerClass
Claus Gittinger <cg@exept.de>
parents: 9824
diff changeset
   505
! !
c61cd22ba25b added: #managerClass
Claus Gittinger <cg@exept.de>
parents: 9824
diff changeset
   506
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   507
!StoreSourceCodeManagementSettingsAppl methodsFor:'actions'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   508
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   509
addModule:module withData:data
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
    (self listOfModules includes:module) ifFalse:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   511
        self listOfModules add:module; sort.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   512
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   513
    rootsPerModule at:module put:data.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   514
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   515
    self updateModifiedChannel.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   516
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   517
    "Created: / 08-11-2006 / 19:25:21 / cg"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   518
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   519
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   520
basicReadSettings
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   521
    self initialize.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   522
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   523
    self sourceCacheDir value:(StoreSourceCodeManager cacheDirectoryName).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   524
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   525
    "/ StoreSourceCodeManager forgetDisabledModules.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   526
    self storeHostnameHolder value: (StoreSourceCodeManager hostAndDBName).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   527
    self storeUsernameHolder value: (StoreSourceCodeManager userName).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   528
    self storePasswordHolder value: (StoreSourceCodeManager password).
11072
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   529
    self shownInBrowserMenusHolder value:StoreSourceCodeManager shownInBrowserMenus. 
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   530
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   531
    (Array with:StoreSourceCodeManager) "self availableManagers" do:[:eachManager |
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   532
        |infoPerModule|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   534
        infoPerModule := eachManager repositoryInfoPerModule.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   535
        infoPerModule keysAndValuesDo:[:module :info | 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   536
            rootsPerModule at:module put:(Array with:eachManager with:info).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   537
        ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   538
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   539
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   540
    "/ self updateSelectedManager.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   541
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   542
    rootsPerModule notNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   543
        self listOfModules removeAll.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   544
        listOfModules addAll:rootsPerModule keys asList.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   545
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   546
"/    self selectedPerModuleRootChanged.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   547
11072
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   548
    "Modified: / 10-01-2012 / 00:21:13 / cg"
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   549
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   550
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   551
basicSaveSettings
11072
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   552
    |modules nm fn infoPerModule|
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   553
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   554
    nm := self sourceCacheDir value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   555
    nm notEmptyOrNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   556
        (fn := nm asFilename) exists ifFalse:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   557
            (self confirm:('Cache directory ''' , nm , ''' does not exist\create ?' withCRs)) ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   558
                fn recursiveMakeDirectory; 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   559
                   makeReadableForAll;
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   560
                   makeWritableForAll;
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   561
                   makeExecutableForAll.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   562
            ]
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   563
        ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   564
        (fn isDirectory
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   565
        and:[fn isReadable
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   566
        and:[fn isWritable]]) ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   567
            StoreSourceCodeManager cacheDirectoryName:nm.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   568
        ] ifFalse:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   569
            self warn:'Invalid sourceCache directory.'
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   570
        ]
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   571
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   572
11072
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   573
    modules := rootsPerModule select:[:entry | entry first == StoreSourceCodeManager].
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   574
    infoPerModule := Dictionary new.
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   575
    modules keysAndValuesDo:[:module :entry | 
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   576
        entry first == StoreSourceCodeManager ifTrue:[
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   577
            infoPerModule at:module put:(entry second).
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   578
        ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   579
    ].
11072
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   580
    StoreSourceCodeManager repositoryInfoPerModule:infoPerModule.
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   581
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   582
    StoreSourceCodeManager shownInBrowserMenus:self shownInBrowserMenusHolder value. 
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   583
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   584
    self basicSaveStoreSettings.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   585
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   586
    self sourceCacheDir value:(StoreSourceCodeManager cacheDirectoryName).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   587
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   588
    DebugView newDebugger. "/ ???
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   589
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   590
    self acceptChannel value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   591
11072
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   592
    "Modified: / 10-01-2012 / 00:22:56 / cg"
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   593
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   594
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   595
removePerModuleRoot
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   596
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   597
    |module|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   598
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   599
    acceptChannel value:true.    
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   600
    module := self perModuleRootModule value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   601
    self listOfModules remove:module ifAbsent:nil.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   602
    rootsPerModule removeKey:module ifAbsent:nil.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   603
    self perModuleRootModule value:nil.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   604
    self perModuleRoot value:nil.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   605
    self updateModifiedChannel.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   606
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   607
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   608
setupSourceCodeManager
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   609
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   610
   AbstractLauncherApplication::LauncherDialogs cvsConfigurationDialog.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   611
   manager := (Smalltalk at:#SourceCodeManager).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   612
   manager notNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   613
        repositoryHolder value: manager repositoryName.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   614
        sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   615
   ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   616
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   617
    "Modified: / 16-08-2006 / 11:07:51 / cg"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   618
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   619
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   620
!StoreSourceCodeManagementSettingsAppl methodsFor:'actions - store'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   621
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   622
addPerStoreModuleDB
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   623
    |module info|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   624
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   625
    acceptChannel value:true.    
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   626
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   627
    module := self perStoreModuleRoot value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   628
    info := StoreSourceCodeManager newDBInfo.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   629
    info hostAndDBName:perStoreModuleHostnameHolder value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   630
    info userName:perStoreModuleUsernameHolder value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   631
    info password:perStoreModulePasswordHolder value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   632
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   633
    self addModule:module withData:(Array with:StoreSourceCodeManager with:info).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   634
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   635
    "Modified: / 08-11-2006 / 19:27:35 / cg"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   636
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   637
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   638
basicSaveStoreSettings
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   639
    |storeHost|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   640
11076
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
   641
    self storeHostnameHolder value notEmptyOrNil ifTrue:[
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
   642
        StoreSourceCodeManager hostAndDBName:(storeHost := self storeHostnameHolder value withoutSeparators).
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
   643
        StoreSourceCodeManager userName:(self storeUsernameHolder value withoutSeparators).
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
   644
        StoreSourceCodeManager password:(self storePasswordHolder value withoutSeparators).
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
   645
    ].
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   646
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   647
    storeHost notEmptyOrNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   648
        StoreSourceCodeManager connectToDatabase.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   649
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   650
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   651
    RecentlyUsedStoreHosts isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   652
        RecentlyUsedStoreHosts := OrderedCollection new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   653
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   654
    (RecentlyUsedStoreHosts includes:storeHost) ifFalse:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   655
        RecentlyUsedStoreHosts addFirst:storeHost.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   656
        RecentlyUsedStoreHosts size > 20 ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   657
            RecentlyUsedStoreHosts removeLast.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   658
        ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   659
    ].
11076
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
   660
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
   661
    "Modified: / 10-01-2012 / 00:32:42 / cg"
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   662
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   663
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   664
browsePerStoreModuleDB
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   665
    |testInfo|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   666
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   667
    testInfo := StoreSourceCodeManager newDBInfo.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   668
    testInfo hostAndDBName:(perStoreModuleHostnameHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   669
    testInfo userName:(perStoreModuleUsernameHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   670
    testInfo password:(perStoreModulePasswordHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   671
    self browseStoreDB:testInfo
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   672
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   673
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   674
browseStoreDB:dbInfo
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   675
    Tools::StoreProjectBrowser openOn:dbInfo
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   676
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   677
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   678
connectPerStoreModuleDB
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   679
    |testInfo|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   680
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   681
    testInfo := StoreSourceCodeManager newDBInfo.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   682
    testInfo hostAndDBName:(perStoreModuleHostnameHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   683
    testInfo userName:(perStoreModuleUsernameHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   684
    testInfo password:(perStoreModulePasswordHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   685
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   686
    (self tryToConnectTo:testInfo)
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   687
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   688
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   689
storeConnect
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   690
    |testInfo|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   691
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   692
    testInfo := StoreSourceCodeManager newDBInfo.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   693
    testInfo hostAndDBName:(storeHostnameHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   694
    testInfo userName:(storeUsernameHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   695
    testInfo password:(storePasswordHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   696
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   697
    (self tryToConnectTo:testInfo) ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   698
        LastStoreHost := storeHostnameHolder value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   699
        LastStoreUser := storeUsernameHolder value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   700
        LastStorePassword := storePasswordHolder value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   701
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   702
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   703
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   704
tryToConnectTo:dbInfo
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   705
    |session|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   706
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   707
    SQL::SQLError handle:[:ex |
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   708
        self warn:('Failed to connect to Database:\\' withCRs,ex description).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   709
        ^ false.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   710
    ] do:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   711
        self withWaitCursorDo:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   712
            session := StoreSourceCodeManager tryToConnectToDatabase:dbInfo.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   713
        ]
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   714
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   715
    session isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   716
        self warn:'OOPS - Failed to connect'.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   717
        ^ false.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   718
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   719
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   720
    self information:('Successfully connected to ',dbInfo dbName,'.').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   721
    session disconnect.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   722
    ^ true
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   723
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   724
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   725
!StoreSourceCodeManagementSettingsAppl methodsFor:'aspects'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   726
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   727
acceptChannel
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   728
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   729
    acceptChannel isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   730
        acceptChannel := TriggerValue new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   731
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   732
    ^ acceptChannel.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   733
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   734
11327
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
   735
initialListOfModules
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
   736
    ^ rootsPerModule keys asList sort.
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   737
11327
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
   738
    "Created: / 02-03-2012 / 14:42:39 / cg"
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   739
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   740
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   741
managerIsCVSSourceCodeManager
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   742
    managerIsCVSSourceCodeManager isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   743
        managerIsCVSSourceCodeManager := (SourceCodeManager notNil and:
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   744
                                         [SourceCodeManager isCVS]) asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   745
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   746
    ^ managerIsCVSSourceCodeManager.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   747
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   748
    "Created: / 16-08-2006 / 10:56:38 / cg"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   749
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   750
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   751
managerIsSmallTeamSourceCodeManager
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   752
    managerIsSmallTeamSourceCodeManager isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   753
        managerIsSmallTeamSourceCodeManager := (SourceCodeManager notNil and:
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   754
                                         [SourceCodeManager isSmallTeam]) asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   755
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   756
    ^ managerIsSmallTeamSourceCodeManager.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   757
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   758
    "Created: / 09-11-2006 / 14:33:53 / cg"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   759
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   760
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   761
managerIsStoreSourceCodeManager
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   762
    managerIsStoreSourceCodeManager isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   763
        managerIsStoreSourceCodeManager := (SourceCodeManager notNil and:
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   764
                                         [SourceCodeManager isStore]) asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   765
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   766
    ^ managerIsStoreSourceCodeManager.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   767
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   768
    "Created: / 16-08-2006 / 10:57:13 / cg"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   769
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   770
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   771
perModuleFieldsEnableHolder
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   772
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   773
    perModuleFieldsEnableHolder isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   774
        perModuleFieldsEnableHolder := true asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   775
        perModuleFieldsEnableHolder addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   776
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   777
    ^ perModuleFieldsEnableHolder.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   778
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   779
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   780
perModuleRoot
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   781
    perModuleRoot isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   782
        perModuleRoot := ValueHolder new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   783
        perModuleRoot addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   784
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   785
    ^ perModuleRoot.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   786
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   787
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   788
perModuleRootModule
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   789
    perModuleRootModule isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   790
        perModuleRootModule := ValueHolder new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   791
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   792
    ^ perModuleRootModule.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   793
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   794
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   795
perStoreModuleFieldsEnableHolder
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   796
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   797
    perSmallTeamModuleFieldsEnableHolder isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   798
        perSmallTeamModuleFieldsEnableHolder := true asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   799
        perSmallTeamModuleFieldsEnableHolder addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   800
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   801
    ^ perSmallTeamModuleFieldsEnableHolder.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   802
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   803
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   804
perStoreModuleHostnameHolder
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   805
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   806
    perStoreModuleHostnameHolder isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   807
        perStoreModuleHostnameHolder := '' asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   808
        perStoreModuleHostnameHolder addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   809
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   810
    ^ perStoreModuleHostnameHolder.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   811
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   812
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   813
perStoreModulePasswordHolder
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   814
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   815
    perStoreModulePasswordHolder isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   816
        perStoreModulePasswordHolder := '' asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   817
        perStoreModulePasswordHolder addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   818
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   819
    ^ perStoreModulePasswordHolder.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   820
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   821
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   822
perStoreModuleRoot
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   823
    perStoreModuleRoot isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   824
        perStoreModuleRoot := ValueHolder new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   825
        perStoreModuleRoot addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   826
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   827
    ^ perStoreModuleRoot.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   828
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   829
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   830
perStoreModuleRootModule
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   831
    perStoreModuleRootModule isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   832
        perStoreModuleRootModule := ValueHolder new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   833
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   834
    ^ perStoreModuleRootModule.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   835
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   836
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   837
perStoreModuleUsernameHolder
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   838
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   839
    perStoreModuleUsernameHolder isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   840
        perStoreModuleUsernameHolder := '' asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   841
        perStoreModuleUsernameHolder addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   842
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   843
    ^ perStoreModuleUsernameHolder.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   844
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   845
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   846
selectedPerModuleRoot
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   847
    selectedPerModuleRoot isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   848
        selectedPerModuleRoot := ValueHolder new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   849
        selectedPerModuleRoot addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   850
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   851
    ^ selectedPerModuleRoot.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   852
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   853
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   854
selectedPerStoreModuleRoot
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   855
    selectedPerStoreModuleRoot isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   856
        selectedPerStoreModuleRoot := ValueHolder new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   857
        selectedPerStoreModuleRoot addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   858
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   859
    ^ selectedPerStoreModuleRoot.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   860
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   861
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   862
storeConnectEnabled
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   863
    storeConnectEnabled isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   864
        storeConnectEnabled := false asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   865
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   866
    ^ storeConnectEnabled.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   867
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   868
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   869
storeConnectInModuleEnabled
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   870
    storeConnectInModuleEnabled isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   871
        storeConnectInModuleEnabled := false asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   872
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   873
    ^ storeConnectInModuleEnabled.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   874
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   875
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   876
storeHostPrototypeList
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   877
    |prototypeList|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   878
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   879
    storeHostPrototypeList isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   880
        prototypeList := OrderedSet new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   881
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   882
        prototypeList add:('public@store.smalltalk-x.de:5432').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   883
        prototypeList add:('public').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   884
        prototypeList add:('stx').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   885
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   886
        OperatingSystem getLoginName = 'cg' ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   887
            prototypeList add:('oyster@store.smalltalk-x.de:5432').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   888
            prototypeList add:('oyster').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   889
        ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   890
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   891
        OperatingSystem getDomainName = 'exept.de' ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   892
            prototypeList add:('stx@exept.exept.de:5432').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   893
        ] ifFalse:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   894
            prototypeList add:('db@host').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   895
            prototypeList add:('db@host:port').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   896
        ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   897
        storeHostPrototypeList := prototypeList asOrderedCollection.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   898
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   899
    ^ storeHostPrototypeList.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   900
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   901
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   902
storeHostnameHolder
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   903
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   904
    storeHostnameHolder isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   905
        storeHostnameHolder := ("LastStoreHost ?" '') asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   906
        storeHostnameHolder addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   907
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   908
    ^ storeHostnameHolder.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   909
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   910
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   911
storeLoginEnabled
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   912
    storeLoginEnabled isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   913
        storeLoginEnabled := false asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   914
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   915
    ^ storeLoginEnabled.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   916
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   917
    "Created: / 16-08-2006 / 11:11:15 / cg"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   918
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   919
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   920
storePasswordHolder
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   921
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   922
    storePasswordHolder isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   923
        storePasswordHolder := ("LastStorePassword ?" '') asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   924
        storePasswordHolder addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   925
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   926
    ^ storePasswordHolder.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   927
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   928
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   929
storeUsernameHolder
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   930
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   931
    storeUsernameHolder isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   932
        storeUsernameHolder := ("LastStoreUser ?" '') asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   933
        storeUsernameHolder addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   934
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   935
    ^ storeUsernameHolder.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   936
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   937
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   938
useManager
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   939
    useManager isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   940
        useManager := ValueHolder new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   941
        useManager onChangeSend:#updateModifiedChannel to:self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   942
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   943
    ^ useManager.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   944
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   945
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   946
!StoreSourceCodeManagementSettingsAppl methodsFor:'change & update'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   947
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   948
selectedPerModuleRootChanged
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   949
    |module entry|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   950
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   951
    self acceptChannel value:true.    
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   952
    module := self selectedPerModuleRoot value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   953
    module isNil ifTrue:[ 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   954
        self removeEnabled value:false.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   955
        self perModuleRootModule value:' '.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   956
        self perModuleRoot value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   957
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   958
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   959
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   960
    entry := rootsPerModule at:module ifAbsent:#().    
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   961
    (entry first = CVSSourceCodeManager) ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   962
        self removeEnabled value:true.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   963
        self perModuleRootModule value:module.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   964
        self perModuleRoot value:(entry at:2).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   965
    ] ifFalse:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   966
        self removeEnabled value:false.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   967
        self perModuleRootModule value:module , ' ',('<<use ',entry first managerTypeName,'>>') allBold.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   968
        self perModuleRoot value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   969
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   970
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   971
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   972
selectedPerStoreModuleRootChanged
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   973
    |module entry|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   974
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   975
    self acceptChannel value:true.    
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   976
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   977
    module := self selectedPerStoreModuleRoot value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   978
    module isNil ifTrue:[ 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   979
        self removeEnabled value:false.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   980
        self perStoreModuleRoot value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   981
        self perStoreModuleHostnameHolder value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   982
        self perStoreModuleUsernameHolder value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   983
        self perStoreModulePasswordHolder value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   984
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   985
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   986
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   987
    entry := rootsPerModule at:module ifAbsent:#().    
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   988
    (entry first = StoreSourceCodeManager) ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   989
        self removeEnabled value:true.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   990
        self perStoreModuleRoot value:module.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   991
        self perStoreModuleHostnameHolder value:(entry at:2) hostAndDBName.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   992
        self perStoreModuleUsernameHolder value:(entry at:2) userName.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   993
        self perStoreModulePasswordHolder value:(entry at:2) password.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   994
    ] ifFalse:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   995
        self removeEnabled value:false.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   996
        self perStoreModuleRoot value:module , ' ',('<<use ',entry first managerTypeName,'>>') allBold.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   997
        self perStoreModuleHostnameHolder value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   998
        self perStoreModuleUsernameHolder value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   999
        self perStoreModulePasswordHolder value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1000
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1001
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1002
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1003
update:something with:aParameter from:changedObject 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1004
    "/ common    
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1005
    changedObject == sourceCacheDir ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1006
        self sourceDirChanged.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1007
        self updateModifiedChannel.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1008
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1009
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1010
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1011
    "/ store
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1012
    changedObject == storeHostnameHolder ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1013
        self updateConnectEnableHolders.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1014
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1015
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1016
    changedObject == storeUsernameHolder ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1017
        self updateConnectEnableHolders.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1018
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1019
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1020
    changedObject == storePasswordHolder ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1021
        self updateConnectEnableHolders.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1022
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1023
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1024
    changedObject == perStoreModuleRoot ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1025
        self updateConnectEnableHolders.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1026
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1027
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1028
    changedObject == perStoreModuleHostnameHolder ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1029
        self updateConnectEnableHolders.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1030
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1031
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1032
    changedObject == perStoreModuleUsernameHolder ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1033
        self updateConnectEnableHolders.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1034
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1035
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1036
    changedObject == perStoreModulePasswordHolder ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1037
        self updateConnectEnableHolders.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1038
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1039
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1040
    changedObject == selectedPerStoreModuleRoot ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1041
        self selectedPerStoreModuleRootChanged.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1042
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1043
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1044
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1045
    super update:something with:aParameter from:changedObject
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1046
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1047
    "Modified: / 18-04-2011 / 18:17:14 / cg"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1048
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1049
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1050
updateConnectEnableHolders
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1051
    self storeConnectEnabled 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1052
        value:(storeHostnameHolder value notEmptyOrNil
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1053
               and:[ storeUsernameHolder value notEmptyOrNil
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1054
               and:[ storePasswordHolder value notEmptyOrNil ]]).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1055
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1056
    self storeConnectInModuleEnabled 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1057
        value:(perStoreModuleHostnameHolder value notEmptyOrNil
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1058
               and:[ perStoreModuleUsernameHolder value notEmptyOrNil
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1059
               and:[ perStoreModulePasswordHolder value notEmptyOrNil ]]).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1060
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1061
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1062
!StoreSourceCodeManagementSettingsAppl methodsFor:'help'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1063
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1064
helpFilename
10481
d92bb3c471e7 changed: #helpFilename
Claus Gittinger <cg@exept.de>
parents: 10031
diff changeset
  1065
    ^ 'Launcher/storeDBSetup.html'
d92bb3c471e7 changed: #helpFilename
Claus Gittinger <cg@exept.de>
parents: 10031
diff changeset
  1066
d92bb3c471e7 changed: #helpFilename
Claus Gittinger <cg@exept.de>
parents: 10031
diff changeset
  1067
    "Modified: / 05-08-2011 / 09:20:28 / cg"
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1068
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1069
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1070
!StoreSourceCodeManagementSettingsAppl methodsFor:'initialization & release'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1071
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1072
initialize
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1073
    (AbstractSourceCodeManager notNil) ifTrue:[ AbstractSourceCodeManager autoload ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1074
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1075
    useManager := false asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1076
    useManager onChangeSend:#updateModifiedChannel to:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1077
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1078
    sourceCacheDir := nil asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1079
    sourceCacheDir addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1080
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1081
    repositoryHolder := '' asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1082
    rootsPerModule := Dictionary new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1083
11126
6ac7a4d1e195 refactored
Claus Gittinger <cg@exept.de>
parents: 11083
diff changeset
  1084
    StoreSourceCodeManager repositoryInfoPerModule 
6ac7a4d1e195 refactored
Claus Gittinger <cg@exept.de>
parents: 11083
diff changeset
  1085
        keysAndValuesDo:[:module :info |
6ac7a4d1e195 refactored
Claus Gittinger <cg@exept.de>
parents: 11083
diff changeset
  1086
            module withoutSeparators ~= module ifTrue:[
6ac7a4d1e195 refactored
Claus Gittinger <cg@exept.de>
parents: 11083
diff changeset
  1087
                self halt:'should not happen any longer'
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1088
            ].
11126
6ac7a4d1e195 refactored
Claus Gittinger <cg@exept.de>
parents: 11083
diff changeset
  1089
            rootsPerModule at:module put:(Array with:StoreSourceCodeManager with:info)
6ac7a4d1e195 refactored
Claus Gittinger <cg@exept.de>
parents: 11083
diff changeset
  1090
        ].
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1091
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1092
    super initialize.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1093
11126
6ac7a4d1e195 refactored
Claus Gittinger <cg@exept.de>
parents: 11083
diff changeset
  1094
    "Modified: / 14-01-2012 / 20:28:30 / cg"
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1095
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1096
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1097
!StoreSourceCodeManagementSettingsAppl methodsFor:'queries'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1098
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1099
cvsRootFromCVSRootFileOrNil
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1100
    |cvsDir cvsRootFile cvsRoot|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1101
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1102
    cvsDir := 'CVS' asFilename.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1103
    cvsDir isDirectory ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1104
        cvsRootFile := cvsDir construct:'Root'.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1105
        cvsRootFile isReadable ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1106
            cvsRoot := cvsRootFile contents firstIfEmpty:nil.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1107
        ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1108
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1109
    ^ cvsRoot
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1110
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1111
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1112
hasManager
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1113
    "true if ANY source code management class is available"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1114
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1115
    ^ AbstractSourceCodeManager notNil and:[AbstractSourceCodeManager isLoaded]
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1116
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1117
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1118
hasUnsavedChanges
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1119
    ((StoreSourceCodeManager cacheDirectoryName ? '') ~= (self sourceCacheDir value ? '')) ifTrue:[^ true].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1120
11076
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
  1121
    (StoreSourceCodeManager shownInBrowserMenus ~= self shownInBrowserMenusHolder value)
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
  1122
        ifTrue:[^ true].
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
  1123
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1124
    (Array with:StoreSourceCodeManager) "self availableManagers" do:[:mgr |
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1125
        |modules|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1126
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1127
        modules := rootsPerModule select:[:entry | entry first == mgr].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1128
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1129
        mgr repositoryInfoPerModule keysAndValuesDo:[:module :info |
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1130
            ((modules includesKey:module) and:[info = (modules at:module) second])
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1131
            ifFalse:[^ true].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1132
        ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1133
        modules keysAndValuesDo:[:module :info|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1134
            ((mgr repositoryInfoPerModule includesKey:module) and:[(mgr repositoryInfoPerModule at:module) = info second])
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1135
            ifFalse:[^ true].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1136
        ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1137
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1138
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1139
    ((StoreSourceCodeManager hostAndDBName ? '') ~= (self storeHostnameHolder value ? '') withoutSeparators)  
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1140
        ifTrue:[^ true].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1141
    ((StoreSourceCodeManager userName ? '') ~= (self storeUsernameHolder value ? '') withoutSeparators)  
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1142
        ifTrue:[^ true].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1143
    ((StoreSourceCodeManager password ? '') ~= (self storePasswordHolder value ? '') withoutSeparators)  
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1144
        ifTrue:[^ true].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1145
            
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1146
    ^ false
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1147
11076
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
  1148
    "Modified: / 10-01-2012 / 00:31:49 / cg"
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1149
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1150
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1151
!StoreSourceCodeManagementSettingsAppl class methodsFor:'documentation'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1152
11008
faed3b21631c helpSpec, cache settings only in top page
Claus Gittinger <cg@exept.de>
parents: 10987
diff changeset
  1153
version
11623
b748d338ff6b Remove obsolete #sourceDirChanged
Stefan Vogel <sv@exept.de>
parents: 11427
diff changeset
  1154
    ^ '$Header: /cvs/stx/stx/libtool/StoreSourceCodeManagementSettingsAppl.st,v 1.18 2012-07-19 15:28:21 stefan Exp $'
11008
faed3b21631c helpSpec, cache settings only in top page
Claus Gittinger <cg@exept.de>
parents: 10987
diff changeset
  1155
!
faed3b21631c helpSpec, cache settings only in top page
Claus Gittinger <cg@exept.de>
parents: 10987
diff changeset
  1156
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1157
version_CVS
11623
b748d338ff6b Remove obsolete #sourceDirChanged
Stefan Vogel <sv@exept.de>
parents: 11427
diff changeset
  1158
    ^ '$Header: /cvs/stx/stx/libtool/StoreSourceCodeManagementSettingsAppl.st,v 1.18 2012-07-19 15:28:21 stefan Exp $'
10031
ab9f8be764b6 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9871
diff changeset
  1159
!
ab9f8be764b6 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9871
diff changeset
  1160
ab9f8be764b6 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9871
diff changeset
  1161
version_SVN
ab9f8be764b6 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9871
diff changeset
  1162
    ^ '§Id§'
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1163
! !