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