MCCommitDialog.st
author mawalch
Mon, 08 Aug 2016 20:13:50 +0200
changeset 1010 bac4a6f2690e
parent 974 c7dccf72f591
child 988 536fd853efeb
child 1016 01223fa57cf4
permissions -rw-r--r--
#OTHER by mawalch Fix ridiculously propagated typo.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"{ Package: 'stx:goodies/monticello' }"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
974
c7dccf72f591 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 785
diff changeset
     3
"{ NameSpace: Smalltalk }"
c7dccf72f591 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 785
diff changeset
     4
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
MCDialog subclass:#MCCommitDialog
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
	instanceVariableNames:'workingCopyHolder repositoryHolder versionNameHolder
742
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
     7
		messageHolder messageView versionNameFinderProcess
784
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
     8
		includeExtrasForSTX clearChangeSet'
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
     9
	classVariableNames:'LastRepository DefaultForIncludeSTXExtras
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
    10
		DefaultForClearChangeSet'
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
	poolDictionaries:''
580
d510eb1a7606 category change
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
    12
	category:'SCM-Monticello-St/X UI'
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
742
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    16
!MCCommitDialog class methodsFor:'help specs'!
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    17
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    18
flyByHelpSpec
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    19
    "This resource specification was automatically generated
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    20
     by the UIHelpTool of ST/X."
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    21
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    22
    "Do not manually edit this!! If it is corrupted,
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    23
     the UIHelpTool may not be able to read the specification."
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    24
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    25
    "
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    26
     UIHelpTool openOnClass:MCCommitDialog    
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    27
    "
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    28
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    29
    <resource: #help>
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    30
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    31
    ^ super flyByHelpSpec addPairsFrom:#(
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    32
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    33
#commitMessage
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    34
'A log message describing this version (your changes)'
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    35
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    36
#includeExtrasForSTX
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    37
'Include extra support files (makefiles) needed to build a binary class library under ST/X.
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    38
If this is not checked, only the plain code is saved which is needed to load the package as bytecode.
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    39
Notice, that those files are not strictly required - they can easily be recreated by loading the package,
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    40
and then recreating the support files from the system browser on the target system.
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    41
Turn this off, if this package is meant to be transported to or shared with other Smalltalk dialects.
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    42
(however, this is transparent to other Smalltalk dialects - these will simply ignore these additional definitions)'
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    43
784
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
    44
#clearChangeSet
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
    45
'Clear the internal changeset after the Monticello commit'
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
    46
