PerforceSourceCodeManagementSettingsAppl.st
author Claus Gittinger <cg@exept.de>
Tue, 05 Jul 2011 11:31:51 +0200
changeset 10153 c8677bcfda56
parent 10029 7a3812d7edc3
child 10482 fe11c90b9a54
permissions -rw-r--r--
changed: #templateReplaceIfNilByIsNilIfTrue #templateReplaceIsNilOrEmptyCollectionByIsEmptyOrNil
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10029
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     1
"
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     2
 COPYRIGHT (c) 2011 by eXept Software AG
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     3
              All Rights Reserved
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     4
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     5
 This software is furnished under a license and may be used
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     6
 only in accordance with the terms of that license and with the
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     8
 be provided or otherwise made available to, or used by, any
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
     9
 other person.  No title to or ownership of the software is
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    10
 hereby transferred.
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    11
"
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libtool' }"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    14
AbstractSourceCodeManagementSettingsAppl subclass:#PerforceSourceCodeManagementSettingsAppl
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    15
	instanceVariableNames:'sourceCacheDir listOfModules removeEnabled acceptChannel
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    16
		selectedPerModuleRoot verboseSourceCodeAccess
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    17
		perforceExecutableHolder listOfPerforceModules
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    18
		defaultSettingsHolder tableColumns defaultSettingsPrototypeList'
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    19
	classVariableNames:'RecentlyUsedCVSRoots RecentlyUsedStoreHosts
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    20
		RecentlyUsedSmallTeamHosts LastStoreHost LastStoreUser
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    21
		LastStorePassword'
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    22
	poolDictionaries:''
9873
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
    23
	category:'System-SourceCodeManagement'
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
ApplicationModel subclass:#ManagerPerModuleApp
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    27
	instanceVariableNames:'moduleHolder acceptChannel settingsHolder
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    28
		sourceCodeManagementSettingsApp acceptEnableChannel canceled
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    29
		defaultSettingsPrototypeList'
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    30
	classVariableNames:''
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    31
	poolDictionaries:''
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    32
	privateIn:PerforceSourceCodeManagementSettingsAppl
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
Object subclass:#ModuleManager
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    36
	instanceVariableNames:'manager module settings app'
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    37
	classVariableNames:''
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    38
	poolDictionaries:''
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    39
	privateIn:PerforceSourceCodeManagementSettingsAppl
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
10029
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    42
!PerforceSourceCodeManagementSettingsAppl class methodsFor:'documentation'!
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    43
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    44
copyright
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    45
"
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    46
 COPYRIGHT (c) 2011 by eXept Software AG
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    47
              All Rights Reserved
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    48
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    49
 This software is furnished under a license and may be used
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    50
 only in accordance with the terms of that license and with the
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    51
 inclusion of the above copyright notice.   This software may not
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    52
 be provided or otherwise made available to, or used by, any
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    53
 other person.  No title to or ownership of the software is
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    54
 hereby transferred.
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    55
"
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
    56
! !
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    58
!PerforceSourceCodeManagementSettingsAppl class methodsFor:'image specs'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
defaultIcon
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
    "This resource specification was automatically generated
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
     by the ImageEditor of ST/X."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
    "Do not manually edit this!! If it is corrupted,
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
     the ImageEditor may not be able to read the specification."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
    "
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
     self defaultIcon inspect
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
     ImageEditor openOnClass:self andSelector:#defaultIcon
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
     Icon flushCachedIcons
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    "
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
    <resource: #image>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
    ^Icon
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    76
        constantNamed:#'AbstractSettingsApplication::SourceCodeManagementSettingsAppl class defaultIcon'
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
    77
        ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
