author | Claus Gittinger <cg@exept.de> |
Sat, 13 Jul 2019 14:00:30 +0200 | |
changeset 18895 | f081b08d0755 |
parent 13800 | a06ec1e6e43a |
child 15566 | 184cea584be5 |
permissions | -rw-r--r-- |
13800 | 1 |
" |
2 |
COPYRIGHT (c) 2006 by 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 |
" |
|
10741
e4645cbb0958
Fix package def libbasic3->libtool
Stefan Vogel <sv@exept.de>
parents:
10193
diff
changeset
|
12 |
"{ Package: 'stx:libtool' }" |
10193 | 13 |
|
14 |
"{ NameSpace: Tools }" |
|
15 |
||
16 |
SimpleDialog subclass:#ChangeSetSelectionDialog |
|
13800 | 17 |
instanceVariableNames:'enabledHolder specHolder specLabelList specLabelIndexHolder |
10193 | 18 |
specEditorSpecHolder' |
19 |
classVariableNames:'' |
|
20 |
poolDictionaries:'' |
|
21 |
category:'Interface-Dialogs' |
|
22 |
! |
|
23 |
||
13800 | 24 |
!ChangeSetSelectionDialog class methodsFor:'documentation'! |
25 |
||
26 |
copyright |
|
27 |
" |
|
28 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
29 |
All Rights Reserved |
|
30 |
||
31 |
This software is furnished under a license and may be used |
|
32 |
only in accordance with the terms of that license and with the |
|
33 |
inclusion of the above copyright notice. This software may not |
|
34 |
be provided or otherwise made available to, or used by, any |
|
35 |
other person. No title to or ownership of the software is |
|
36 |
hereby transferred. |
|
37 |
" |
|
38 |
! ! |
|
10193 | 39 |
|
40 |
!ChangeSetSelectionDialog class methodsFor:'instance creation'! |
|
41 |
||
42 |
requestChangeSet: title |
|
43 |
||
44 |
| dialog | |
|
45 |
dialog := self new. |
|
46 |
^(dialog open) |
|
47 |
ifTrue:[dialog specHolder value changeSet] |
|
48 |
ifFalse:[nil]. |
|
49 |
||
50 |
"Created: / 06-07-2011 / 10:52:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
51 |
! ! |
|
52 |
||
53 |
!ChangeSetSelectionDialog class methodsFor:'interface specs'! |
|
54 |
||
55 |
windowSpec |
|
56 |
"This resource specification was automatically generated |
|
57 |
by the UIPainter of ST/X." |
|
58 |
||
59 |
"Do not manually edit this!! If it is corrupted, |
|
60 |
the UIPainter may not be able to read the specification." |
|
61 |
||
62 |
" |
|
63 |
UIPainter new openOnClass:Tools::ChangeSetSelectionDialog andSelector:#windowSpec |
|
64 |
Tools::ChangeSetSelectionDialog new openInterface:#windowSpec |
|
65 |
Tools::ChangeSetSelectionDialog open |
|
66 |
" |
|
67 |
||
68 |
<resource: #canvas> |
|
69 |
||
70 |
^ |
|
71 |
#(FullSpec |
|
72 |
name: windowSpec |
|
73 |
window: |
|
74 |
(WindowSpec |
|
75 |
label: 'Select Changeset' |
|
76 |
name: 'Select Changeset' |
|
77 |
min: (Point 10 10) |
|
78 |
bounds: (Rectangle 0 0 631 436) |
|
79 |
) |
|
80 |
component: |
|
81 |
(SpecCollection |
|
82 |
collection: ( |
|
83 |
(UISubSpecification |
|
84 |
name: 'Content' |
|
85 |
layout: (LayoutFrame 0 0 0 0 0 1 -30 1) |
|
86 |
minorKey: windowSpecForEmbedding |
|
87 |
) |
|
88 |
(HorizontalPanelViewSpec |
|
89 |
name: 'ButtonPanel' |
|
90 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) |
|
91 |
horizontalLayout: fitSpace |
|
92 |
verticalLayout: center |
|
93 |
horizontalSpace: 3 |
|
94 |
verticalSpace: 2 |
|
95 |
reverseOrderIfOKAtLeft: true |
|
96 |
component: |
|
97 |
(SpecCollection |
|
98 |
collection: ( |
|
99 |
(ActionButtonSpec |
|
100 |
label: 'Cancel' |
|
101 |
name: 'Button2' |
|
102 |
translateLabel: true |
|
103 |
model: doCancel |
|
104 |
extent: (Point 311 22) |
|
105 |
) |
|
106 |
(ActionButtonSpec |
|
107 |
label: 'OK' |
|
108 |
name: 'Button1' |
|
109 |
translateLabel: true |
|
110 |
model: doAccept |
|
111 |
enableChannel: doAcceptEnabledHolder |
|
112 |
extent: (Point 311 22) |
|
113 |
) |
|
114 |
) |
|
115 |
||
116 |
) |
|
117 |
) |
|
118 |
) |
|
119 |
||
120 |
) |
|
121 |
) |
|
122 |
! |
|
123 |
||
124 |
windowSpecForEmbedding |
|
125 |
"This resource specification was automatically generated |
|
126 |
by the UIPainter of ST/X." |
|
127 |
||
128 |
"Do not manually edit this!! If it is corrupted, |
|
129 |
the UIPainter may not be able to read the specification." |
|
130 |
||
131 |
" |
|
132 |
UIPainter new openOnClass:Tools::ChangeSetSelectionDialog andSelector:#windowSpecForEmbedding |
|
133 |
Tools::ChangeSetSelectionDialog new openInterface:#windowSpecForEmbedding |
|
134 |
" |
|
135 |
||
136 |
<resource: #canvas> |
|
137 |
||
138 |
^ |
|
139 |
#(FullSpec |
|
140 |
name: windowSpecForEmbedding |
|
141 |
window: |
|
142 |
(WindowSpec |
|
143 |
label: 'Select Changeset (embedding)' |
|
144 |
name: 'Select Changeset (embedding)' |
|
145 |
min: (Point 10 10) |
|
146 |
bounds: (Rectangle 0 0 406 337) |
|
147 |
) |
|
148 |
component: |
|
149 |
(SpecCollection |
|
150 |
collection: ( |
|
151 |
(LabelSpec |
|
152 |
label: 'Source:' |
|
153 |
name: 'SpecTypeLabel' |
|
154 |
layout: (LayoutFrame 3 0 3 0 100 0 25 0) |
|
155 |
translateLabel: true |
|
156 |
adjust: left |
|
157 |
) |
|
158 |
(PopUpListSpec |
|
159 |
label: 'Select...' |
|
160 |
name: 'SpecType' |
|
161 |
layout: (LayoutFrame 103 0 3 0 -3 1 25 0) |
|
162 |
tabable: true |
|
163 |
model: specLabelIndexHolder |
|
13800 | 164 |
enableChannel: enabledHolder |
10193 | 165 |
menu: specLabelList |
166 |
useIndex: true |
|
167 |
) |
|
168 |
(SubCanvasSpec |
|
169 |
name: 'SubCanvas1' |
|
170 |
layout: (LayoutFrame 3 0 30 0 -3 1 0 1) |
|
13800 | 171 |
level: 0 |
10193 | 172 |
hasHorizontalScrollBar: false |
173 |
hasVerticalScrollBar: false |
|
174 |
specHolder: specEditorSpecHolder |
|
175 |
createNewBuilder: false |
|
176 |
) |
|
177 |
) |
|
178 |
||
179 |
) |
|
180 |
) |
|
181 |
! ! |
|
182 |
||
183 |
!ChangeSetSelectionDialog class methodsFor:'interface specs - editors'! |
|
184 |
||
185 |
editorSpecForDirectory |
|
186 |
"This resource specification was automatically generated |
|
187 |
by the UIPainter of ST/X." |
|
188 |
||
189 |
"Do not manually edit this!! If it is corrupted, |
|
190 |
the UIPainter may not be able to read the specification." |
|
191 |
||
192 |
" |
|
193 |
UIPainter new openOnClass:Tools::ChangeSetSelectionDialog andSelector:#editorSpecForDirectory |
|
194 |
Tools::ChangeSetSelectionDialog new openInterface:#editorSpecForDirectory |
|
195 |
" |
|
196 |
||
197 |
<resource: #canvas> |
|
198 |
||
199 |
^ |
|
200 |
#(FullSpec |
|
201 |
name: editorSpecForDirectory |
|
202 |
window: |
|
203 |
(WindowSpec |
|
204 |
label: 'Directory Spec Editor' |
|
205 |
name: 'Directory Spec Editor' |
|
206 |
min: (Point 10 10) |
|
207 |
bounds: (Rectangle 0 0 441 310) |
|
208 |
) |
|
209 |
component: |
|
210 |
(SpecCollection |
|
211 |
collection: ( |
|
212 |
(FilenameInputFieldSpec |
|
213 |
name: 'Directory' |
|
214 |
layout: (LayoutFrame 103 0 0 0 0 1 22 0) |
|
13800 | 215 |
enableChannel: enabledHolder |
10193 | 216 |
model: directoryAspect |
217 |
acceptOnPointerLeave: true |
|
218 |
viewClassName: FilenameWidgetWithHistory |
|
219 |
) |
|
220 |
(LabelSpec |
|
221 |
label: 'Directory:' |
|
222 |
name: 'Label1' |
|
223 |
layout: (LayoutFrame 0 0 3 0 100 0 22 0) |
|
224 |
translateLabel: true |
|
225 |
adjust: left |
|
226 |
) |
|
227 |
) |
|
228 |
||
229 |
) |
|
230 |
) |
|
231 |
! |
|
232 |
||
13800 | 233 |
editorSpecForExplicit |
234 |
"This resource specification was automatically generated |
|
235 |
by the UIPainter of ST/X." |
|
236 |
||
237 |
"Do not manually edit this!! If it is corrupted, |
|
238 |
the UIPainter may not be able to read the specification." |
|
239 |
||
240 |
" |
|
241 |
UIPainter new openOnClass:Tools::ChangeSetSelectionDialog andSelector:#editorSpecForExplicit |
|
242 |
Tools::ChangeSetSelectionDialog new openInterface:#editorSpecForExplicit |
|
243 |
" |
|
244 |
||
245 |
<resource: #canvas> |
|
246 |
||
247 |
^ |
|
248 |
#(FullSpec |
|
249 |
name: 'editorSpecForExplicit' |
|
250 |
window: |
|
251 |
(WindowSpec |
|
252 |
label: 'ChangeSet Spec Editor' |
|
253 |
name: 'ChangeSet Spec Editor' |
|
254 |
min: (Point 10 10) |
|
255 |
bounds: (Rectangle 0 0 441 310) |
|
256 |
) |
|
257 |
component: |
|
258 |
(SpecCollection |
|
259 |
collection: () |
|
260 |
) |
|
261 |
) |
|
262 |
! |
|
263 |
||
264 |
editorSpecForFile |
|
265 |
"This resource specification was automatically generated |
|
266 |
by the UIPainter of ST/X." |
|
267 |
||
268 |
"Do not manually edit this!! If it is corrupted, |
|
269 |
the UIPainter may not be able to read the specification." |
|
270 |
||
271 |
" |
|
272 |
UIPainter new openOnClass:Tools::ChangeSetSelectionDialog andSelector:#editorSpecForFile |
|
273 |
Tools::ChangeSetSelectionDialog new openInterface:#editorSpecForFile |
|
274 |
" |
|
275 |
||
276 |
<resource: #canvas> |
|
277 |
||
278 |
^ |
|
279 |
#(FullSpec |
|
280 |
name: editorSpecForFile |
|
281 |
window: |
|
282 |
(WindowSpec |
|
283 |
label: 'Directory Spec Editor' |
|
284 |
name: 'Directory Spec Editor' |
|
285 |
min: (Point 10 10) |
|
286 |
bounds: (Rectangle 0 0 441 310) |
|
287 |
) |
|
288 |
component: |
|
289 |
(SpecCollection |
|
290 |
collection: ( |
|
291 |
(FilenameInputFieldSpec |
|
292 |
name: 'Directory' |
|
293 |
layout: (LayoutFrame 103 0 0 0 0 1 22 0) |
|
294 |
enableChannel: enabledHolder |
|
295 |
model: fileAspect |
|
296 |
acceptOnPointerLeave: true |
|
297 |
viewClassName: FilenameWidgetWithHistory |
|
298 |
) |
|
299 |
(LabelSpec |
|
300 |
label: 'File:' |
|
301 |
name: 'FileLabel' |
|
302 |
layout: (LayoutFrame 0 0 3 0 100 0 22 0) |
|
303 |
translateLabel: true |
|
304 |
adjust: left |
|
305 |
) |
|
306 |
) |
|
307 |
||
308 |
) |
|
309 |
) |
|
310 |
||
311 |
"Modified: / 20-03-2012 / 11:13:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
312 |
! |
|
313 |
||
10193 | 314 |
editorSpecForPackage |
315 |
"This resource specification was automatically generated |
|
316 |
by the UIPainter of ST/X." |
|
317 |
||
318 |
"Do not manually edit this!! If it is corrupted, |
|
319 |
the UIPainter may not be able to read the specification." |
|
320 |
||
321 |
" |
|
322 |
UIPainter new openOnClass:Tools::ChangeSetSelectionDialog andSelector:#editorSpecForPackage |
|
323 |
Tools::ChangeSetSelectionDialog new openInterface:#editorSpecForPackage |
|
324 |
" |
|
325 |
||
326 |
<resource: #canvas> |
|
327 |
||
328 |
^ |
|
329 |
#(FullSpec |
|
13800 | 330 |
name: editorSpecForPackage |
10193 | 331 |
window: |
332 |
(WindowSpec |
|
333 |
label: 'Package Spec Editor' |
|
334 |
name: 'Package Spec Editor' |
|
335 |
min: (Point 10 10) |
|
336 |
bounds: (Rectangle 0 0 441 310) |
|
337 |
) |
|
338 |
component: |
|
339 |
(SpecCollection |
|
340 |
collection: ( |
|
341 |
(LabelSpec |
|
342 |
label: 'Package:' |
|
343 |
name: 'Label1' |
|
344 |
layout: (LayoutFrame 0 0 3 0 100 0 22 0) |
|
345 |
translateLabel: true |
|
346 |
adjust: left |
|
347 |
) |
|
348 |
(InputFieldSpec |
|
349 |
name: 'EntryField1' |
|
350 |
layout: (LayoutFrame 103 0 0 0 -25 1 25 0) |
|
13800 | 351 |
enableChannel: enabledHolder |
10193 | 352 |
model: packageAspect |
353 |
acceptOnReturn: true |
|
354 |
acceptOnTab: true |
|
355 |
acceptOnPointerLeave: true |
|
356 |
entryCompletionBlock: packageCompletionBlock |
|
357 |
) |
|
358 |
(ActionButtonSpec |
|
359 |
label: '...' |
|
360 |
name: 'Button1' |
|
361 |
layout: (LayoutFrame -25 1 0 0 0 1 25 0) |
|
362 |
translateLabel: true |
|
363 |
model: selectPackage |
|
13800 | 364 |
enableChannel: enabledHolder |
10193 | 365 |
) |
366 |
) |
|
367 |
||
368 |
) |
|
369 |
) |
|
370 |
! ! |
|
371 |
||
372 |
!ChangeSetSelectionDialog class methodsFor:'plugIn spec'! |
|
373 |
||
374 |
aspectSelectors |
|
375 |
"This resource specification was automatically generated |
|
376 |
by the UIPainter of ST/X." |
|
377 |
||
378 |
"Do not manually edit this. If it is corrupted, |
|
379 |
the UIPainter may not be able to read the specification." |
|
380 |
||
381 |
"Return a description of exported aspects; |
|
382 |
these can be connected to aspects of an embedding application |
|
383 |
(if this app is embedded in a subCanvas)." |
|
384 |
||
385 |
^ #( |
|
13800 | 386 |
#enabledHolder |
10193 | 387 |
#specHolder |
388 |
). |
|
389 |
||
390 |
! ! |
|
391 |
||
392 |
!ChangeSetSelectionDialog methodsFor:'actions'! |
|
393 |
||
394 |
selectPackage |
|
395 |
<resource: #uiCallback> |
|
396 |
||
397 |
self packageAspect value: |
|
398 |
(Dialog requestProject:'Select package' |
|
399 |
initialAnswer:nil |
|
400 |
suggestions:#()) |
|
401 |
||
402 |
"Modified: / 06-07-2011 / 10:43:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
403 |
! ! |
|
404 |
||
405 |
!ChangeSetSelectionDialog methodsFor:'aspects'! |
|
406 |
||
407 |
doAcceptEnabledHolder |
|
408 |
||
409 |
<resource: #uiAspect> |
|
410 |
||
411 |
|holder| |
|
412 |
||
413 |
(holder := builder bindingAt:#doAcceptEnabledHolder) isNil ifTrue:[ |
|
414 |
holder := (AspectAdaptor forAspect:#notNil) |
|
415 |
subjectChannel: self specHolder. |
|
416 |
builder aspectAt:#doAcceptEnabledHolder put:holder. |
|
417 |
]. |
|
418 |
^ holder. |
|
419 |
||
420 |
"Created: / 06-07-2011 / 10:48:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
421 |
! |
|
422 |
||
13800 | 423 |
enabledHolder |
424 |
"return/create the 'enabledHolder' value holder (automatically generated)" |
|
425 |
||
426 |
enabledHolder isNil ifTrue:[ |
|
427 |
enabledHolder := true asValue |
|
428 |
]. |
|
429 |
^ enabledHolder |
|
430 |
||
431 |
"Modified: / 19-03-2012 / 23:25:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
432 |
! |
|
433 |
||
434 |
enabledHolder:something |
|
435 |
"set the 'enabledHolder' value holder (automatically generated)" |
|
436 |
||
437 |
enabledHolder := something. |
|
438 |
! |
|
439 |
||
10193 | 440 |
specEditorSpecHolder |
441 |
"return/create the 'specEditorSpecHolder' value holder (automatically generated)" |
|
442 |
||
443 |
specEditorSpecHolder isNil ifTrue:[ |
|
444 |
specEditorSpecHolder := ValueHolder new. |
|
445 |
]. |
|
446 |
^ specEditorSpecHolder |
|
447 |
! |
|
448 |
||
449 |
specHolder |
|
450 |
"return/create the 'specHolder' value holder (automatically generated)" |
|
451 |
||
452 |
specHolder isNil ifTrue:[ |
|
453 |
specHolder := ValueHolder new. |
|
454 |
specHolder addDependent:self. |
|
455 |
]. |
|
456 |
^ specHolder |
|
457 |
! |
|
458 |
||
459 |
specHolder:something |
|
460 |
"set the 'specHolder' value holder (automatically generated)" |
|
461 |
||
462 |
|oldValue newValue| |
|
463 |
||
464 |
specHolder notNil ifTrue:[ |
|
465 |
oldValue := specHolder value. |
|
466 |
specHolder removeDependent:self. |
|
467 |
]. |
|
468 |
specHolder := something. |
|
469 |
specHolder notNil ifTrue:[ |
|
470 |
specHolder addDependent:self. |
|
471 |
]. |
|
472 |
newValue := specHolder value. |
|
473 |
oldValue ~~ newValue ifTrue:[ |
|
474 |
self update:#value with:newValue from:specHolder. |
|
475 |
]. |
|
476 |
! |
|
477 |
||
478 |
specLabelIndexHolder |
|
479 |
"return/create the 'specLabelIndexHolder' value holder (automatically generated)" |
|
480 |
||
481 |
specLabelIndexHolder isNil ifTrue:[ |
|
482 |
specLabelIndexHolder := ValueHolder new. |
|
483 |
specLabelIndexHolder addDependent:self. |
|
484 |
]. |
|
485 |
^ specLabelIndexHolder |
|
486 |
! |
|
487 |
||
488 |
specLabelIndexHolder:something |
|
489 |
"set the 'specLabelIndexHolder' value holder (automatically generated)" |
|
490 |
||
491 |
|oldValue newValue| |
|
492 |
||
493 |
specLabelIndexHolder notNil ifTrue:[ |
|
494 |
oldValue := specLabelIndexHolder value. |
|
495 |
specLabelIndexHolder removeDependent:self. |
|
496 |
]. |
|
497 |
specLabelIndexHolder := something. |
|
498 |
specLabelIndexHolder notNil ifTrue:[ |
|
499 |
specLabelIndexHolder addDependent:self. |
|
500 |
]. |
|
501 |
newValue := specLabelIndexHolder value. |
|
502 |
oldValue ~~ newValue ifTrue:[ |
|
503 |
self update:#value with:newValue from:specLabelIndexHolder. |
|
504 |
]. |
|
505 |
! |
|
506 |
||
507 |
specLabelList |
|
508 |
<resource: #uiAspect> |
|
509 |
||
510 |
specLabelList isNil ifTrue:[ |
|
511 |
specLabelList := List withAll: |
|
512 |
(ChangeSetSpec specClasses collect:[:cls|cls label]) |
|
513 |
||
514 |
]. |
|
515 |
^ specLabelList. |
|
516 |
||
517 |
"Modified: / 05-07-2011 / 23:35:19 / jv" |
|
518 |
"Created: / 06-07-2011 / 09:49:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
519 |
! ! |
|
520 |
||
521 |
!ChangeSetSelectionDialog methodsFor:'aspects - spec'! |
|
522 |
||
523 |
directoryAspect |
|
524 |
<resource: #uiAspect> |
|
525 |
||
526 |
|holder| |
|
527 |
||
528 |
(holder := builder bindingAt:#directoryAspect) isNil ifTrue:[ |
|
529 |
holder := (AspectAdaptor forAspect:#directory) |
|
530 |
subjectChannel: self specHolder. |
|
531 |
builder aspectAt:#directoryAspect put:holder. |
|
532 |
]. |
|
533 |
^ holder. |
|
534 |
||
535 |
"Modified: / 06-07-2011 / 10:28:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
536 |
! |
|
537 |
||
13800 | 538 |
fileAspect |
539 |
<resource: #uiAspect> |
|
540 |
||
541 |
|holder| |
|
542 |
||
543 |
(holder := builder bindingAt:#fileAspect) isNil ifTrue:[ |
|
544 |
holder := (AspectAdaptor forAspect:#file) |
|
545 |
subjectChannel: self specHolder. |
|
546 |
builder aspectAt:#fileAspect put:holder. |
|
547 |
]. |
|
548 |
^ holder. |
|
549 |
||
550 |
"Modified: / 06-07-2011 / 10:28:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
551 |
"Created: / 19-03-2012 / 22:07:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
552 |
! |
|
553 |
||
10193 | 554 |
packageAspect |
555 |
<resource: #uiAspect> |
|
556 |
||
557 |
|holder| |
|
558 |
||
559 |
(holder := builder bindingAt:#packageAspect) isNil ifTrue:[ |
|
560 |
holder := (AspectAdaptor forAspect:#package) |
|
561 |
subjectChannel: self specHolder. |
|
562 |
builder aspectAt:#packageAspect put:holder. |
|
563 |
]. |
|
564 |
^ holder. |
|
565 |
||
566 |
"Created: / 06-07-2011 / 10:28:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
567 |
! |
|
568 |
||
569 |
packageCompletionBlock |
|
570 |
||
571 |
^DoWhatIMeanSupport packageNameEntryCompletionBlock |
|
572 |
||
573 |
"Created: / 06-07-2011 / 10:45:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
574 |
! ! |
|
575 |
||
576 |
!ChangeSetSelectionDialog methodsFor:'change & update'! |
|
577 |
||
578 |
update:something with:aParameter from:changedObject |
|
579 |
changedObject == specLabelIndexHolder |
|
580 |
ifTrue: |
|
581 |
[ self updateSpec. |
|
582 |
^ self. ]. |
|
583 |
changedObject == specHolder |
|
584 |
ifTrue: |
|
585 |
[ self updateSpecEditor. |
|
586 |
^ self. ]. |
|
587 |
super |
|
588 |
update:something |
|
589 |
with:aParameter |
|
590 |
from:changedObject |
|
591 |
||
592 |
"Modified: / 05-07-2011 / 23:53:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
593 |
! |
|
594 |
||
595 |
updateSpec |
|
596 |
|changeSetSpecClass changeSetSpec| |
|
597 |
||
598 |
changeSetSpecClass := ChangeSetSpec specClasses |
|
599 |
at:specLabelIndexHolder value. |
|
600 |
changeSetSpec := changeSetSpecClass new. |
|
601 |
self specHolder value:changeSetSpec. |
|
602 |
||
603 |
"Created: / 05-07-2011 / 23:51:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
604 |
! |
|
605 |
||
606 |
updateSpecEditor |
|
607 |
||
608 |
| spec | |
|
609 |
spec := self specHolder value. |
|
610 |
spec ifNil:[ |
|
611 |
self specEditorSpecHolder value: nil |
|
612 |
] ifNotNil:[ |
|
613 |
self specEditorSpecHolder value: spec editorSpecSelector |
|
614 |
] |
|
615 |
||
616 |
"Created: / 05-07-2011 / 23:53:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
617 |
! ! |
|
618 |
||
619 |
!ChangeSetSelectionDialog class methodsFor:'documentation'! |
|
620 |
||
621 |
version_CVS |
|
13800 | 622 |
^ '$Header: /cvs/stx/stx/libtool/Tools__ChangeSetSelectionDialog.st,v 1.3 2014-02-05 18:56:05 cg Exp $' |
10193 | 623 |
! ! |
13800 | 624 |