13848
|
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 |
"
|
10798
|
12 |
"{ Package: 'stx:libtool' }"
|
|
13 |
|
|
14 |
"{ NameSpace: Tools }"
|
|
15 |
|
|
16 |
ApplicationModel subclass:#SourceCodeManagerConfigurationTestTool
|
|
17 |
instanceVariableNames:'resultView packageView'
|
|
18 |
classVariableNames:''
|
|
19 |
poolDictionaries:''
|
|
20 |
category:'System-SourceCodeManagement'
|
|
21 |
!
|
|
22 |
|
13848
|
23 |
!SourceCodeManagerConfigurationTestTool class methodsFor:'documentation'!
|
|
24 |
|
|
25 |
copyright
|
|
26 |
"
|
|
27 |
COPYRIGHT (c) 2006 by eXept Software AG
|
|
28 |
All Rights Reserved
|
|
29 |
|
|
30 |
This software is furnished under a license and may be used
|
|
31 |
only in accordance with the terms of that license and with the
|
|
32 |
inclusion of the above copyright notice. This software may not
|
|
33 |
be provided or otherwise made available to, or used by, any
|
|
34 |
other person. No title to or ownership of the software is
|
|
35 |
hereby transferred.
|
|
36 |
"
|
|
37 |
! !
|
10798
|
38 |
|
|
39 |
!SourceCodeManagerConfigurationTestTool class methodsFor:'interface specs'!
|
|
40 |
|
|
41 |
windowSpec
|
|
42 |
"This resource specification was automatically generated
|
|
43 |
by the UIPainter of ST/X."
|
|
44 |
|
|
45 |
"Do not manually edit this!! If it is corrupted,
|
|
46 |
the UIPainter may not be able to read the specification."
|
|
47 |
|
|
48 |
"
|
|
49 |
UIPainter new openOnClass:Tools::SourceCodeManagerConfigurationTestTool andSelector:#windowSpec
|
|
50 |
Tools::SourceCodeManagerConfigurationTestTool new openInterface:#windowSpec
|
|
51 |
Tools::SourceCodeManagerConfigurationTestTool open
|
|
52 |
"
|
|
53 |
|
|
54 |
<resource: #canvas>
|
|
55 |
|
|
56 |
^
|
|
57 |
#(FullSpec
|
|
58 |
name: windowSpec
|
|
59 |
window:
|
|
60 |
(WindowSpec
|
|
61 |
label: 'Source Code Management Configuration Test Tool'
|
|
62 |
name: 'Source Code Management Configuration Test Tool'
|
|
63 |
min: (Point 10 10)
|
|
64 |
bounds: (Rectangle 0 0 579 382)
|
|
65 |
)
|
|
66 |
component:
|
|
67 |
(SpecCollection
|
|
68 |
collection: (
|
|
69 |
(ViewSpec
|
|
70 |
name: 'Box1'
|
|
71 |
layout: (LayoutFrame 3 0 3 0 -3 1 -30 1)
|
|
72 |
component:
|
|
73 |
(SpecCollection
|
|
74 |
collection: (
|
|
75 |
(LabelSpec
|
|
76 |
label: 'Enter package name and press test'
|
|
77 |
name: 'Label1'
|
|
78 |
layout: (LayoutFrame 0 0 0 0 0 1 30 0)
|
|
79 |
translateLabel: true
|
|
80 |
adjust: left
|
|
81 |
)
|
|
82 |
(InputFieldSpec
|
|
83 |
name: 'Package'
|
|
84 |
layout: (LayoutFrame 0 0 30 0 -60 1 55 0)
|
|
85 |
model: packageHolder
|
|
86 |
immediateAccept: false
|
|
87 |
acceptOnLeave: false
|
|
88 |
acceptOnReturn: true
|
|
89 |
acceptOnTab: false
|
|
90 |
acceptOnPointerLeave: false
|
|
91 |
acceptIfUnchanged: true
|
|
92 |
valueChangeCallBackSelector: doTest
|
|
93 |
postBuildCallback: postBuildPackageView:
|
|
94 |
)
|
|
95 |
(ActionButtonSpec
|
|
96 |
label: 'Test'
|
|
97 |
name: 'Button2'
|
|
98 |
layout: (LayoutFrame -59 1 30 0 0 1 55 0)
|
|
99 |
translateLabel: true
|
|
100 |
model: doTest
|
|
101 |
)
|
|
102 |
(TextEditorSpec
|
|
103 |
name: 'Result'
|
|
104 |
layout: (LayoutFrame 0 0 70 0 0 1 0 1)
|
|
105 |
hasHorizontalScrollBar: true
|
|
106 |
hasVerticalScrollBar: true
|
|
107 |
hasKeyboardFocusInitially: false
|
|
108 |
viewClassName: 'TextCollector'
|
|
109 |
postBuildCallback: postBuildResultView:
|
|
110 |
)
|
|
111 |
)
|
|
112 |
|
|
113 |
)
|
|
114 |
)
|
|
115 |
(ActionButtonSpec
|
|
116 |
label: 'Close'
|
|
117 |
name: 'Button1'
|
|
118 |
layout: (LayoutFrame 3 0 -27 1 -3 1 0 1)
|
|
119 |
translateLabel: true
|
|
120 |
model: doClose
|
|
121 |
)
|
|
122 |
)
|
|
123 |
|
|
124 |
)
|
|
125 |
)
|
|
126 |
! !
|
|
127 |
|
|
128 |
!SourceCodeManagerConfigurationTestTool methodsFor:'actions'!
|
|
129 |
|
|
130 |
doClose
|
|
131 |
<resource: #uiCallback>
|
|
132 |
|
|
133 |
self closeRequest
|
|
134 |
|
|
135 |
"Modified: / 10-10-2011 / 19:16:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
136 |
!
|
|
137 |
|
|
138 |
doTest
|
|
139 |
<resource: #uiCallback>
|
10813
|
140 |
|pkg mgr line|
|
10798
|
141 |
|
10813
|
142 |
packageView isNil ifTrue:[
|
|
143 |
^ self
|
|
144 |
].
|
10798
|
145 |
pkg := packageView contents.
|
10813
|
146 |
pkg ifNil:[^ self].
|
|
147 |
mgr := AbstractSourceCodeManager managerForPackage:pkg.
|
10798
|
148 |
line := '%1 -> %2, %3'
|
10813
|
149 |
bindWith:pkg
|
|
150 |
with:mgr managerTypeNameShort
|
|
151 |
with:(mgr repositoryNameForPackage:pkg).
|
|
152 |
resultView showCR:line
|
10798
|
153 |
|
|
154 |
"Modified: / 11-10-2011 / 08:58:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
155 |
! !
|
|
156 |
|
|
157 |
!SourceCodeManagerConfigurationTestTool methodsFor:'aspects'!
|
|
158 |
|
|
159 |
packageHolder
|
|
160 |
|
|
161 |
^ValueHolder new
|
|
162 |
|
|
163 |
"Created: / 11-10-2011 / 09:00:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
164 |
! !
|
|
165 |
|
|
166 |
!SourceCodeManagerConfigurationTestTool methodsFor:'callbacks'!
|
|
167 |
|
|
168 |
postBuildPackageView: aView
|
|
169 |
|
|
170 |
packageView := aView
|
|
171 |
|
|
172 |
"Created: / 11-10-2011 / 08:57:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
173 |
!
|
|
174 |
|
|
175 |
postBuildResultView: aView
|
|
176 |
|
|
177 |
resultView := aView
|
|
178 |
|
|
179 |
"Created: / 10-10-2011 / 19:21:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
180 |
! !
|
|
181 |
|
|
182 |
!SourceCodeManagerConfigurationTestTool class methodsFor:'documentation'!
|
|
183 |
|
|
184 |
version
|
13848
|
185 |
^ '$Header: /cvs/stx/stx/libtool/Tools__SourceCodeManagerConfigurationTestTool.st,v 1.3 2014-02-05 18:59:26 cg Exp $'
|
10798
|
186 |
!
|
|
187 |
|
|
188 |
version_CVS
|
13848
|
189 |
^ '$Header: /cvs/stx/stx/libtool/Tools__SourceCodeManagerConfigurationTestTool.st,v 1.3 2014-02-05 18:59:26 cg Exp $'
|
10798
|
190 |
! !
|
13848
|
191 |
|