742
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    47
#repository
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    48
'A repository or the name of a directory where the generated package file is to be stored'
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    49
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    50
#versionName
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    51
'The name of the version (will also be the name of the generated package file)'
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    52
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    53
)
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    54
! !
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    55
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
!MCCommitDialog class methodsFor:'interface specs'!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
contentSpec
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
    "This resource specification was automatically generated
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
     by the UIPainter of ST/X."
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
    "Do not manually edit this!! If it is corrupted,
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
     the UIPainter may not be able to read the specification."
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
    "
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
     UIPainter new openOnClass:MCCommitDialog andSelector:#contentSpec
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
     MCCommitDialog new openInterface:#contentSpec
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
    "
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
    <resource: #canvas>
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
    ^ 
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
     #(FullSpec
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
        name: contentSpec
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
        window: 
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
       (WindowSpec
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
          label: 'Commit Dialog'
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
          name: 'Commit Dialog'
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
          min: (Point 10 10)
742
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    80
          bounds: (Rectangle 0 0 555 303)
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
        )
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
        component: 
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
       (SpecCollection
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
          collection: (
537
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
    85
           (LabelSpec
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
    86
              label: 'Repository:'
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
    87
              name: 'Label1'
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
    88
              layout: (LayoutFrame 3 0 4 0 94 0 26 0)
742
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    89
              activeHelpKey: repository
537
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
    90
              translateLabel: true
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
    91
              adjust: left
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
    92
            )
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
           (ComboListSpec
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
              name: 'RepositoryList'
537
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
    95
              layout: (LayoutFrame 101 0 0 0 0 1 25 0)
742
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
    96
              activeHelpKey: repository
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
              model: repositoryHolder
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
              comboList: repositoryList
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
              useIndex: false
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
            )
537
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   101
           (LabelSpec
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   102
              label: 'Version:'
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   103
              name: 'Label2'
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   104
              layout: (LayoutFrame 3 0 30 0 94 0 52 0)
742
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   105
              activeHelpKey: versionName
537
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   106
              translateLabel: true
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   107
              adjust: left
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   108
            )
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
           (InputFieldSpec
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
              name: 'VersionName'
537
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   111
              layout: (LayoutFrame 101 0 30 0 0 1 55 0)
742
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   112
              activeHelpKey: versionName
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
              model: versionNameHolder
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
              immediateAccept: true
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
              acceptOnReturn: true
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
              acceptOnTab: true
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
              acceptOnPointerLeave: true
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
            )
742
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   119
           (CheckBoxSpec
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   120
              label: 'Include ST/X Support Files'
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   121
              name: 'CheckBox1'
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   122
              layout: (LayoutFrame 96 0 63 0 232 1 85 0)
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   123
              activeHelpKey: includeExtrasForSTX
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   124
              model: includeExtrasForSTX
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   125
              translateLabel: true
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   126
            )
784
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   127
           (CheckBoxSpec
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   128
              label: 'Clear Change Set'
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   129
              name: 'CheckBox2'
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   130
              layout: (LayoutFrame 96 0 90 0 232 1 112 0)
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   131
              activeHelpKey: clearChangeSet
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   132
              model: clearChangeSet
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   133
              translateLabel: true
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   134
            )
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   135
           (TextEditorSpec
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   136
              name: 'CommitMessage'
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   137
              layout: (LayoutFrame 0 0 120 0 0 1 0 1)
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   138
              activeHelpKey: commitMessage
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   139
              model: messageHolder
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   140
              hasHorizontalScrollBar: true
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   141
              hasVerticalScrollBar: true
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   142
              hasKeyboardFocusInitially: false
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   143
              postBuildCallback: postBuildMessageView:
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   144
            )
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
           )
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
         
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
        )
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
      )
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
! !
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
!MCCommitDialog methodsFor:'accessing'!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
workingCopy: aMCWorkingCopy
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
    ^self workingCopyHolder value: aMCWorkingCopy
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
    "Created: / 14-09-2010 / 23:43:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
! !
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
!MCCommitDialog methodsFor:'accessing - defaults'!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
defaultTitle
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
    "superclass MCDialog says that I am responsible to implement this method"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
537
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   165
    ^ 'Monticello Commit'
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
    "Modified: / 14-09-2010 / 23:00:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
