FileBasedSourceCodeManagementSettingsAppl.st
author Claus Gittinger <cg@exept.de>
Tue, 10 Jan 2012 00:23:10 +0100
changeset 11067 aa11bad9a498
parent 11065 e57980bdbf2f
child 11073 454df119de86
permissions -rw-r--r--
preps for \"showInBrowserMenus\"
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 2011 by eXept Software AG
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libtool' }"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
AbstractSourceCodeManagementSettingsAppl subclass:#FileBasedSourceCodeManagementSettingsAppl
11000
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
    15
	instanceVariableNames:'listOfModules removeEnabled acceptChannel pathPerModule
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
		verboseSourceCodeAccess repositoryPathHolder perModulePath
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
		perModulePathModule selectedPerModulePath'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:'RecentlyUsedCVSRoots RecentlyUsedStoreHosts
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
		RecentlyUsedSmallTeamHosts LastStoreHost LastStoreUser
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
		LastStorePassword'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
	poolDictionaries:''
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
	category:'System-SourceCodeManagement'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
!FileBasedSourceCodeManagementSettingsAppl class methodsFor:'documentation'!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
copyright
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 COPYRIGHT (c) 2011 by eXept Software AG
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
              All Rights Reserved
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 This software is furnished under a license and may be used
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 only in accordance with the terms of that license and with the
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 be provided or otherwise made available to, or used by, any
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
 other person.  No title to or ownership of the software is
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
 hereby transferred.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
documentation
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
    This settings app controls the parameters of the simple FileBasedSourceCodeManager.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
! !
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
!FileBasedSourceCodeManagementSettingsAppl class methodsFor:'defaults'!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
defaultRepositoryPath
11000
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
    50
    ^ FileBasedSourceCodeManager defaultRepositoryPath
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
    "Created: / 21-12-2011 / 14:55:40 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
! !
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
11030
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    55
!FileBasedSourceCodeManagementSettingsAppl class methodsFor:'help specs'!
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    56
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    57
flyByHelpSpec
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    58
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    59
     by the UIHelpTool of ST/X."
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    60
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    61
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    62
     the UIHelpTool may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    63
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    64
    "
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    65
     UIHelpTool openOnClass:FileBasedSourceCodeManagementSettingsAppl    
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    66
    "
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    67
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    68
    <resource: #help>
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    69
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    70
    ^ super flyByHelpSpec addPairsFrom:#(
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    71
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    72
#defaultRepositoryPath
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    73
'The default repository directory used for all modules not listed below'
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    74
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    75
#perModuleModule
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    76
'The module for which a specific directory is defined'
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    77
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    78
#perModuleRepositoryPath
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    79
'The repository directory of this module'
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    80
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    81
#repositoryPathPerModule
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    82
'Module specific repository directories.'
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    83
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    84
)
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    85
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    86
    "Created: / 25-12-2011 / 14:00:06 / cg"
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    87
! !
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
    88
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
!FileBasedSourceCodeManagementSettingsAppl class methodsFor:'image specs'!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
defaultIcon
11011
Claus Gittinger <cg@exept.de>
parents: 11000
diff changeset
    92
    ^ self defaultIcon2
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
    "Created: / 21-12-2011 / 14:51:12 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
