91 'Perform some consistency checks before checking in. |
115 'Perform some consistency checks before checking in. |
92 Especially checks the correctness of the ProjectDefinition vs. the actual set of classes in the image' |
116 Especially checks the correctness of the ProjectDefinition vs. the actual set of classes in the image' |
93 |
117 |
94 #checkinReason |
118 #checkinReason |
95 'Adds a keyword to the checkin info, to allow automatic generation of revision information from the log later' |
119 'Adds a keyword to the checkin info, to allow automatic generation of revision information from the log later' |
|
120 |
|
121 #checkinReasonDocumentation |
|
122 'Only documentation, comments etc. were added/changed.\Tells others, that there is no need to test/verify/review the changes' |
|
123 |
|
124 #checkinReasonBugfix |
|
125 'Some bug was fixed.\Please describe what was changed and\if possible, add a bug identifier (issue-ID) to the checkin info' |
|
126 |
|
127 #checkinReasonFeature |
|
128 'A new feature was added.\Please describe what was changed and\if possible, add a requirement identifier (issue-ID) to the checkin info' |
|
129 |
|
130 #checkinReasonRefactoring |
|
131 'The code was refactored/improved for better structure or maintainability' |
|
132 |
|
133 #checkinReasonOther |
|
134 'Some other change, which does not fit into one of the above.\Please describe in detail what you did in the checkin info' |
96 |
135 |
97 ) |
136 ) |
98 ! ! |
137 ! ! |
99 |
138 |
100 !CheckinInfoDialog class methodsFor:'interface specs'! |
139 !CheckinInfoDialog class methodsFor:'interface specs'! |
168 comboList: logHistoryHeadLines |
207 comboList: logHistoryHeadLines |
169 useIndex: true |
208 useIndex: true |
170 ) |
209 ) |
171 (TextEditorSpec |
210 (TextEditorSpec |
172 name: 'TextEditor1' |
211 name: 'TextEditor1' |
173 layout: (LayoutFrame 2 0.0 68 0 -2 1 -250 1) |
212 layout: (LayoutFrame 2 0.0 68 0 -2 1 -275 1) |
174 activeHelpKey: logMessage |
213 activeHelpKey: logMessage |
175 model: logMessageHolder |
214 model: logMessageHolder |
176 hasHorizontalScrollBar: true |
215 hasHorizontalScrollBar: true |
177 hasVerticalScrollBar: true |
216 hasVerticalScrollBar: true |
178 hasKeyboardFocusInitially: false |
217 hasKeyboardFocusInitially: false |
179 ) |
218 ) |
180 (LabelSpec |
219 (LabelSpec |
181 name: 'Label4' |
220 name: 'Label4' |
182 layout: (LayoutFrame 0 0.0 -245 1 0 1.0 -223 1) |
221 layout: (LayoutFrame 0 0.0 -269 1 0 1.0 -247 1) |
183 translateLabel: true |
222 translateLabel: true |
184 labelChannel: warningMessageHolder |
223 labelChannel: warningMessageHolder |
185 ) |
224 ) |
186 (CheckBoxSpec |
225 (CheckBoxSpec |
187 label: 'Quick Checkin (Only Classes in ChangeSet)' |
226 label: 'Quick Checkin (Only Classes in ChangeSet)' |
188 name: 'CheckInChangedOnlyCheckbox' |
227 name: 'CheckInChangedOnlyCheckbox' |
189 layout: (LayoutFrame 3 0 -220 1 -3 1 -198 1) |
228 layout: (LayoutFrame 3 0 -244 1 -3 1 -222 1) |
190 activeHelpKey: quickCheckin |
229 activeHelpKey: quickCheckin |
191 visibilityChannel: quickCheckInVisibleHolder |
230 visibilityChannel: quickCheckInVisibleHolder |
192 enableChannel: quickCheckInEnabledHolder |
231 enableChannel: quickCheckInEnabledHolder |
193 model: quickCheckInHolder |
232 model: quickCheckInHolder |
194 translateLabel: true |
233 translateLabel: true |
195 ) |
234 ) |
196 (CheckBoxSpec |
235 (CheckBoxSpec |
197 label: 'Validate Package Consistency' |
236 label: 'Validate Package Consistency' |
198 name: 'CheckBox1' |
237 name: 'CheckBox1' |
199 layout: (LayoutFrame 3 0 -193 1 -3 1 -171 1) |
238 layout: (LayoutFrame 3 0 -217 1 -3 1 -195 1) |
200 activeHelpKey: validateConsistency |
239 activeHelpKey: validateConsistency |
201 visibilityChannel: validateConsistencyVisibleHolder |
240 visibilityChannel: validateConsistencyVisibleHolder |
202 enableChannel: validateConsistencyEnabledHolder |
241 enableChannel: validateConsistencyEnabledHolder |
203 model: validateConsistencyHolder |
242 model: validateConsistencyHolder |
204 translateLabel: true |
243 translateLabel: true |
205 ) |
244 ) |
206 (CheckBoxSpec |
245 (CheckBoxSpec |
207 label: 'Mark as Stable' |
246 label: 'Mark as Stable' |
208 name: 'MarkStableCheckBox' |
247 name: 'MarkStableCheckBox' |
209 layout: (LayoutFrame 3 0 -166 1 -3 1 -144 1) |
248 layout: (LayoutFrame 3 0 -190 1 -3 1 -168 1) |
210 activeHelpKey: markAsStable |
249 activeHelpKey: markAsStable |
211 model: isStableHolder |
250 model: isStableHolder |
212 translateLabel: true |
251 translateLabel: true |
213 ) |
252 ) |
214 (LabelSpec |
253 (LabelSpec |
215 label: 'Tag:' |
254 label: 'Tag:' |
216 name: 'Label3' |
255 name: 'Label3' |
217 layout: (LayoutFrame -40 0.5 -165 1 0 0.5 -143 1) |
256 layout: (LayoutFrame -40 0.5 -189 1 0 0.5 -167 1) |
218 activeHelpKey: tag |
257 activeHelpKey: tag |
219 translateLabel: true |
258 translateLabel: true |
220 adjust: right |
259 adjust: right |
221 ) |
260 ) |
222 (ComboBoxSpec |
261 (ComboBoxSpec |
223 name: 'ComboBox1' |
262 name: 'ComboBox1' |
224 layout: (LayoutFrame 0 0.5 -166 1 -3 1 -144 1) |
263 layout: (LayoutFrame 0 0.5 -190 1 -3 1 -168 1) |
225 activeHelpKey: tag |
264 activeHelpKey: tag |
226 enableChannel: notMarkAsStableHolder |
265 enableChannel: notMarkAsStableHolder |
227 model: tagHolder |
266 model: tagHolder |
228 acceptOnReturn: true |
267 acceptOnReturn: true |
229 acceptOnTab: true |
268 acceptOnTab: true |
232 comboList: recentTagsList |
271 comboList: recentTagsList |
233 ) |
272 ) |
234 (LabelSpec |
273 (LabelSpec |
235 label: 'Reason for Checkin:' |
274 label: 'Reason for Checkin:' |
236 name: 'Label6' |
275 name: 'Label6' |
237 layout: (AlignmentOrigin -126 0.5 -122 1 1 0.5) |
276 layout: (AlignmentOrigin -126 0.5 -146 1 1 0.5) |
238 activeHelpKey: checkinReason |
277 activeHelpKey: checkinReason |
239 translateLabel: true |
278 translateLabel: true |
240 resizeForLabel: true |
279 resizeForLabel: true |
241 adjust: right |
280 adjust: right |
242 ) |
281 ) |
243 (RadioButtonSpec |
282 (RadioButtonSpec |
244 label: 'Bugfix' |
283 label: 'Bugfix' |
245 name: 'RadioButton1' |
284 name: 'RadioButton1' |
246 layout: (LayoutFrame -123 0.5 -133 1 -126 1 -111 1) |
285 layout: (LayoutFrame -123 0.5 -157 1 -126 1 -135 1) |
247 activeHelpKey: checkinReason |
286 activeHelpKey: checkinReasonBugfix |
248 translateLabel: true |
287 translateLabel: true |
249 model: checkinReasonHolder |
288 model: checkinReasonHolder |
250 isTriggerOnDown: true |
289 isTriggerOnDown: true |
251 select: 'reasonBugfix' |
290 select: 'reasonBugfix' |
252 ) |
291 ) |
253 (RadioButtonSpec |
292 (RadioButtonSpec |
254 label: 'Feature / Enhancement' |
293 label: 'Feature / Enhancement' |
255 name: 'RadioButton2' |
294 name: 'RadioButton2' |
256 layout: (LayoutFrame -123 0.5 -109 1 -126 1 -87 1) |
295 layout: (LayoutFrame -123 0.5 -133 1 -126 1 -111 1) |
257 activeHelpKey: checkinReason |
296 activeHelpKey: checkinReasonFeature |
258 translateLabel: true |
297 translateLabel: true |
259 model: checkinReasonHolder |
298 model: checkinReasonHolder |
260 isTriggerOnDown: true |
299 isTriggerOnDown: true |
261 select: reasonFeature |
300 select: reasonFeature |
262 ) |
301 ) |
263 (RadioButtonSpec |
302 (RadioButtonSpec |
264 label: 'Refactoring / Code Cleanup' |
303 label: 'Refactoring / Code Cleanup' |
265 name: 'RadioButton3' |
304 name: 'RadioButton3' |
266 layout: (LayoutFrame -123 0.5 -85 1 -126 1 -63 1) |
305 layout: (LayoutFrame -123 0.5 -109 1 -126 1 -87 1) |
267 activeHelpKey: checkinReason |
306 activeHelpKey: checkinReasonRefactoring |
268 translateLabel: true |
307 translateLabel: true |
269 model: checkinReasonHolder |
308 model: checkinReasonHolder |
270 isTriggerOnDown: true |
309 isTriggerOnDown: true |
271 select: reasonRefactoring |
310 select: reasonRefactoring |
|
311 ) |
|
312 (RadioButtonSpec |
|
313 label: 'Documentation / Comment Only' |
|
314 name: 'RadioButton5' |
|
315 layout: (LayoutFrame -123 0.5 -85 1 -126 1 -63 1) |
|
316 activeHelpKey: checkinReasonDocumentation |
|
317 translateLabel: true |
|
318 model: checkinReasonHolder |
|
319 isTriggerOnDown: true |
|
320 select: reasonDocumentation |
272 ) |
321 ) |
273 (RadioButtonSpec |
322 (RadioButtonSpec |
274 label: 'None of the Above' |
323 label: 'None of the Above' |
275 name: 'RadioButton4' |
324 name: 'RadioButton4' |
276 layout: (LayoutFrame -123 0.5 -61 1 -126 1 -39 1) |
325 layout: (LayoutFrame -123 0.5 -61 1 -126 1 -39 1) |
277 activeHelpKey: checkinReason |
326 activeHelpKey: checkinReasonOther |
278 translateLabel: true |
327 translateLabel: true |
279 model: checkinReasonHolder |
328 model: checkinReasonHolder |
280 isTriggerOnDown: true |
329 isTriggerOnDown: true |
281 select: reasonOther |
330 select: reasonOther |
282 ) |
331 ) |
455 |
488 |
456 "Created: / 06-07-2010 / 11:23:31 / cg" |
489 "Created: / 06-07-2010 / 11:23:31 / cg" |
457 ! |
490 ! |
458 |
491 |
459 checkinReason |
492 checkinReason |
460 "returns one of: #(reasonBugfix reasonFeature reasonRefactoring reasonOther)" |
493 "returns one of: #(reasonBugfix reasonFeature reasonRefactoring reasonDocumentation reasonOther)" |
461 |
494 |
462 ^ self checkinReasonHolder value |
495 ^ self checkinReasonHolder value |
463 ! |
496 ! |
464 |
497 |
465 checkinReason:aSymbolicReason |
498 checkinReason:aSymbolicReason |
466 self assert:( #(reasonBugfix reasonFeature reasonRefactoring reasonOther) includes:aSymbolicReason). |
499 self assert:( #(reasonBugfix reasonFeature reasonRefactoring reasonDocumentation reasonOther) includes:aSymbolicReason). |
467 self checkinReasonHolder value:aSymbolicReason |
500 self checkinReasonHolder value:aSymbolicReason |
468 ! |
501 ! |
469 |
502 |
470 description |
503 description |
471 ^ self descriptionHolder value |
504 ^ self descriptionHolder value |