author | Claus Gittinger <cg@exept.de> |
Fri, 23 Aug 2019 22:01:33 +0200 | |
changeset 19018 | 268408ec0be5 |
parent 18438 | b287b2fa9144 |
child 19067 | 993ed008232c |
permissions | -rw-r--r-- |
19018 | 1 |
"{ Encoding: utf8 }" |
2 |
||
6799 | 3 |
" |
4 |
COPYRIGHT (c) 2005 eXept Software AG |
|
5 |
All Rights Reserved |
|
6 |
||
7 |
This software is furnished under a license and may be used |
|
8 |
only in accordance with the terms of that license and with the |
|
9 |
inclusion of the above copyright notice. This software may not |
|
10 |
be provided or otherwise made available to, or used by, any |
|
11 |
other person. No title to or ownership of the software is |
|
12 |
hereby transferred. |
|
13 |
" |
|
14 |
"{ Package: 'stx:libtool' }" |
|
15 |
||
16 |
"{ NameSpace: Tools }" |
|
17 |
||
18 |
SimpleDialog subclass:#CheckinInfoDialog |
|
6979 | 19 |
instanceVariableNames:'descriptionHolder logMessageHolder isStableHolder tagHolder |
9508
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
20 |
quickCheckInHolder quickCheckInVisibleHolder allowEmptyLogMessage |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
21 |
warningMessageHolder logHistory logHistoryHeadLineSelectionHolder |
15841 | 22 |
validateConsistencyHolder validateConsistencyVisibleHolder |
23 |
checkinReasonHolder validateConsistencyEnabledHolder |
|
18130 | 24 |
quickCheckInEnabledHolder repositoryInfoHolder branchInfoHolder |
25 |
showChangesAction' |
|
15841 | 26 |
classVariableNames:'RecentlyUsedTags LastReason' |
6799 | 27 |
poolDictionaries:'' |
28 |
category:'System-SourceCodeManagement' |
|
29 |
! |
|
30 |
||
31 |
!CheckinInfoDialog class methodsFor:'documentation'! |
|
32 |
||
33 |
copyright |
|
34 |
" |
|
35 |
COPYRIGHT (c) 2005 eXept Software AG |
|
36 |
All Rights Reserved |
|
37 |
||
38 |
This software is furnished under a license and may be used |
|
39 |
only in accordance with the terms of that license and with the |
|
40 |
inclusion of the above copyright notice. This software may not |
|
41 |
be provided or otherwise made available to, or used by, any |
|
42 |
other person. No title to or ownership of the software is |
|
43 |
hereby transferred. |
|
44 |
" |
|
45 |
! |
|
46 |
||
47 |
documentation |
|
48 |
" |
|
49 |
checkin-dialog. |
|
50 |
used to be private in SourceCodeManagerUtilites. |
|
51 |
moved to libtool because libbasic3 should not contain code inheriting from GUI classes. |
|
52 |
||
53 |
[author:] |
|
54 |
||
55 |
[see also:] |
|
56 |
||
57 |
[instance variables:] |
|
58 |
||
59 |
[class variables:] |
|
60 |
" |
|
61 |
! ! |
|
62 |
||
15853 | 63 |
!CheckinInfoDialog class methodsFor:'constants'! |
64 |
||
16224 | 65 |
possibleReasons |
66 |
^ #(reasonBugfix reasonDocumentation reasonFeature reasonRefactoring |
|
19018 | 67 |
reasonOther reasonUIEnhancement reasonTuning reasonQuality reasonWorkaround) |
16224 | 68 |
|
69 |
"Created: / 31-03-2016 / 17:53:16 / cg" |
|
70 |
! |
|
71 |
||
15853 | 72 |
reasonBugfix |
73 |
^ #reasonBugfix |
|
74 |
! |
|
75 |
||
76 |
reasonDocumentation |
|
77 |
^ #reasonDocumentation |
|
78 |
! |
|
79 |
||
80 |
reasonFeature |
|
81 |
^ #reasonFeature |
|
82 |
! |
|
83 |
||
84 |
reasonOther |
|
85 |
^ #reasonOther |
|
86 |
! |
|
87 |
||
16224 | 88 |
reasonQuality |
89 |
^ #reasonQuality |
|
90 |
||
91 |
"Created: / 31-03-2016 / 17:53:57 / cg" |
|
92 |
! |
|
93 |
||
15853 | 94 |
reasonRefactoring |
95 |
^ #reasonRefactoring |
|
15873 | 96 |
! |
97 |
||
16224 | 98 |
reasonTuning |
99 |
^ #reasonTuning |
|
100 |
||
101 |
"Created: / 31-03-2016 / 17:53:26 / cg" |
|
102 |
! |
|
103 |
||
15873 | 104 |
reasonUIEnhancement |
105 |
^ #reasonUIEnhancement |
|
19018 | 106 |
! |
107 |
||
108 |
reasonWorkaround |
|
109 |
^ #reasonWorkaround |
|
15853 | 110 |
! ! |
111 |
||
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
112 |
!CheckinInfoDialog class methodsFor:'help specs'! |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
113 |
|
17882 | 114 |
helpSpec |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
115 |
"This resource specification was automatically generated |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
116 |
by the UIHelpTool of ST/X." |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
117 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
118 |
"Do not manually edit this!! If it is corrupted, |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
119 |
the UIHelpTool may not be able to read the specification." |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
120 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
121 |
" |
18130 | 122 |
UIHelpTool openOnClass:Tools::CheckinInfoDialog |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
123 |
" |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
124 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
125 |
<resource: #help> |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
126 |
|
17882 | 127 |
^ super helpSpec addPairsFrom:#( |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
128 |
|
18130 | 129 |
#checkinReason |
130 |
'Adds a keyword to the checkin info, to allow automatic generation of revision information from the log later' |
|
131 |
||
132 |
#checkinReasonBugfix |
|
133 |
'Some bug was fixed.\Please describe what was changed and\if possible, add a bug identifier (issue-ID) to the checkin info' |
|
134 |
||
135 |
#checkinReasonDocumentation |
|
136 |
'Only documentation, comments etc. were added/changed.\Tells others, that there is no need to test/verify/review the changes' |
|
137 |
||
138 |
#checkinReasonFeature |
|
139 |
'A new feature was added.\Please describe what was changed and\if possible, add a requirement identifier (issue-ID) to the checkin info' |
|
140 |
||
141 |
#checkinReasonOther |
|
142 |
'Some other change, which does not fit into one of the above.\Please describe in detail what you did in the checkin info' |
|
143 |
||
144 |
#checkinReasonQuality |
|
145 |
'The change enhanced the quality of the product (debuggability, testability, robustness, etc.)\Use this for test-cases.' |
|
146 |
||
147 |
#checkinReasonRefactoring |
|
148 |
'The code was refactored/improved for better structure or maintainability' |
|
149 |
||
150 |
#checkinReasonTuning |
|
151 |
'The change enhances the performance.\Be especially careful to always add test cases,\because statistically, many errors are introduced by "optimizations".' |
|
152 |
||
153 |
#checkinReasonUIEnhancement |
|
154 |
'Some enhancement in a UI which makes it look better or easier to use\(but does not add new functionality).\Please describe in detail what you did in the checkin info' |
|
155 |
||
19018 | 156 |
#checkinReasonWorkaround |
157 |
'Some bug was fixed as a quick hack (eg. to satisfy a customer).\The change should be further investigated,\and propably a better technical solution be found.\\But still, please describe what was changed and\if possible, add a bug identifier (issue-ID) to the checkin info' |
|
158 |
||
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
159 |
#logMessage |
18130 | 160 |
'This message is added as a check-in log message. It can later be retrieved via the browser''s revision info menu function' |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
161 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
162 |
#markAsStable |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
163 |
'Mark this as a stable version (i.e. give it a "stable" tag)' |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
164 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
165 |
#quickCheckin |
15841 | 166 |
'Only checkin classes which have been created or changed during this session' |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
167 |
|
18130 | 168 |
#showDiffs |
169 |
'Oops - you forgot?\\Click here to see the differences.' |
|
170 |
||
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
171 |
#tag |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
172 |
'Mark this version with a symbolic tag (combo list gives list of recently used tags)' |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
173 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
174 |
#validateConsistency |
18130 | 175 |
'Perform some consistency checks before checking in. Especially checks the correctness of the ProjectDefinition vs. the actual set of classes in the image' |
15853 | 176 |
|
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
177 |
) |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
178 |
! ! |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
179 |
|
6799 | 180 |
!CheckinInfoDialog class methodsFor:'interface specs'! |
181 |
||
182 |
windowSpec |
|
183 |
"This resource specification was automatically generated |
|
184 |
by the UIPainter of ST/X." |
|
185 |
||
186 |
"Do not manually edit this!! If it is corrupted, |
|
187 |
the UIPainter may not be able to read the specification." |
|
188 |
||
189 |
" |
|
6979 | 190 |
UIPainter new openOnClass:Tools::CheckinInfoDialog andSelector:#windowSpec |
191 |
Tools::CheckinInfoDialog new openInterface:#windowSpec |
|
192 |
Tools::CheckinInfoDialog open |
|
6799 | 193 |
" |
194 |
||
195 |
<resource: #canvas> |
|
196 |
||
197 |
^ |
|
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
198 |
#(FullSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
199 |
name: windowSpec |
19018 | 200 |
uuid: '0615effe-c5e0-11e9-bb4b-10ddb1cc5928' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
201 |
window: |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
202 |
(WindowSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
203 |
label: 'Enter Log Message' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
204 |
name: 'Enter Log Message' |
17837 | 205 |
uuid: '35292892-d93d-11e7-8a1e-c42c033b4871' |
19018 | 206 |
min: (Point 538 387) bounds: (Rectangle 0 0 579 567) |
207 |
) component: |
|
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
208 |
(SpecCollection |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
209 |
collection: ( |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
210 |
(HorizontalPanelViewSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
211 |
name: 'HorizontalPanel2' |
19018 | 212 |
layout: (LayoutFrame 0 0.0 0 0 0 1.0 32 0) uuid: '35292b58-d93d-11e7-8a1e-c42c033b4871' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
213 |
horizontalLayout: left |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
214 |
verticalLayout: center |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
215 |
horizontalSpace: 0 |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
216 |
verticalSpace: 3 |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
217 |
component: |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
218 |
(SpecCollection |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
219 |
collection: ( |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
220 |
(LabelSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
221 |
label: 'Enter checkIn log-message for:' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
222 |
name: 'Label1' |
17837 | 223 |
uuid: '35292da6-d93d-11e7-8a1e-c42c033b4871' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
224 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
225 |
resizeForLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
226 |
useDefaultExtent: true |
19018 | 227 |
) |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
228 |
(LabelSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
229 |
name: 'Label2' |
17837 | 230 |
uuid: '35293008-d93d-11e7-8a1e-c42c033b4871' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
231 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
232 |
labelChannel: descriptionHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
233 |
useDefaultExtent: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
234 |
) |
19018 | 235 |
) |
236 |
) |
|
237 |
) |
|
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
238 |
(LabelSpec |
17843 | 239 |
name: 'BranchInfoLabel' |
19018 | 240 |
layout: (LayoutFrame 0 0 31 0 200 0 57 0) style: (FontDescription helvetica medium roman 12 #'iso10646-1' nil nil) uuid: '35293166-d93d-11e7-8a1e-c42c033b4871' |
17837 | 241 |
translateLabel: true |
17843 | 242 |
labelChannel: branchInfoHolder |
243 |
resizeForLabel: true |
|
244 |
adjust: left |
|
19018 | 245 |
) |
17843 | 246 |
(LabelSpec |
247 |
name: 'RepositoryInfoLabel' |
|
19018 | 248 |
layout: (LayoutFrame 149 0 31 0 0 1 57 0) style: (FontDescription helvetica medium roman 12 #'iso10646-1' nil nil) uuid: '35293166-d93d-11e7-8a1e-c42c033b4871' |
17843 | 249 |
translateLabel: true |
250 |
labelChannel: repositoryInfoHolder |
|
17837 | 251 |
resizeForLabel: true |
252 |
adjust: right |
|
19018 | 253 |
) |
17837 | 254 |
(LabelSpec |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
255 |
label: 'Previous Log Messages:' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
256 |
name: 'Label5' |
19018 | 257 |
layout: (LayoutFrame 0 0 73 0 220 0 103 0) uuid: '3529329c-d93d-11e7-8a1e-c42c033b4871' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
258 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
259 |
adjust: right |
19018 | 260 |
) |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
261 |
(ComboListSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
262 |
name: 'ComboList1' |
19018 | 263 |
layout: (LayoutFrame 220 0.0 73 0 0 1.0 103 0) uuid: '352933b4-d93d-11e7-8a1e-c42c033b4871' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
264 |
model: logHistoryHeadLineSelectionHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
265 |
comboList: logHistoryHeadLines |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
266 |
useIndex: true |
19018 | 267 |
) |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
268 |
(TextEditorSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
269 |
name: 'TextEditor1' |
19018 | 270 |
layout: (LayoutFrame 2 0.0 105 0 -2 1 -300 1) activeHelpKey: logMessage |
17837 | 271 |
uuid: '35293602-d93d-11e7-8a1e-c42c033b4871' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
272 |
model: logMessageHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
273 |
hasHorizontalScrollBar: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
274 |
hasVerticalScrollBar: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
275 |
hasKeyboardFocusInitially: false |
19018 | 276 |
) |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
277 |
(LabelSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
278 |
name: 'Label4' |
19018 | 279 |
layout: (LayoutFrame 0 0.0 -293 1 0 1.0 -271 1) uuid: '35293828-d93d-11e7-8a1e-c42c033b4871' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
280 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
281 |
labelChannel: warningMessageHolder |
19018 | 282 |
) |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
283 |
(CheckBoxSpec |
15841 | 284 |
label: 'Quick Checkin (Only Classes in ChangeSet)' |
285 |
name: 'CheckInChangedOnlyCheckbox' |
|
19018 | 286 |
layout: (LayoutFrame 3 0 -268 1 -3 1 -246 1) activeHelpKey: quickCheckin |
17837 | 287 |
uuid: '35293954-d93d-11e7-8a1e-c42c033b4871' |
15841 | 288 |
visibilityChannel: quickCheckInVisibleHolder |
289 |
enableChannel: quickCheckInEnabledHolder |
|
290 |
model: quickCheckInHolder |
|
291 |
translateLabel: true |
|
19018 | 292 |
) |
15841 | 293 |
(CheckBoxSpec |
18438 | 294 |
label: 'Validate Class/Package Consistency' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
295 |
name: 'CheckBox1' |
19018 | 296 |
layout: (LayoutFrame 3 0 -241 1 -3 1 -219 1) activeHelpKey: validateConsistency |
17837 | 297 |
uuid: '35293b70-d93d-11e7-8a1e-c42c033b4871' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
298 |
visibilityChannel: validateConsistencyVisibleHolder |
15841 | 299 |
enableChannel: validateConsistencyEnabledHolder |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
300 |
model: validateConsistencyHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
301 |
translateLabel: true |
19018 | 302 |
) |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
303 |
(CheckBoxSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
304 |
label: 'Mark as Stable' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
305 |
name: 'MarkStableCheckBox' |
19018 | 306 |
layout: (LayoutFrame 3 0 -214 1 -3 1 -192 1) activeHelpKey: markAsStable |
17837 | 307 |
uuid: '35293c9c-d93d-11e7-8a1e-c42c033b4871' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
308 |
model: isStableHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
309 |
translateLabel: true |
19018 | 310 |
) |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
311 |
(LabelSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
312 |
label: 'Tag:' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
313 |
name: 'Label3' |
19018 | 314 |
layout: (LayoutFrame -40 0.5 -213 1 0 0.5 -191 1) activeHelpKey: tag |
17837 | 315 |
uuid: '35293db4-d93d-11e7-8a1e-c42c033b4871' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
316 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
317 |
adjust: right |
19018 | 318 |
) |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
319 |
(ComboBoxSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
320 |
name: 'ComboBox1' |
19018 | 321 |
layout: (LayoutFrame 0 0.5 -214 1 -3 1 -192 1) activeHelpKey: tag |
17837 | 322 |
uuid: '35293ee0-d93d-11e7-8a1e-c42c033b4871' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
323 |
enableChannel: notMarkAsStableHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
324 |
model: tagHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
325 |
acceptOnReturn: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
326 |
acceptOnTab: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
327 |
acceptOnLostFocus: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
328 |
acceptOnPointerLeave: false |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
329 |
comboList: recentTagsList |
19018 | 330 |
) |
15849 | 331 |
(LabelSpec |
332 |
label: 'Reason for Checkin:' |
|
333 |
name: 'Label6' |
|
19018 | 334 |
layout: (LayoutOrigin 2 0 -184 1) activeHelpKey: checkinReason |
17837 | 335 |
uuid: '35294232-d93d-11e7-8a1e-c42c033b4871' |
15849 | 336 |
translateLabel: true |
337 |
resizeForLabel: true |
|
338 |
adjust: right |
|
19018 | 339 |
) |
15849 | 340 |
(RadioButtonSpec |
341 |
label: 'Bugfix' |
|
342 |
name: 'RadioButton1' |
|
19018 | 343 |
layout: (LayoutFrame 20 0.0 -159 1 300 0 -137 1) activeHelpKey: checkinReasonBugfix |
17837 | 344 |
uuid: '3529437c-d93d-11e7-8a1e-c42c033b4871' |
15849 | 345 |
translateLabel: true |
346 |
model: checkinReasonHolder |
|
347 |
isTriggerOnDown: true |
|
16922 | 348 |
select: reasonBugfix |
19018 | 349 |
) |
15849 | 350 |
(RadioButtonSpec |
351 |
label: 'Feature / Enhancement' |
|
352 |
name: 'RadioButton2' |
|
19018 | 353 |
layout: (LayoutFrame 20 0 -135 1 -279 1 -113 1) activeHelpKey: checkinReasonFeature |
17837 | 354 |
uuid: '35294656-d93d-11e7-8a1e-c42c033b4871' |
15849 | 355 |
translateLabel: true |
356 |
model: checkinReasonHolder |
|
357 |
isTriggerOnDown: true |
|
358 |
select: reasonFeature |
|
19018 | 359 |
) |
15849 | 360 |
(RadioButtonSpec |
361 |
label: 'Refactoring / Code Cleanup' |
|
362 |
name: 'RadioButton3' |
|
19018 | 363 |
layout: (LayoutFrame 9 0.5 -159 1 0 1 -137 1) activeHelpKey: checkinReasonRefactoring |
17837 | 364 |
uuid: '35294840-d93d-11e7-8a1e-c42c033b4871' |
15849 | 365 |
translateLabel: true |
366 |
model: checkinReasonHolder |
|
367 |
isTriggerOnDown: true |
|
368 |
select: reasonRefactoring |
|
19018 | 369 |
) |
15849 | 370 |
(RadioButtonSpec |
15873 | 371 |
label: 'UI Enhancement / Beautification' |
372 |
name: 'RadioButton6' |
|
19018 | 373 |
layout: (LayoutFrame 20 0 -111 1 -279 1 -89 1) activeHelpKey: checkinReasonUIEnhancement |
17837 | 374 |
uuid: '35294a02-d93d-11e7-8a1e-c42c033b4871' |
15873 | 375 |
translateLabel: true |
376 |
model: checkinReasonHolder |
|
377 |
isTriggerOnDown: true |
|
378 |
select: reasonUIEnhancement |
|
19018 | 379 |
) |
15873 | 380 |
(RadioButtonSpec |
15853 | 381 |
label: 'Documentation / Comment Only' |
382 |
name: 'RadioButton5' |
|
19018 | 383 |
layout: (LayoutFrame 9 0.5 -111 1 0 1 -89 1) activeHelpKey: checkinReasonDocumentation |
17837 | 384 |
uuid: '35294bb0-d93d-11e7-8a1e-c42c033b4871' |
15853 | 385 |
translateLabel: true |
386 |
model: checkinReasonHolder |
|
387 |
isTriggerOnDown: true |
|
388 |
select: reasonDocumentation |
|
19018 | 389 |
) |
15853 | 390 |
(RadioButtonSpec |
16224 | 391 |
label: 'Tuning' |
392 |
name: 'RadioButton4a' |
|
19018 | 393 |
layout: (LayoutFrame 20 0 -87 1 -279 1 -65 1) activeHelpKey: checkinReasonTuning |
17837 | 394 |
uuid: '35294d5e-d93d-11e7-8a1e-c42c033b4871' |
16224 | 395 |
translateLabel: true |
396 |
model: checkinReasonHolder |
|
397 |
isTriggerOnDown: true |
|
398 |
select: reasonTuning |
|
19018 | 399 |
) |
16224 | 400 |
(RadioButtonSpec |
16236 | 401 |
label: 'Quality (Debuggability / Testability)' |
15849 | 402 |
name: 'RadioButton4' |
19018 | 403 |
layout: (LayoutFrame 9 0.5 -135 1 0 1 -113 1) activeHelpKey: checkinReasonQuality |
17837 | 404 |
uuid: '35294f0c-d93d-11e7-8a1e-c42c033b4871' |
16224 | 405 |
translateLabel: true |
406 |
model: checkinReasonHolder |
|
407 |
isTriggerOnDown: true |
|
408 |
select: reasonQuality |
|
19018 | 409 |
) |
16224 | 410 |
(RadioButtonSpec |
411 |
label: 'None of the Above' |
|
412 |
name: 'RadioButton7' |
|
19018 | 413 |
layout: (LayoutFrame 20 0 -63 1 -279 1 -41 1) activeHelpKey: checkinReasonOther |
17837 | 414 |
uuid: '352950ba-d93d-11e7-8a1e-c42c033b4871' |
15849 | 415 |
translateLabel: true |
416 |
model: checkinReasonHolder |
|
417 |
isTriggerOnDown: true |
|
418 |
select: reasonOther |
|
19018 | 419 |
) |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
420 |
(HorizontalPanelViewSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
421 |
name: 'ButtonPanel1' |
19018 | 422 |
layout: (LayoutFrame 0 0.0 -40 1 -16 1.0 0 1.0) uuid: '35295268-d93d-11e7-8a1e-c42c033b4871' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
423 |
horizontalLayout: fitSpace |
18220 | 424 |
verticalLayout: centerMax |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
425 |
horizontalSpace: 3 |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
426 |
verticalSpace: 2 |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
427 |
reverseOrderIfOKAtLeft: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
428 |
component: |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
429 |
(SpecCollection |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
430 |
collection: ( |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
431 |
(ActionButtonSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
432 |
label: 'Cancel' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
433 |
name: 'Button2' |
17837 | 434 |
uuid: '352953a8-d93d-11e7-8a1e-c42c033b4871' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
435 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
436 |
model: doCancel |
19018 | 437 |
extent: (Point 183 34) usePreferredHeight: true |
438 |
) |
|
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
439 |
(ActionButtonSpec |
18130 | 440 |
label: 'What Changed?' |
441 |
name: 'Button3' |
|
442 |
activeHelpKey: showDiffs |
|
443 |
uuid: '6573b3de-5a05-11e8-ad24-b8f6b1108e05' |
|
444 |
visibilityChannel: showChangesButtonVisible |
|
445 |
translateLabel: true |
|
446 |
model: showChanges |
|
19018 | 447 |
extent: (Point 183 34) |
448 |
) |
|
18130 | 449 |
(ActionButtonSpec |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
450 |
label: 'OK' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
451 |
name: 'Button1' |
17837 | 452 |
uuid: '35295560-d93d-11e7-8a1e-c42c033b4871' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
453 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
454 |
model: doAccept |
19018 | 455 |
extent: (Point 184 34) usePreferredHeight: true |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
456 |
) |
19018 | 457 |
) |
458 |
) keepSpaceForOSXResizeHandleH: true |
|
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
459 |
) |
19018 | 460 |
(RadioButtonSpec |
461 |
label: 'Workaround (Investigate Further)' |
|
462 |
name: 'RadioButton8' |
|
463 |
layout: (LayoutFrame 9 0.5 -87 1 0 1 -65 1) activeHelpKey: checkinReasonWorkaround |
|
464 |
uuid: '35294d5e-d93d-11e7-8a1e-c42c033b4871' |
|
465 |
translateLabel: true |
|
466 |
model: checkinReasonHolder |
|
467 |
isTriggerOnDown: true |
|
468 |
select: reasonWorkaround |
|
469 |
) |
|
470 |
) |
|
471 |
) |
|
472 |
) |
|
6799 | 473 |
! ! |
474 |
||
475 |
!CheckinInfoDialog class methodsFor:'opening'! |
|
476 |
||
17837 | 477 |
getCheckinInfoFor:infoString initialAnswer:initialAnswer |
11412 | 478 |
^ self |
17837 | 479 |
getCheckinInfoFor:infoString |
11412 | 480 |
initialAnswer:initialAnswer |
481 |
withQuickOption:false |
|
6979 | 482 |
|
483 |
" |
|
484 |
self getCheckinInfoFor:'hello' initialAnswer:'bla' |
|
485 |
" |
|
11412 | 486 |
|
17837 | 487 |
"Modified (format): / 04-12-2017 / 23:08:50 / cg" |
6979 | 488 |
! |
489 |
||
17837 | 490 |
getCheckinInfoFor:infoString initialAnswer:initialAnswer withQuickOption:withQuickOption |
11412 | 491 |
^ self |
17837 | 492 |
getCheckinInfoFor:infoString |
11412 | 493 |
initialAnswer:initialAnswer |
494 |
withQuickOption:withQuickOption |
|
495 |
logHistory:#() |
|
496 |
||
497 |
" |
|
498 |
self getCheckinInfoFor:'hello' initialAnswer:'bla' |
|
499 |
" |
|
500 |
||
501 |
"Modified: / 12-03-2012 / 12:39:00 / cg" |
|
17837 | 502 |
"Modified (format): / 04-12-2017 / 23:08:40 / cg" |
11412 | 503 |
! |
504 |
||
17837 | 505 |
getCheckinInfoFor:infoString initialAnswer:initialAnswer withQuickOption:withQuickOption logHistory:logHistoryArg |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
506 |
^ self |
17837 | 507 |
getCheckinInfoFor:infoString |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
508 |
initialAnswer:initialAnswer |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
509 |
withQuickOption:withQuickOption |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
510 |
logHistory:logHistoryArg |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
511 |
withValidateConsistencyOption:false |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
512 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
513 |
" |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
514 |
self getCheckinInfoFor:'hello' initialAnswer:'bla' |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
515 |
self getCheckinInfoFor:'hello' initialAnswer:'bla' withQuickOption:true |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
516 |
self getCheckinInfoFor:'hello' initialAnswer:'bla' withQuickOption:true logHistory:nil withConsistencyCheckOption:true |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
517 |
" |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
518 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
519 |
"Created: / 12-03-2012 / 12:36:26 / cg" |
17837 | 520 |
"Modified (format): / 04-12-2017 / 23:08:35 / cg" |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
521 |
! |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
522 |
|
17837 | 523 |
getCheckinInfoFor:infoString initialAnswer:initialAnswer |
15841 | 524 |
withQuickOption:withQuickOption |
525 |
logHistory:logHistoryArg |
|
526 |
withValidateConsistencyOption:withValidateConsistencyOption |
|
18131 | 527 |
^ self new |
528 |
getCheckinInfoFor:infoString initialAnswer:initialAnswer |
|
15841 | 529 |
withQuickOption:withQuickOption |
530 |
logHistory:logHistoryArg |
|
531 |
withValidateConsistencyOption:withValidateConsistencyOption |
|
532 |
||
533 |
" |
|
534 |
self getCheckinInfoFor:'hello' initialAnswer:'bla' |
|
535 |
" |
|
536 |
||
537 |
"Created: / 12-03-2012 / 12:36:26 / cg" |
|
17837 | 538 |
"Modified (format): / 04-12-2017 / 23:07:46 / cg" |
15841 | 539 |
! |
540 |
||
17837 | 541 |
getCheckinInfoFor:infoString initialAnswer:initialAnswer |
15841 | 542 |
withQuickOption:withQuickOption |
543 |
logHistory:logHistoryArg |
|
544 |
withValidateConsistencyOption:withValidateConsistencyOption |
|
545 |
initialReason:defaultReason |
|
546 |
||
18131 | 547 |
^ self new |
548 |
getCheckinInfoFor:infoString initialAnswer:initialAnswer |
|
549 |
withQuickOption:withQuickOption |
|
550 |
logHistory:logHistoryArg |
|
551 |
withValidateConsistencyOption:withValidateConsistencyOption |
|
552 |
initialReason:defaultReason |
|
6799 | 553 |
|
554 |
||
555 |
" |
|
7110
86a7ea1388a1
no tagIt checkBox - non-empty tag value means: tagIt
Claus Gittinger <cg@exept.de>
parents:
7097
diff
changeset
|
556 |
self getCheckinInfoFor:'hello' initialAnswer:'bla' |
6799 | 557 |
" |
7110
86a7ea1388a1
no tagIt checkBox - non-empty tag value means: tagIt
Claus Gittinger <cg@exept.de>
parents:
7097
diff
changeset
|
558 |
|
11412 | 559 |
"Created: / 12-03-2012 / 12:36:26 / cg" |
17843 | 560 |
"Modified: / 05-12-2017 / 23:07:06 / cg" |
6799 | 561 |
! ! |
562 |
||
563 |
!CheckinInfoDialog methodsFor:'accessing'! |
|
564 |
||
9508
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
565 |
allowEmptyLogMessage |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
566 |
^ allowEmptyLogMessage ? false |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
567 |
|
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
568 |
"Created: / 06-07-2010 / 11:23:18 / cg" |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
569 |
! |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
570 |
|
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
571 |
allowEmptyLogMessage:aBoolean |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
572 |
allowEmptyLogMessage := aBoolean |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
573 |
|
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
574 |
"Created: / 06-07-2010 / 11:23:31 / cg" |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
575 |
! |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
576 |
|
17843 | 577 |
branchInfo:aString |
578 |
self branchInfoHolder value:aString |
|
579 |
||
580 |
"Created: / 05-12-2017 / 23:08:09 / cg" |
|
581 |
! |
|
582 |
||
15841 | 583 |
checkinReason |
19018 | 584 |
"returns one of: #(reasonBugfix reasonFeature reasonRefactoring reasonDocumentation reasonOther reasonWorkaround)" |
15841 | 585 |
|
586 |
^ self checkinReasonHolder value |
|
587 |
! |
|
588 |
||
589 |
checkinReason:aSymbolicReason |
|
16224 | 590 |
self assert:( self class possibleReasons includes:aSymbolicReason). |
15841 | 591 |
self checkinReasonHolder value:aSymbolicReason |
16224 | 592 |
|
593 |
"Modified: / 31-03-2016 / 17:58:45 / cg" |
|
15841 | 594 |
! |
595 |
||
6799 | 596 |
description |
597 |
^ self descriptionHolder value |
|
598 |
! |
|
599 |
||
600 |
description:aString |
|
7179 | 601 |
self descriptionHolder value:aString allBold |
6799 | 602 |
! |
603 |
||
604 |
isStable |
|
605 |
^ self isStableHolder value |
|
606 |
! |
|
607 |
||
608 |
isStable:aBoolean |
|
609 |
self isStableHolder value:aBoolean |
|
610 |
! |
|
611 |
||
11413 | 612 |
logHistory:something |
613 |
logHistory := something. |
|
614 |
! |
|
615 |
||
6799 | 616 |
logMessage |
15829
ba4d543aff02
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14685
diff
changeset
|
617 |
^ self logMessageHolder value ? '' |
6799 | 618 |
! |
619 |
||
620 |
logMessage:aString |
|
621 |
self logMessageHolder value:aString |
|
6979 | 622 |
! |
623 |
||
624 |
quickCheckIn |
|
625 |
^ self quickCheckInHolder value |
|
626 |
! |
|
627 |
||
628 |
quickCheckIn:aBoolean |
|
629 |
self quickCheckInHolder value:aBoolean |
|
630 |
! |
|
631 |
||
17843 | 632 |
repositoryInfo:aString |
633 |
self repositoryInfoHolder value:aString |
|
634 |
||
635 |
"Created: / 05-12-2017 / 23:08:05 / cg" |
|
636 |
! |
|
637 |
||
18130 | 638 |
showChangesAction:aBlock |
639 |
"if non-nil, an additional 'Show Changes' button appears, |
|
640 |
which evaluates this action" |
|
641 |
||
642 |
showChangesAction := aBlock |
|
643 |
! |
|
644 |
||
6979 | 645 |
tag |
13299
f7c2eb0610c5
class: Tools::CheckinInfoDialog
Stefan Vogel <sv@exept.de>
parents:
12860
diff
changeset
|
646 |
^ (self tagHolder value ? '') withoutSeparators |
6979 | 647 |
! |
648 |
||
7110
86a7ea1388a1
no tagIt checkBox - non-empty tag value means: tagIt
Claus Gittinger <cg@exept.de>
parents:
7097
diff
changeset
|
649 |
tag:aStringOrNil |
86a7ea1388a1
no tagIt checkBox - non-empty tag value means: tagIt
Claus Gittinger <cg@exept.de>
parents:
7097
diff
changeset
|
650 |
self tagHolder value:aStringOrNil |
86a7ea1388a1
no tagIt checkBox - non-empty tag value means: tagIt
Claus Gittinger <cg@exept.de>
parents:
7097
diff
changeset
|
651 |
|
86a7ea1388a1
no tagIt checkBox - non-empty tag value means: tagIt
Claus Gittinger <cg@exept.de>
parents:
7097
diff
changeset
|
652 |
"Modified: / 12-09-2006 / 12:03:50 / cg" |
6979 | 653 |
! |
654 |
||
655 |
tagIt |
|
7110
86a7ea1388a1
no tagIt checkBox - non-empty tag value means: tagIt
Claus Gittinger <cg@exept.de>
parents:
7097
diff
changeset
|
656 |
^ self tag notEmptyOrNil |
6979 | 657 |
|
7110
86a7ea1388a1
no tagIt checkBox - non-empty tag value means: tagIt
Claus Gittinger <cg@exept.de>
parents:
7097
diff
changeset
|
658 |
"Created: / 12-09-2006 / 13:06:49 / cg" |
6979 | 659 |
! |
660 |
||
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
661 |
validateConsistency |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
662 |
^ self validateConsistencyHolder value |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
663 |
! |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
664 |
|
6979 | 665 |
withQuickOption:aBoolean |
15841 | 666 |
self quickCheckInEnabledHolder value:aBoolean |
667 |
"/ self quickCheckInVisibleHolder value:aBoolean |
|
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
668 |
! |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
669 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
670 |
withValidateConsistencyOption:aBoolean |
15841 | 671 |
self validateConsistencyEnabledHolder value:aBoolean |
672 |
"/ self validateConsistencyVisibleHolder value:aBoolean |
|
6799 | 673 |
! ! |
674 |
||
18130 | 675 |
!CheckinInfoDialog methodsFor:'actions'! |
676 |
||
677 |
showChanges |
|
678 |
showChangesAction value |
|
679 |
! ! |
|
680 |
||
6799 | 681 |
!CheckinInfoDialog methodsFor:'aspects'! |
682 |
||
17843 | 683 |
branchInfoHolder |
684 |
branchInfoHolder isNil ifTrue:[ |
|
685 |
branchInfoHolder := ValueHolder new. |
|
686 |
]. |
|
687 |
^ branchInfoHolder |
|
688 |
||
689 |
"Created: / 05-12-2017 / 23:07:40 / cg" |
|
690 |
! |
|
691 |
||
15841 | 692 |
checkinReasonHolder |
693 |
checkinReasonHolder isNil ifTrue:[ |
|
694 |
checkinReasonHolder := (LastReason ? self class reasonBugfix) asValue. |
|
695 |
]. |
|
696 |
^ checkinReasonHolder |
|
697 |
! |
|
698 |
||
6799 | 699 |
descriptionHolder |
700 |
descriptionHolder isNil ifTrue:[ |
|
701 |
descriptionHolder := ValueHolder new. |
|
702 |
]. |
|
703 |
^ descriptionHolder |
|
704 |
! |
|
705 |
||
706 |
isStableHolder |
|
707 |
isStableHolder isNil ifTrue:[ |
|
7592
f9204291e800
isStable is not the default (too slow for now)
Claus Gittinger <cg@exept.de>
parents:
7591
diff
changeset
|
708 |
isStableHolder := false asValue. |
6799 | 709 |
]. |
710 |
^ isStableHolder. |
|
7591 | 711 |
|
7592
f9204291e800
isStable is not the default (too slow for now)
Claus Gittinger <cg@exept.de>
parents:
7591
diff
changeset
|
712 |
"Modified: / 16-01-2007 / 16:00:26 / cg" |
6799 | 713 |
! |
714 |
||
11412 | 715 |
logHistoryHeadLineSelectionHolder |
716 |
logHistoryHeadLineSelectionHolder isNil ifTrue:[ |
|
717 |
logHistoryHeadLineSelectionHolder := nil asValue. |
|
718 |
logHistoryHeadLineSelectionHolder |
|
719 |
onChangeEvaluate: |
|
720 |
[ |
|
721 |
self logMessageHolder value:(logHistory at:logHistoryHeadLineSelectionHolder value) |
|
722 |
]. |
|
723 |
]. |
|
724 |
^ logHistoryHeadLineSelectionHolder |
|
725 |
||
726 |
"Created: / 12-03-2012 / 12:40:36 / cg" |
|
727 |
! |
|
728 |
||
729 |
logHistoryHeadLines |
|
730 |
^ (logHistory ? #()) |
|
731 |
collect:[:msg | |
|
732 |
msg withoutLeadingSeparators asCollectionOfLines first , '...' |
|
733 |
] |
|
734 |
||
735 |
"Created: / 12-03-2012 / 12:39:35 / cg" |
|
736 |
! |
|
737 |
||
6799 | 738 |
logMessageHolder |
739 |
logMessageHolder isNil ifTrue:[ |
|
11412 | 740 |
logMessageHolder := '' asValue. |
6799 | 741 |
]. |
742 |
^ logMessageHolder. |
|
11412 | 743 |
|
744 |
"Modified: / 12-03-2012 / 12:34:13 / cg" |
|
6979 | 745 |
! |
746 |
||
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
747 |
notMarkAsStableHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
748 |
^ BlockValue forLogicalNot:self isStableHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
749 |
! |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
750 |
|
15841 | 751 |
quickCheckInEnabledHolder |
752 |
quickCheckInEnabledHolder isNil ifTrue:[ |
|
753 |
quickCheckInEnabledHolder := false asValue. |
|
754 |
]. |
|
755 |
^ quickCheckInEnabledHolder |
|
756 |
! |
|
757 |
||
6979 | 758 |
quickCheckInHolder |
759 |
quickCheckInHolder isNil ifTrue:[ |
|
760 |
quickCheckInHolder := true asValue. |
|
761 |
]. |
|
762 |
^ quickCheckInHolder |
|
763 |
! |
|
764 |
||
765 |
quickCheckInVisibleHolder |
|
766 |
quickCheckInVisibleHolder isNil ifTrue:[ |
|
15841 | 767 |
quickCheckInVisibleHolder := true asValue. |
6979 | 768 |
]. |
769 |
^ quickCheckInVisibleHolder |
|
770 |
! |
|
771 |
||
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
772 |
recentTagsList |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
773 |
^ [ CVSSourceCodeManager recentTags ] |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
774 |
! |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
775 |
|
17843 | 776 |
repositoryInfoHolder |
777 |
repositoryInfoHolder isNil ifTrue:[ |
|
778 |
repositoryInfoHolder := ValueHolder new. |
|
779 |
]. |
|
780 |
^ repositoryInfoHolder |
|
781 |
||
782 |
"Created: / 05-12-2017 / 23:07:34 / cg" |
|
783 |
! |
|
784 |
||
18130 | 785 |
showChangesButtonVisible |
786 |
^ showChangesAction notNil |
|
787 |
! |
|
788 |
||
6979 | 789 |
tagHolder |
790 |
tagHolder isNil ifTrue:[ |
|
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
791 |
tagHolder := ("CVSSourceCodeManager recentTag ?" '') asValue. |
6979 | 792 |
]. |
793 |
^ tagHolder |
|
9508
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
794 |
! |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
795 |
|
15841 | 796 |
validateConsistencyEnabledHolder |
797 |
validateConsistencyEnabledHolder isNil ifTrue:[ |
|
798 |
validateConsistencyEnabledHolder := false asValue. |
|
799 |
]. |
|
800 |
^ validateConsistencyEnabledHolder |
|
801 |
! |
|
802 |
||
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
803 |
validateConsistencyHolder |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
804 |
validateConsistencyHolder isNil ifTrue:[ |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
805 |
validateConsistencyHolder := true asValue. |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
806 |
]. |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
807 |
^ validateConsistencyHolder |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
808 |
! |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
809 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
810 |
validateConsistencyVisibleHolder |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
811 |
validateConsistencyVisibleHolder isNil ifTrue:[ |
15841 | 812 |
validateConsistencyVisibleHolder := true asValue. |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
813 |
]. |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
814 |
^ validateConsistencyVisibleHolder |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
815 |
! |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
816 |
|
9508
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
817 |
warningMessageHolder |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
818 |
warningMessageHolder isNil ifTrue:[ |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
819 |
warningMessageHolder := nil asValue. |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
820 |
]. |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
821 |
^ warningMessageHolder. |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
822 |
|
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
823 |
"Created: / 06-07-2010 / 11:30:29 / cg" |
6799 | 824 |
! ! |
825 |
||
18131 | 826 |
!CheckinInfoDialog methodsFor:'opening'! |
827 |
||
828 |
getCheckinInfoFor:infoString initialAnswer:initialAnswer |
|
829 |
withQuickOption:withQuickOption |
|
830 |
logHistory:logHistoryArg |
|
831 |
withValidateConsistencyOption:withValidateConsistencyOption |
|
832 |
^ self |
|
833 |
getCheckinInfoFor:infoString |
|
834 |
initialAnswer:initialAnswer |
|
835 |
withQuickOption:withQuickOption |
|
836 |
logHistory:logHistoryArg |
|
837 |
withValidateConsistencyOption:withValidateConsistencyOption |
|
838 |
initialReason:(LastReason ? self class reasonBugfix) |
|
839 |
! |
|
840 |
||
841 |
getCheckinInfoFor:infoString initialAnswer:initialAnswer |
|
842 |
withQuickOption:withQuickOption |
|
843 |
logHistory:logHistoryArg |
|
844 |
withValidateConsistencyOption:withValidateConsistencyOption |
|
845 |
initialReason:defaultReason |
|
846 |
||
847 |
|warnMessage| |
|
848 |
||
849 |
warnMessage := nil. |
|
850 |
[ |
|
851 |
|lines infoString1 repositoryInfo branchInfo| |
|
852 |
||
853 |
infoString1 := infoString. |
|
854 |
lines := infoString asStringCollection. |
|
855 |
lines size > 1 ifTrue:[ |
|
856 |
repositoryInfo := lines second string. |
|
857 |
self repositoryInfo:repositoryInfo. |
|
858 |
lines size > 2 ifTrue:[ |
|
859 |
branchInfo := lines third string. |
|
860 |
self branchInfo:branchInfo. |
|
861 |
]. |
|
862 |
infoString1 := lines first. |
|
863 |
]. |
|
864 |
||
865 |
self |
|
866 |
description:infoString1; |
|
867 |
logMessage:initialAnswer; |
|
868 |
withQuickOption:withQuickOption; |
|
869 |
withValidateConsistencyOption:withValidateConsistencyOption; |
|
870 |
logHistory:logHistoryArg; |
|
871 |
checkinReason:defaultReason. |
|
872 |
||
873 |
self warningMessageHolder value:warnMessage. |
|
874 |
self open. |
|
875 |
self accepted ifFalse:[ ^ nil ]. |
|
876 |
] doUntil:[ |
|
877 |
|stopAsking| |
|
878 |
||
879 |
stopAsking := self allowEmptyLogMessage |
|
880 |
or:[ (self logMessage) withoutSeparators notEmptyOrNil ]. |
|
881 |
stopAsking ifFalse:[ |
|
882 |
warnMessage := (self resources string:'Please enter a description of your changes!!') |
|
883 |
withColor:Color red. |
|
884 |
]. |
|
885 |
stopAsking |
|
886 |
]. |
|
887 |
LastReason := self checkinReason. |
|
888 |
^ self |
|
889 |
||
890 |
" |
|
891 |
self getCheckinInfoFor:'hello' initialAnswer:'bla' |
|
892 |
" |
|
893 |
||
894 |
"Created: / 12-03-2012 / 12:36:26 / cg" |
|
895 |
"Modified: / 05-12-2017 / 23:07:06 / cg" |
|
896 |
! ! |
|
897 |
||
6799 | 898 |
!CheckinInfoDialog class methodsFor:'documentation'! |
899 |
||
11413 | 900 |
version |
15829
ba4d543aff02
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14685
diff
changeset
|
901 |
^ '$Header$' |
11413 | 902 |
! |
903 |
||
9161
e4761f8c188d
botton order - ok at right in spec,
Claus Gittinger <cg@exept.de>
parents:
8766
diff
changeset
|
904 |
version_CVS |
15829
ba4d543aff02
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14685
diff
changeset
|
905 |
^ '$Header$' |
6799 | 906 |
! ! |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
907 |