author | Claus Gittinger <cg@exept.de> |
Fri, 01 Aug 2014 09:02:56 +0200 | |
changeset 14685 | c1ba77b8dfc0 |
parent 14542 | 2d91c4e18a71 |
child 15566 | 184cea584be5 |
child 15829 | ba4d543aff02 |
permissions | -rw-r--r-- |
6799 | 1 |
" |
2 |
COPYRIGHT (c) 2005 eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
"{ Package: 'stx:libtool' }" |
|
13 |
||
14 |
"{ NameSpace: Tools }" |
|
15 |
||
16 |
SimpleDialog subclass:#CheckinInfoDialog |
|
6979 | 17 |
instanceVariableNames:'descriptionHolder logMessageHolder isStableHolder tagHolder |
9508
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
18 |
quickCheckInHolder quickCheckInVisibleHolder allowEmptyLogMessage |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
19 |
warningMessageHolder logHistory logHistoryHeadLineSelectionHolder |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
20 |
validateConsistencyHolder validateConsistencyVisibleHolder' |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
21 |
classVariableNames:'RecentlyUsedTags' |
6799 | 22 |
poolDictionaries:'' |
23 |
category:'System-SourceCodeManagement' |
|
24 |
! |
|
25 |
||
26 |
!CheckinInfoDialog class methodsFor:'documentation'! |
|
27 |
||
28 |
copyright |
|
29 |
" |
|
30 |
COPYRIGHT (c) 2005 eXept Software AG |
|
31 |
All Rights Reserved |
|
32 |
||
33 |
This software is furnished under a license and may be used |
|
34 |
only in accordance with the terms of that license and with the |
|
35 |
inclusion of the above copyright notice. This software may not |
|
36 |
be provided or otherwise made available to, or used by, any |
|
37 |
other person. No title to or ownership of the software is |
|
38 |
hereby transferred. |
|
39 |
" |
|
40 |
! |
|
41 |
||
42 |
documentation |
|
43 |
" |
|
44 |
checkin-dialog. |
|
45 |
used to be private in SourceCodeManagerUtilites. |
|
46 |
moved to libtool because libbasic3 should not contain code inheriting from GUI classes. |
|
47 |
||
48 |
[author:] |
|
49 |
||
50 |
[see also:] |
|
51 |
||
52 |
[instance variables:] |
|
53 |
||
54 |
[class variables:] |
|
55 |
" |
|
56 |
! ! |
|
57 |
||
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
58 |
!CheckinInfoDialog class methodsFor:'help specs'! |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
59 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
60 |
flyByHelpSpec |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
61 |
"This resource specification was automatically generated |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
62 |
by the UIHelpTool of ST/X." |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
63 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
64 |
"Do not manually edit this!! If it is corrupted, |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
65 |
the UIHelpTool may not be able to read the specification." |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
66 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
67 |
" |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
68 |
UIHelpTool openOnClass:Tools::CheckinInfoDialog |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
69 |
" |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
70 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
71 |
<resource: #help> |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
72 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
73 |
^ super flyByHelpSpec addPairsFrom:#( |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
74 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
75 |
#logMessage |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
76 |
'This message is added as a check-in log message. |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
77 |
It can later be retrieved via the browser''s revision info menu function' |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
78 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
79 |
#markAsStable |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
80 |
'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
|
81 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
82 |
#quickCheckin |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
83 |
'Only checkin classes which have been vreated or changed during this session' |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
84 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
85 |
#tag |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
86 |
'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
|
87 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
88 |
#validateConsistency |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
89 |
'Perform some consistency checks before checking in. |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
90 |
Especially checks the correctness of the ProjectDefinition vs. the actual set of classes in the image' |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
91 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
92 |
) |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
93 |
! ! |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
94 |
|
6799 | 95 |
!CheckinInfoDialog class methodsFor:'interface specs'! |
96 |
||
97 |
windowSpec |
|
98 |
"This resource specification was automatically generated |
|
99 |
by the UIPainter of ST/X." |
|
100 |
||
101 |
"Do not manually edit this!! If it is corrupted, |
|
102 |
the UIPainter may not be able to read the specification." |
|
103 |
||
104 |
" |
|
6979 | 105 |
UIPainter new openOnClass:Tools::CheckinInfoDialog andSelector:#windowSpec |
106 |
Tools::CheckinInfoDialog new openInterface:#windowSpec |
|
107 |
Tools::CheckinInfoDialog open |
|
6799 | 108 |
" |
109 |
||
110 |
<resource: #canvas> |
|
111 |
||
112 |
^ |
|
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
113 |
#(FullSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
114 |
name: windowSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
115 |
window: |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
116 |
(WindowSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
117 |
label: 'Enter Log Message' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
118 |
name: 'Enter Log Message' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
119 |
min: (Point 10 10) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
120 |
bounds: (Rectangle 0 0 563 327) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
121 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
122 |
component: |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
123 |
(SpecCollection |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
124 |
collection: ( |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
125 |
(HorizontalPanelViewSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
126 |
name: 'HorizontalPanel2' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
127 |
layout: (LayoutFrame 0 0.0 0 0 0 1.0 32 0) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
128 |
horizontalLayout: left |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
129 |
verticalLayout: center |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
130 |
horizontalSpace: 0 |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
131 |
verticalSpace: 3 |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
132 |
component: |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
133 |
(SpecCollection |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
134 |
collection: ( |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
135 |
(LabelSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
136 |
label: 'Enter checkIn log-message for:' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
137 |
name: 'Label1' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
138 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
139 |
resizeForLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
140 |
useDefaultExtent: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
141 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
142 |
(LabelSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
143 |
name: 'Label2' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
144 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
145 |
labelChannel: descriptionHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
146 |
useDefaultExtent: true |
6799 | 147 |
) |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
148 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
149 |
|
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
150 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
151 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
152 |
(LabelSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
153 |
label: 'Previous Log Messages:' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
154 |
name: 'Label5' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
155 |
layout: (LayoutFrame 0 0 37 0 180 0 59 0) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
156 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
157 |
adjust: right |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
158 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
159 |
(ComboListSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
160 |
name: 'ComboList1' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
161 |
layout: (LayoutFrame 180 0.0 38 0 0 1.0 58 0) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
162 |
model: logHistoryHeadLineSelectionHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
163 |
comboList: logHistoryHeadLines |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
164 |
useIndex: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
165 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
166 |
(TextEditorSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
167 |
name: 'TextEditor1' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
168 |
layout: (LayoutFrame 2 0.0 68 0 -2 1 -152 1) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
169 |
activeHelpKey: logMessage |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
170 |
model: logMessageHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
171 |
hasHorizontalScrollBar: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
172 |
hasVerticalScrollBar: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
173 |
hasKeyboardFocusInitially: false |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
174 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
175 |
(LabelSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
176 |
name: 'Label4' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
177 |
layout: (LayoutFrame 0 0.0 -147 1 0 1.0 -125 1) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
178 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
179 |
labelChannel: warningMessageHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
180 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
181 |
(CheckBoxSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
182 |
label: 'Validate Package Consistency' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
183 |
name: 'CheckBox1' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
184 |
layout: (LayoutFrame 3 0 -122 1 -3 1 -100 1) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
185 |
activeHelpKey: validateConsistency |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
186 |
visibilityChannel: validateConsistencyVisibleHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
187 |
model: validateConsistencyHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
188 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
189 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
190 |
(CheckBoxSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
191 |
label: 'Quick Checkin (Only Classes in ChangeSet)' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
192 |
name: 'CheckInChangedOnlyCheckbox' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
193 |
layout: (LayoutFrame 3 0 -95 1 -3 1 -73 1) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
194 |
activeHelpKey: quickCheckin |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
195 |
visibilityChannel: quickCheckInVisibleHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
196 |
model: quickCheckInHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
197 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
198 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
199 |
(CheckBoxSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
200 |
label: 'Mark as Stable' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
201 |
name: 'MarkStableCheckBox' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
202 |
layout: (LayoutFrame 3 0 -68 1 -3 1 -46 1) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
203 |
activeHelpKey: markAsStable |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
204 |
model: isStableHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
205 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
206 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
207 |
(LabelSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
208 |
label: 'Tag:' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
209 |
name: 'Label3' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
210 |
layout: (LayoutFrame -40 0.5 -67 1 0 0.5 -45 1) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
211 |
activeHelpKey: tag |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
212 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
213 |
adjust: right |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
214 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
215 |
(ComboBoxSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
216 |
name: 'ComboBox1' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
217 |
layout: (LayoutFrame 0 0.5 -68 1 -3 1 -46 1) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
218 |
activeHelpKey: tag |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
219 |
enableChannel: notMarkAsStableHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
220 |
model: tagHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
221 |
acceptOnReturn: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
222 |
acceptOnTab: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
223 |
acceptOnLostFocus: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
224 |
acceptOnPointerLeave: false |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
225 |
comboList: recentTagsList |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
226 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
227 |
(HorizontalPanelViewSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
228 |
name: 'ButtonPanel1' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
229 |
layout: (LayoutFrame 0 0.0 -40 1 -16 1.0 0 1.0) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
230 |
horizontalLayout: fitSpace |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
231 |
verticalLayout: center |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
232 |
horizontalSpace: 3 |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
233 |
verticalSpace: 2 |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
234 |
reverseOrderIfOKAtLeft: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
235 |
component: |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
236 |
(SpecCollection |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
237 |
collection: ( |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
238 |
(ActionButtonSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
239 |
label: 'Cancel' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
240 |
name: 'Button2' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
241 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
242 |
model: doCancel |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
243 |
extent: (Point 269 22) |
6799 | 244 |
) |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
245 |
(ActionButtonSpec |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
246 |
label: 'OK' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
247 |
name: 'Button1' |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
248 |
translateLabel: true |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
249 |
model: doAccept |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
250 |
extent: (Point 269 22) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
251 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
252 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
253 |
|
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
254 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
255 |
keepSpaceForOSXResizeHandleH: true |
6799 | 256 |
) |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
257 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
258 |
|
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
259 |
) |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
260 |
) |
6799 | 261 |
! ! |
262 |
||
263 |
!CheckinInfoDialog class methodsFor:'opening'! |
|
264 |
||
265 |
getCheckinInfoFor:aString initialAnswer:initialAnswer |
|
11412 | 266 |
^ self |
267 |
getCheckinInfoFor:aString |
|
268 |
initialAnswer:initialAnswer |
|
269 |
withQuickOption:false |
|
6979 | 270 |
|
271 |
" |
|
272 |
self getCheckinInfoFor:'hello' initialAnswer:'bla' |
|
273 |
" |
|
11412 | 274 |
|
275 |
"Modified (format): / 12-03-2012 / 12:38:48 / cg" |
|
6979 | 276 |
! |
277 |
||
8766
f9af1c29b401
comment/format in: #getCheckinInfoFor:initialAnswer:withQuickOption:
Claus Gittinger <cg@exept.de>
parents:
7592
diff
changeset
|
278 |
getCheckinInfoFor:aClassNameOrPackageNameString initialAnswer:initialAnswer withQuickOption:withQuickOption |
11412 | 279 |
^ self |
280 |
getCheckinInfoFor:aClassNameOrPackageNameString |
|
281 |
initialAnswer:initialAnswer |
|
282 |
withQuickOption:withQuickOption |
|
283 |
logHistory:#() |
|
284 |
||
285 |
" |
|
286 |
self getCheckinInfoFor:'hello' initialAnswer:'bla' |
|
287 |
" |
|
288 |
||
289 |
"Modified: / 12-03-2012 / 12:39:00 / cg" |
|
290 |
! |
|
291 |
||
11413 | 292 |
getCheckinInfoFor:aClassNameOrPackageNameString initialAnswer:initialAnswer withQuickOption:withQuickOption logHistory:logHistoryArg |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
293 |
^ self |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
294 |
getCheckinInfoFor:aClassNameOrPackageNameString |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
295 |
initialAnswer:initialAnswer |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
296 |
withQuickOption:withQuickOption |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
297 |
logHistory:logHistoryArg |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
298 |
withValidateConsistencyOption:false |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
299 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
300 |
" |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
301 |
self getCheckinInfoFor:'hello' initialAnswer:'bla' |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
302 |
self getCheckinInfoFor:'hello' initialAnswer:'bla' withQuickOption:true |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
303 |
self getCheckinInfoFor:'hello' initialAnswer:'bla' withQuickOption:true logHistory:nil withConsistencyCheckOption:true |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
304 |
" |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
305 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
306 |
"Created: / 12-03-2012 / 12:36:26 / cg" |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
307 |
! |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
308 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
309 |
getCheckinInfoFor:aClassNameOrPackageNameString initialAnswer:initialAnswer withQuickOption:withQuickOption logHistory:logHistoryArg withValidateConsistencyOption:withValidateConsistencyOption |
9508
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
310 |
|dialog warnMessage| |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
311 |
|
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
312 |
warnMessage := nil. |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
313 |
[ |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
314 |
dialog := self new. |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
315 |
dialog |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
316 |
description:aClassNameOrPackageNameString; |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
317 |
logMessage:initialAnswer; |
11413 | 318 |
withQuickOption:withQuickOption; |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
319 |
withValidateConsistencyOption:withValidateConsistencyOption; |
11413 | 320 |
logHistory:logHistoryArg. |
6799 | 321 |
|
9508
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
322 |
dialog warningMessageHolder value:warnMessage. |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
323 |
dialog open. |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
324 |
dialog accepted ifFalse:[ ^ nil ]. |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
325 |
] doUntil:[ |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
326 |
|stopAsking| |
6799 | 327 |
|
9508
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
328 |
stopAsking := dialog allowEmptyLogMessage |
14541
f52bb88c745a
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14540
diff
changeset
|
329 |
or:[ (dialog logMessage) withoutSeparators notEmptyOrNil ]. |
9508
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
330 |
stopAsking ifFalse:[ |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
331 |
warnMessage := (self resources string:'Please enter a description of your changes!!') |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
332 |
asText |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
333 |
colorizeAllWith:Color red. |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
334 |
]. |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
335 |
stopAsking |
6799 | 336 |
]. |
337 |
^ dialog |
|
338 |
||
339 |
||
340 |
" |
|
7110
86a7ea1388a1
no tagIt checkBox - non-empty tag value means: tagIt
Claus Gittinger <cg@exept.de>
parents:
7097
diff
changeset
|
341 |
self getCheckinInfoFor:'hello' initialAnswer:'bla' |
6799 | 342 |
" |
7110
86a7ea1388a1
no tagIt checkBox - non-empty tag value means: tagIt
Claus Gittinger <cg@exept.de>
parents:
7097
diff
changeset
|
343 |
|
11412 | 344 |
"Created: / 12-03-2012 / 12:36:26 / cg" |
6799 | 345 |
! ! |
346 |
||
347 |
!CheckinInfoDialog methodsFor:'accessing'! |
|
348 |
||
9508
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
349 |
allowEmptyLogMessage |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
350 |
^ allowEmptyLogMessage ? false |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
351 |
|
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
352 |
"Created: / 06-07-2010 / 11:23:18 / cg" |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
353 |
! |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
354 |
|
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
355 |
allowEmptyLogMessage:aBoolean |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
356 |
allowEmptyLogMessage := aBoolean |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
357 |
|
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
358 |
"Created: / 06-07-2010 / 11:23:31 / cg" |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
359 |
! |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
360 |
|
6799 | 361 |
description |
362 |
^ self descriptionHolder value |
|
363 |
! |
|
364 |
||
365 |
description:aString |
|
7179 | 366 |
self descriptionHolder value:aString allBold |
6799 | 367 |
! |
368 |
||
369 |
isStable |
|
370 |
^ self isStableHolder value |
|
371 |
! |
|
372 |
||
373 |
isStable:aBoolean |
|
374 |
self isStableHolder value:aBoolean |
|
375 |
! |
|
376 |
||
11413 | 377 |
logHistory:something |
378 |
logHistory := something. |
|
379 |
! |
|
380 |
||
6799 | 381 |
logMessage |
382 |
^ self logMessageHolder value |
|
383 |
! |
|
384 |
||
385 |
logMessage:aString |
|
386 |
self logMessageHolder value:aString |
|
6979 | 387 |
! |
388 |
||
389 |
quickCheckIn |
|
390 |
^ self quickCheckInHolder value |
|
391 |
! |
|
392 |
||
393 |
quickCheckIn:aBoolean |
|
394 |
self quickCheckInHolder value:aBoolean |
|
395 |
! |
|
396 |
||
397 |
tag |
|
13299
f7c2eb0610c5
class: Tools::CheckinInfoDialog
Stefan Vogel <sv@exept.de>
parents:
12860
diff
changeset
|
398 |
^ (self tagHolder value ? '') withoutSeparators |
6979 | 399 |
! |
400 |
||
7110
86a7ea1388a1
no tagIt checkBox - non-empty tag value means: tagIt
Claus Gittinger <cg@exept.de>
parents:
7097
diff
changeset
|
401 |
tag:aStringOrNil |
86a7ea1388a1
no tagIt checkBox - non-empty tag value means: tagIt
Claus Gittinger <cg@exept.de>
parents:
7097
diff
changeset
|
402 |
self tagHolder value:aStringOrNil |
86a7ea1388a1
no tagIt checkBox - non-empty tag value means: tagIt
Claus Gittinger <cg@exept.de>
parents:
7097
diff
changeset
|
403 |
|
86a7ea1388a1
no tagIt checkBox - non-empty tag value means: tagIt
Claus Gittinger <cg@exept.de>
parents:
7097
diff
changeset
|
404 |
"Modified: / 12-09-2006 / 12:03:50 / cg" |
6979 | 405 |
! |
406 |
||
407 |
tagIt |
|
7110
86a7ea1388a1
no tagIt checkBox - non-empty tag value means: tagIt
Claus Gittinger <cg@exept.de>
parents:
7097
diff
changeset
|
408 |
^ self tag notEmptyOrNil |
6979 | 409 |
|
7110
86a7ea1388a1
no tagIt checkBox - non-empty tag value means: tagIt
Claus Gittinger <cg@exept.de>
parents:
7097
diff
changeset
|
410 |
"Created: / 12-09-2006 / 13:06:49 / cg" |
6979 | 411 |
! |
412 |
||
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
413 |
validateConsistency |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
414 |
^ self validateConsistencyHolder value |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
415 |
! |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
416 |
|
6979 | 417 |
withQuickOption:aBoolean |
418 |
^ self quickCheckInVisibleHolder value:aBoolean |
|
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
419 |
! |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
420 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
421 |
withValidateConsistencyOption:aBoolean |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
422 |
^ self validateConsistencyVisibleHolder value:aBoolean |
6799 | 423 |
! ! |
424 |
||
425 |
!CheckinInfoDialog methodsFor:'aspects'! |
|
426 |
||
427 |
descriptionHolder |
|
428 |
descriptionHolder isNil ifTrue:[ |
|
429 |
descriptionHolder := ValueHolder new. |
|
430 |
]. |
|
431 |
^ descriptionHolder |
|
432 |
! |
|
433 |
||
434 |
isStableHolder |
|
435 |
isStableHolder isNil ifTrue:[ |
|
7592
f9204291e800
isStable is not the default (too slow for now)
Claus Gittinger <cg@exept.de>
parents:
7591
diff
changeset
|
436 |
isStableHolder := false asValue. |
6799 | 437 |
]. |
438 |
^ isStableHolder. |
|
7591 | 439 |
|
7592
f9204291e800
isStable is not the default (too slow for now)
Claus Gittinger <cg@exept.de>
parents:
7591
diff
changeset
|
440 |
"Modified: / 16-01-2007 / 16:00:26 / cg" |
6799 | 441 |
! |
442 |
||
11412 | 443 |
logHistoryHeadLineSelectionHolder |
444 |
logHistoryHeadLineSelectionHolder isNil ifTrue:[ |
|
445 |
logHistoryHeadLineSelectionHolder := nil asValue. |
|
446 |
logHistoryHeadLineSelectionHolder |
|
447 |
onChangeEvaluate: |
|
448 |
[ |
|
449 |
self logMessageHolder value:(logHistory at:logHistoryHeadLineSelectionHolder value) |
|
450 |
]. |
|
451 |
]. |
|
452 |
^ logHistoryHeadLineSelectionHolder |
|
453 |
||
454 |
"Created: / 12-03-2012 / 12:40:36 / cg" |
|
455 |
! |
|
456 |
||
457 |
logHistoryHeadLines |
|
458 |
^ (logHistory ? #()) |
|
459 |
collect:[:msg | |
|
460 |
msg withoutLeadingSeparators asCollectionOfLines first , '...' |
|
461 |
] |
|
462 |
||
463 |
"Created: / 12-03-2012 / 12:39:35 / cg" |
|
464 |
! |
|
465 |
||
6799 | 466 |
logMessageHolder |
467 |
logMessageHolder isNil ifTrue:[ |
|
11412 | 468 |
logMessageHolder := '' asValue. |
6799 | 469 |
]. |
470 |
^ logMessageHolder. |
|
11412 | 471 |
|
472 |
"Modified: / 12-03-2012 / 12:34:13 / cg" |
|
6979 | 473 |
! |
474 |
||
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
475 |
notMarkAsStableHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
476 |
^ BlockValue forLogicalNot:self isStableHolder |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
477 |
! |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
478 |
|
6979 | 479 |
quickCheckInHolder |
480 |
quickCheckInHolder isNil ifTrue:[ |
|
481 |
quickCheckInHolder := true asValue. |
|
482 |
]. |
|
483 |
^ quickCheckInHolder |
|
484 |
! |
|
485 |
||
486 |
quickCheckInVisibleHolder |
|
487 |
quickCheckInVisibleHolder isNil ifTrue:[ |
|
488 |
quickCheckInVisibleHolder := false asValue. |
|
489 |
]. |
|
490 |
^ quickCheckInVisibleHolder |
|
491 |
! |
|
492 |
||
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
493 |
recentTagsList |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
494 |
^ [ CVSSourceCodeManager recentTags ] |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
495 |
! |
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
496 |
|
6979 | 497 |
tagHolder |
498 |
tagHolder isNil ifTrue:[ |
|
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
499 |
tagHolder := ("CVSSourceCodeManager recentTag ?" '') asValue. |
6979 | 500 |
]. |
501 |
^ tagHolder |
|
9508
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
502 |
! |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
503 |
|
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
504 |
validateConsistencyHolder |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
505 |
validateConsistencyHolder isNil ifTrue:[ |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
506 |
validateConsistencyHolder := true asValue. |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
507 |
]. |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
508 |
^ validateConsistencyHolder |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
509 |
! |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
510 |
|
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
511 |
validateConsistencyVisibleHolder |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
512 |
validateConsistencyVisibleHolder isNil ifTrue:[ |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
513 |
validateConsistencyVisibleHolder := false asValue. |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
514 |
]. |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
515 |
^ validateConsistencyVisibleHolder |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
516 |
! |
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
517 |
|
9508
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
518 |
warningMessageHolder |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
519 |
warningMessageHolder isNil ifTrue:[ |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
520 |
warningMessageHolder := nil asValue. |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
521 |
]. |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
522 |
^ warningMessageHolder. |
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
523 |
|
6ecac35f25b6
enforce a non-empty logmessage;
Claus Gittinger <cg@exept.de>
parents:
9161
diff
changeset
|
524 |
"Created: / 06-07-2010 / 11:30:29 / cg" |
6799 | 525 |
! ! |
526 |
||
527 |
!CheckinInfoDialog class methodsFor:'documentation'! |
|
528 |
||
11413 | 529 |
version |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
530 |
^ '$Header: /cvs/stx/stx/libtool/Tools__CheckinInfoDialog.st,v 1.24 2014-08-01 07:02:56 cg Exp $' |
11413 | 531 |
! |
532 |
||
9161
e4761f8c188d
botton order - ok at right in spec,
Claus Gittinger <cg@exept.de>
parents:
8766
diff
changeset
|
533 |
version_CVS |
14685
c1ba77b8dfc0
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
14542
diff
changeset
|
534 |
^ '$Header: /cvs/stx/stx/libtool/Tools__CheckinInfoDialog.st,v 1.24 2014-08-01 07:02:56 cg Exp $' |
6799 | 535 |
! ! |
12537
2ddd00171375
class: Tools::CheckinInfoDialog
Claus Gittinger <cg@exept.de>
parents:
11413
diff
changeset
|
536 |