537
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   168
    "Modified: / 02-12-2011 / 15:44:08 / cg"
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
! !
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
!MCCommitDialog methodsFor:'actions'!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
doAccept
537
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   174
    self acceptEnabled ifFalse:[^self].
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
537
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   176
    self withWaitCursorDo:[
784
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   177
        |workingCopy version repository clearChangeSet
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   178
         newVersionString stxPackageID defClass|
537
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   179
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   180
        workingCopy := self workingCopyHolder value.
569
8ee0dffb7160 class definition
Claus Gittinger <cg@exept.de>
parents: 537
diff changeset
   181
        repository := self repositoryHolder value.
8ee0dffb7160 class definition
Claus Gittinger <cg@exept.de>
parents: 537
diff changeset
   182
        LastRepository := repository.
784
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   183
        DefaultForIncludeSTXExtras := clearChangeSet := self clearChangeSet value.
569
8ee0dffb7160 class definition
Claus Gittinger <cg@exept.de>
parents: 537
diff changeset
   184
537
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   185
        [
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   186
            version := workingCopy newVersion
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   187
        ] on: MCVersionNameAndMessageRequest do:[:n | 
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   188
            n resume: (Array with: self versionNameHolder value 
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   189
                             with: messageView contents asText string)
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   190
        ].
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   191
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   192
        stxPackageID := version package name.
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   193
        defClass := ProjectDefinition definitionClassForPackage:stxPackageID.
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   194
        newVersionString := MCSourceCodeManager revisionStringForVersion:version.
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
537
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   196
        "/ update all project classes version_MC
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   197
        defClass allClasses do:[:cls |
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   198
            MCSourceCodeManager 
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   199
                updateVersionMethod:(MCSourceCodeManager nameOfVersionMethodInClasses) 
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   200
                of:cls 
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   201
                for:newVersionString.
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   202
        ].
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   203
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   204
        "/ update the project definition classes version_MC
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   205
        MCSourceCodeManager 
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   206
            updateVersionMethod:(MCSourceCodeManager nameOfVersionMethodInClasses) 
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   207
            of:defClass 
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   208
            for:newVersionString.
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   209
        MCSourceCodeManager 
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   210
            updateVersionMethod:(MCSourceCodeManager nameOfVersionMethodForExtensions) 
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   211
            of:defClass 
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   212
            for:newVersionString.
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   213
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   214
        "/ sigh: make a new snapshot (now with updated version methods)
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   215
        version snapshot:version package snapshot.
742
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   216
        version cachable:false. "/ force new a write (otherwise, the mcz is not rewritten)
758
e52bf52fafbb class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 757
diff changeset
   217
        version snapshot includeExtrasForSTX:(DefaultForIncludeSTXExtras := self includeExtrasForSTX value).
537
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   218
        repository storeVersion: version.
758
e52bf52fafbb class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 757
diff changeset
   219
784
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   220
        clearChangeSet ifTrue:[
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   221
            ChangeSet current condenseChangesForPackage:stxPackageID
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   222
        ].
537
f84d9254b1ba checkin support
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   223
    ].
784
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   224
    super doAccept.
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   225
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
    "Created: / 15-09-2010 / 14:07:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
569
8ee0dffb7160 class definition
Claus Gittinger <cg@exept.de>
parents: 537
diff changeset
   227
    "Modified: / 24-07-2012 / 16:33:56 / cg"
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
! !
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
!MCCommitDialog methodsFor:'aspects'!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
784
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   232
clearChangeSet
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   233
    clearChangeSet isNil ifTrue:[
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   234
        clearChangeSet := (DefaultForClearChangeSet ? true) asValue.
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   235
    ].
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   236
    ^ clearChangeSet
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   237
!
cac151328dea class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 758
diff changeset
   238
742
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   239
includeExtrasForSTX
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   240
    includeExtrasForSTX isNil ifTrue:[
758
e52bf52fafbb class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 757
diff changeset
   241
        includeExtrasForSTX := (DefaultForIncludeSTXExtras ? true) asValue.
742
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   242
    ].
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   243
    ^ includeExtrasForSTX
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   244
!
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   245
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
messageHolder
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   247
    "return/create the 'messageHolder' value holder (automatically generated)"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   248
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
    messageHolder isNil ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   250
        messageHolder := ValueHolder with: ('Commit message' asText colorizeAllWith: Color gray).
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
        messageHolder addDependent:self.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
    ^ messageHolder
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   255
    "Modified: / 15-09-2010 / 13:58:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   258