@@@@@@@@@@@A@PHB@0P@@@@@@@@@@@@@@@@@@@HEA \HA $JB0HD@@@@@@@@@@@@@@HLA04NC0HD@@L@@ P@@@@@@@@@@@@ED@ NDP@@@@@@@@@D@@@@@@@@
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
@@@BA \FAPP@@@@@@@@@@@P@@@@@@@@@AQ@RC0@@@@@@@@@@@@@@@@@@@@@@@@TGA!!DD@@@@@@@@@@@@@@@@@@@D@PDIA08OA@@@@@@@@@@@@@@@@@@@AP S
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
A0XIBPXGC0P@@@@@@@@@@@@@@@@ECAPLBPXOAP@@@@@@EQX@@@@@@@@@@@TIE@XOAP@@@@@@EQ\XE @@@@@@@@@@AP$OAP@@@@@@FQ\ZE!! V@@@@@@@@@@@E
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
F0@@@@@@EQ\ZF!!(VFAX@@@@@@@@@@@@@@@@ZEQ\VE!!(ZF!!XWF @@@@@@@@@@@@@@@@@@@A\ZE!!(@@@@@@@@@@@@@@@@@@@@@@@@XE!!XZ@@@@@@@@@@@@@@@@
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
@@@@@@@@EQ(V@@@@@@@@@@@@@@@@@@@@@@@@EQ\VE @@@@@@@@@@@@@@@@@@@@@@EQ VE @@@@@@@@@@@@@@F @@@@@WEQ VE!!(@@@@@@@@@@@@@@@@@E!!\W
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
EQXVE @@@@@@@@@@@@@@@@@@@@@@@A(Z@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 32 64 0 0 64 0 32 32 0 0 32 0 32 96 32 96 192 128 192 224 192 160 224 160 32 128 64 64 96 64 64 96 32 32 160 64 160 224 192 64 160 96 32 128 32 224 224 224 64 128 64 160 192 160 224 224 192 32 160 96 160 160 160 64 64 64 96 96 96 128 128 128 192 192 192 32 32 32 32 64 32]; mask:((ImageMask new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@O8@@?>@A??@A?C C<@0C8@PC8@@??@@??F@_>O@O<_ G8?0C1?8A#?<@C?<@@_@H@_@L@?@GC>@C?>@A?<@@_0@') ; yourself); yourself]
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
    86
!PerforceSourceCodeManagementSettingsAppl class methodsFor:'interface specs'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
windowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
    "This resource specification was automatically generated
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
     by the UIPainter of ST/X."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
    "Do not manually edit this!! If it is corrupted,
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
     the UIPainter may not be able to read the specification."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
    "
9873
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
    96
     UIPainter new openOnClass:PerforceSourceCodeManagementSettingsAppl andSelector:#windowSpec
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
    97
     PerforceSourceCodeManagementSettingsAppl new openInterface:#windowSpec
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
    98
     PerforceSourceCodeManagementSettingsAppl open
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
    "
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
    <resource: #canvas>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   103
    ^ 
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
     #(FullSpec
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   105
        name: windowSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   106
        window: 
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
       (WindowSpec
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   108
          label: 'Source Code Manager Settings'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   109
          name: 'Source Code Manager Settings'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   110
          min: (Point 10 10)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   111
          bounds: (Rectangle 0 0 726 653)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   112
        )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   113
        component: 
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
       (SpecCollection
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   115
          collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   116
           (VerticalPanelViewSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   117
              name: 'VerticalPanel2'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   118
              layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   119
              horizontalLayout: fit
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   120
              verticalLayout: topSpace
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   121
              horizontalSpace: 3
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   122
              verticalSpace: 20
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   123
              component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   124
             (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   125
                collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   126
                 (VerticalPanelViewSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   127
                    name: 'VerticalPanel3'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   128
                    horizontalLayout: fit
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   129
                    verticalLayout: top
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   130
                    horizontalSpace: 3
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   131
                    verticalSpace: 4
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   132
                    component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   133
                   (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   134
                      collection: (
9873
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   135
                       (FramedBoxSpec
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   136
                          label: 'Perforce (P4) Sourcecode Manager Settings'
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   137
                          name: 'FramedBox3'
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   138
                          labelPosition: topLeft
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   139
                          translateLabel: true
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   140
                          component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   141
                         (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   142
                            collection: (
9873
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   143
                             (ViewSpec
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   144
                                name: 'Box3'
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   145
                                layout: (LayoutFrame 0 0 0 0 0 1 0 1)
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   146
                                component: 
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   147
                               (SpecCollection
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   148
                                  collection: (
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   149
                                   (LabelSpec
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   150
                                      label: 'Default Perforce Root'
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   151
                                      name: ''
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   152
                                      layout: (LayoutFrame 0 0.0 1 0 60 0.25 23 0)
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   153
                                      level: 0
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   154
                                      translateLabel: true
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   155
                                      adjust: right
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   156
                                    )
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   157
                                   (LabelSpec
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   158
                                      label: 'client:user:pass@host:port '
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   159
                                      name: 'Label18'
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   160
                                      layout: (LayoutFrame 4 0.0 19 0 64 0.25 34 0)
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   161
                                      style: (FontDescription helvetica medium roman 10)
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   162
                                      level: 0
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   163
                                      translateLabel: true
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   164
                                      adjust: right
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   165
                                    )
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   166
                                   (ComboBoxSpec
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   167
                                      name: 'cvsRootComboBox'
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   168
                                      layout: (LayoutFrame 66 0.25 7 0 -5 1 29 0)
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   169
                                      tabable: true
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   170
                                      model: defaultSettingsHolder
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   171
                                      immediateAccept: true
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   172
                                      acceptOnLeave: true
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   173
                                      acceptOnReturn: true
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   174
                                      acceptOnTab: true
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   175
                                      acceptOnLostFocus: true
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   176
                                      acceptChannel: acceptChannel
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   177
                                      acceptOnPointerLeave: true
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   178
                                      comboList: defaultSettingsPrototypeList
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   179
                                    )
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   180
                                   (LabelSpec
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   181
                                      label: 'Perforce Command or Path:'
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   182
                                      name: 'Label22'
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   183
                                      layout: (LayoutFrame 0 0.0 38 0 60 0.25 60 0)
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   184
                                      level: 0
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   185
                                      translateLabel: true
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   186
                                      adjust: right
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   187
                                    )
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   188
                                   (InputFieldSpec
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   189
                                      name: 'EntryField8'
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   190
                                      layout: (LayoutFrame 66 0.25 38 0 -5 1 60 0)
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   191
                                      tabable: true
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   192
                                      model: perforceExecutableHolder
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   193
                                      immediateAccept: false
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   194
                                      acceptOnLostFocus: true
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   195
                                      acceptChannel: acceptChannel
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   196
                                      acceptOnPointerLeave: true
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   197
                                    )
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   198
                                   )
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   199
                                 
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   200
                                )
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   201
                              )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   202
                             )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   203
                           
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   204
                          )
9873
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   205
                          extent: (Point 726 95)
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   206
                        )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   207
                       (ViewSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   208
                          name: 'ManagerSetupBoxx'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   209
                          component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   210
                         (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   211
                            collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   212
                             (FramedBoxSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   213
                                label: 'Per Module Manager Setup'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   214
                                name: 'PerModuleManagerSetup'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   215
                                layout: (LayoutFrame 0 0 -1 0 0 1 -3 1)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   216
                                labelPosition: topLeft
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   217
                                translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   218
                                component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   219
                               (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   220
                                  collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   221
                                   (DataSetSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   222
                                      name: 'Table1'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   223
                                      layout: (LayoutFrame 5 0 5 0 0 1 180 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   224
                                      model: selectedPerModuleRoot
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   225
                                      hasHorizontalScrollBar: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   226
                                      hasVerticalScrollBar: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   227
                                      dataList: listOfModules
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   228
                                      useIndex: false
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   229
                                      columnHolder: tableColumns
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   230
                                      beDependentOfRows: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   231
                                    )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   232
                                   (HorizontalPanelViewSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   233
                                      name: 'HorizontalPanel11'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   234
                                      layout: (LayoutFrame 5 0 -25 1 -1 1 0 1)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   235
                                      horizontalLayout: fitSpace
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   236
                                      verticalLayout: center
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   237
                                      horizontalSpace: 3
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   238
                                      verticalSpace: 3
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   239
                                      component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   240
                                     (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   241
                                        collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   242
                                         (ActionButtonSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   243
                                            label: 'Add/Apply'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   244
                                            name: 'Button2'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   245
                                            translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   246
                                            tabable: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   247
                                            model: addPerModuleRoot
9873
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   248
                                            extent: (Point 338 22)
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   249
                                          )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   250
                                         (ActionButtonSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   251
                                            label: 'Remove'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   252
                                            name: 'Button3'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   253
                                            translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   254
                                            tabable: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   255
                                            model: removePerModuleRoot
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   256
                                            enableChannel: removeEnabled
9873
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   257
                                            extent: (Point 339 22)
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   258
                                          )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   259
                                         )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   260
                                       
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   261
                                      )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   262
                                    )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   263
                                   )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   264
                                 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   265
                                )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   266
                              )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   267
                             )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   268
                           
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   269
                          )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   270
                          extent: (Point 726 250)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   271
                        )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   272
                       (FramedBoxSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   273
                          label: 'Source Cache'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   274
                          name: 'FramedBox2'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   275
                          labelPosition: topLeft
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   276
                          translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   277
                          component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   278
                         (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   279
                            collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   280
                             (ViewSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   281
                                name: 'Box4'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   282
                                layout: (LayoutFrame 0 0 0 0 0 1 30 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   283
                                component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   284
                               (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   285
                                  collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   286
                                   (LabelSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   287
                                      label: 'Source Cache Dir:'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   288
                                      name: 'Label23'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   289
                                      layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   290
                                      translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   291
                                      adjust: right
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   292
                                    )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   293
                                   (InputFieldSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   294
                                      name: 'EntryField9'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   295
                                      layout: (LayoutFrame 64 0.25 0 0 0 1 22 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   296
                                      model: sourceCacheDir
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   297
                                      immediateAccept: false
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   298
                                      acceptOnReturn: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   299
                                      acceptOnTab: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   300
                                      acceptOnLostFocus: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   301
                                      acceptOnPointerLeave: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   302
                                    )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   303
                                   )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   304
                                 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   305
                                )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   306
                              )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   307
                             (HorizontalPanelViewSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   308
                                name: 'HorizontalPanel12'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   309
                                layout: (LayoutFrame 44 0.25 33 0 0 1 67 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   310
                                horizontalLayout: fitSpace
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   311
                                verticalLayout: center
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   312
                                horizontalSpace: 3
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   313
                                verticalSpace: 3
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   314
                                component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   315
                               (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   316
                                  collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   317
                                   (ActionButtonSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   318
                                      label: 'Flush Cache now'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   319
                                      name: 'Button4'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   320
                                      translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   321
                                      tabable: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   322
                                      model: flushSourceCache
9873
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   323
                                      extent: (Point 233 22)
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   324
                                    )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   325
                                   (ActionButtonSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   326
                                      label: 'Condense Cache now'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   327
                                      name: 'Button5'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   328
                                      translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   329
                                      tabable: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   330
                                      model: condenseSourceCache
9873
c17fe1531c2b changed: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents: 9864
diff changeset
   331
                                      extent: (Point 233 22)
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   332
                                    )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   333
                                   )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   334
                                 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   335
                                )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   336
                              )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   337
                             )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   338
                           
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   339
                          )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   340
                          extent: (Point 726 95)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   341
                        )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   342
                       (ViewSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   343
                          name: 'VerboseBox'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   344
                          component: 
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   345
                         (SpecCollection
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   346
                            collection: (
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   347
                             (CheckBoxSpec
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   348
                                label: 'Verbose (Trace Access on Transcript)'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   349
                                name: 'CheckBox6'
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   350
                                layout: (LayoutFrame 30 0 5 0 -5 1 27 0)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   351
                                model: verboseSourceCodeAccess
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   352
                                translateLabel: true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   353
                              )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   354
                             )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   355
                           
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   356
                          )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   357
                          extent: (Point 726 25)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   358
                        )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   359
                       )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   360
                     
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   361
                    )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   362
                    extent: (Point 726 768)
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   363
                  )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   364
                 )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   365
               
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   366
              )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   367
            )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   368
           )
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   369
         
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   370
        )
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   371
      )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   372
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   373
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   374
!PerforceSourceCodeManagementSettingsAppl class methodsFor:'queries'!
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   375
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   376
managerClass
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   377
    "backlink to my manager class (needed by the settings app)"
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   378
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   379
    ^ PerforceSourceCodeManager
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   380
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   381
    "Created: / 19-04-2011 / 12:52:02 / cg"
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   382
! !
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   383
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   384
!PerforceSourceCodeManagementSettingsAppl class methodsFor:'tableColumns specs'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   385
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   386
tableColumns
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   387
    "This resource specification was automatically generated
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   388
     by the DataSetBuilder of ST/X."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   389
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   390
    "Do not manually edit this!! If it is corrupted,
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   391
     the DataSetBuilder may not be able to read the specification."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   392
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   393
    "
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   394
     DataSetBuilder new openOnClass:P4SourceCodeManagementSettingsAppl andSelector:#tableColumns
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   395
    "
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   396
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   397
    <resource: #tableColumns>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   398
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   399
    ^#(
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   400
      (DataSetColumnSpec
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   401
         label: 'Module'
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   402
         labelButtonType: Button
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   403
         usePreferredWidth: true
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   404
         model: module
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   405
       )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   406
      (DataSetColumnSpec
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   407
         label: 'Settings'
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   408
         labelButtonType: Button
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   409
         editorType: InputField
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   410
         model: settings
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   411
         isResizeable: false
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   412
       )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   413
      )
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   414
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   415
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   416
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   417
!PerforceSourceCodeManagementSettingsAppl methodsFor:'actions'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   418
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   419
addModule:aModuleManager
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   420
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   421
    |detectedManager|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   422
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   423
    detectedManager := self listOfModules detect:[:eachModuleManager| eachModuleManager module = aModuleManager module] ifNone:nil.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   424
    detectedManager isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   425
        self listOfModules add:aModuleManager; sort.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   426
        self updateModifiedChannel.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   427
    ] ifFalse:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   428
        Dialog information:'Manager for Module ', aModuleManager module, ' already exists'.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   429
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   430
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   431
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   432
    "Created: / 08-11-2006 / 19:25:21 / cg"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   433
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   434
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   435
addModule:module withData:data
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   436
    (self listOfModules includes:module) ifFalse:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   437
        self listOfModules add:module; sort.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   438
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   439
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   440
    self updateModifiedChannel.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   441
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   442
    "Created: / 08-11-2006 / 19:25:21 / cg"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   443
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   444
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   445
addPerModuleRoot
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   446
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   447
    |app moduleManager|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   448
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   449
    app := ManagerPerModuleApp openFromSourceCodeManagementSettingsApp:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   450
    app canceled ifFalse:[
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   451
        moduleManager := ModuleManager newForApplication:self.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   452
        app moduleHolder value isEmptyOrNil ifTrue:[
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   453
            self information:'Adding without module name not allowed'.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   454
            ^ self.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   455
        ].
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   456
        moduleManager module:app moduleHolder value.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   457
        moduleManager settings:app settingsHolder value.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   458
        moduleManager settings:app settingsHolder value.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   459
        self listOfModules add:moduleManager.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   460
        self updateModifiedChannel.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   461
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   462
    "Modified: / 08-11-2006 / 19:27:39 / cg"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   463
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   464
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   465
basicReadSettings
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   466
    |moduleManager moduleAndSettings|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   467
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   468
    self initialize.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   469
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   470
    self defaultSettingsHolder value:PerforceSourceCodeManager getPerforceDefaultSettingsString.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   471
    self listOfModules removeAll.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   472
    moduleAndSettings := PerforceSourceCodeManager repositoryInfoPerModule copy.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   473
    moduleAndSettings notEmptyOrNil ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   474
        moduleAndSettings keysAndValuesDo:[:module :settings|
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   475
            moduleManager := ModuleManager newForApplication:self.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   476
            moduleManager module:module.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   477
            moduleManager settings:settings.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   478
            self listOfModules add:moduleManager.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   479
        ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   480
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   481
    self listOfModules sort.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   482
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   483
    self hasManager ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   484
        self sourceCacheDir value:(PerforceSourceCodeManager cacheDirectoryName).
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   485
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   486
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   487
    self perforceExecutableHolder value:PerforceSourceCodeManager perforceExecutable.
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   488
    self verboseSourceCodeAccess value:PerforceSourceCodeManager verboseSourceCodeAccess.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   489
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   490
"/    self selectedPerModuleRootChanged.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   491
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   492
    "Modified: / 19-04-2011 / 10:53:15 / cg"
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   493
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   494
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   495
basicSaveSettings
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   496
    |client settings repositoryInfoPerModule|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   497
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   498
    self hasManager ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   499
        | nm fn|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   500
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   501
        nm := self sourceCacheDir value.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   502
        nm notEmptyOrNil ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   503
            (fn := nm asFilename) exists ifFalse:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   504
                (self confirm:('Perforce cache directory ''' , nm , ''' does not exist\create ?' withCRs)) ifTrue:[
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   505
                    fn makeDirectory;
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   506
                       makeReadableForAll;
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   507
                       makeWritableForAll;
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   508
                       makeExecutableForAll.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   509
                ]
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
            ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   511
            (fn isDirectory
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   512
            and:[fn isReadable
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   513
            and:[fn isWritable]]) ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   514
                PerforceSourceCodeManager cacheDirectoryName:nm.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   515
            ] ifFalse:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   516
                self warn:'Invalid sourceCache directory.'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   517
            ]
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   518
        ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   519
        repositoryInfoPerModule := Dictionary new.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   520
        self listOfModules do:[:aModuleManager|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   521
            repositoryInfoPerModule at:aModuleManager module put:aModuleManager settings.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   522
        ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   523
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   524
        PerforceSourceCodeManager repositoryInfoPerModule:repositoryInfoPerModule.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   525
        PerforceSourceCodeManager perforceExecutable:((self perforceExecutableHolder value ? '') withoutSeparators).
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   526
        client := self defaultSettingsHolder value.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   527
        client notNil ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   528
            settings := PerforceSourceCodeManager getPerforceSettingsFromString:client.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   529
            PerforceSourceCodeManager perforceClient:(settings at:#client ifAbsent:nil).
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   530
            PerforceSourceCodeManager perforceUser:(settings at:#user ifAbsent:nil).
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   531
            PerforceSourceCodeManager perforcePort:(settings at:#port ifAbsent:nil).
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   532
            PerforceSourceCodeManager perforcePassword:(settings at:#password ifAbsent:nil).
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
        ].
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   534
        PerforceSourceCodeManager verboseSourceCodeAccess:self verboseSourceCodeAccess value.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   535
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   536
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   537
    self acceptChannel value.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   538
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   539
    "Modified: / 19-04-2011 / 10:53:46 / cg"
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   540
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   541
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   542
condenseSourceCache
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   543
    self withWaitCursorDo:[ AbstractSourceCodeManager condenseSourceCache ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   544
    Method flushSourceStreamCache.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   545
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   546
    "Modified: / 28-11-2006 / 12:21:33 / cg"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   547
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   548
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   549
flushSourceCache
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   550
    self withWaitCursorDo:[ AbstractSourceCodeManager flushSourceCache ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   551
    Method flushSourceStreamCache.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   552
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   553
    "Modified: / 28-11-2006 / 12:21:21 / cg"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   554
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   555
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   556
removePerModuleRoot
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   557
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   558
    |module|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   559
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   560
    acceptChannel value:true.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   561
    module := self selectedPerModuleRoot value.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   562
    self listOfModules remove:module ifAbsent:nil.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   563
    self updateModifiedChannel.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   564
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   565
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   566
!PerforceSourceCodeManagementSettingsAppl methodsFor:'aspects'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   567
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   568
acceptChannel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   569
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   570
    acceptChannel isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   571
        acceptChannel := TriggerValue new.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   572
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   573
    ^ acceptChannel.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   574
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   575
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   576
defaultSettingsHolder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   577
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   578
    defaultSettingsHolder isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   579
        defaultSettingsHolder := ValueHolder new.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   580
        defaultSettingsHolder addDependent:self.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   581
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   582
    ^ defaultSettingsHolder.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   583
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   584
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   585
defaultSettingsPrototypeList
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   586
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   587
    defaultSettingsPrototypeList isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   588
        defaultSettingsPrototypeList := self perforcePrototypeList.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   589
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   590
    ^ defaultSettingsPrototypeList.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   591
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   592
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   593
listOfModules
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   594
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   595
    listOfModules isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   596
        listOfModules := List new.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   597
        listOfModules addDependent:self.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   598
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   599
    ^ listOfModules.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   600
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   601
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   602
perforceExecutableHolder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   603
    perforceExecutableHolder isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   604
        perforceExecutableHolder := ValueHolder new.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   605
        perforceExecutableHolder onChangeSend:#updateModifiedChannel to:self
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   606
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   607
    ^ perforceExecutableHolder.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   608
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   609
    "Created: / 21-09-2006 / 15:37:06 / cg"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   610
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   611
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   612
perforcePrototypeList
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   613
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   614
    |first client|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   615
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   616
    client := PerforceSourceCodeManager perforceClient.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   617
    client isEmptyOrNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   618
        client := 'workspace'.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   619
    ].
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   620
    first := (client ,':', PerforceSourceCodeManager perforceUser, ':',
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   621
                           (PerforceSourceCodeManager perforcePassword ? 'pass'), '@',
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   622
                           PerforceSourceCodeManager perforcePort).
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   623
    ^ Array with:first.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   624
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   625
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   626
removeEnabled
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   627
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   628
    removeEnabled isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   629
        removeEnabled := false asValue.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   630
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   631
    ^ removeEnabled.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   632
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   633
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   634
selectedPerModuleRoot
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   635
    selectedPerModuleRoot isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   636
        selectedPerModuleRoot := ValueHolder new.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   637
        selectedPerModuleRoot addDependent:self.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   638
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   639
    ^ selectedPerModuleRoot.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   640
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   641
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   642
sourceCacheDir
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   643
    sourceCacheDir isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   644
        sourceCacheDir := ValueHolder new.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   645
        sourceCacheDir onChangeSend:#updateModifiedChannel to:self
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   646
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   647
    ^ sourceCacheDir.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   648
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   649
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   650
tableColumns
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   651
    <resource: #uiAspect>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   652
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   653
    "automatically generated by UIPainter ..."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   654
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   655
    "*** the code below creates a default model when invoked."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   656
    "*** (which may not be the one you wanted)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   657
    "*** Please change as required and accept it in the browser."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   658
    "*** (and replace this comment by something more useful ;-)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   659
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   660
    tableColumns isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   661
        tableColumns := self class tableColumns asValue.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   662
"/ if your app needs to be notified of changes, uncomment one of the lines below:
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   663
"/       tableColumns addDependent:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   664
"/       tableColumns onChangeSend:#tableColumnsChanged to:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   665
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   666
    ^ tableColumns.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   667
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   668
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   669
verboseSourceCodeAccess
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   670
    verboseSourceCodeAccess isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   671
        verboseSourceCodeAccess := false asValue.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   672
        verboseSourceCodeAccess onChangeSend:#updateModifiedChannel to:self
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   673
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   674
    ^ verboseSourceCodeAccess.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   675
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   676
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   677
!PerforceSourceCodeManagementSettingsAppl methodsFor:'change & update'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   678
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   679
selectedPerModuleRootChanged
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   680
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   681
    self removeEnabled value:self selectedPerModuleRoot value notNil.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   682
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   683
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   684
sourceDirChanged
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   685
    | nm fn|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   686
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   687
    nm := self sourceCacheDir value.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   688
    nm isEmptyOrNil ifTrue:[^ self].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   689
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   690
    (fn := nm asFilename) exists ifFalse:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   691
        (self confirm:('SourceCache directory ''' , nm , ''' does not exist.\Create ?' withCRs)) ifTrue:[
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   692
            fn makeDirectory;
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   693
               makeReadableForAll;
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   694
               makeWritableForAll;
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   695
               makeExecutableForAll.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   696
        ] ifFalse:[
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   697
            self sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName).
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   698
            ^ self.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   699
        ].
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   700
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   701
    (fn isDirectory
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   702
    and:[fn isReadable
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   703
    and:[fn isWritable]]) ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   704
        AbstractSourceCodeManager cacheDirectoryName:nm.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   705
    ] ifFalse:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   706
        self warn:'Invalid sourceCache directory.'.
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   707
        self sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName).
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   708
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   709
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   710
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   711
update:something with:aParameter from:changedObject
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   712
    "/ common
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   713
    changedObject == sourceCacheDir ifTrue:[
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   714
        self sourceDirChanged.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   715
        self updateModifiedChannel.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   716
        ^ self
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   717
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   718
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   719
    changedObject == selectedPerModuleRoot ifTrue:[
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   720
        self selectedPerModuleRootChanged.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   721
        ^ self
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   722
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   723
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   724
    changedObject == self listOfModules ifTrue:[
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   725
        self updateModifiedChannel.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   726
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   727
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   728
    changedObject == defaultSettingsHolder ifTrue:[
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   729
        self updateModifiedChannel.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   730
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   731
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   732
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   733
    super update:something with:aParameter from:changedObject
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   734
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   735
    "Modified: / 09-11-2006 / 14:41:10 / cg"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   736
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   737
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   738
!PerforceSourceCodeManagementSettingsAppl methodsFor:'help'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   739
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   740
helpFilename
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   741
    ^ 'Launcher/cvsSetup.html'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   742
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   743
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   744
!PerforceSourceCodeManagementSettingsAppl methodsFor:'initialization & release'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   745
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   746
initialize
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   747
    (AbstractSourceCodeManager notNil) ifTrue:[ AbstractSourceCodeManager autoload ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   748
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   749
    sourceCacheDir := nil asValue.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   750
    sourceCacheDir addDependent:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   751
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   752
    super initialize.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   753
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   754
    "Modified: / 08-11-2006 / 19:20:32 / cg"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   755
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   756
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   757
!PerforceSourceCodeManagementSettingsAppl methodsFor:'queries'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   758
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   759
hasManager
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   760
    "true if ANY source code management class is available"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   761
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   762
    ^ PerforceSourceCodeManager notNil and:[PerforceSourceCodeManager isLoaded]
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   763
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   764
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   765
hasUnsavedChanges
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   766
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   767
    |repositoryInfoPerModule client settings|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   768
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   769
    client := self defaultSettingsHolder value.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   770
    client notNil ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   771
        settings := PerforceSourceCodeManager getPerforceSettingsFromString:client.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   772
        PerforceSourceCodeManager perforceClient ~= (settings at:#client ifAbsent:nil) ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   773
            ^ true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   774
        ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   775
        PerforceSourceCodeManager perforceUser ~= (settings at:#user ifAbsent:nil) ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   776
            ^ true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   777
        ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   778
        PerforceSourceCodeManager perforcePort ~= (settings at:#port ifAbsent:nil) ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   779
            ^ true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   780
        ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   781
        PerforceSourceCodeManager perforcePassword ~= (settings at:#password ifAbsent:nil) ifTrue:[
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   782
            ^ true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   783
        ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   784
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   785
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   786
    repositoryInfoPerModule := Dictionary new.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   787
    self listOfModules do:[:aModuleManager|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   788
        repositoryInfoPerModule at:aModuleManager module put:aModuleManager settings.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   789
    ].
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   790
    PerforceSourceCodeManager verboseSourceCodeAccess ~= self verboseSourceCodeAccess value ifTrue:[
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   791
        ^true
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   792
    ].
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   793
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   794
    PerforceSourceCodeManager repositoryInfoPerModule keysAndValuesDo:[:module :info |
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   795
        ((repositoryInfoPerModule includesKey:module) and:[info = (repositoryInfoPerModule at:module)])
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   796
        ifFalse:[^ true].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   797
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   798
    repositoryInfoPerModule keysAndValuesDo:[:module :info|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   799
        ((PerforceSourceCodeManager repositoryInfoPerModule includesKey:module) and:[(PerforceSourceCodeManager repositoryInfoPerModule at:module) = info])
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   800
        ifFalse:[^ true].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   801
    ].
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   802
    self perforceExecutableHolder value ~= PerforceSourceCodeManager perforceExecutable ifTrue:[
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   803
        ^true
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
   804
    ].
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   805
    ^ false
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   806
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   807
    "Modified: / 19-04-2011 / 10:54:31 / cg"
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   808
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   809
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   810
repositoryInfoPerModuleFor:sourceCodeManager
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   811
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   812
    |repositoryInfoPerModule|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   813
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   814
    repositoryInfoPerModule := Dictionary new.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   815
    self listOfModules do:[:aModuleManager|
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   816
        repositoryInfoPerModule at:aModuleManager module put:aModuleManager settings.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   817
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   818
    ^ repositoryInfoPerModule
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   819
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   820
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   821
!PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp class methodsFor:'instance creation'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   822
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   823
openFromSourceCodeManagementSettingsApp:something
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   824
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   825
    |inst|
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   826
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   827
    inst := self new.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   828
    inst sourceCodeManagementSettingsApp:something.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   829
    inst openModal.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   830
    ^ inst
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   831
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   832
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   833
!PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp class methodsFor:'interface specs'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   834
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   835
windowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   836
    "This resource specification was automatically generated
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   837
     by the UIPainter of ST/X."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   838
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   839
    "Do not manually edit this!! If it is corrupted,
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   840
     the UIPainter may not be able to read the specification."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   841
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   842
    "
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   843
     UIPainter new openOnClass:P4SourceCodeManagementSettingsAppl::ManagerPerModuleApp andSelector:#windowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   844
     P4SourceCodeManagementSettingsAppl::ManagerPerModuleApp new openInterface:#windowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   845
     P4SourceCodeManagementSettingsAppl::ManagerPerModuleApp open
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   846
    "
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   847
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   848
    <resource: #canvas>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   849
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   850
    ^ 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   851
     #(FullSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   852
        name: windowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   853
        window: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   854
       (WindowSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   855
          label: 'Manager per Module'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   856
          name: 'Manager per Module'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   857
          min: (Point 10 10)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   858
          max: (Point 1024 768)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   859
          bounds: (Rectangle 0 0 653 100)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   860
        )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   861
        component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   862
       (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   863
          collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   864
           (VerticalPanelViewSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   865
              name: 'VerticalPanel1'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   866
              layout: (LayoutFrame 0 0 0 0 -5 1 -30 1)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   867
              horizontalLayout: fit
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   868
              verticalLayout: topSpace
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   869
              horizontalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   870
              verticalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   871
              component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   872
             (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   873
                collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   874
                 (HorizontalPanelViewSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   875
                    name: 'HorizontalPanel1'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   876
                    horizontalLayout: leftFit
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   877
                    verticalLayout: center
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   878
                    horizontalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   879
                    verticalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   880
                    component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   881
                   (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   882
                      collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   883
                       (LabelSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   884
                          label: 'Module:'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   885
                          name: 'Label16'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   886
                          translateLabel: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   887
                          adjust: right
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   888
                          extent: (Point 180 17)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   889
                        )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   890
                       (InputFieldSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   891
                          name: 'EntryField7'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   892
                          tabable: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   893
                          model: moduleHolder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   894
                          acceptChannel: acceptChannel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   895
                          acceptOnPointerLeave: true
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   896
                          extent: (Point 465 22)
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   897
                        )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   898
                       )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   899
                     
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   900
                    )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   901
                    extent: (Point 648 23)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   902
                  )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   903
                 (HorizontalPanelViewSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   904
                    name: 'HorizontalPanel4'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   905
                    horizontalLayout: leftFit
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   906
                    verticalLayout: topSpace
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   907
                    horizontalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   908
                    verticalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   909
                    component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   910
                   (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   911
                      collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   912
                       (ViewSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   913
                          name: 'Box1'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   914
                          component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   915
                         (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   916
                            collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   917
                             (LabelSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   918
                                label: 'Manager Info'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   919
                                name: 'Label18'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   920
                                layout: (LayoutFrame 0 0 0 0 149 0 16 0)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   921
                                translateLabel: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   922
                                adjust: right
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   923
                              )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   924
                             (LabelSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   925
                                label: 'client:user:pass@host:port '
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   926
                                name: 'Label19'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   927
                                layout: (LayoutFrame 0 0 14 0 180 0 29 0)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   928
                                style: (FontDescription helvetica medium roman 10)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   929
                                level: 0
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   930
                                translateLabel: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   931
                                adjust: right
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   932
                              )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   933
                             )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   934
                           
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   935
                          )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   936
                          extent: (Point 180 35)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   937
                        )
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   938
                       (ComboBoxSpec
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   939
                          name: 'ComboBox1'
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   940
                          model: settingsHolder
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   941
                          acceptOnPointerLeave: false
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   942
                          comboList: defaultSettingsPrototypeList
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
   943
                          extent: (Point 465 20)
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   944
                        )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   945
                       )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   946
                     
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   947
                    )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   948
                    extent: (Point 648 35)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   949
                  )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   950
                 )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   951
               
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   952
              )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   953
            )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   954
           (HorizontalPanelViewSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   955
              name: 'HorizontalPanel2'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   956
              layout: (LayoutFrame 0 0 -30 1 0 1 0 1)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   957
              horizontalLayout: fitSpace
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   958
              verticalLayout: center
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   959
              horizontalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   960
              verticalSpace: 3
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   961
              component: 
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   962
             (SpecCollection
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   963
                collection: (
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   964
                 (ActionButtonSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   965
                    label: 'Add'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   966
                    name: 'Button1'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   967
                    translateLabel: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   968
                    model: doAccept
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   969
                    enableChannel: acceptEnableChannel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   970
                    extent: (Point 322 22)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   971
                  )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   972
                 (ActionButtonSpec
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   973
                    label: 'Cancel'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   974
                    name: 'Button2'
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   975
                    translateLabel: true
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   976
                    model: doCancel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   977
                    extent: (Point 322 22)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   978
                  )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   979
                 )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   980
               
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   981
              )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   982
            )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   983
           )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   984
         
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   985
        )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   986
      )
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   987
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   988
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
   989
!PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp methodsFor:'accessing'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   990
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   991
canceled
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   992
    ^ canceled
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   993
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   994
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   995
defaultSettingsPrototypeList
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   996
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   997
    defaultSettingsPrototypeList isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
   998
        defaultSettingsPrototypeList := sourceCodeManagementSettingsApp perforcePrototypeList.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   999
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1000
    ^ defaultSettingsPrototypeList.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1001
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1002
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1003
sourceCodeManagementSettingsApp
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1004
    ^ sourceCodeManagementSettingsApp
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1005
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1006
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1007
sourceCodeManagementSettingsApp:something
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1008
    sourceCodeManagementSettingsApp := something.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1009
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1010
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
  1011
!PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp methodsFor:'aspects'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1012
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1013
acceptChannel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1014
    <resource: #uiAspect>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1015
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1016
    "automatically generated by UIPainter ..."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1017
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1018
    "*** the code below creates a default model when invoked."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1019
    "*** (which may not be the one you wanted)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1020
    "*** Please change as required and accept it in the browser."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1021
    "*** (and replace this comment by something more useful ;-)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1022
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1023
    acceptChannel isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
  1024
        acceptChannel := TriggerValue new.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1025
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1026
    ^ acceptChannel.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1027
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1028
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1029
acceptEnableChannel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1030
    <resource: #uiAspect>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1031
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1032
    "automatically generated by UIPainter ..."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1033
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1034
    "*** the code below creates a default model when invoked."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1035
    "*** (which may not be the one you wanted)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1036
    "*** Please change as required and accept it in the browser."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1037
    "*** (and replace this comment by something more useful ;-)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1038
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1039
    acceptEnableChannel isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
  1040
        acceptEnableChannel := true asValue.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1041
"/ if your app needs to be notified of changes, uncomment one of the lines below:
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1042
"/       acceptEnableChannel addDependent:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1043
"/       acceptEnableChannel onChangeSend:#acceptEnableChannelChanged to:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1044
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1045
    ^ acceptEnableChannel.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1046
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1047
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1048
moduleHolder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1049
    <resource: #uiAspect>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1050
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1051
    "automatically generated by UIPainter ..."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1052
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1053
    "*** the code below creates a default model when invoked."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1054
    "*** (which may not be the one you wanted)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1055
    "*** Please change as required and accept it in the browser."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1056
    "*** (and replace this comment by something more useful ;-)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1057
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1058
    moduleHolder isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
  1059
        moduleHolder := ValueHolder new.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1060
"/ if your app needs to be notified of changes, uncomment one of the lines below:
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
  1061
        moduleHolder addDependent:self.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1062
"/       moduleHolder onChangeSend:#moduleHolderChanged to:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1063
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1064
    ^ moduleHolder.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1065
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1066
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1067
settingsHolder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1068
    <resource: #uiAspect>
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1069
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1070
    "automatically generated by UIPainter ..."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1071
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1072
    "*** the code below creates a default model when invoked."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1073
    "*** (which may not be the one you wanted)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1074
    "*** Please change as required and accept it in the browser."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1075
    "*** (and replace this comment by something more useful ;-)"
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1076
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1077
    settingsHolder isNil ifTrue:[
9861
2fb5f110fe82 class definition
Claus Gittinger <cg@exept.de>
parents: 9848
diff changeset
  1078
        settingsHolder := ValueHolder new.
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1079
"/ if your app needs to be notified of changes, uncomment one of the lines below:
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1080
"/       settingsHolder addDependent:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1081
"/       settingsHolder onChangeSend:#settingsHolderChanged to:self.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1082
    ].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1083
    ^ settingsHolder.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1084
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1085
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
  1086
!PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp methodsFor:'initialization & release'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1087
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1088
doCancel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1089
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1090
    canceled := true.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1091
    ^ super doCancel
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1092
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1093
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1094
postBuildWith:aBuilder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1095
    "This is a hook method generated by the Browser.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1096
     It will be invoked during the initialization of your app/dialog,
9846
646dc5b511fe changed:
Claus Gittinger <cg@exept.de>
parents: 9837
diff changeset
  1097
     after all of the visual components have been built,
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1098
     but BEFORE the top window is made visible.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1099
     Add any app-specific actions here (reading files, setting up values etc.)
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1100
     See also #postOpenWith:, which is invoked after opening."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1101
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1102
    "/ add any code here ...
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1103
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1104
    canceled := false.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1105
    ^ super postBuildWith:aBuilder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1106
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1107
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1108
postOpenWith:aBuilder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1109
    "This is a hook method generated by the Browser.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1110
     It will be invoked right after the applications window has been opened.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1111
     Add any app-specific actions here (starting background processes etc.).
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1112
     See also #postBuildWith:, which is invoked before opening."
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1113
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1114
    "/ add any code here ...
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1115
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1116
    ^ super postOpenWith:aBuilder
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1117
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1118
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
  1119
!PerforceSourceCodeManagementSettingsAppl::ModuleManager class methodsFor:'instance creation'!
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1120
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1121
newForApplication:anApplication
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1122
    |instance|
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1123
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1124
    instance := self new.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1125
    instance app:anApplication.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1126
    ^instance
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1127
! !
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1128
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
  1129
!PerforceSourceCodeManagementSettingsAppl::ModuleManager methodsFor:'accessing'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1130
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1131
app
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1132
    ^ app
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1133
!
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1134
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1135
app:something
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1136
    app := something.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1137
!
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1138
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1139
manager
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1140
    ^ manager
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1141
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1142
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1143
manager:something
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1144
    manager := something.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1145
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1146
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1147
module
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1148
    ^ module
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1149
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1150
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1151
module:something
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1152
    module := something.
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1153
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1154
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1155
settings
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1156
    ^ settings
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1157
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1158
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1159
settings:something
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1160
    settings := something.
9848
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1161
    app notNil ifTrue:[
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1162
        app listOfModules changed.
74fc0d845a9b comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents: 9846
diff changeset
  1163
    ].
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1164
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1165
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
  1166
!PerforceSourceCodeManagementSettingsAppl::ModuleManager methodsFor:'comparing'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1167
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1168
< aModuleManager
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1169
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1170
    ^ self module < aModuleManager module
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1171
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1172
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
  1173
!PerforceSourceCodeManagementSettingsAppl::ModuleManager methodsFor:'queries'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1174
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1175
availableManagerTypeNames
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1176
    ^ AbstractSourceCodeManager availableManagers collect:[:cls | cls managerTypeName].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1177
!
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1178
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1179
managerClass
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1180
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1181
    ^ AbstractSourceCodeManager availableManagers detect:[:cls | cls managerTypeName = manager] ifNone:[nil].
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1182
! !
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1183
9864
d9b21106b707 class definition
Claus Gittinger <cg@exept.de>
parents: 9861
diff changeset
  1184
!PerforceSourceCodeManagementSettingsAppl class methodsFor:'documentation'!
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1185
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1186
version_CVS
10029
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
  1187
    ^ '$Header: /cvs/stx/stx/libtool/PerforceSourceCodeManagementSettingsAppl.st,v 1.7 2011-07-01 14:57:58 cg Exp $'
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
  1188
!
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
  1189
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
  1190
version_SVN
7a3812d7edc3 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9873
diff changeset
  1191
    ^ '§Id§'
9837
ed120c35e09b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1192
! !