defaultIcon1
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
    "This resource specification was automatically generated
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
     by the ImageEditor of ST/X."
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
    "Do not manually edit this!! If it is corrupted,
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
     the ImageEditor may not be able to read the specification."
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
    "
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
     self defaultIcon1 inspect
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
     ImageEditor openOnClass:self andSelector:#defaultIcon1
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
     Icon flushCachedIcons
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
    "
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
    <resource: #image>
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
    ^Icon
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
        constantNamed:'FileBasedSourceCodeManagementSettingsAppl class defaultIcon1'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
        ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B_''92\@@@@@@@@@@@@@@@@@@@@@@B\''9>_''90@@@@@@@@@@@@@@@@@
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
@@B[''9<@@@@@''@@@@@@@@@@@@@@@@@@@''I6\@@@@@@@@@@@@@@@@@@@@@@B\''I>^'':@@@JD@@@@@@@@@@@@@@@@GA)2^''900LJF!!(S@0LC@0LH1="0@@A2 (
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
''JT(X:F$)JN!![&9.[&:K#'',@@E((X3M.[*F!!(*F!!(R6U%IBYM&5 @@@!!L:D3N3-KKZF!!EBBS$YZRA ROJ @@HQQK(ZF!!(ZF!!&''Y6D9^WG9]/B9 @@BE3XVF"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
(ZF!!&&M#IBP(JC<_YR*X@@AFZ4)QK&8<N3, HB@3L68JO1\*@@@@QUD%W4\ \2@ RD +EAHR]Q(,@@@@@GDUL''P U3EHLT!!UUQPRD''TZK@@@@@@MNQ$[W"M*
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
\@T^APUS^T5$M@@@@@@@CWYP^U%YVQ0\Y34XOTP7U @@@@@@@@L>WT1LI$0&X$9&VAXQ[@@@@@@@@@A\P$QRPF!!2BG]AJT$@@@@@@@@@@@@@RTM)GS(BD@@@
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[223 191 95 128 127 112 160 144 128 175 143 112 224 223 207 255 224 127 207 192 160 207 175 112 144 112 48 224 192 128 240 224 191 192 176 144 239 224 223 175 143 111 239 224 176 223 192 111 191 175 160 159 112 64 255 240 176 240 240 208 255 239 176 240 208 127 160 127 63 176 159 112 255 224 96 207 160 64 224 208 175 239 208 144 240 223 95 128 96 64 240 224 127 255 240 224 255 239 175 192 160 111 255 255 224 255 223 112 255 240 223 255 223 143 255 208 64 208 192 191 255 255 223 160 143 127 160 144 111 240 240 175 160 159 112 240 239 176 208 176 111 239 223 159 207 176 127 255 224 144 239 208 112 255 240 192 175 159 128 240 239 175 192 176 159 224 207 111 207 191 128 239 208 111 144 112 96 255 240 191 255 239 192 240 224 95 192 144 48 240 239 208 224 192 64 144 112 95 160 127 47 127 80 47 255 224 111 176 144 96 176 159 96 240 223 176 240 239 144 176 175 159 240 224 144 255 239 191 240 208 64 255 239 128 239 208 79 223 208 208 191 144 64 240 223 143 240 208 63 255 239 127 240 240 192 255 239 159 144 112 79 240 224 143 191 159 63 240 223 80 207 176 112 240 240 191 175 143 127 224 192 112 240 223 112 208 176 80 176 159 127 255 224 160 240 223 79 255 240 208 207 191 112 239 239 207 208 176 79 255 223 95 192 160 63 128 111 48 255 223 127 255 224 159 159 127 95 176 160 112 255 240 207 255 255 240 240 224 112 176 143 96 160 143 48 240 239 160 207 160 80 239 223 175 239 192 96 143 111 64 160 143 95 255 224 128 255 248 200 255 248 24 15 56 160 255 248 88 239 232 240 240 240 240 255 248 152 48 80 176 255 248 96 48 88 176 240 240 248 207 216 240 223 216 224 255 248 48 224 224 232 255 248 176 255 248 248 240 144 24 255 248 136 63 96 184 240 208 24 239 239 224 176 159 111 240 207 96 207 160 127 240 207 111 191 191 160 223 208 175 240 208 111 255 255 239 192 176 175 208 207 176 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:'@@@@@@@@@<@@A>@@C!!@@C @@O2@@_??@_??@_??8_??8_??8_??0_?? _?? _?? _??@_?>@_?<@_? @_0@@@@@@') ; yourself); yourself]
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
defaultIcon2
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
    "This resource specification was automatically generated
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
     by the ImageEditor of ST/X."
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
    "Do not manually edit this!! If it is corrupted,
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
     the ImageEditor may not be able to read the specification."
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
    "
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
     self defaultIcon2 inspect
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
     ImageEditor openOnClass:self andSelector:#defaultIcon2
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
     Icon flushCachedIcons
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
    "
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
    <resource: #image>
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
    ^Icon
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
        constantNamed:'FileBasedSourceCodeManagementSettingsAppl class defaultIcon2'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
        ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8B0,0L@\@@@@@@@@@@@@@@@@@@@@GA!!L$H" 0LC@0LC@0LC@0LH1="0@@A2 (
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
JB (X6M.[&9.[&9.[&:K#'',@@E((X3M.[#L3N3-[V26U%IBYM&5 @@@!!L5,3N3-KKQP5EBBS$YZRA ROJ @@HQQKKY>_''I0G]''Y6D9^WG9]/B9 @@BE3XY2_
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
''9>_''FM#IBP(JC<_YR*X@@AFZ9._''68<N3.\HB@3L68JO1\*@@@@QUF\''Y0 \2@ RD +EAHR]Q(,@@@@@I2\''9:_(CEH(T!!UUQPRD''TZK@@@@@@M''I:_''BM*
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
(ZF!!APUS^T5$M@@@@@@@CWZ\)U%Y(ZR$(:DXOTP7U @@@@@@@@L>WT1L(ZF"(ZF!!VAXQ[@@@@@@@@@A\(TQRPF!!2(ZEAJT$@@@@@@@@@@@@@RTN!!(ZF!!(ZFZ
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
@@@@@@@@@@@@@@@@@@@@@JJ!!(ZFZ@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[223 191 95 128 127 112 160 144 128 175 143 112 224 223 207 255 224 127 207 192 160 207 175 112 144 112 48 224 192 128 240 224 191 192 176 144 239 224 223 175 143 111 239 224 176 223 192 111 191 175 160 159 112 64 255 240 176 240 240 208 255 239 176 240 208 127 160 127 63 176 159 112 255 224 96 207 160 64 224 208 175 239 208 144 240 223 95 128 96 64 240 224 127 255 240 224 255 239 175 192 160 111 255 255 224 255 223 112 255 240 223 255 223 143 255 208 64 208 192 191 255 255 223 160 143 127 160 144 111 240 240 175 160 159 112 240 239 176 208 176 111 239 223 159 207 176 127 255 224 144 239 208 112 255 240 192 175 159 128 240 239 175 192 176 159 224 207 111 207 191 128 239 208 111 144 112 96 255 240 191 255 239 192 240 224 95 192 144 48 240 239 208 224 192 64 144 112 95 160 127 47 127 80 47 255 224 111 176 144 96 176 159 96 240 223 176 240 239 144 176 175 159 240 224 144 255 239 191 240 208 64 255 239 128 239 208 79 223 208 208 191 144 64 240 223 143 240 208 63 255 239 127 240 240 192 255 239 159 144 112 79 240 224 143 191 159 63 240 223 80 207 176 112 240 240 191 175 143 127 224 192 112 240 223 112 208 176 80 176 159 127 255 224 160 240 223 79 255 240 208 207 191 112 239 239 207 208 176 79 255 223 95 192 160 63 128 111 48 255 223 127 255 224 159 159 127 95 176 160 112 255 240 207 255 255 240 240 224 112 176 143 96 160 143 48 240 239 160 207 160 80 239 223 175 239 192 96 143 111 64 160 143 95 255 224 128 255 248 200 255 248 24 15 56 160 255 248 88 239 232 240 240 240 240 255 248 152 48 80 176 255 248 96 48 88 176 240 240 248 207 216 240 223 216 224 255 248 48 224 224 232 255 248 176 255 248 248 240 144 24 255 248 136 63 96 184 240 208 24 239 239 224 176 159 111 240 207 96 207 160 127 240 207 111 191 191 160 223 208 175 240 208 111 255 255 239 192 176 175 208 207 176 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@@_??@_??@_??8_??8_??8_??0_?? _?? _?? _??@_?>@_?<@_? @_<@@C8@@') ; yourself); yourself]
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
! !
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
!FileBasedSourceCodeManagementSettingsAppl class methodsFor:'interface specs'!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
windowSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
    "This resource specification was automatically generated
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
     by the UIPainter of ST/X."
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
    "Do not manually edit this!! If it is corrupted,
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
     the UIPainter may not be able to read the specification."
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
    "
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
     UIPainter new openOnClass:FileBasedSourceCodeManagementSettingsAppl andSelector:#windowSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
     FileBasedSourceCodeManagementSettingsAppl new openInterface:#windowSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
     FileBasedSourceCodeManagementSettingsAppl open
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
    "
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
    <resource: #canvas>
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
    ^ 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
     #(FullSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
        name: windowSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
        window: 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
       (WindowSpec
11000
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   171
          label: 'FileBased SCM Settings'
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   172
          name: 'FileBased SCM Settings'
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
          min: (Point 10 10)
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
          bounds: (Rectangle 0 0 659 580)
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
        )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
        component: 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
       (SpecCollection
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
          collection: (
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
           (VerticalPanelViewSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
              name: 'VerticalPanel2'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
              layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
              horizontalLayout: fit
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
              verticalLayout: topSpace
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
              horizontalSpace: 3
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
              verticalSpace: 20
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
              component: 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
             (SpecCollection
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
                collection: (
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
                 (VerticalPanelViewSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
                    name: 'VerticalPanel3'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
                    horizontalLayout: fit
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
                    verticalLayout: top
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
                    horizontalSpace: 3
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
                    verticalSpace: 4
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
                    component: 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
                   (SpecCollection
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
                      collection: (
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
                       (ViewSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
                          name: 'ManagerSetupBoxx'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
                          component: 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
                         (SpecCollection
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
                            collection: (
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
                             (FramedBoxSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
                                label: 'File Based Source Repository Manager Settings'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
                                name: 'FileRepositorySetupBox'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
                                layout: (LayoutFrame 0 0 0 0 0 1 0 1)
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
                                labelPosition: topLeft
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   208
                                translateLabel: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
                                component: 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
                               (SpecCollection
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
                                  collection: (
11065
e57980bdbf2f preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11030
diff changeset
   212
                                   (CheckBoxSpec
e57980bdbf2f preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11030
diff changeset
   213
                                      label: 'Show in Browser Menus'
e57980bdbf2f preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11030
diff changeset
   214
                                      name: 'CheckBox1'
e57980bdbf2f preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11030
diff changeset
   215
                                      layout: (LayoutFrame 0 0 5 0 0 1 27 0)
11067
aa11bad9a498 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11065
diff changeset
   216
                                      model: shownInBrowserMenusHolder
11065
e57980bdbf2f preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11030
diff changeset
   217
                                      translateLabel: true
e57980bdbf2f preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11030
diff changeset
   218
                                    )
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
                                   (ViewSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   220
                                      name: 'Box1'
11065
e57980bdbf2f preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11030
diff changeset
   221
                                      layout: (LayoutFrame 0 0 38 0 0 1 63 0)
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   222
                                      component: 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   223
                                     (SpecCollection
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   224
                                        collection: (
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   225
                                         (LabelSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
                                            label: 'Repository Path:'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
                                            name: 'Label1'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
                                            layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0)
11030
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
   229
                                            activeHelpKey: defaultRepositoryPath
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
                                            level: 0
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
                                            translateLabel: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
                                            adjust: right
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   233
                                          )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   234
                                         (InputFieldSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   235
                                            name: 'RepositoryPathField'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
                                            layout: (LayoutFrame 64 0.25 0 0 0 1 22 0)
11030
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
   237
                                            activeHelpKey: defaultRepositoryPath
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
                                            tabable: true
11000
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   239
                                            model: repositoryPathHolder
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
                                            acceptChannel: acceptChannel
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
                                            acceptOnPointerLeave: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
                                          )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
                                         )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
                                       
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
                                      )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
                                    )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   247
                                   (LabelSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   248
                                      label: 'Path per Module:'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
                                      name: 'knownModulesLabel'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   250
                                      layout: (LayoutFrame 0 0.0 82 0 60 0.25 104 0)
11030
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
   251
                                      activeHelpKey: repositoryPathPerModule
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
                                      translateLabel: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
                                      adjust: right
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
                                    )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   255
                                   (SequenceViewSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
                                      name: 'List1'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
                                      layout: (LayoutFrame 64 0.25 82 0 0 1 201 0)
11030
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
   258
                                      activeHelpKey: repositoryPathPerModule
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   259
                                      tabable: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   260
                                      model: selectedPerModulePath
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   261
                                      hasHorizontalScrollBar: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   262
                                      hasVerticalScrollBar: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
                                      miniScrollerHorizontal: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
                                      useIndex: false
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
                                      sequenceList: listOfModules
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
                                    )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   267
                                   (LabelSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   268
                                      label: 'Module:'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
                                      name: 'moduleLabel'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
                                      layout: (LayoutFrame 0 0.0 211 0 60 0.25 228 0)
11030
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
   271
                                      activeHelpKey: perModuleModule
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   272
                                      translateLabel: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   273
                                      adjust: right
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   274
                                    )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   275
                                   (InputFieldSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   276
                                      name: 'perModulePathModuleEntryField'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   277
                                      layout: (LayoutFrame 64 0.25 207 0 0 1 229 0)
11030
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
   278
                                      activeHelpKey: perModuleModule
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   279
                                      tabable: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   280
                                      model: perModulePathModule
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   281
                                      acceptChannel: acceptChannel
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
                                      acceptOnPointerLeave: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
                                    )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
                                   (LabelSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
                                      label: 'Path:'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   286
                                      name: 'cvsRootLabel'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   287
                                      layout: (LayoutFrame 0 0.0 236 0 60 0.25 253 0)
11030
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
   288
                                      activeHelpKey: perModuleRepositoryPath
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   289
                                      translateLabel: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
                                      adjust: right
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
                                    )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
                                   (ComboBoxSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   293
                                      name: 'perModulePathComboBox'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
                                      layout: (LayoutFrame 64 0.25 232 0 0 1.0 254 0)
11030
Claus Gittinger <cg@exept.de>
parents: 11011
diff changeset
   295
                                      activeHelpKey: perModuleRepositoryPath
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   296
                                      tabable: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   297
                                      model: perModulePath
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   298
                                      immediateAccept: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
                                      acceptOnLeave: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
                                      acceptOnReturn: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   301
                                      acceptOnTab: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
                                      acceptOnLostFocus: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
                                      acceptChannel: acceptChannel
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
                                      acceptOnPointerLeave: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
                                      comboList: pathPrototypeList
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
                                    )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   307
                                   (HorizontalPanelViewSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   308
                                      name: 'HorizontalPanel2'
11065
e57980bdbf2f preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11030
diff changeset
   309
                                      layout: (LayoutFrame 64 0.25 257 0 -1 1 282 0)
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   310
                                      horizontalLayout: fitSpace
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
                                      verticalLayout: center
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
                                      horizontalSpace: 3
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   313
                                      verticalSpace: 3
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   314
                                      component: 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
                                     (SpecCollection
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
                                        collection: (
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
                                         (ActionButtonSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   318
                                            label: 'Add/Apply'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
                                            name: 'addButton'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
                                            translateLabel: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
                                            tabable: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
                                            model: addPerModulePath
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
                                            extent: (Point 130 22)
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
                                          )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
                                         (ActionButtonSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   326
                                            label: 'Remove'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
                                            name: 'removeButton'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
                                            translateLabel: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
                                            tabable: true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   330
                                            model: removePerModulePath
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   331
                                            enableChannel: removeEnabled
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   332
                                            extent: (Point 131 22)
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
                                          )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
                                         (ViewSpec
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
                                            name: 'Box11'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
                                            extent: (Point 131 10)
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   337
                                          )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
                                         )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
                                       
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
                                      )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
                                    )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   342
                                   )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   343
                                 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   344
                                )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   345
                              )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   346
                             )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   347
                           
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   348
                          )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   349
                          extent: (Point 659 327)
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   350
                        )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   351
                       )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   352
                     
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   353
                    )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   354
                    extent: (Point 659 768)
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   355
                  )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   356
                 )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   357
               
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   358
              )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   359
            )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   360
           )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   361
         
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   362
        )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   363
      )
11067
aa11bad9a498 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11065
diff changeset
   364
aa11bad9a498 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11065
diff changeset
   365
    "Modified: / 10-01-2012 / 00:17:31 / cg"
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   366
! !
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   367
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   368
!FileBasedSourceCodeManagementSettingsAppl class methodsFor:'queries'!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   369
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   370
managerClass
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   371
    "backlink to my manager class (needed by the settings app)"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   372
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   373
    ^ FileBasedSourceCodeManager
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   374
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   375
    "Created: / 19-04-2011 / 12:46:52 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   376
! !
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   377
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   378
!FileBasedSourceCodeManagementSettingsAppl methodsFor:'actions'!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   379
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   380
addModule:module withData:data
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   381
    (self listOfModules includes:module) ifFalse:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   382
        self listOfModules add:module; sort.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   383
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   384
    pathPerModule at:module put:data.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   385
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   386
    self updateModifiedChannel.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   387
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   388
    "Created: / 08-11-2006 / 19:25:21 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   389
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   390
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   391
addPerModulePath
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   392
    |module path|
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   393
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   394
    acceptChannel value:true.    
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   395
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   396
    module := self perModulePathModule value.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   397
    path := self perModulePath value.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   398
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   399
    path size > 0 ifTrue:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   400
        self validateDirectoryExistsAndIsWritable:path.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   401
        self addModule:module withData:(Array with:FileBasedSourceCodeManager with:path).
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   402
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   403
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   404
    "Created: / 21-12-2011 / 14:23:10 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   405
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   406
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   407
basicReadSettings
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   408
    |infoPerModule|
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   409
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   410
    self initialize.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   411
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   412
    infoPerModule := FileBasedSourceCodeManager repositoryInfoPerModule.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   413
    infoPerModule keysAndValuesDo:[:module :info | 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   414
        pathPerModule at:module put:(Array with:FileBasedSourceCodeManager with:info).
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   415
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   416
11000
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   417
    self repositoryPathHolder value:FileBasedSourceCodeManager repositoryPath ? FileBasedSourceCodeManager defaultRepositoryPath.
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   418
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   419
    pathPerModule notNil ifTrue:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   420
        self listOfModules removeAll.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   421
        listOfModules addAll:pathPerModule keys asList.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   422
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   423
11067
aa11bad9a498 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11065
diff changeset
   424
    self shownInBrowserMenusHolder value:FileBasedSourceCodeManager shownInBrowserMenus.
aa11bad9a498 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11065
diff changeset
   425
aa11bad9a498 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11065
diff changeset
   426
    "Modified: / 10-01-2012 / 00:20:51 / cg"
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   427
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   428
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   429
basicSaveSettings
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   430
    |infoPerModule modules|
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   431
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   432
    modules := pathPerModule select:[:entry | entry first == FileBasedSourceCodeManager].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   433
    infoPerModule := Dictionary new.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   434
    modules keysAndValuesDo:[:module :entry | 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   435
        entry first == FileBasedSourceCodeManager ifTrue:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   436
            infoPerModule at:module put:(entry second).
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   437
        ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   438
    ].
11000
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   439
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   440
    FileBasedSourceCodeManager repositoryInfoPerModule:infoPerModule.
11000
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   441
    FileBasedSourceCodeManager repositoryPath:(self repositoryPathHolder value).
11067
aa11bad9a498 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11065
diff changeset
   442
    FileBasedSourceCodeManager shownInBrowserMenus:self shownInBrowserMenusHolder value. 
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   443
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   444
    self acceptChannel value.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   445
11067
aa11bad9a498 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11065
diff changeset
   446
    "Modified: / 10-01-2012 / 00:21:49 / cg"
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   447
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   448
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   449
condenseSourceCache
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   450
    self withWaitCursorDo:[ AbstractSourceCodeManager condenseSourceCache ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   451
    Method flushSourceStreamCache.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   452
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   453
    "Modified: / 28-11-2006 / 12:21:33 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   454
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   455
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   456
flushSourceCache
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   457
    self withWaitCursorDo:[ AbstractSourceCodeManager flushSourceCache ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   458
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   459
    "Modified: / 30-09-2011 / 13:33:47 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   460
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   461
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   462
removePerModulePath
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   463
    |module|
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   464
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   465
    acceptChannel value:true.    
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   466
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   467
    module := self perModulePathModule value.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   468
    self listOfModules remove:module ifAbsent:nil.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   469
    pathPerModule removeKey:module ifAbsent:nil.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   470
    self perModulePathModule value:nil.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   471
    self perModulePath value:nil.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   472
    self updateModifiedChannel.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   473
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   474
    "Created: / 21-12-2011 / 14:26:08 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   475
! !
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   476
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   477
!FileBasedSourceCodeManagementSettingsAppl methodsFor:'aspects'!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   478
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   479
acceptChannel
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   480
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   481
    acceptChannel isNil ifTrue:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   482
        acceptChannel := TriggerValue new.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   483
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   484
    ^ acceptChannel.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   485
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   486
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   487
listOfModules
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   488
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   489
    listOfModules isNil ifTrue:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   490
        pathPerModule notNil ifTrue:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   491
            listOfModules := pathPerModule keys asList.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   492
        ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   493
        listOfModules sort.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   494
        listOfModules onChangeSend:#updateModifiedChannel to:self
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   495
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   496
    ^ listOfModules.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   497
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   498
    "Modified: / 21-12-2011 / 14:32:59 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   499
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   500
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   501
pathPrototypeList
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   502
    ^ #(
11000
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   503
            './repository'
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   504
        )
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   505
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   506
    "Created: / 21-12-2011 / 13:13:05 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   507
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   508
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   509
perModulePath
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
    perModulePath isNil ifTrue:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   511
        perModulePath := ValueHolder new.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   512
        perModulePath addDependent:self.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   513
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   514
    ^ perModulePath.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   515
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   516
    "Created: / 21-12-2011 / 14:19:03 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   517
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   518
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   519
perModulePathModule
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   520
    perModulePathModule isNil ifTrue:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   521
        perModulePathModule := ValueHolder new.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   522
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   523
    ^ perModulePathModule.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   524
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   525
    "Created: / 21-12-2011 / 14:31:09 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   526
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   527
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   528
removeEnabled
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   529
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   530
    removeEnabled isNil ifTrue:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   531
        removeEnabled := false asValue.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   532
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
    ^ removeEnabled.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   534
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   535
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   536
repositoryPathHolder
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   537
    repositoryPathHolder isNil ifTrue:[
11000
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   538
        repositoryPathHolder := FileBasedSourceCodeManager defaultRepositoryPath asValue.
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   539
        repositoryPathHolder addDependent:self.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   540
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   541
    ^ repositoryPathHolder.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   542
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   543
    "Created: / 21-12-2011 / 13:11:58 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   544
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   545
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   546
selectedPerModulePath
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   547
    selectedPerModulePath isNil ifTrue:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   548
        selectedPerModulePath := ValueHolder new.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   549
        selectedPerModulePath addDependent:self.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   550
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   551
    ^ selectedPerModulePath.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   552
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   553
    "Created: / 21-12-2011 / 14:35:37 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   554
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   555
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   556
verboseSourceCodeAccess
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   557
    verboseSourceCodeAccess isNil ifTrue:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   558
        verboseSourceCodeAccess := false asValue.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   559
        verboseSourceCodeAccess onChangeSend:#updateModifiedChannel to:self
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   560
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   561
    ^ verboseSourceCodeAccess.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   562
! !
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   563
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   564
!FileBasedSourceCodeManagementSettingsAppl methodsFor:'change & update'!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   565
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   566
selectedPerModulePathChanged
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   567
    |module entry|
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   568
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   569
    self acceptChannel value:true. 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   570
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   571
    module := self selectedPerModulePath value.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   572
    module isNil ifTrue:[ 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   573
        self removeEnabled value:false.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   574
        self perModulePathModule value:' '.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   575
        self perModulePath value:''.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   576
        ^ self
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   577
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   578
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   579
    entry := pathPerModule at:module ifAbsent:#().    
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   580
    (entry first = FileBasedSourceCodeManager) ifTrue:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   581
        self removeEnabled value:true.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   582
        self perModulePathModule value:module.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   583
        self perModulePath value:(entry at:2).
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   584
    ] ifFalse:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   585
        self removeEnabled value:false.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   586
        self perModulePathModule value:module , ' ',('<<use ',entry first managerTypeName,'>>') allBold.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   587
        self perModulePath value:''.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   588
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   589
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   590
    "Created: / 21-12-2011 / 14:35:04 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   591
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   592
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   593
update:something with:aParameter from:changedObject 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   594
    changedObject == selectedPerModulePath ifTrue:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   595
        self selectedPerModulePathChanged.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   596
        ^ self
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   597
    ].
11000
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   598
    changedObject == repositoryPathHolder ifTrue:[
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   599
        self updateModifiedChannel.
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   600
        ^ self
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   601
    ].
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   602
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   603
    super update:something with:aParameter from:changedObject
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   604
11000
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   605
    "Modified: / 22-12-2011 / 00:27:48 / cg"
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   606
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   607
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   608
validateDirectoryExistsAndIsWritable:aDirectory
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   609
    |nm fn|
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   610
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   611
    fn := aDirectory asFilename.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   612
    nm := fn baseName.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   613
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   614
    fn exists ifFalse:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   615
        (self confirm:(resources 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   616
                            stringWithCRs:'Directory "%1" does not exist.\Create ?'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   617
                            with:nm)
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   618
        ) ifFalse:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   619
            ^ false.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   620
        ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   621
        fn 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   622
            recursiveMakeDirectory; 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   623
            makeReadableForAll;
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   624
            makeWritableForAll;
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   625
            makeExecutableForAll.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   626
        ^ true.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   627
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   628
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   629
    (fn isDirectory) ifFalse:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   630
        self warn:(resources 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   631
                            stringWithCRs:'Not a directory: "%1"'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   632
                            with:nm).
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   633
        ^ false.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   634
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   635
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   636
    (fn isReadable and:[fn isWritable]) ifFalse:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   637
        (self confirm:(resources 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   638
                            stringWithCRs:'Directory "%1" is not both readable and writable.\Change ?'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   639
                            with:nm)
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   640
        ) ifFalse:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   641
            ^ false.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   642
        ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   643
        fn
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   644
            makeReadableForAll;
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   645
            makeWritableForAll;
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   646
            makeExecutableForAll.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   647
        (fn isReadable and:[fn isWritable]) ifFalse:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   648
            self warn:(resources 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   649
                                stringWithCRs:'Directory "%1" cannot be made both readable and writable.'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   650
                                with:nm).
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   651
            ^ false.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   652
        ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   653
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   654
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   655
    ^ true
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   656
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   657
    "Created: / 21-12-2011 / 14:43:11 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   658
! !
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   659
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   660
!FileBasedSourceCodeManagementSettingsAppl methodsFor:'help'!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   661
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   662
helpFilename
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   663
    ^ 'Launcher/fileBasedRepositorySetup.html'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   664
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   665
    "Modified: / 21-12-2011 / 14:36:53 / cg"
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   666
! !
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   667
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   668
!FileBasedSourceCodeManagementSettingsAppl methodsFor:'initialization & release'!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   669
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   670
initialize
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   671
    (AbstractSourceCodeManager notNil) ifTrue:[ AbstractSourceCodeManager autoload ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   672
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   673
    pathPerModule := Dictionary new.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   674
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   675
    FileBasedSourceCodeManager repositoryInfoPerModule 
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   676
        keysAndValuesDo:[:module :info |
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   677
            module withoutSeparators ~= module ifTrue:[
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   678
                self halt:'should not happen any longer'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   679
            ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   680
            pathPerModule at:module put:(Array with:FileBasedSourceCodeManager with:info)
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   681
        ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   682
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   683
    super initialize.
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   684
11000
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   685
    "Modified: / 21-12-2011 / 23:50:23 / cg"
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   686
! !
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   687
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   688
!FileBasedSourceCodeManagementSettingsAppl methodsFor:'queries'!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   689
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   690
hasUnsavedChanges
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   691
    |modules|
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   692
11000
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   693
    (FileBasedSourceCodeManager repositoryPath ? FileBasedSourceCodeManager defaultRepositoryPath) ~= self repositoryPathHolder value    
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   694
        ifTrue:[^ true].
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   695
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   696
    modules := pathPerModule select:[:entry | entry first == FileBasedSourceCodeManager].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   697
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   698
    FileBasedSourceCodeManager repositoryInfoPerModule keysAndValuesDo:[:module :info |
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   699
        ((modules includesKey:module) and:[info = (modules at:module) second])
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   700
        ifFalse:[^ true].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   701
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   702
    modules keysAndValuesDo:[:module :info|
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   703
        ((FileBasedSourceCodeManager repositoryInfoPerModule includesKey:module) and:[(FileBasedSourceCodeManager repositoryInfoPerModule at:module) = info second])
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   704
        ifFalse:[^ true].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   705
    ].
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   706
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   707
    ^ false
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   708
11000
c7b3a7eea7ea refactoring
Claus Gittinger <cg@exept.de>
parents: 10989
diff changeset
   709
    "Modified (format): / 22-12-2011 / 00:25:23 / cg"
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   710
! !
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   711
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   712
!FileBasedSourceCodeManagementSettingsAppl class methodsFor:'documentation'!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   713
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   714
version
11067
aa11bad9a498 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11065
diff changeset
   715
    ^ '$Header: /cvs/stx/stx/libtool/FileBasedSourceCodeManagementSettingsAppl.st,v 1.6 2012-01-09 23:23:10 cg Exp $'
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   716
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   717
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   718
version_CVS
11067
aa11bad9a498 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11065
diff changeset
   719
    ^ '$Header: /cvs/stx/stx/libtool/FileBasedSourceCodeManagementSettingsAppl.st,v 1.6 2012-01-09 23:23:10 cg Exp $'
10989
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   720
!
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   721
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   722
version_FileRepository
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   723
    ^ '§Path: stx/libtool/FileBasedSourceCodeManagementSettingsAppl.st, Version: 1§'
b8ce8965f489 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   724
! !