messageHolder:something
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   259
    "set the 'messageHolder' value holder (automatically generated)"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   260
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   261
    |oldValue newValue|
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   262
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
    messageHolder notNil ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
        oldValue := messageHolder value.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
        messageHolder removeDependent:self.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   267
    messageHolder := something.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   268
    messageHolder notNil ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
        messageHolder addDependent:self.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
    newValue := messageHolder value.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   272
    oldValue ~~ newValue ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   273
        self update:#value with:newValue from:messageHolder.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   274
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   275
!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   276
785
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   277
repositoryActionList
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   278
    "to determine which action to take when the repository selection is
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   279
     changed (especially for the add xxx entries)"
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   280
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   281
    ^
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   282
      (Array new: MCRepositoryGroup default repositories size)
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   283
      , (Array 
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   284
            with:nil
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   285
            with:#addRepository
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   286
            with:#addDirectoryRepository
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   287
        ) 
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   288
!
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   289
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
repositoryHolder
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
    "return/create the 'repositoryHolder' value holder (automatically generated)"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
569
8ee0dffb7160 class definition
Claus Gittinger <cg@exept.de>
parents: 537
diff changeset
   293
    |initial|
8ee0dffb7160 class definition
Claus Gittinger <cg@exept.de>
parents: 537
diff changeset
   294
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   295
    repositoryHolder isNil ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   296
        repositoryHolder := ValueHolder new.
569
8ee0dffb7160 class definition
Claus Gittinger <cg@exept.de>
parents: 537
diff changeset
   297
        initial := LastRepository.
8ee0dffb7160 class definition
Claus Gittinger <cg@exept.de>
parents: 537
diff changeset
   298
        initial isNil ifTrue:[
8ee0dffb7160 class definition
Claus Gittinger <cg@exept.de>
parents: 537
diff changeset
   299
            initial := UserPreferences current at:#mcPrimaryRepository ifAbsent:nil.
8ee0dffb7160 class definition
Claus Gittinger <cg@exept.de>
parents: 537
diff changeset
   300
        ].
8ee0dffb7160 class definition
Claus Gittinger <cg@exept.de>
parents: 537
diff changeset
   301
        repositoryHolder value:initial.
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
        repositoryHolder addDependent:self.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
    ^ repositoryHolder
529
d0d668b95c4c changed: #repositoryHolder
Claus Gittinger <cg@exept.de>
parents: 440
diff changeset
   305
569
8ee0dffb7160 class definition
Claus Gittinger <cg@exept.de>
parents: 537
diff changeset
   306
    "Modified: / 24-07-2012 / 16:32:01 / cg"
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   307
!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   308
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   309
repositoryHolder:something
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   310
    "set the 'repositoryHolder' value holder (automatically generated)"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
    |oldValue newValue|
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   313
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   314
    repositoryHolder notNil ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
        oldValue := repositoryHolder value.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
        repositoryHolder removeDependent:self.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   318
    repositoryHolder := something.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
    repositoryHolder notNil ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
        repositoryHolder addDependent:self.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
    newValue := repositoryHolder value.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
    oldValue ~~ newValue ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
        self update:#value with:newValue from:repositoryHolder.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   326
!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
repositoryList
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
785
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   330
    ^[
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   331
      MCRepositoryGroup default repositories
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   332
      , (Array 
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   333
            with:nil
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   334
            with:(resources string:'Open MC Repository Dialog...')
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   335
            with:(resources string:'Add Directory Repository...')
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   336
        ) 
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   337
     ]
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
    "Created: / 14-09-2010 / 23:16:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
