StoreSourceCodeManagementSettingsAppl.st
author Claus Gittinger <cg@exept.de>
Sun, 13 Apr 2014 19:29:35 +0200
changeset 14220 572e61085aec
parent 13237 0442e356455b
child 13289 cc75e3cd0362
child 14245 e703e2c4f6c8
permissions -rw-r--r--
class: Tools::FontSettingsApplication class definition
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
        ].
13237
0442e356455b Use #isWritableDirectory
Stefan Vogel <sv@exept.de>
parents: 11656
diff changeset
   564
        (fn isWritableDirectory and:[fn isReadable]) ifTrue:[
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   565
            StoreSourceCodeManager cacheDirectoryName:nm.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   566
        ] ifFalse:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   567
            self warn:'Invalid sourceCache directory.'
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   568
        ]
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   569
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   570
11072
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   571
    modules := rootsPerModule select:[:entry | entry first == StoreSourceCodeManager].
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   572
    infoPerModule := Dictionary new.
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   573
    modules keysAndValuesDo:[:module :entry | 
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   574
        entry first == StoreSourceCodeManager ifTrue:[
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   575
            infoPerModule at:module put:(entry second).
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   576
        ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   577
    ].
11072
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   578
    StoreSourceCodeManager repositoryInfoPerModule:infoPerModule.
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   579
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   580
    StoreSourceCodeManager shownInBrowserMenus:self shownInBrowserMenusHolder value. 
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   581
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   582
    self basicSaveStoreSettings.
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 sourceCacheDir value:(StoreSourceCodeManager cacheDirectoryName).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   585
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   586
    DebugView newDebugger. "/ ???
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   587
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   588
    self acceptChannel value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   589
11072
4dad2f9f15c6 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11066
diff changeset
   590
    "Modified: / 10-01-2012 / 00:22:56 / cg"
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   591
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   592
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   593
removePerModuleRoot
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   594
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   595
    |module|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   596
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   597
    acceptChannel value:true.    
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   598
    module := self perModuleRootModule value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   599
    self listOfModules remove:module ifAbsent:nil.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   600
    rootsPerModule removeKey:module ifAbsent:nil.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   601
    self perModuleRootModule value:nil.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   602
    self perModuleRoot value:nil.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   603
    self updateModifiedChannel.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   604
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   605
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   606
setupSourceCodeManager
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   607
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   608
   AbstractLauncherApplication::LauncherDialogs cvsConfigurationDialog.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   609
   manager := (Smalltalk at:#SourceCodeManager).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   610
   manager notNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   611
        repositoryHolder value: manager repositoryName.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   612
        sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   613
   ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   614
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   615
    "Modified: / 16-08-2006 / 11:07:51 / cg"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   616
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   617
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   618
!StoreSourceCodeManagementSettingsAppl methodsFor:'actions - store'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   619
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   620
addPerStoreModuleDB
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   621
    |module info|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   622
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   623
    acceptChannel value:true.    
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   624
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   625
    module := self perStoreModuleRoot value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   626
    info := StoreSourceCodeManager newDBInfo.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   627
    info hostAndDBName:perStoreModuleHostnameHolder value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   628
    info userName:perStoreModuleUsernameHolder value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   629
    info password:perStoreModulePasswordHolder value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   630
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   631
    self addModule:module withData:(Array with:StoreSourceCodeManager with:info).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   632
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   633
    "Modified: / 08-11-2006 / 19:27:35 / cg"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   634
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   635
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   636
basicSaveStoreSettings
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   637
    |storeHost|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   638
11076
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
   639
    self storeHostnameHolder value notEmptyOrNil ifTrue:[
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
   640
        StoreSourceCodeManager hostAndDBName:(storeHost := self storeHostnameHolder value withoutSeparators).
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
   641
        StoreSourceCodeManager userName:(self storeUsernameHolder value withoutSeparators).
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
   642
        StoreSourceCodeManager password:(self storePasswordHolder value withoutSeparators).
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
   643
    ].
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   644
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   645
    storeHost notEmptyOrNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   646
        StoreSourceCodeManager connectToDatabase.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   647
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   648
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   649
    RecentlyUsedStoreHosts isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   650
        RecentlyUsedStoreHosts := OrderedCollection new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   651
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   652
    (RecentlyUsedStoreHosts includes:storeHost) ifFalse:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   653
        RecentlyUsedStoreHosts addFirst:storeHost.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   654
        RecentlyUsedStoreHosts size > 20 ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   655
            RecentlyUsedStoreHosts removeLast.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   656
        ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   657
    ].
11076
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
   658
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
   659
    "Modified: / 10-01-2012 / 00:32:42 / cg"
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   660
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   661
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   662
browsePerStoreModuleDB
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   663
    |testInfo|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   664
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   665
    testInfo := StoreSourceCodeManager newDBInfo.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   666
    testInfo hostAndDBName:(perStoreModuleHostnameHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   667
    testInfo userName:(perStoreModuleUsernameHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   668
    testInfo password:(perStoreModulePasswordHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   669
    self browseStoreDB:testInfo
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   670
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   671
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   672
browseStoreDB:dbInfo
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   673
    Tools::StoreProjectBrowser openOn:dbInfo
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   674
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   675
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   676
connectPerStoreModuleDB
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   677
    |testInfo|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   678
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   679
    testInfo := StoreSourceCodeManager newDBInfo.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   680
    testInfo hostAndDBName:(perStoreModuleHostnameHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   681
    testInfo userName:(perStoreModuleUsernameHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   682
    testInfo password:(perStoreModulePasswordHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   683
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   684
    (self tryToConnectTo:testInfo)
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   685
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   686
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   687
storeConnect
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   688
    |testInfo|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   689
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   690
    testInfo := StoreSourceCodeManager newDBInfo.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   691
    testInfo hostAndDBName:(storeHostnameHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   692
    testInfo userName:(storeUsernameHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   693
    testInfo password:(storePasswordHolder value).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   694
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   695
    (self tryToConnectTo:testInfo) ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   696
        LastStoreHost := storeHostnameHolder value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   697
        LastStoreUser := storeUsernameHolder value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   698
        LastStorePassword := storePasswordHolder value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   699
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   700
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   701
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   702
tryToConnectTo:dbInfo
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   703
    |session|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   704
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   705
    SQL::SQLError handle:[:ex |
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   706
        self warn:('Failed to connect to Database:\\' withCRs,ex description).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   707
        ^ false.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   708
    ] do:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   709
        self withWaitCursorDo:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   710
            session := StoreSourceCodeManager tryToConnectToDatabase:dbInfo.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   711
        ]
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   712
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   713
    session isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   714
        self warn:'OOPS - Failed to connect'.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   715
        ^ false.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   716
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   717
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   718
    self information:('Successfully connected to ',dbInfo dbName,'.').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   719
    session disconnect.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   720
    ^ true
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   721
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   722
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   723
!StoreSourceCodeManagementSettingsAppl methodsFor:'aspects'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   724
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   725
acceptChannel
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 isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   728
        acceptChannel := TriggerValue new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   729
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   730
    ^ acceptChannel.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   731
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   732
11327
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
   733
initialListOfModules
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
   734
    ^ rootsPerModule keys asList sort.
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   735
11327
a47b9e7181e8 refactored common code
Claus Gittinger <cg@exept.de>
parents: 11321
diff changeset
   736
    "Created: / 02-03-2012 / 14:42:39 / cg"
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   737
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   738
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   739
managerIsCVSSourceCodeManager
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   740
    managerIsCVSSourceCodeManager isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   741
        managerIsCVSSourceCodeManager := (SourceCodeManager notNil and:
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   742
                                         [SourceCodeManager isCVS]) asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   743
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   744
    ^ managerIsCVSSourceCodeManager.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   745
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   746
    "Created: / 16-08-2006 / 10:56:38 / cg"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   747
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   748
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   749
managerIsSmallTeamSourceCodeManager
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   750
    managerIsSmallTeamSourceCodeManager isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   751
        managerIsSmallTeamSourceCodeManager := (SourceCodeManager notNil and:
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   752
                                         [SourceCodeManager isSmallTeam]) asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   753
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   754
    ^ managerIsSmallTeamSourceCodeManager.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   755
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   756
    "Created: / 09-11-2006 / 14:33:53 / cg"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   757
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   758
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   759
managerIsStoreSourceCodeManager
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   760
    managerIsStoreSourceCodeManager isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   761
        managerIsStoreSourceCodeManager := (SourceCodeManager notNil and:
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   762
                                         [SourceCodeManager isStore]) asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   763
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   764
    ^ managerIsStoreSourceCodeManager.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   765
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   766
    "Created: / 16-08-2006 / 10:57:13 / cg"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   767
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   768
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   769
perModuleFieldsEnableHolder
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 isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   772
        perModuleFieldsEnableHolder := true asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   773
        perModuleFieldsEnableHolder addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   774
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   775
    ^ perModuleFieldsEnableHolder.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   776
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   777
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   778
perModuleRoot
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   779
    perModuleRoot isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   780
        perModuleRoot := ValueHolder new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   781
        perModuleRoot addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   782
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   783
    ^ perModuleRoot.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   784
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   785
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   786
perModuleRootModule
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   787
    perModuleRootModule isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   788
        perModuleRootModule := ValueHolder new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   789
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   790
    ^ perModuleRootModule.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   791
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   792
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   793
perStoreModuleFieldsEnableHolder
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   794
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   795
    perSmallTeamModuleFieldsEnableHolder isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   796
        perSmallTeamModuleFieldsEnableHolder := true asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   797
        perSmallTeamModuleFieldsEnableHolder addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   798
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   799
    ^ perSmallTeamModuleFieldsEnableHolder.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   800
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   801
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   802
perStoreModuleHostnameHolder
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 isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   805
        perStoreModuleHostnameHolder := '' asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   806
        perStoreModuleHostnameHolder addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   807
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   808
    ^ perStoreModuleHostnameHolder.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   809
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   810
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   811
perStoreModulePasswordHolder
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 isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   814
        perStoreModulePasswordHolder := '' asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   815
        perStoreModulePasswordHolder addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   816
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   817
    ^ perStoreModulePasswordHolder.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   818
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   819
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   820
perStoreModuleRoot
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   821
    perStoreModuleRoot isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   822
        perStoreModuleRoot := ValueHolder new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   823
        perStoreModuleRoot addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   824
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   825
    ^ perStoreModuleRoot.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   826
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   827
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   828
perStoreModuleRootModule
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   829
    perStoreModuleRootModule isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   830
        perStoreModuleRootModule := ValueHolder new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   831
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   832
    ^ perStoreModuleRootModule.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   833
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   834
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   835
perStoreModuleUsernameHolder
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 isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   838
        perStoreModuleUsernameHolder := '' asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   839
        perStoreModuleUsernameHolder addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   840
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   841
    ^ perStoreModuleUsernameHolder.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   842
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   843
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   844
selectedPerModuleRoot
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   845
    selectedPerModuleRoot isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   846
        selectedPerModuleRoot := ValueHolder new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   847
        selectedPerModuleRoot addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   848
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   849
    ^ selectedPerModuleRoot.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   850
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   851
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   852
selectedPerStoreModuleRoot
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   853
    selectedPerStoreModuleRoot isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   854
        selectedPerStoreModuleRoot := ValueHolder new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   855
        selectedPerStoreModuleRoot addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   856
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   857
    ^ selectedPerStoreModuleRoot.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   858
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   859
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   860
storeConnectEnabled
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   861
    storeConnectEnabled isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   862
        storeConnectEnabled := false asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   863
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   864
    ^ storeConnectEnabled.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   865
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   866
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   867
storeConnectInModuleEnabled
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   868
    storeConnectInModuleEnabled isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   869
        storeConnectInModuleEnabled := false asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   870
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   871
    ^ storeConnectInModuleEnabled.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   872
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   873
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   874
storeHostPrototypeList
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   875
    |prototypeList|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   876
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   877
    storeHostPrototypeList isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   878
        prototypeList := OrderedSet new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   879
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   880
        prototypeList add:('public@store.smalltalk-x.de:5432').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   881
        prototypeList add:('public').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   882
        prototypeList add:('stx').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   883
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   884
        OperatingSystem getLoginName = 'cg' ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   885
            prototypeList add:('oyster@store.smalltalk-x.de:5432').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   886
            prototypeList add:('oyster').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   887
        ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   888
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   889
        OperatingSystem getDomainName = 'exept.de' ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   890
            prototypeList add:('stx@exept.exept.de:5432').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   891
        ] ifFalse:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   892
            prototypeList add:('db@host').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   893
            prototypeList add:('db@host:port').
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   894
        ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   895
        storeHostPrototypeList := prototypeList asOrderedCollection.
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.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   898
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   899
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   900
storeHostnameHolder
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 isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   903
        storeHostnameHolder := ("LastStoreHost ?" '') asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   904
        storeHostnameHolder addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   905
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   906
    ^ storeHostnameHolder.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   907
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   908
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   909
storeLoginEnabled
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   910
    storeLoginEnabled isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   911
        storeLoginEnabled := false asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   912
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   913
    ^ storeLoginEnabled.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   914
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   915
    "Created: / 16-08-2006 / 11:11:15 / cg"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   916
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   917
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   918
storePasswordHolder
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 isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   921
        storePasswordHolder := ("LastStorePassword ?" '') asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   922
        storePasswordHolder addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   923
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   924
    ^ storePasswordHolder.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   925
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   926
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   927
storeUsernameHolder
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 isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   930
        storeUsernameHolder := ("LastStoreUser ?" '') asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   931
        storeUsernameHolder addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   932
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   933
    ^ storeUsernameHolder.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   934
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   935
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   936
useManager
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   937
    useManager isNil ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   938
        useManager := ValueHolder new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   939
        useManager onChangeSend:#updateModifiedChannel to:self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   940
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   941
    ^ useManager.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   942
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   943
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   944
!StoreSourceCodeManagementSettingsAppl methodsFor:'change & update'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   945
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   946
selectedPerModuleRootChanged
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   947
    |module entry|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   948
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   949
    self acceptChannel value:true.    
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   950
    module := self selectedPerModuleRoot value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   951
    module isNil ifTrue:[ 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   952
        self removeEnabled value:false.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   953
        self perModuleRootModule value:' '.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   954
        self perModuleRoot value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   955
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   956
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   957
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   958
    entry := rootsPerModule at:module ifAbsent:#().    
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   959
    (entry first = CVSSourceCodeManager) ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   960
        self removeEnabled value:true.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   961
        self perModuleRootModule value:module.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   962
        self perModuleRoot value:(entry at:2).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   963
    ] ifFalse:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   964
        self removeEnabled value:false.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   965
        self perModuleRootModule value:module , ' ',('<<use ',entry first managerTypeName,'>>') allBold.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   966
        self perModuleRoot value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   967
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   968
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   969
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   970
selectedPerStoreModuleRootChanged
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   971
    |module entry|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   972
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   973
    self acceptChannel value:true.    
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   974
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   975
    module := self selectedPerStoreModuleRoot value.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   976
    module isNil ifTrue:[ 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   977
        self removeEnabled value:false.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   978
        self perStoreModuleRoot value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   979
        self perStoreModuleHostnameHolder value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   980
        self perStoreModuleUsernameHolder value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   981
        self perStoreModulePasswordHolder value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   982
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   983
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   984
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   985
    entry := rootsPerModule at:module ifAbsent:#().    
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   986
    (entry first = StoreSourceCodeManager) ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   987
        self removeEnabled value:true.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   988
        self perStoreModuleRoot value:module.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   989
        self perStoreModuleHostnameHolder value:(entry at:2) hostAndDBName.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   990
        self perStoreModuleUsernameHolder value:(entry at:2) userName.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   991
        self perStoreModulePasswordHolder value:(entry at:2) password.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   992
    ] ifFalse:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   993
        self removeEnabled value:false.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   994
        self perStoreModuleRoot value:module , ' ',('<<use ',entry first managerTypeName,'>>') allBold.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   995
        self perStoreModuleHostnameHolder value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   996
        self perStoreModuleUsernameHolder value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   997
        self perStoreModulePasswordHolder value:''.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   998
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   999
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1000
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1001
update:something with:aParameter from:changedObject 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1002
    "/ store
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1003
    changedObject == storeHostnameHolder ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1004
        self updateConnectEnableHolders.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1005
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1006
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1007
    changedObject == storeUsernameHolder ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1008
        self updateConnectEnableHolders.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1009
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1010
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1011
    changedObject == storePasswordHolder ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1012
        self updateConnectEnableHolders.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1013
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1014
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1015
    changedObject == perStoreModuleRoot ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1016
        self updateConnectEnableHolders.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1017
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1018
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1019
    changedObject == perStoreModuleHostnameHolder ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1020
        self updateConnectEnableHolders.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1021
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1022
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1023
    changedObject == perStoreModuleUsernameHolder ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1024
        self updateConnectEnableHolders.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1025
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1026
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1027
    changedObject == perStoreModulePasswordHolder ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1028
        self updateConnectEnableHolders.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1029
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1030
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1031
    changedObject == selectedPerStoreModuleRoot ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1032
        self selectedPerStoreModuleRootChanged.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1033
        ^ self
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1034
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1035
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1036
    super update:something with:aParameter from:changedObject
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1037
11656
7c2dda57187c changed: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 11623
diff changeset
  1038
    "Modified: / 24-07-2012 / 15:45:26 / cg"
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1039
!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1040
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1041
updateConnectEnableHolders
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1042
    self storeConnectEnabled 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1043
        value:(storeHostnameHolder value notEmptyOrNil
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1044
               and:[ storeUsernameHolder value notEmptyOrNil
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1045
               and:[ storePasswordHolder value notEmptyOrNil ]]).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1046
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1047
    self storeConnectInModuleEnabled 
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1048
        value:(perStoreModuleHostnameHolder value notEmptyOrNil
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1049
               and:[ perStoreModuleUsernameHolder value notEmptyOrNil
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1050
               and:[ perStoreModulePasswordHolder value notEmptyOrNil ]]).
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1051
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1052
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1053
!StoreSourceCodeManagementSettingsAppl methodsFor:'help'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1054
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1055
helpFilename
10481
d92bb3c471e7 changed: #helpFilename
Claus Gittinger <cg@exept.de>
parents: 10031
diff changeset
  1056
    ^ 'Launcher/storeDBSetup.html'
d92bb3c471e7 changed: #helpFilename
Claus Gittinger <cg@exept.de>
parents: 10031
diff changeset
  1057
d92bb3c471e7 changed: #helpFilename
Claus Gittinger <cg@exept.de>
parents: 10031
diff changeset
  1058
    "Modified: / 05-08-2011 / 09:20:28 / cg"
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1059
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1060
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1061
!StoreSourceCodeManagementSettingsAppl methodsFor:'initialization & release'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1062
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1063
initialize
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1064
    (AbstractSourceCodeManager notNil) ifTrue:[ AbstractSourceCodeManager autoload ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1065
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1066
    useManager := false asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1067
    useManager onChangeSend:#updateModifiedChannel to:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1068
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1069
    sourceCacheDir := nil asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1070
    sourceCacheDir addDependent:self.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1071
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1072
    repositoryHolder := '' asValue.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1073
    rootsPerModule := Dictionary new.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1074
11126
6ac7a4d1e195 refactored
Claus Gittinger <cg@exept.de>
parents: 11083
diff changeset
  1075
    StoreSourceCodeManager repositoryInfoPerModule 
6ac7a4d1e195 refactored
Claus Gittinger <cg@exept.de>
parents: 11083
diff changeset
  1076
        keysAndValuesDo:[:module :info |
6ac7a4d1e195 refactored
Claus Gittinger <cg@exept.de>
parents: 11083
diff changeset
  1077
            module withoutSeparators ~= module ifTrue:[
6ac7a4d1e195 refactored
Claus Gittinger <cg@exept.de>
parents: 11083
diff changeset
  1078
                self halt:'should not happen any longer'
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1079
            ].
11126
6ac7a4d1e195 refactored
Claus Gittinger <cg@exept.de>
parents: 11083
diff changeset
  1080
            rootsPerModule at:module put:(Array with:StoreSourceCodeManager with:info)
6ac7a4d1e195 refactored
Claus Gittinger <cg@exept.de>
parents: 11083
diff changeset
  1081
        ].
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1082
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1083
    super initialize.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1084
11126
6ac7a4d1e195 refactored
Claus Gittinger <cg@exept.de>
parents: 11083
diff changeset
  1085
    "Modified: / 14-01-2012 / 20:28:30 / cg"
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1086
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1087
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1088
!StoreSourceCodeManagementSettingsAppl methodsFor:'queries'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1089
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1090
cvsRootFromCVSRootFileOrNil
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1091
    |cvsDir cvsRootFile cvsRoot|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1092
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1093
    cvsDir := 'CVS' asFilename.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1094
    cvsDir isDirectory ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1095
        cvsRootFile := cvsDir construct:'Root'.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1096
        cvsRootFile isReadable ifTrue:[
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1097
            cvsRoot := cvsRootFile contents firstIfEmpty:nil.
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1098
        ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1099
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1100
    ^ 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
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1103
hasManager
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1104
    "true if ANY source code management class is available"
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1105
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1106
    ^ AbstractSourceCodeManager notNil and:[AbstractSourceCodeManager isLoaded]
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
hasUnsavedChanges
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1110
    ((StoreSourceCodeManager cacheDirectoryName ? '') ~= (self sourceCacheDir value ? '')) ifTrue:[^ true].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1111
11076
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
  1112
    (StoreSourceCodeManager shownInBrowserMenus ~= self shownInBrowserMenusHolder value)
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
  1113
        ifTrue:[^ true].
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
  1114
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1115
    (Array with:StoreSourceCodeManager) "self availableManagers" do:[:mgr |
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1116
        |modules|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1117
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1118
        modules := rootsPerModule select:[:entry | entry first == mgr].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1119
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1120
        mgr repositoryInfoPerModule keysAndValuesDo:[:module :info |
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1121
            ((modules includesKey:module) and:[info = (modules at:module) second])
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1122
            ifFalse:[^ true].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1123
        ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1124
        modules keysAndValuesDo:[:module :info|
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1125
            ((mgr repositoryInfoPerModule includesKey:module) and:[(mgr repositoryInfoPerModule at:module) = info second])
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1126
            ifFalse:[^ true].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1127
        ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1128
    ].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1129
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1130
    ((StoreSourceCodeManager hostAndDBName ? '') ~= (self storeHostnameHolder value ? '') withoutSeparators)  
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1131
        ifTrue:[^ true].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1132
    ((StoreSourceCodeManager userName ? '') ~= (self storeUsernameHolder value ? '') withoutSeparators)  
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1133
        ifTrue:[^ true].
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1134
    ((StoreSourceCodeManager password ? '') ~= (self storePasswordHolder value ? '') withoutSeparators)  
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1135
        ifTrue:[^ 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
    ^ false
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1138
11076
a20cca29f843 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11072
diff changeset
  1139
    "Modified: / 10-01-2012 / 00:31:49 / cg"
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1140
! !
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1141
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1142
!StoreSourceCodeManagementSettingsAppl class methodsFor:'documentation'!
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1143
11008
faed3b21631c helpSpec, cache settings only in top page
Claus Gittinger <cg@exept.de>
parents: 10987
diff changeset
  1144
version
13237
0442e356455b Use #isWritableDirectory
Stefan Vogel <sv@exept.de>
parents: 11656
diff changeset
  1145
    ^ '$Header: /cvs/stx/stx/libtool/StoreSourceCodeManagementSettingsAppl.st,v 1.20 2013-07-29 14:08:24 stefan Exp $'
11008
faed3b21631c helpSpec, cache settings only in top page
Claus Gittinger <cg@exept.de>
parents: 10987
diff changeset
  1146
!
faed3b21631c helpSpec, cache settings only in top page
Claus Gittinger <cg@exept.de>
parents: 10987
diff changeset
  1147
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1148
version_CVS
13237
0442e356455b Use #isWritableDirectory
Stefan Vogel <sv@exept.de>
parents: 11656
diff changeset
  1149
    ^ '$Header: /cvs/stx/stx/libtool/StoreSourceCodeManagementSettingsAppl.st,v 1.20 2013-07-29 14:08:24 stefan Exp $'
10031
ab9f8be764b6 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9871
diff changeset
  1150
!
ab9f8be764b6 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9871
diff changeset
  1151
ab9f8be764b6 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9871
diff changeset
  1152
version_SVN
13237
0442e356455b Use #isWritableDirectory
Stefan Vogel <sv@exept.de>
parents: 11656
diff changeset
  1153
    ^ '$Id: StoreSourceCodeManagementSettingsAppl.st,v 1.20 2013-07-29 14:08:24 stefan Exp $'
9824
8da0bd3562a9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1154
! !
13237
0442e356455b Use #isWritableDirectory
Stefan Vogel <sv@exept.de>
parents: 11656
diff changeset
  1155