573
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   340
    "Modified: / 31-08-2012 / 11:39:42 / cg"
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   342
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   343
versionNameHolder
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   344
    "return/create the 'versionNameHolder' value holder (automatically generated)"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   345
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   346
    versionNameHolder isNil ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   347
        versionNameHolder := ValueHolder new.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   348
        versionNameHolder addDependent:self.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   349
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   350
    ^ versionNameHolder
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   351
!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   352
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   353
versionNameHolder:something
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   354
    "set the 'versionNameHolder' value holder (automatically generated)"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   355
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   356
    |oldValue newValue|
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   357
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   358
    versionNameHolder notNil ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   359
        oldValue := versionNameHolder value.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   360
        versionNameHolder removeDependent:self.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   361
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   362
    versionNameHolder := something.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   363
    versionNameHolder notNil ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   364
        versionNameHolder addDependent:self.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   365
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   366
    newValue := versionNameHolder value.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   367
    oldValue ~~ newValue ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   368
        self update:#value with:newValue from:versionNameHolder.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   369
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   370
!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   371
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   372
workingCopyHolder
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   373
    "return/create the 'workingCopyHolder' value holder (automatically generated)"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   374
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   375
    workingCopyHolder isNil ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   376
        workingCopyHolder := ValueHolder new.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   377
        workingCopyHolder addDependent:self.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   378
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   379
    ^ workingCopyHolder
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   380
!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   381
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   382
workingCopyHolder:something
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   383
    "set the 'workingCopyHolder' value holder (automatically generated)"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   384
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   385
    |oldValue newValue|
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   386
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   387
    workingCopyHolder notNil ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   388
        oldValue := workingCopyHolder value.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   389
        workingCopyHolder removeDependent:self.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   390
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   391
    workingCopyHolder := something.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   392
    workingCopyHolder notNil ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   393
        workingCopyHolder addDependent:self.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   394
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   395
    newValue := workingCopyHolder value.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   396
    oldValue ~~ newValue ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   397
        self update:#value with:newValue from:workingCopyHolder.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   398
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   399
! !
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   400
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   401
!MCCommitDialog methodsFor:'change & update'!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   402
785
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   403
addDirectoryRepository
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   404
    |dir repo|
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   405
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   406
    dir := Dialog requestDirectoryName:'Choose a Repository Directory'.
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   407
    dir isEmptyOrNil ifTrue:[^ self].
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   408
    repo := MCDirectoryRepository directory:dir.
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   409
    MCRepositoryGroup default addRepository:repo.
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   410
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   411
    self repositoryHolder 
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   412
        value:repo
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   413
        withoutNotifying:self.
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   414
!
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   415
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   416
addRepository
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   417
    MCSettingsApp open.
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   418
    self repositoryHolder 
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   419
        value:(self repositoryList value first)
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   420
        withoutNotifying:self.
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   421
!
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   422
573
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   423
findUniqueVersionNumber
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   424
    | wc versionName |
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   425
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   426
    self versionNameHolder value:('One Moment, please...' colorizeAllWith:Color grey).
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   427
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   428
    wc := self workingCopyHolder value.
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   429
    self assert:wc notNil.
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   430
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   431
    self subtitle: wc package name.
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   432
    versionName := wc uniqueVersionName.
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   433
    self 
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   434
        enqueueMessage:#updateVersionNumberTo:
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   435
        for:self
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   436
        arguments: { versionName }
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   437
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   438
    "Created: / 31-08-2012 / 11:49:56 / cg"
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   439
!
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   440
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   441
messageChanged
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   442
974
c7dccf72f591 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 785
diff changeset
   443
    "/ self halt
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   444
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   445
    "Created: / 15-09-2010 / 10:04:08 / Jan Vrany <jan.vrany@fit.cvut.cz>"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   446
!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   447
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   448
repositoryChanged
785
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   449
    |selIndex action|
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   450
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   451
    selIndex := self repositoryList value indexOf:self repositoryHolder value.
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   452
    action := self repositoryActionList at:selIndex.
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   453
    action notNil ifTrue:[ 
4e581e7b9634 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 784
diff changeset
   454
        self perform:action.
573
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   455
    ].
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   456
    self updateAcceptEnabled
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   457
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   458
    "Created: / 15-09-2010 / 14:02:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
573
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   459
    "Modified: / 31-08-2012 / 12:01:02 / cg"
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   460
!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   461
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   462
update:something with:aParameter from:changedObject
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   463
    "Invoked when an object that I depend upon sends a change notification."
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   464
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   465
    "stub code automatically generated - please change as required"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   466
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   467
    changedObject == workingCopyHolder ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   468
         self workingCopyChanged.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   469
         ^ self.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   470
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   471
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   472
    changedObject == messageHolder ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   473
         self messageChanged.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   474
         ^ self.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   475
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   476
    changedObject == repositoryHolder ifTrue:[
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   477
         self repositoryChanged.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   478
         ^ self.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   479
    ].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   480
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   481
    super update:something with:aParameter from:changedObject
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   482
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   483
    "Modified: / 15-09-2010 / 14:02:19 / Jan Vrany <jan.vrany@fit.cvut.cz>"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   484
!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   485
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   486
updateAcceptEnabled
573
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   487
    | enabled |
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   488
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   489
    enabled := true.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   490
    enabled := enabled and:[self workingCopyHolder value notNil].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   491
    enabled := enabled and:[self repositoryHolder value notNil].
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   492
    self acceptEnabledHolder value: enabled.
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   493
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   494
    "Created: / 15-09-2010 / 14:01:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
573
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   495
    "Modified: / 31-08-2012 / 11:59:09 / cg"
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   496
!
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   497
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   498
updateVersionNumberTo:versionName
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   499
    self versionNameHolder value: versionName.
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   500
    self updateAcceptEnabled
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   501
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   502
    "Created: / 31-08-2012 / 11:54:15 / cg"
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   503
!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   504
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   505
workingCopyChanged
573
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   506
    |p|
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   507
573
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   508
    self window isNil ifTrue:[
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   509
        versionNameFinderProcess isNil ifTrue:[
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   510
            versionNameFinderProcess :=
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   511
                [
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   512
                    self findUniqueVersionNumber.
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   513
                ] fork.
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   514
        ].
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   515
        ^ self.
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   516
    ].
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   517
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   518
    (self workingCopyHolder value) notNil ifTrue:[
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   519
        (p := versionNameFinderProcess) notNil ifTrue:[
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   520
            versionNameFinderProcess := nil.
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   521
            p terminateAndWait.
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   522
        ].
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   523
        self findUniqueVersionNumber.
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   524
    ].
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   525
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   526
    "Created: / 15-09-2010 / 09:30:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   527
    "Modified: / 15-09-2010 / 14:01:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
573
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   528
    "Modified: / 31-08-2012 / 11:53:32 / cg"
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   529
! !
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   530
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   531
!MCCommitDialog methodsFor:'hooks'!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   532
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
postBuildMessageView: aView
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   534
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   535
    messageView := aView scrolledView
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   536
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   537
    "Created: / 15-09-2010 / 13:56:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   538
! !
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   539
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   540
!MCCommitDialog class methodsFor:'documentation'!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   541
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   542
version
974
c7dccf72f591 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 785
diff changeset
   543
    ^ '$Header: /cvs/stx/stx/goodies/monticello/MCCommitDialog.st,v 1.13 2015-02-25 00:12:38 cg Exp $'
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   544
!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   545
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   546
version_CVS
974
c7dccf72f591 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 785
diff changeset
   547
    ^ '$Header: /cvs/stx/stx/goodies/monticello/MCCommitDialog.st,v 1.13 2015-02-25 00:12:38 cg Exp $'
573
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   548
!
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   549
4cc009526331 class definition
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   550
version_MC
974
c7dccf72f591 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 785
diff changeset
   551
    ^ '$stx:goodies/monticello-cg.3 4e70fe70-f030-11e1-ac62-001f3bda2d09 2012-08-27T12:16:46 cg$'
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   552
!
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   553
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   554
version_SVN
974
c7dccf72f591 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 785
diff changeset
   555
    ^ '$Id: MCCommitDialog.st,v 1.13 2015-02-25 00:12:38 cg Exp $'
360
49f34323f6c6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   556
! !
742
65fd0b6f3267 class: MCCommitDialog
Claus Gittinger <cg@exept.de>
parents: 580
diff changeset
   557