2636
|
1 |
"{ Package: 'stx:libtool2' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Tools }"
|
|
4 |
|
|
5 |
AssistantApplication subclass:#ProjectBuilderAssistantApplication
|
2659
|
6 |
instanceVariableNames:'packageToBuildHolder projectType projectTypeHolder
|
|
7 |
selectedProjectIndexHolder selectedProjectDefinition
|
|
8 |
listOfMatchingProjects selectedProjectsComment
|
|
9 |
hasProjectSelectedHolder newProjectsName hideSTXProjects
|
2636
|
10 |
startMakeButtonEnabled stopMakeButtonVisible makeOutputHolder
|
2656
|
11 |
newApplicationsName listOfApplicationsInProject
|
|
12 |
selectedApplicationIndexHolder selectedApplication
|
2659
|
13 |
hasApplicationSelectedHolder listOfStartupClassesInProject
|
|
14 |
selectedStartupClassIndexHolder selectedStartupClass
|
|
15 |
hasStartupClassSelectedHolder selectedApplicationsComment
|
2656
|
16 |
buildDirectoryHolder makeProcess listOfClassesInProject
|
2659
|
17 |
makeOutputWindow projectBuilder newStartupClassName'
|
2636
|
18 |
classVariableNames:''
|
|
19 |
poolDictionaries:''
|
|
20 |
category:'System-Support-Projects'
|
|
21 |
!
|
|
22 |
|
|
23 |
|
|
24 |
!ProjectBuilderAssistantApplication class methodsFor:'interface specs'!
|
|
25 |
|
2645
|
26 |
page1_projectTypeSelectionSpec
|
2636
|
27 |
"This resource specification was automatically generated
|
|
28 |
by the UIPainter of ST/X."
|
|
29 |
|
|
30 |
"Do not manually edit this!! If it is corrupted,
|
|
31 |
the UIPainter may not be able to read the specification."
|
|
32 |
|
|
33 |
"
|
2648
|
34 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page1_projectTypeSelectionSpec
|
|
35 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page1_projectTypeSelectionSpec
|
2636
|
36 |
"
|
|
37 |
|
|
38 |
<resource: #canvas>
|
|
39 |
|
|
40 |
^
|
|
41 |
#(FullSpec
|
2645
|
42 |
name: #'page1_projectTypeSelectionSpec'
|
2636
|
43 |
window:
|
|
44 |
(WindowSpec
|
|
45 |
label: 'Project Selection'
|
|
46 |
name: 'Project Selection'
|
|
47 |
min: (Point 0 0)
|
|
48 |
bounds: (Rectangle 0 0 626 394)
|
|
49 |
)
|
|
50 |
component:
|
|
51 |
(SpecCollection
|
|
52 |
collection: (
|
|
53 |
(FramedBoxSpec
|
|
54 |
label: 'Project Type Filter'
|
|
55 |
name: 'FramedBox1'
|
|
56 |
layout: (LayoutFrame 0 0.0 0 0 4 1.0 105 0)
|
|
57 |
labelPosition: topLeft
|
|
58 |
translateLabel: true
|
|
59 |
component:
|
|
60 |
(SpecCollection
|
|
61 |
collection: (
|
|
62 |
(VerticalPanelViewSpec
|
|
63 |
name: 'VerticalPanel1'
|
|
64 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
65 |
horizontalLayout: leftSpace
|
|
66 |
verticalLayout: topSpace
|
|
67 |
horizontalSpace: 3
|
|
68 |
verticalSpace: 3
|
|
69 |
component:
|
|
70 |
(SpecCollection
|
|
71 |
collection: (
|
|
72 |
(ViewSpec
|
|
73 |
name: 'Box1'
|
|
74 |
extent: (Point 10 10)
|
|
75 |
)
|
|
76 |
(RadioButtonSpec
|
|
77 |
label: 'GUI Application'
|
|
78 |
name: 'RadioButton1'
|
|
79 |
translateLabel: true
|
2659
|
80 |
model: projectTypeHolder
|
2636
|
81 |
isTriggerOnDown: true
|
|
82 |
onCallBackSelector: projectTypeChanged
|
|
83 |
select: guiApplicationType
|
|
84 |
extent: (Point 136 22)
|
|
85 |
)
|
|
86 |
(RadioButtonSpec
|
|
87 |
label: 'Non-GUI Application'
|
|
88 |
name: 'RadioButton2'
|
|
89 |
translateLabel: true
|
2659
|
90 |
model: projectTypeHolder
|
2636
|
91 |
isTriggerOnDown: true
|
|
92 |
onCallBackSelector: projectTypeChanged
|
|
93 |
select: nonGuiApplicationType
|
|
94 |
extent: (Point 136 22)
|
|
95 |
)
|
|
96 |
(RadioButtonSpec
|
|
97 |
label: 'Class Library'
|
|
98 |
name: 'RadioButton3'
|
|
99 |
translateLabel: true
|
2659
|
100 |
model: projectTypeHolder
|
2636
|
101 |
isTriggerOnDown: true
|
|
102 |
onCallBackSelector: projectTypeChanged
|
|
103 |
select: libraryType
|
|
104 |
extent: (Point 136 22)
|
|
105 |
)
|
|
106 |
)
|
|
107 |
|
|
108 |
)
|
|
109 |
)
|
|
110 |
)
|
|
111 |
|
|
112 |
)
|
|
113 |
)
|
|
114 |
(FramedBoxSpec
|
|
115 |
label: 'Existing Projects'
|
|
116 |
name: 'FramedBox2'
|
2648
|
117 |
layout: (LayoutFrame 0 0.0 105 0 4 1.0 0 1)
|
2636
|
118 |
labelPosition: topLeft
|
|
119 |
translateLabel: true
|
|
120 |
component:
|
|
121 |
(SpecCollection
|
|
122 |
collection: (
|
|
123 |
(VariableHorizontalPanelSpec
|
|
124 |
name: 'VariableHorizontalPanel1'
|
|
125 |
layout: (LayoutFrame 0 0 4 0 0 1 -26 1)
|
|
126 |
component:
|
|
127 |
(SpecCollection
|
|
128 |
collection: (
|
|
129 |
(SequenceViewSpec
|
|
130 |
name: 'List1'
|
|
131 |
model: selectedProjectIndexHolder
|
|
132 |
hasHorizontalScrollBar: true
|
|
133 |
hasVerticalScrollBar: true
|
|
134 |
useIndex: true
|
|
135 |
sequenceList: listOfMatchingProjects
|
|
136 |
)
|
|
137 |
(TextEditorSpec
|
|
138 |
name: 'TextEditor1'
|
|
139 |
model: selectedProjectsComment
|
|
140 |
hasHorizontalScrollBar: true
|
|
141 |
hasVerticalScrollBar: true
|
|
142 |
isReadOnly: true
|
|
143 |
hasKeyboardFocusInitially: false
|
|
144 |
)
|
|
145 |
)
|
|
146 |
|
|
147 |
)
|
|
148 |
handles: (Any 0.34560327198364 1.0)
|
|
149 |
)
|
|
150 |
(CheckBoxSpec
|
|
151 |
label: 'Hide ST/X Base Packages'
|
|
152 |
name: 'CheckBox1'
|
2659
|
153 |
layout: (LayoutFrame -1 0 -18 1 0 1 4 1)
|
2636
|
154 |
model: hideSTXProjects
|
|
155 |
translateLabel: true
|
|
156 |
)
|
|
157 |
)
|
|
158 |
|
|
159 |
)
|
|
160 |
)
|
|
161 |
)
|
|
162 |
|
|
163 |
)
|
|
164 |
)
|
|
165 |
!
|
|
166 |
|
2645
|
167 |
page2_projectSelectionSpec
|
2636
|
168 |
"This resource specification was automatically generated
|
|
169 |
by the UIPainter of ST/X."
|
|
170 |
|
|
171 |
"Do not manually edit this!! If it is corrupted,
|
|
172 |
the UIPainter may not be able to read the specification."
|
|
173 |
|
|
174 |
"
|
2648
|
175 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page2_projectSelectionSpec
|
|
176 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page2_projectSelectionSpec
|
2636
|
177 |
"
|
|
178 |
|
|
179 |
<resource: #canvas>
|
|
180 |
|
|
181 |
^
|
|
182 |
#(FullSpec
|
2645
|
183 |
name: #'page2_projectSelectionSpec'
|
2636
|
184 |
window:
|
|
185 |
(WindowSpec
|
|
186 |
label: 'Project Selection'
|
|
187 |
name: 'Project Selection'
|
|
188 |
min: (Point 0 0)
|
|
189 |
bounds: (Rectangle 0 0 521 453)
|
|
190 |
)
|
|
191 |
component:
|
|
192 |
(SpecCollection
|
|
193 |
collection: (
|
|
194 |
(FramedBoxSpec
|
|
195 |
label: 'New Project'
|
|
196 |
name: 'FramedBox3'
|
|
197 |
layout: (LayoutFrame 0 0.0 5 0 4 1.0 72 0)
|
|
198 |
labelPosition: topLeft
|
|
199 |
translateLabel: true
|
|
200 |
component:
|
|
201 |
(SpecCollection
|
|
202 |
collection: (
|
|
203 |
(InputFieldSpec
|
|
204 |
name: 'EntryField1'
|
2659
|
205 |
layout: (LayoutFrame 1 0 6 0 -113 1 28 0)
|
2636
|
206 |
model: newProjectsName
|
|
207 |
acceptOnReturn: true
|
|
208 |
acceptOnTab: true
|
|
209 |
acceptOnPointerLeave: true
|
|
210 |
emptyFieldReplacementText: 'module:directory'
|
|
211 |
)
|
|
212 |
(ActionButtonSpec
|
|
213 |
label: 'Create'
|
|
214 |
name: 'Button1'
|
2659
|
215 |
layout: (LayoutFrame -100 1 6 0 2 1 28 0)
|
2636
|
216 |
translateLabel: true
|
|
217 |
model: createNewProject
|
|
218 |
)
|
|
219 |
)
|
|
220 |
|
|
221 |
)
|
|
222 |
)
|
|
223 |
(FramedBoxSpec
|
|
224 |
label: 'Existing Projects'
|
|
225 |
name: 'FramedBox4'
|
2648
|
226 |
layout: (LayoutFrame 0 0.0 70 0 4 1.0 -30 1)
|
2636
|
227 |
labelPosition: topLeft
|
|
228 |
translateLabel: true
|
|
229 |
component:
|
|
230 |
(SpecCollection
|
|
231 |
collection: (
|
|
232 |
(VariableHorizontalPanelSpec
|
|
233 |
name: 'VariableHorizontalPanel2'
|
|
234 |
layout: (LayoutFrame 0 0 4 0 0 1 -26 1)
|
|
235 |
component:
|
|
236 |
(SpecCollection
|
|
237 |
collection: (
|
|
238 |
(SequenceViewSpec
|
|
239 |
name: 'List2'
|
|
240 |
model: selectedProjectIndexHolder
|
|
241 |
hasHorizontalScrollBar: true
|
|
242 |
hasVerticalScrollBar: true
|
|
243 |
useIndex: true
|
|
244 |
sequenceList: listOfMatchingProjects
|
|
245 |
)
|
|
246 |
(TextEditorSpec
|
|
247 |
name: 'TextEditor2'
|
|
248 |
model: selectedProjectsComment
|
|
249 |
hasHorizontalScrollBar: true
|
|
250 |
hasVerticalScrollBar: true
|
|
251 |
isReadOnly: true
|
|
252 |
hasKeyboardFocusInitially: false
|
|
253 |
viewClassName: 'TextView'
|
|
254 |
)
|
|
255 |
)
|
|
256 |
|
|
257 |
)
|
|
258 |
handles: (Any 0.34560327198364 1.0)
|
|
259 |
)
|
|
260 |
(CheckBoxSpec
|
|
261 |
label: 'Hide ST/X Base Packages'
|
|
262 |
name: 'CheckBox1'
|
2659
|
263 |
layout: (LayoutFrame -1 0 -17 1 0 1 5 1)
|
2636
|
264 |
model: hideSTXProjects
|
|
265 |
translateLabel: true
|
|
266 |
)
|
|
267 |
)
|
|
268 |
|
|
269 |
)
|
|
270 |
)
|
2648
|
271 |
(HorizontalPanelViewSpec
|
|
272 |
name: 'HorizontalPanel1'
|
|
273 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1)
|
|
274 |
horizontalLayout: leftSpace
|
|
275 |
verticalLayout: center
|
|
276 |
horizontalSpace: 3
|
|
277 |
verticalSpace: 3
|
|
278 |
component:
|
|
279 |
(SpecCollection
|
|
280 |
collection: (
|
|
281 |
(ActionButtonSpec
|
|
282 |
label: 'Browse Selected Project'
|
|
283 |
name: 'Button3'
|
|
284 |
translateLabel: true
|
|
285 |
model: doBrowseProject
|
2659
|
286 |
enableChannel: hasProjectSelectedHolder
|
2648
|
287 |
extent: (Point 180 22)
|
|
288 |
)
|
|
289 |
)
|
|
290 |
|
|
291 |
)
|
2636
|
292 |
)
|
|
293 |
)
|
|
294 |
|
|
295 |
)
|
|
296 |
)
|
|
297 |
!
|
|
298 |
|
2645
|
299 |
page3_applicationSelectionSpec
|
2636
|
300 |
"This resource specification was automatically generated
|
|
301 |
by the UIPainter of ST/X."
|
|
302 |
|
|
303 |
"Do not manually edit this!! If it is corrupted,
|
|
304 |
the UIPainter may not be able to read the specification."
|
|
305 |
|
|
306 |
"
|
2648
|
307 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page3_applicationSelectionSpec
|
|
308 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page3_applicationSelectionSpec
|
2636
|
309 |
"
|
|
310 |
|
|
311 |
<resource: #canvas>
|
|
312 |
|
|
313 |
^
|
|
314 |
#(FullSpec
|
2645
|
315 |
name: #'page3_applicationSelectionSpec'
|
2636
|
316 |
window:
|
|
317 |
(WindowSpec
|
|
318 |
label: 'Application Selection'
|
|
319 |
name: 'Application Selection'
|
|
320 |
min: (Point 0 0)
|
|
321 |
bounds: (Rectangle 0 0 521 408)
|
|
322 |
)
|
|
323 |
component:
|
|
324 |
(SpecCollection
|
|
325 |
collection: (
|
|
326 |
(FramedBoxSpec
|
|
327 |
label: 'New Application'
|
|
328 |
name: 'FramedBox3'
|
|
329 |
layout: (LayoutFrame 0 0.0 5 0 4 1.0 105 0)
|
|
330 |
labelPosition: topLeft
|
|
331 |
translateLabel: true
|
|
332 |
component:
|
|
333 |
(SpecCollection
|
|
334 |
collection: (
|
|
335 |
(InputFieldSpec
|
|
336 |
name: 'EntryField1'
|
2659
|
337 |
layout: (LayoutFrame 1 0 6 0 -113 1 28 0)
|
2636
|
338 |
model: newApplicationsName
|
|
339 |
acceptOnReturn: true
|
|
340 |
acceptOnTab: true
|
|
341 |
acceptOnPointerLeave: true
|
|
342 |
emptyFieldReplacementText: 'MyApplication'
|
|
343 |
)
|
|
344 |
(ActionButtonSpec
|
|
345 |
label: 'Create'
|
|
346 |
name: 'Button1'
|
2659
|
347 |
layout: (LayoutFrame -100 1 6 0 1 1 28 0)
|
2636
|
348 |
translateLabel: true
|
|
349 |
model: createNewApplication
|
|
350 |
)
|
|
351 |
)
|
|
352 |
|
|
353 |
)
|
|
354 |
)
|
|
355 |
(FramedBoxSpec
|
|
356 |
label: 'Existing Applications'
|
|
357 |
name: 'FramedBox4'
|
2648
|
358 |
layout: (LayoutFrame 0 0.0 105 0 4 1.0 -30 1)
|
2636
|
359 |
labelPosition: topLeft
|
|
360 |
translateLabel: true
|
|
361 |
component:
|
|
362 |
(SpecCollection
|
|
363 |
collection: (
|
|
364 |
(VariableHorizontalPanelSpec
|
|
365 |
name: 'VariableHorizontalPanel2'
|
|
366 |
layout: (LayoutFrame 0 0 4 0 0 1 0 1)
|
|
367 |
component:
|
|
368 |
(SpecCollection
|
|
369 |
collection: (
|
|
370 |
(SequenceViewSpec
|
|
371 |
name: 'List2'
|
|
372 |
model: selectedApplicationIndexHolder
|
|
373 |
hasHorizontalScrollBar: true
|
|
374 |
hasVerticalScrollBar: true
|
|
375 |
useIndex: true
|
|
376 |
sequenceList: listOfApplicationsInProject
|
|
377 |
)
|
|
378 |
(TextEditorSpec
|
|
379 |
name: 'TextEditor2'
|
|
380 |
model: selectedApplicationsComment
|
|
381 |
hasHorizontalScrollBar: true
|
|
382 |
hasVerticalScrollBar: true
|
|
383 |
isReadOnly: true
|
|
384 |
hasKeyboardFocusInitially: false
|
|
385 |
viewClassName: 'TextView'
|
|
386 |
)
|
|
387 |
)
|
|
388 |
|
|
389 |
)
|
|
390 |
handles: (Any 0.34560327198364 1.0)
|
|
391 |
)
|
|
392 |
)
|
|
393 |
|
|
394 |
)
|
|
395 |
)
|
2648
|
396 |
(HorizontalPanelViewSpec
|
|
397 |
name: 'HorizontalPanel1'
|
|
398 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1)
|
|
399 |
horizontalLayout: leftSpace
|
|
400 |
verticalLayout: center
|
|
401 |
horizontalSpace: 3
|
|
402 |
verticalSpace: 3
|
|
403 |
component:
|
|
404 |
(SpecCollection
|
|
405 |
collection: (
|
|
406 |
(ActionButtonSpec
|
|
407 |
label: 'Browse Selected Application'
|
|
408 |
name: 'Button3'
|
|
409 |
translateLabel: true
|
|
410 |
model: doBrowseApplication
|
2659
|
411 |
enableChannel: hasApplicationSelectedHolder
|
|
412 |
extent: (Point 180 22)
|
|
413 |
)
|
|
414 |
(ActionButtonSpec
|
|
415 |
label: 'Launch Selected Application'
|
|
416 |
name: 'Button4'
|
|
417 |
translateLabel: true
|
|
418 |
model: doLaunchApplication
|
|
419 |
enableChannel: hasApplicationSelectedHolder
|
2648
|
420 |
extent: (Point 180 22)
|
|
421 |
)
|
|
422 |
)
|
|
423 |
|
|
424 |
)
|
2636
|
425 |
)
|
|
426 |
)
|
|
427 |
|
|
428 |
)
|
|
429 |
)
|
|
430 |
!
|
|
431 |
|
2656
|
432 |
page4_startupClassSelectionSpec
|
2636
|
433 |
"This resource specification was automatically generated
|
|
434 |
by the UIPainter of ST/X."
|
|
435 |
|
|
436 |
"Do not manually edit this!! If it is corrupted,
|
|
437 |
the UIPainter may not be able to read the specification."
|
|
438 |
|
|
439 |
"
|
2656
|
440 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page4_startupClassSelectionSpec
|
|
441 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page4_startupClassSelectionSpec
|
2636
|
442 |
"
|
|
443 |
|
|
444 |
<resource: #canvas>
|
|
445 |
|
|
446 |
^
|
|
447 |
#(FullSpec
|
2656
|
448 |
name: #'page4_startupClassSelectionSpec'
|
|
449 |
window:
|
|
450 |
(WindowSpec
|
|
451 |
label: 'Startup Class Selection'
|
|
452 |
name: 'Startup Class Selection'
|
|
453 |
min: (Point 0 0)
|
|
454 |
bounds: (Rectangle 0 0 521 408)
|
|
455 |
)
|
|
456 |
component:
|
|
457 |
(SpecCollection
|
|
458 |
collection: (
|
|
459 |
(FramedBoxSpec
|
|
460 |
label: 'New Application'
|
|
461 |
name: 'FramedBox3'
|
|
462 |
layout: (LayoutFrame 0 0.0 5 0 4 1.0 105 0)
|
|
463 |
labelPosition: topLeft
|
|
464 |
translateLabel: true
|
|
465 |
component:
|
|
466 |
(SpecCollection
|
|
467 |
collection: (
|
|
468 |
(InputFieldSpec
|
|
469 |
name: 'EntryField1'
|
2659
|
470 |
layout: (LayoutFrame 1 0 6 0 -113 1 28 0)
|
2656
|
471 |
model: newStartupClassName
|
|
472 |
acceptOnReturn: true
|
|
473 |
acceptOnTab: true
|
|
474 |
acceptOnPointerLeave: true
|
|
475 |
emptyFieldReplacementText: 'MyStandAloneStartup'
|
|
476 |
)
|
|
477 |
(ActionButtonSpec
|
|
478 |
label: 'Create'
|
|
479 |
name: 'Button1'
|
2659
|
480 |
layout: (LayoutFrame -100 1 6 0 1 1 28 0)
|
2656
|
481 |
translateLabel: true
|
|
482 |
model: createNewStartupClass
|
|
483 |
)
|
|
484 |
)
|
|
485 |
|
|
486 |
)
|
|
487 |
)
|
|
488 |
(FramedBoxSpec
|
|
489 |
label: 'Existing StartupClasses'
|
|
490 |
name: 'FramedBox4'
|
|
491 |
layout: (LayoutFrame 0 0.0 105 0 4 1.0 -30 1)
|
|
492 |
labelPosition: topLeft
|
|
493 |
translateLabel: true
|
|
494 |
component:
|
|
495 |
(SpecCollection
|
|
496 |
collection: (
|
|
497 |
(VariableHorizontalPanelSpec
|
|
498 |
name: 'VariableHorizontalPanel2'
|
|
499 |
layout: (LayoutFrame 0 0 4 0 0 1 0 1)
|
|
500 |
component:
|
|
501 |
(SpecCollection
|
|
502 |
collection: (
|
|
503 |
(SequenceViewSpec
|
|
504 |
name: 'List2'
|
|
505 |
model: selectedStartupClassIndexHolder
|
|
506 |
hasHorizontalScrollBar: true
|
|
507 |
hasVerticalScrollBar: true
|
|
508 |
useIndex: true
|
|
509 |
sequenceList: listOfStartupClassesInProject
|
|
510 |
)
|
|
511 |
(TextEditorSpec
|
|
512 |
name: 'TextEditor2'
|
|
513 |
model: selectedStartupClassesComment
|
|
514 |
hasHorizontalScrollBar: true
|
|
515 |
hasVerticalScrollBar: true
|
|
516 |
isReadOnly: true
|
|
517 |
hasKeyboardFocusInitially: false
|
|
518 |
viewClassName: 'TextView'
|
|
519 |
)
|
|
520 |
)
|
|
521 |
|
|
522 |
)
|
|
523 |
handles: (Any 0.34560327198364 1.0)
|
|
524 |
)
|
|
525 |
)
|
|
526 |
|
|
527 |
)
|
|
528 |
)
|
|
529 |
(HorizontalPanelViewSpec
|
|
530 |
name: 'HorizontalPanel1'
|
|
531 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1)
|
|
532 |
horizontalLayout: leftSpace
|
|
533 |
verticalLayout: center
|
|
534 |
horizontalSpace: 3
|
|
535 |
verticalSpace: 3
|
|
536 |
component:
|
|
537 |
(SpecCollection
|
|
538 |
collection: (
|
|
539 |
(ActionButtonSpec
|
|
540 |
label: 'Browse Selected StartupClass'
|
|
541 |
name: 'Button3'
|
|
542 |
translateLabel: true
|
|
543 |
model: doBrowseStartupClass
|
2659
|
544 |
enableChannel: hasStartupClassSelectedHolder
|
2656
|
545 |
extent: (Point 180 22)
|
|
546 |
)
|
|
547 |
)
|
|
548 |
|
|
549 |
)
|
|
550 |
)
|
|
551 |
)
|
|
552 |
|
|
553 |
)
|
|
554 |
)
|
|
555 |
!
|
|
556 |
|
|
557 |
page5_specifyIncludedClasses
|
|
558 |
"This resource specification was automatically generated
|
|
559 |
by the UIPainter of ST/X."
|
|
560 |
|
|
561 |
"Do not manually edit this!! If it is corrupted,
|
|
562 |
the UIPainter may not be able to read the specification."
|
|
563 |
|
|
564 |
"
|
|
565 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page5_specifyIncludedClasses
|
|
566 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page5_specifyIncludedClasses
|
|
567 |
"
|
|
568 |
|
|
569 |
<resource: #canvas>
|
|
570 |
|
|
571 |
^
|
|
572 |
#(FullSpec
|
|
573 |
name: #'page5_specifyIncludedClasses'
|
2636
|
574 |
window:
|
|
575 |
(WindowSpec
|
|
576 |
label: 'Project Selection'
|
|
577 |
name: 'Project Selection'
|
|
578 |
min: (Point 0 0)
|
|
579 |
bounds: (Rectangle 0 0 521 400)
|
|
580 |
)
|
|
581 |
component:
|
|
582 |
(SpecCollection
|
|
583 |
collection: (
|
|
584 |
(FramedBoxSpec
|
|
585 |
label: 'Project Contents'
|
|
586 |
name: 'FramedBox3'
|
2648
|
587 |
layout: (LayoutFrame 0 0.0 5 0 4 1.0 -30 1)
|
2636
|
588 |
labelPosition: topLeft
|
|
589 |
translateLabel: true
|
|
590 |
component:
|
|
591 |
(SpecCollection
|
|
592 |
collection: (
|
|
593 |
(SequenceViewSpec
|
|
594 |
name: 'List1'
|
|
595 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1)
|
|
596 |
initiallyDisabled: true
|
|
597 |
hasHorizontalScrollBar: true
|
|
598 |
hasVerticalScrollBar: true
|
|
599 |
useIndex: false
|
|
600 |
sequenceList: listOfClassesInProject
|
|
601 |
)
|
|
602 |
)
|
|
603 |
|
|
604 |
)
|
|
605 |
)
|
2648
|
606 |
(HorizontalPanelViewSpec
|
|
607 |
name: 'HorizontalPanel1'
|
|
608 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1)
|
|
609 |
horizontalLayout: center
|
|
610 |
verticalLayout: center
|
|
611 |
horizontalSpace: 3
|
|
612 |
verticalSpace: 3
|
|
613 |
component:
|
|
614 |
(SpecCollection
|
|
615 |
collection: (
|
|
616 |
(ActionButtonSpec
|
|
617 |
label: 'Browse Project Definition'
|
|
618 |
name: 'Button3'
|
|
619 |
translateLabel: true
|
2659
|
620 |
model: doBrowseProjectDefinitionClass
|
2648
|
621 |
extent: (Point 180 22)
|
|
622 |
)
|
|
623 |
(ActionButtonSpec
|
|
624 |
label: 'Update Contents (Scan)'
|
|
625 |
name: 'Button4'
|
|
626 |
translateLabel: true
|
|
627 |
model: doGenerateProjectContentsDefinition
|
|
628 |
extent: (Point 180 22)
|
|
629 |
)
|
|
630 |
)
|
|
631 |
|
|
632 |
)
|
2636
|
633 |
)
|
|
634 |
)
|
|
635 |
|
|
636 |
)
|
|
637 |
)
|
|
638 |
!
|
|
639 |
|
2656
|
640 |
page6_specifyBuildDirectorySpec
|
2636
|
641 |
"This resource specification was automatically generated
|
|
642 |
by the UIPainter of ST/X."
|
|
643 |
|
|
644 |
"Do not manually edit this!! If it is corrupted,
|
|
645 |
the UIPainter may not be able to read the specification."
|
|
646 |
|
|
647 |
"
|
2656
|
648 |
UIPainter new openOnClass:ProjectBuilderAssistantApplication andSelector:#page6_specifyBuildDirectorySpec
|
|
649 |
ProjectBuilderAssistantApplication new openInterface:#page6_specifyBuildDirectorySpec
|
2636
|
650 |
"
|
|
651 |
|
|
652 |
<resource: #canvas>
|
|
653 |
|
|
654 |
^
|
|
655 |
#(FullSpec
|
2656
|
656 |
name: #'page6_specifyBuildDirectorySpec'
|
2636
|
657 |
window:
|
|
658 |
(WindowSpec
|
|
659 |
label: 'Project Selection'
|
|
660 |
name: 'Project Selection'
|
|
661 |
min: (Point 0 0)
|
|
662 |
bounds: (Rectangle 0 0 521 104)
|
|
663 |
)
|
|
664 |
component:
|
|
665 |
(SpecCollection
|
|
666 |
collection: (
|
|
667 |
(FramedBoxSpec
|
|
668 |
label: 'Build Directory'
|
|
669 |
name: 'FramedBox3'
|
|
670 |
layout: (LayoutFrame 0 0.0 5 0 4 1.0 79 0)
|
|
671 |
labelPosition: topLeft
|
|
672 |
translateLabel: true
|
|
673 |
component:
|
|
674 |
(SpecCollection
|
|
675 |
collection: (
|
|
676 |
(FilenameInputFieldSpec
|
|
677 |
name: 'FilenameEntryField1'
|
|
678 |
layout: (LayoutFrame 0 0.0 10 0 0 1.0 32 0)
|
|
679 |
model: buildDirectoryHolder
|
|
680 |
acceptOnPointerLeave: true
|
|
681 |
viewClassName: FilenameWidgetWithHistory
|
|
682 |
)
|
|
683 |
)
|
|
684 |
|
|
685 |
)
|
|
686 |
)
|
|
687 |
)
|
|
688 |
|
|
689 |
)
|
|
690 |
)
|
|
691 |
!
|
|
692 |
|
2656
|
693 |
page7_buildSpec
|
2636
|
694 |
"This resource specification was automatically generated
|
|
695 |
by the UIPainter of ST/X."
|
|
696 |
|
|
697 |
"Do not manually edit this!! If it is corrupted,
|
|
698 |
the UIPainter may not be able to read the specification."
|
|
699 |
|
|
700 |
"
|
2656
|
701 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page7_buildSpec
|
|
702 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page7_buildSpec
|
2636
|
703 |
"
|
|
704 |
|
|
705 |
<resource: #canvas>
|
|
706 |
|
|
707 |
^
|
|
708 |
#(FullSpec
|
2656
|
709 |
name: #'page7_buildSpec'
|
2636
|
710 |
window:
|
|
711 |
(WindowSpec
|
|
712 |
label: 'Project Selection'
|
|
713 |
name: 'Project Selection'
|
|
714 |
min: (Point 0 0)
|
|
715 |
bounds: (Rectangle 0 0 521 472)
|
|
716 |
)
|
|
717 |
component:
|
|
718 |
(SpecCollection
|
|
719 |
collection: (
|
|
720 |
(FramedBoxSpec
|
|
721 |
label: 'Make Output'
|
|
722 |
name: 'FramedBox3'
|
2648
|
723 |
layout: (LayoutFrame 0 0.0 5 0 4 1.0 -30 1)
|
2636
|
724 |
labelPosition: topLeft
|
|
725 |
translateLabel: true
|
|
726 |
component:
|
|
727 |
(SpecCollection
|
|
728 |
collection: (
|
|
729 |
(TextEditorSpec
|
2646
|
730 |
name: 'MakeOutputWindow'
|
2636
|
731 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1)
|
|
732 |
model: makeOutputHolder
|
|
733 |
hasHorizontalScrollBar: true
|
|
734 |
hasVerticalScrollBar: true
|
|
735 |
hasKeyboardFocusInitially: false
|
|
736 |
viewClassName: 'TextCollector'
|
2646
|
737 |
postBuildCallback: postBuildMakeOutputWindow:
|
2636
|
738 |
)
|
|
739 |
)
|
|
740 |
|
|
741 |
)
|
|
742 |
)
|
2648
|
743 |
(HorizontalPanelViewSpec
|
|
744 |
name: 'HorizontalPanel1'
|
|
745 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1)
|
|
746 |
horizontalLayout: leftSpace
|
|
747 |
verticalLayout: center
|
|
748 |
horizontalSpace: 3
|
|
749 |
verticalSpace: 3
|
|
750 |
component:
|
|
751 |
(SpecCollection
|
|
752 |
collection: (
|
|
753 |
(ActionButtonSpec
|
|
754 |
label: 'Start Make'
|
|
755 |
name: 'Button3'
|
|
756 |
translateLabel: true
|
|
757 |
model: doStartMake
|
|
758 |
enableChannel: startMakeButtonEnabled
|
|
759 |
extent: (Point 107 22)
|
|
760 |
)
|
|
761 |
(ActionButtonSpec
|
|
762 |
label: 'Stop Make'
|
|
763 |
name: 'Button4'
|
|
764 |
visibilityChannel: stopMakeButtonVisible
|
|
765 |
translateLabel: true
|
|
766 |
model: doStopMake
|
|
767 |
extent: (Point 107 22)
|
|
768 |
)
|
|
769 |
)
|
|
770 |
|
|
771 |
)
|
2636
|
772 |
)
|
|
773 |
)
|
|
774 |
|
|
775 |
)
|
|
776 |
)
|
|
777 |
!
|
|
778 |
|
2656
|
779 |
page8_deploySpec
|
2636
|
780 |
"This resource specification was automatically generated
|
|
781 |
by the UIPainter of ST/X."
|
|
782 |
|
|
783 |
"Do not manually edit this!! If it is corrupted,
|
|
784 |
the UIPainter may not be able to read the specification."
|
|
785 |
|
|
786 |
"
|
2656
|
787 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page8_deploySpec
|
|
788 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page8_deploySpec
|
2636
|
789 |
"
|
|
790 |
|
|
791 |
<resource: #canvas>
|
|
792 |
|
|
793 |
^
|
|
794 |
#(FullSpec
|
2656
|
795 |
name: #'page8_deploySpec'
|
2636
|
796 |
window:
|
|
797 |
(WindowSpec
|
|
798 |
label: 'Project Selection'
|
|
799 |
name: 'Project Selection'
|
|
800 |
min: (Point 0 0)
|
|
801 |
bounds: (Rectangle 0 0 521 472)
|
|
802 |
)
|
|
803 |
component:
|
|
804 |
(SpecCollection
|
|
805 |
collection: (
|
|
806 |
(FramedBoxSpec
|
2649
|
807 |
label: 'Files for Deployment'
|
2636
|
808 |
name: 'FramedBox3'
|
2646
|
809 |
layout: (LayoutFrame 0 0.0 5 0 4 1.0 0 1)
|
2636
|
810 |
labelPosition: topLeft
|
|
811 |
translateLabel: true
|
|
812 |
component:
|
|
813 |
(SpecCollection
|
|
814 |
collection: (
|
2646
|
815 |
(SubCanvasSpec
|
|
816 |
name: 'SubCanvas1'
|
2649
|
817 |
layout: (LayoutFrame 0 0 0 0 0 1 -30 1)
|
2646
|
818 |
hasHorizontalScrollBar: false
|
|
819 |
hasVerticalScrollBar: false
|
|
820 |
clientHolder: fileBrowserInstance
|
|
821 |
createNewApplication: true
|
|
822 |
createNewBuilder: true
|
2636
|
823 |
)
|
2649
|
824 |
(HorizontalPanelViewSpec
|
|
825 |
name: 'HorizontalPanel1'
|
|
826 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1)
|
|
827 |
horizontalLayout: center
|
|
828 |
verticalLayout: center
|
|
829 |
horizontalSpace: 3
|
|
830 |
verticalSpace: 3
|
|
831 |
component:
|
|
832 |
(SpecCollection
|
|
833 |
collection: (
|
|
834 |
(ActionButtonSpec
|
|
835 |
label: 'Open Windows Explorer'
|
|
836 |
name: 'Button1'
|
|
837 |
translateLabel: true
|
|
838 |
resizeForLabel: true
|
|
839 |
model: doOpenExplorer
|
|
840 |
extent: (Point 172 22)
|
|
841 |
)
|
|
842 |
)
|
|
843 |
|
|
844 |
)
|
|
845 |
)
|
2636
|
846 |
)
|
|
847 |
|
|
848 |
)
|
|
849 |
)
|
|
850 |
)
|
|
851 |
|
|
852 |
)
|
|
853 |
)
|
|
854 |
! !
|
|
855 |
|
|
856 |
!ProjectBuilderAssistantApplication methodsFor:'actions'!
|
|
857 |
|
|
858 |
buildDirectoryChanged
|
|
859 |
self updateButtonEnableState.
|
|
860 |
!
|
|
861 |
|
|
862 |
createNewApplication
|
|
863 |
<resource: #uiCallback>
|
|
864 |
|
|
865 |
|newAppName newAppClass|
|
|
866 |
|
|
867 |
newAppName := self newApplicationsName value.
|
|
868 |
newAppName isEmptyOrNil ifTrue:[
|
|
869 |
Dialog warn:'Please enter the name of the Application-Class first.'.
|
|
870 |
^ self
|
|
871 |
].
|
|
872 |
|
2659
|
873 |
self withWaitCursorDo:[
|
|
874 |
Class packageQuerySignal answer:(selectedProjectDefinition package)
|
|
875 |
do:[
|
|
876 |
newAppClass := ApplicationModel
|
|
877 |
subclass:newAppName asSymbol
|
|
878 |
instanceVariableNames:''
|
|
879 |
classVariableNames:''
|
|
880 |
poolDictionaries:''
|
|
881 |
category:'Applications'.
|
|
882 |
CodeGeneratorTool createApplicationCodeFor:newAppClass.
|
|
883 |
].
|
|
884 |
self updateListOfApplicationsInProject
|
2636
|
885 |
].
|
|
886 |
!
|
|
887 |
|
|
888 |
createNewProject
|
|
889 |
<resource: #uiCallback>
|
|
890 |
|
|
891 |
|newProjectID projectDefinitionType projectDefinitionClass projectClasses|
|
|
892 |
|
|
893 |
newProjectID := self newProjectsName value.
|
|
894 |
newProjectID isEmptyOrNil ifTrue:[
|
|
895 |
Dialog warn:'Please enter a packageID first.'.
|
|
896 |
^ self
|
|
897 |
].
|
2659
|
898 |
newProjectID asPackageId isModuleId ifTrue:[
|
|
899 |
Dialog warn:'Please enter a corrent packageID (module:directory).'.
|
|
900 |
^ self
|
|
901 |
].
|
2636
|
902 |
|
2659
|
903 |
projectDefinitionType := ProjectDefinition perform:(self projectTypeHolder value).
|
2636
|
904 |
|
|
905 |
|
|
906 |
projectDefinitionClass := ProjectDefinition
|
|
907 |
definitionClassForPackage:newProjectID
|
|
908 |
projectType: projectDefinitionType
|
|
909 |
createIfAbsent:true.
|
|
910 |
|
|
911 |
projectDefinitionClass compileDescriptionMethods.
|
|
912 |
self updateListOfMatchingProjects.
|
|
913 |
|
|
914 |
self selectedProjectIndexHolder value:( self listOfMatchingProjects value indexOf:projectDefinitionClass).
|
|
915 |
|
|
916 |
projectClasses := projectDefinitionClass allClassNames
|
|
917 |
collect:[:nm |Smalltalk classNamed:nm].
|
|
918 |
|
2659
|
919 |
"/ projectDefinitionClass isGUIApplication ifTrue:[
|
|
920 |
"/ "/ see if it has an AppModel class
|
|
921 |
"/ (projectClasses contains:[:cls | cls isVisualStartable]) ifFalse:[
|
|
922 |
"/ (Dialog confirm:'Create an Application Class ?') ifTrue:[
|
|
923 |
"/ self halt.
|
|
924 |
"/ ].
|
|
925 |
"/ ].
|
|
926 |
"/ ].
|
2636
|
927 |
|
|
928 |
"/ projectDefinitionClass isLibrary ifFalse:[
|
|
929 |
"/ "/ see if it has a Startup class
|
|
930 |
"/ (projectClasses contains:[:cls | cls isStartable]) ifFalse:[
|
|
931 |
"/ ].
|
|
932 |
"/ ].
|
|
933 |
!
|
|
934 |
|
2659
|
935 |
createNewStartupClass
|
|
936 |
<resource: #uiCallback>
|
|
937 |
|
|
938 |
|newClassName newStartupClass|
|
|
939 |
|
|
940 |
newClassName := self newStartupClassName value.
|
|
941 |
newClassName isEmptyOrNil ifTrue:[
|
|
942 |
Dialog warn:'Please enter the name of the Startup-Class first.'.
|
|
943 |
^ self
|
|
944 |
].
|
|
945 |
|
|
946 |
self withWaitCursorDo:[
|
|
947 |
Class packageQuerySignal answer:(selectedProjectDefinition package)
|
|
948 |
do:[
|
|
949 |
newStartupClass := StandaloneStartup
|
|
950 |
subclass:newClassName asSymbol
|
|
951 |
instanceVariableNames:''
|
|
952 |
classVariableNames:''
|
|
953 |
poolDictionaries:''
|
|
954 |
category:'Applications'.
|
|
955 |
CodeGeneratorTool createStartupCodeFor:newStartupClass forStartOf:selectedApplication.
|
|
956 |
].
|
|
957 |
self updateListOfStartupClassesInProject
|
|
958 |
].
|
|
959 |
!
|
|
960 |
|
2636
|
961 |
doAddClassToProject
|
|
962 |
<resource: #uiCallback>
|
|
963 |
|
|
964 |
Transcript showCR:self class name, ': action for doAddClassToProject ...'.
|
|
965 |
self halt.
|
|
966 |
!
|
|
967 |
|
|
968 |
doBrowseApplication
|
|
969 |
<resource: #uiCallback>
|
|
970 |
|
|
971 |
|appClass|
|
|
972 |
|
2659
|
973 |
self hasApplicationSelected ifTrue:[
|
|
974 |
appClass := self listOfApplicationsInProject value at:(self selectedApplicationIndexHolder value).
|
|
975 |
UserPreferences systemBrowserClass
|
|
976 |
openInClass:appClass.
|
|
977 |
].
|
2636
|
978 |
!
|
|
979 |
|
|
980 |
doBrowseProject
|
|
981 |
<resource: #uiCallback>
|
|
982 |
|
|
983 |
UserPreferences systemBrowserClass openOnPackage:selectedProjectDefinition package.
|
|
984 |
!
|
|
985 |
|
2659
|
986 |
doBrowseProjectDefinitionClass
|
|
987 |
<resource: #uiCallback>
|
|
988 |
|
|
989 |
|defClass|
|
|
990 |
|
|
991 |
self hasProjectSelected ifTrue:[
|
|
992 |
defClass := self selectedProjectDefinition.
|
|
993 |
UserPreferences systemBrowserClass
|
|
994 |
openInClass:defClass class selector:#classNamesAndAttributes.
|
|
995 |
].
|
|
996 |
!
|
|
997 |
|
|
998 |
doBrowseStartupClass
|
|
999 |
<resource: #uiCallback>
|
|
1000 |
|
|
1001 |
|startupClass|
|
|
1002 |
|
|
1003 |
self hasStartupClassSelected ifTrue:[
|
|
1004 |
startupClass := self listOfStartupClassesInProject value at:(self selectedStartupClassIndexHolder value).
|
|
1005 |
UserPreferences systemBrowserClass
|
|
1006 |
openInClass:startupClass.
|
|
1007 |
].
|
|
1008 |
!
|
|
1009 |
|
2646
|
1010 |
doGenerateProjectContentsDefinition
|
|
1011 |
self generatePackageContentsMethods
|
|
1012 |
!
|
|
1013 |
|
2659
|
1014 |
doLaunchApplication
|
|
1015 |
<resource: #uiCallback>
|
|
1016 |
|
|
1017 |
|appClass|
|
|
1018 |
|
|
1019 |
self hasApplicationSelected ifTrue:[
|
|
1020 |
appClass := self listOfApplicationsInProject value at:(self selectedApplicationIndexHolder value).
|
|
1021 |
appClass open.
|
|
1022 |
].
|
|
1023 |
!
|
|
1024 |
|
2649
|
1025 |
doOpenExplorer
|
|
1026 |
OperatingSystem
|
|
1027 |
openApplicationForDocument:(projectBuilder packageBuildDirectory) operation:#explore.
|
|
1028 |
!
|
|
1029 |
|
2636
|
1030 |
doStartMake
|
|
1031 |
<resource: #uiCallback>
|
|
1032 |
|
|
1033 |
self stopMakeButtonVisible value:true.
|
|
1034 |
self startMakeButtonEnabled value:false.
|
|
1035 |
|
2646
|
1036 |
makeOutputWindow clear.
|
|
1037 |
|
2636
|
1038 |
makeProcess :=
|
|
1039 |
[
|
|
1040 |
[
|
|
1041 |
self runBuildProcess
|
|
1042 |
] ensure:[
|
|
1043 |
self stopMakeButtonVisible value:false.
|
|
1044 |
self startMakeButtonEnabled value:true.
|
2646
|
1045 |
makeProcess := nil.
|
2648
|
1046 |
self updateButtonEnableState.
|
2636
|
1047 |
].
|
|
1048 |
] newProcess.
|
|
1049 |
|
|
1050 |
makeProcess priority:4.
|
|
1051 |
makeProcess priorityRange:(4 to:8).
|
|
1052 |
makeProcess resume.
|
|
1053 |
!
|
|
1054 |
|
2646
|
1055 |
doStopMake
|
|
1056 |
<resource: #uiCallback>
|
|
1057 |
|
|
1058 |
|p|
|
|
1059 |
|
|
1060 |
(p := makeProcess) notNil ifTrue:[
|
|
1061 |
makeProcess := nil.
|
|
1062 |
p terminate.
|
|
1063 |
p waitUntilTerminated.
|
|
1064 |
|
|
1065 |
makeOutputWindow endEntry.
|
|
1066 |
makeOutputWindow cr.
|
2659
|
1067 |
makeOutputWindow nextPutLine:('Make Cancelled' colorizeAllWith:Color white on:Color red).
|
2646
|
1068 |
makeOutputWindow endEntry.
|
|
1069 |
].
|
|
1070 |
!
|
|
1071 |
|
2636
|
1072 |
projectTypeChanged
|
|
1073 |
<resource: #uiCallback>
|
|
1074 |
|
|
1075 |
self updateListOfMatchingProjects
|
|
1076 |
!
|
|
1077 |
|
|
1078 |
runBuildProcess
|
|
1079 |
<resource: #uiCallback>
|
|
1080 |
|
2646
|
1081 |
self assert:makeOutputWindow notNil.
|
|
1082 |
self assert:makeOutputWindow model == self makeOutputHolder.
|
|
1083 |
|
|
1084 |
ActivityNotification handle:[:ex |
|
|
1085 |
ex messageText notNil ifTrue:[
|
|
1086 |
makeOutputWindow endEntry.
|
|
1087 |
makeOutputWindow cr.
|
2659
|
1088 |
makeOutputWindow nextPutLine:(ex messageText colorizeAllWith:Color white on:Color blue).
|
2646
|
1089 |
makeOutputWindow endEntry.
|
|
1090 |
].
|
|
1091 |
ex proceed.
|
|
1092 |
] do:[
|
|
1093 |
projectBuilder := ProjectBuilder new.
|
|
1094 |
projectBuilder package:(selectedProjectDefinition package).
|
|
1095 |
projectBuilder buildWithColorizedOutputTo:makeOutputWindow.
|
|
1096 |
].
|
2636
|
1097 |
!
|
|
1098 |
|
|
1099 |
selectedApplicationChanged
|
|
1100 |
self selectedApplicationIndexHolder value isNil ifTrue:[
|
|
1101 |
selectedApplication := nil.
|
|
1102 |
] ifFalse:[
|
|
1103 |
selectedApplication := self listOfApplicationsInProject value at:(self selectedApplicationIndexHolder value).
|
|
1104 |
].
|
2659
|
1105 |
self hasApplicationSelectedHolder value:(selectedApplication notNil).
|
|
1106 |
|
2656
|
1107 |
"/ selectedApplication notNil ifTrue:[
|
|
1108 |
"/ "/ generate startupClass code
|
|
1109 |
"/ CodeGeneratorTool
|
|
1110 |
"/ compile:(selectedProjectDefinition startupClassName_codeFor:(selectedApplication name))
|
|
1111 |
"/ forClass:selectedProjectDefinition theMetaclass
|
|
1112 |
"/ inCategory:'description - startup'.
|
|
1113 |
"/ ].
|
2636
|
1114 |
self updateApplicationComment.
|
|
1115 |
self updateButtonEnableState.
|
|
1116 |
!
|
|
1117 |
|
|
1118 |
selectedProjectChanged
|
|
1119 |
self selectedProjectIndexHolder value isNil ifTrue:[
|
|
1120 |
selectedProjectDefinition := nil.
|
|
1121 |
] ifFalse:[
|
|
1122 |
selectedProjectDefinition := self listOfMatchingProjects value at:(self selectedProjectIndexHolder value).
|
|
1123 |
].
|
2659
|
1124 |
self hasProjectSelectedHolder value:(selectedProjectDefinition notNil).
|
|
1125 |
|
2636
|
1126 |
self updateComment.
|
|
1127 |
self updateListOfApplicationsInProject.
|
|
1128 |
self updateButtonEnableState.
|
2656
|
1129 |
!
|
|
1130 |
|
|
1131 |
selectedStartupClassChanged
|
|
1132 |
self selectedStartupClassIndexHolder value isNil ifTrue:[
|
|
1133 |
selectedStartupClass := nil.
|
|
1134 |
] ifFalse:[
|
|
1135 |
selectedStartupClass := self listOfStartupClassesInProject value at:(self selectedStartupClassIndexHolder value).
|
|
1136 |
].
|
2659
|
1137 |
self hasStartupClassSelectedHolder value:(selectedStartupClass notNil).
|
|
1138 |
|
2656
|
1139 |
selectedStartupClass notNil ifTrue:[
|
|
1140 |
"/ generate startupClass code
|
|
1141 |
CodeGeneratorTool
|
|
1142 |
compile:(selectedProjectDefinition startupClassName_codeFor:(selectedStartupClass name))
|
|
1143 |
forClass:selectedProjectDefinition theMetaclass
|
|
1144 |
inCategory:'description - startup'.
|
|
1145 |
].
|
|
1146 |
self updateButtonEnableState.
|
2636
|
1147 |
! !
|
|
1148 |
|
|
1149 |
!ProjectBuilderAssistantApplication methodsFor:'aspects'!
|
|
1150 |
|
|
1151 |
buildDirectoryHolder
|
|
1152 |
<resource: #uiAspect>
|
|
1153 |
|
|
1154 |
|buildDirectory|
|
|
1155 |
|
|
1156 |
buildDirectoryHolder isNil ifTrue:[
|
|
1157 |
buildDirectoryHolder := nil asValue.
|
|
1158 |
buildDirectoryHolder onChangeSend:#buildDirectoryChanged to:self.
|
|
1159 |
].
|
|
1160 |
buildDirectoryHolder value isEmptyOrNil ifTrue:[
|
|
1161 |
buildDirectory := Tools::ProjectBuilder previousBuildDirectory.
|
|
1162 |
buildDirectory isNil ifTrue:[
|
|
1163 |
buildDirectory := UserPreferences current buildDirectory.
|
|
1164 |
buildDirectory isNil ifTrue:[
|
|
1165 |
buildDirectory := Filename tempDirectory construct:'stx_build'.
|
|
1166 |
].
|
|
1167 |
].
|
|
1168 |
buildDirectoryHolder value: buildDirectory.
|
|
1169 |
].
|
|
1170 |
^ buildDirectoryHolder.
|
|
1171 |
!
|
|
1172 |
|
2646
|
1173 |
fileBrowserInstance
|
|
1174 |
|targetDirectory browser|
|
|
1175 |
|
|
1176 |
targetDirectory := projectBuilder packageBuildDirectory.
|
|
1177 |
|
|
1178 |
browser := FileBrowserV2 new.
|
|
1179 |
browser onDirectory:targetDirectory.
|
|
1180 |
browser filter:'*setup*'.
|
|
1181 |
^ browser.
|
|
1182 |
!
|
|
1183 |
|
2659
|
1184 |
hasApplicationSelectedHolder
|
|
1185 |
<resource: #uiAspect>
|
|
1186 |
|
|
1187 |
hasApplicationSelectedHolder isNil ifTrue:[
|
|
1188 |
hasApplicationSelectedHolder := nil asValue.
|
|
1189 |
].
|
|
1190 |
^ hasApplicationSelectedHolder.
|
2636
|
1191 |
!
|
|
1192 |
|
2659
|
1193 |
hasProjectSelectedHolder
|
|
1194 |
<resource: #uiAspect>
|
|
1195 |
|
|
1196 |
hasProjectSelectedHolder isNil ifTrue:[
|
|
1197 |
hasProjectSelectedHolder := nil asValue.
|
|
1198 |
].
|
|
1199 |
^ hasProjectSelectedHolder.
|
2648
|
1200 |
!
|
|
1201 |
|
2659
|
1202 |
hasStartupClassSelectedHolder
|
|
1203 |
<resource: #uiAspect>
|
|
1204 |
|
|
1205 |
hasStartupClassSelectedHolder isNil ifTrue:[
|
|
1206 |
hasStartupClassSelectedHolder := nil asValue.
|
|
1207 |
].
|
|
1208 |
^ hasStartupClassSelectedHolder.
|
2636
|
1209 |
!
|
|
1210 |
|
|
1211 |
hideSTXProjects
|
|
1212 |
<resource: #uiAspect>
|
|
1213 |
|
|
1214 |
hideSTXProjects isNil ifTrue:[
|
|
1215 |
hideSTXProjects := true asValue.
|
|
1216 |
hideSTXProjects onChangeSend:#updateListOfMatchingProjects to:self.
|
|
1217 |
].
|
|
1218 |
^ hideSTXProjects.
|
|
1219 |
!
|
|
1220 |
|
|
1221 |
listOfApplicationsInProject
|
|
1222 |
<resource: #uiAspect>
|
|
1223 |
|
|
1224 |
listOfApplicationsInProject isNil ifTrue:[
|
|
1225 |
listOfApplicationsInProject := ValueHolder new.
|
|
1226 |
].
|
|
1227 |
^ listOfApplicationsInProject.
|
|
1228 |
!
|
|
1229 |
|
|
1230 |
listOfClassesInProject
|
|
1231 |
<resource: #uiAspect>
|
|
1232 |
|
|
1233 |
listOfClassesInProject isNil ifTrue:[
|
|
1234 |
listOfClassesInProject := ValueHolder new.
|
|
1235 |
].
|
|
1236 |
^ listOfClassesInProject.
|
|
1237 |
!
|
|
1238 |
|
|
1239 |
listOfMatchingProjects
|
|
1240 |
<resource: #uiAspect>
|
|
1241 |
|
|
1242 |
listOfMatchingProjects isNil ifTrue:[
|
|
1243 |
listOfMatchingProjects := ValueHolder new.
|
|
1244 |
].
|
|
1245 |
^ listOfMatchingProjects.
|
|
1246 |
!
|
|
1247 |
|
2656
|
1248 |
listOfStartupClassesInProject
|
|
1249 |
<resource: #uiAspect>
|
|
1250 |
|
|
1251 |
listOfStartupClassesInProject isNil ifTrue:[
|
|
1252 |
listOfStartupClassesInProject := ValueHolder new.
|
|
1253 |
].
|
|
1254 |
^ listOfStartupClassesInProject.
|
|
1255 |
!
|
|
1256 |
|
2636
|
1257 |
makeOutputHolder
|
|
1258 |
<resource: #uiAspect>
|
|
1259 |
|
|
1260 |
makeOutputHolder isNil ifTrue:[
|
2646
|
1261 |
makeOutputHolder := ValueHolder new.
|
2636
|
1262 |
].
|
|
1263 |
^ makeOutputHolder.
|
|
1264 |
!
|
|
1265 |
|
|
1266 |
newApplicationsName
|
|
1267 |
<resource: #uiAspect>
|
|
1268 |
|
|
1269 |
"automatically generated by UIPainter ..."
|
|
1270 |
|
|
1271 |
"*** the code below creates a default model when invoked."
|
|
1272 |
"*** (which may not be the one you wanted)"
|
|
1273 |
"*** Please change as required and accept it in the browser."
|
|
1274 |
"*** (and replace this comment by something more useful ;-)"
|
|
1275 |
|
|
1276 |
newApplicationsName isNil ifTrue:[
|
|
1277 |
newApplicationsName := ValueHolder new.
|
|
1278 |
"/ if your app needs to be notified of changes, uncomment one of the lines below:
|
|
1279 |
"/ newApplicationsName addDependent:self.
|
|
1280 |
"/ newApplicationsName onChangeSend:#newApplicationsNameChanged to:self.
|
|
1281 |
].
|
|
1282 |
^ newApplicationsName.
|
|
1283 |
!
|
|
1284 |
|
|
1285 |
newProjectsName
|
|
1286 |
<resource: #uiAspect>
|
|
1287 |
|
|
1288 |
newProjectsName isNil ifTrue:[
|
|
1289 |
newProjectsName := nil asValue.
|
|
1290 |
].
|
|
1291 |
^ newProjectsName.
|
|
1292 |
!
|
|
1293 |
|
2659
|
1294 |
newStartupClassName
|
2636
|
1295 |
<resource: #uiAspect>
|
|
1296 |
|
2659
|
1297 |
newStartupClassName isNil ifTrue:[
|
|
1298 |
newStartupClassName := ValueHolder new.
|
|
1299 |
].
|
|
1300 |
^ newStartupClassName.
|
|
1301 |
!
|
|
1302 |
|
|
1303 |
projectType
|
|
1304 |
self projectTypeHolder value == #libraryType ifTrue:[
|
|
1305 |
^ ProjectDefinition libraryType
|
|
1306 |
].
|
|
1307 |
self projectTypeHolder value == #guiApplicationType ifTrue:[
|
|
1308 |
^ ProjectDefinition guiApplicationType
|
|
1309 |
].
|
|
1310 |
self projectTypeHolder value == #nonGuiApplicationType ifTrue:[
|
|
1311 |
^ ProjectDefinition nonGuiApplicationType
|
2636
|
1312 |
].
|
2659
|
1313 |
self error.
|
|
1314 |
!
|
|
1315 |
|
|
1316 |
projectType:aProjectTypeSymbol
|
|
1317 |
|pType|
|
|
1318 |
|
|
1319 |
self assert:(ProjectDefinition projectTypes includes:aProjectTypeSymbol).
|
|
1320 |
aProjectTypeSymbol == ProjectDefinition libraryType ifTrue:[
|
|
1321 |
pType := #libraryType
|
|
1322 |
] ifFalse:[
|
|
1323 |
aProjectTypeSymbol == ProjectDefinition guiApplicationType ifTrue:[
|
|
1324 |
pType := #guiApplicationType
|
|
1325 |
] ifFalse:[
|
|
1326 |
aProjectTypeSymbol == ProjectDefinition nonGuiApplicationType ifTrue:[
|
|
1327 |
pType := #nonGuiApplicationType
|
|
1328 |
] ifFalse:[
|
|
1329 |
self error.
|
|
1330 |
].
|
|
1331 |
]
|
|
1332 |
].
|
|
1333 |
self projectTypeHolder value:aProjectTypeSymbol
|
|
1334 |
!
|
|
1335 |
|
|
1336 |
projectTypeHolder
|
|
1337 |
<resource: #uiAspect>
|
|
1338 |
|
|
1339 |
projectTypeHolder isNil ifTrue:[
|
|
1340 |
projectTypeHolder := RadioButtonGroup new.
|
|
1341 |
projectTypeHolder value:#guiApplicationType.
|
|
1342 |
].
|
|
1343 |
^ projectTypeHolder.
|
2636
|
1344 |
!
|
|
1345 |
|
|
1346 |
projectTypeIsNotLibrary
|
2659
|
1347 |
^ self projectTypeHolder value ~~ #libraryType
|
2636
|
1348 |
!
|
|
1349 |
|
|
1350 |
selectedApplicationIndexHolder
|
|
1351 |
<resource: #uiAspect>
|
|
1352 |
|
|
1353 |
selectedApplicationIndexHolder isNil ifTrue:[
|
|
1354 |
selectedApplicationIndexHolder := ValueHolder new.
|
|
1355 |
selectedApplicationIndexHolder onChangeSend:#selectedApplicationChanged to:self.
|
|
1356 |
].
|
|
1357 |
^ selectedApplicationIndexHolder.
|
|
1358 |
!
|
|
1359 |
|
|
1360 |
selectedApplicationsComment
|
|
1361 |
<resource: #uiAspect>
|
|
1362 |
|
|
1363 |
"automatically generated by UIPainter ..."
|
|
1364 |
|
|
1365 |
"*** the code below creates a default model when invoked."
|
|
1366 |
"*** (which may not be the one you wanted)"
|
|
1367 |
"*** Please change as required and accept it in the browser."
|
|
1368 |
"*** (and replace this comment by something more useful ;-)"
|
|
1369 |
|
|
1370 |
selectedApplicationsComment isNil ifTrue:[
|
|
1371 |
selectedApplicationsComment := '' asValue.
|
|
1372 |
"/ if your app needs to be notified of changes, uncomment one of the lines below:
|
|
1373 |
"/ selectedApplicationsComment addDependent:self.
|
|
1374 |
"/ selectedApplicationsComment onChangeSend:#selectedApplicationsCommentChanged to:self.
|
|
1375 |
].
|
|
1376 |
^ selectedApplicationsComment.
|
|
1377 |
!
|
|
1378 |
|
|
1379 |
selectedProjectDefinition
|
|
1380 |
<resource: #uiAspect>
|
|
1381 |
|
|
1382 |
^ selectedProjectDefinition.
|
|
1383 |
!
|
|
1384 |
|
|
1385 |
selectedProjectIndexHolder
|
|
1386 |
<resource: #uiAspect>
|
|
1387 |
|
|
1388 |
selectedProjectIndexHolder isNil ifTrue:[
|
|
1389 |
selectedProjectIndexHolder := ValueHolder new.
|
|
1390 |
selectedProjectIndexHolder onChangeSend:#selectedProjectChanged to:self.
|
|
1391 |
].
|
|
1392 |
^ selectedProjectIndexHolder.
|
|
1393 |
!
|
|
1394 |
|
|
1395 |
selectedProjectsComment
|
|
1396 |
<resource: #uiAspect>
|
|
1397 |
|
|
1398 |
selectedProjectsComment isNil ifTrue:[
|
|
1399 |
selectedProjectsComment := '' asValue.
|
|
1400 |
].
|
|
1401 |
^ selectedProjectsComment.
|
|
1402 |
!
|
|
1403 |
|
2656
|
1404 |
selectedStartupClassIndexHolder
|
|
1405 |
<resource: #uiAspect>
|
|
1406 |
|
|
1407 |
selectedStartupClassIndexHolder isNil ifTrue:[
|
|
1408 |
selectedStartupClassIndexHolder := ValueHolder new.
|
|
1409 |
selectedStartupClassIndexHolder onChangeSend:#selectedStartupClassChanged to:self.
|
|
1410 |
].
|
|
1411 |
^ selectedStartupClassIndexHolder.
|
|
1412 |
!
|
|
1413 |
|
2636
|
1414 |
startMakeButtonEnabled
|
|
1415 |
<resource: #uiAspect>
|
|
1416 |
|
|
1417 |
startMakeButtonEnabled isNil ifTrue:[
|
|
1418 |
startMakeButtonEnabled := true asValue.
|
|
1419 |
].
|
|
1420 |
^ startMakeButtonEnabled.
|
|
1421 |
!
|
|
1422 |
|
|
1423 |
stopMakeButtonVisible
|
|
1424 |
<resource: #uiAspect>
|
|
1425 |
|
|
1426 |
stopMakeButtonVisible isNil ifTrue:[
|
|
1427 |
stopMakeButtonVisible := false asValue.
|
|
1428 |
].
|
|
1429 |
^ stopMakeButtonVisible.
|
|
1430 |
! !
|
|
1431 |
|
|
1432 |
!ProjectBuilderAssistantApplication methodsFor:'initialization & release'!
|
|
1433 |
|
2646
|
1434 |
postBuildMakeOutputWindow:aView
|
|
1435 |
makeOutputWindow := aView
|
|
1436 |
!
|
|
1437 |
|
2636
|
1438 |
postBuildWith:aBuilder
|
|
1439 |
super postBuildWith:aBuilder.
|
|
1440 |
self updateListOfMatchingProjects.
|
|
1441 |
|
|
1442 |
Smalltalk addDependent:self.
|
|
1443 |
!
|
|
1444 |
|
|
1445 |
release
|
|
1446 |
Smalltalk removeDependent:self.
|
|
1447 |
super release
|
|
1448 |
! !
|
|
1449 |
|
2659
|
1450 |
!ProjectBuilderAssistantApplication methodsFor:'menu actions'!
|
|
1451 |
|
|
1452 |
openDocumentation
|
|
1453 |
self openHTMLDocument:'tools/misc/TOP.html#PACKAGER'.
|
|
1454 |
! !
|
|
1455 |
|
2636
|
1456 |
!ProjectBuilderAssistantApplication methodsFor:'private'!
|
|
1457 |
|
|
1458 |
commentFromClass:aClass
|
|
1459 |
|docMethod comment indents minIndent maxLineLength|
|
|
1460 |
|
|
1461 |
docMethod := aClass class compiledMethodAt:#documentation.
|
|
1462 |
docMethod notNil ifTrue:[
|
|
1463 |
comment := docMethod comment.
|
|
1464 |
comment := comment asStringCollection
|
|
1465 |
collect:[:line | line withoutTrailingSeparators].
|
|
1466 |
[comment notEmpty and:[comment first isBlank]] whileTrue:[ comment removeFirst ].
|
|
1467 |
maxLineLength := (comment collect:[:line | line size]) max.
|
|
1468 |
indents := comment collect:[:line |
|
|
1469 |
line isEmptyOrNil
|
|
1470 |
ifTrue:[maxLineLength]
|
|
1471 |
ifFalse:[ line findFirst:[:ch | ch isSeparator not]]].
|
|
1472 |
(minIndent := indents min) > 1 ifTrue:[
|
|
1473 |
comment := comment collect:[:line | line copyFrom:minIndent].
|
|
1474 |
].
|
|
1475 |
comment := comment asString.
|
|
1476 |
].
|
|
1477 |
^ comment
|
2659
|
1478 |
!
|
|
1479 |
|
|
1480 |
generatePackageContentsMethods
|
|
1481 |
<resource: #uiCallback>
|
|
1482 |
|
|
1483 |
Class packageQuerySignal answer:(selectedProjectDefinition package)
|
|
1484 |
do:[
|
|
1485 |
selectedProjectDefinition
|
|
1486 |
forEachContentsMethodsCodeToCompileDo:[:code :category |
|
|
1487 |
CodeGeneratorTool
|
|
1488 |
compile:code
|
|
1489 |
forClass:selectedProjectDefinition theMetaclass
|
|
1490 |
inCategory:category.
|
|
1491 |
]
|
|
1492 |
ignoreOldDefinition:true
|
|
1493 |
].
|
|
1494 |
self updateListOfClassesInProject
|
|
1495 |
!
|
|
1496 |
|
|
1497 |
hasApplicationSelected
|
|
1498 |
^ self selectedApplicationIndexHolder value notNil
|
|
1499 |
!
|
|
1500 |
|
|
1501 |
hasBuildDirectorySpecified
|
|
1502 |
^ self buildDirectoryHolder value notEmptyOrNil
|
|
1503 |
!
|
|
1504 |
|
|
1505 |
hasProjectBuilder
|
|
1506 |
^ projectBuilder notNil
|
|
1507 |
!
|
|
1508 |
|
|
1509 |
hasProjectSelected
|
|
1510 |
^ self selectedProjectIndexHolder value notNil
|
|
1511 |
!
|
|
1512 |
|
|
1513 |
hasStartupClassSelected
|
|
1514 |
^ self selectedStartupClassIndexHolder value notNil
|
2636
|
1515 |
! !
|
|
1516 |
|
2656
|
1517 |
!ProjectBuilderAssistantApplication methodsFor:'queries'!
|
|
1518 |
|
|
1519 |
canEnterApplicationSelection
|
|
1520 |
^ self hasProjectSelected
|
|
1521 |
!
|
|
1522 |
|
|
1523 |
canEnterBuild
|
|
1524 |
^ self hasBuildDirectorySpecified
|
|
1525 |
!
|
|
1526 |
|
2659
|
1527 |
canEnterContentsSelection
|
|
1528 |
^ self hasProjectSelected
|
|
1529 |
and:[ self hasApplicationSelected
|
|
1530 |
and:[ self hasStartupClassSelected ]]
|
|
1531 |
!
|
|
1532 |
|
2656
|
1533 |
canEnterDeploy
|
|
1534 |
^ self hasProjectBuilder
|
|
1535 |
!
|
|
1536 |
|
|
1537 |
canEnterStartupClassSelection
|
2659
|
1538 |
^ self hasProjectSelected and:[ self hasApplicationSelected ]
|
2656
|
1539 |
! !
|
|
1540 |
|
2636
|
1541 |
!ProjectBuilderAssistantApplication methodsFor:'specs'!
|
|
1542 |
|
|
1543 |
assistantSpec
|
|
1544 |
^ #(Array
|
|
1545 |
( AssistantPageSpec
|
|
1546 |
pageTitle: 'Project Type Selection'
|
2645
|
1547 |
windowSpecSelector: page1_projectTypeSelectionSpec
|
2646
|
1548 |
enterCallbackSelector: updateListOfMatchingProjects
|
2659
|
1549 |
infoText: 'Choose the type of project you are about to build.'
|
2636
|
1550 |
)
|
|
1551 |
|
|
1552 |
(AssistantPageSpec
|
|
1553 |
pageTitle: 'Project Selection'
|
2645
|
1554 |
windowSpecSelector: page2_projectSelectionSpec
|
2646
|
1555 |
enterCallbackSelector: updateListOfMatchingProjects
|
2659
|
1556 |
infoText: 'Choose an existing project or create a new one.
|
|
1557 |
These are subclasses of <I>ProjectDefinition</I> and define the
|
|
1558 |
type and contents of a project.'
|
2636
|
1559 |
)
|
|
1560 |
|
|
1561 |
(AssistantPageSpec
|
|
1562 |
pageTitle: 'Application Selection'
|
2645
|
1563 |
windowSpecSelector: page3_applicationSelectionSpec
|
2636
|
1564 |
isEnabledQuerySelector: #projectTypeIsNotLibrary
|
2656
|
1565 |
canEnterQuerySelector: #canEnterApplicationSelection
|
2646
|
1566 |
enterCallbackSelector: updateListOfApplicationsInProject
|
2659
|
1567 |
infoText: 'Choose an existing application or create a new one.
|
|
1568 |
These are subclasses of <I>ApplicationModel</I> and define
|
|
1569 |
the GUI and control flow inside the application.'
|
2636
|
1570 |
)
|
|
1571 |
|
|
1572 |
(AssistantPageSpec
|
2656
|
1573 |
pageTitle: 'Startup Class Selection'
|
|
1574 |
windowSpecSelector: page4_startupClassSelectionSpec
|
|
1575 |
isEnabledQuerySelector: #projectTypeIsNotLibrary
|
|
1576 |
canEnterQuerySelector: #canEnterStartupClassSelection
|
|
1577 |
enterCallbackSelector: updateListOfStartupClassesInProject
|
2659
|
1578 |
infoText: 'Choose an existing startup-class or create a new one.
|
|
1579 |
These are subclasses of <I>StandaloneStartup</I> and
|
|
1580 |
start the application. Command line arguments can be
|
|
1581 |
interpreted there.'
|
2656
|
1582 |
)
|
|
1583 |
|
|
1584 |
(AssistantPageSpec
|
2636
|
1585 |
pageTitle: 'Specify Contents'
|
2656
|
1586 |
windowSpecSelector: page5_specifyIncludedClasses
|
2636
|
1587 |
enterCallbackSelector: updateListOfClassesInProject
|
2659
|
1588 |
canEnterQuerySelector: #canEnterContentsSelection
|
|
1589 |
infoText: 'Define which (other) classes are to be included.
|
|
1590 |
Press "<I>Scan</I>" to include all classes of the package;
|
|
1591 |
browse to edit the contents manually.'
|
2636
|
1592 |
)
|
|
1593 |
|
|
1594 |
(AssistantPageSpec
|
|
1595 |
pageTitle: 'Specify Build Directory'
|
2656
|
1596 |
windowSpecSelector: page6_specifyBuildDirectorySpec
|
2659
|
1597 |
infoText: 'Define where the build-process is to be performed.
|
|
1598 |
All generated files are created below that directory.
|
|
1599 |
After deployment, the build directory is no longer needed
|
|
1600 |
(but you can keep it for a faster compile the next time).'
|
2636
|
1601 |
)
|
|
1602 |
|
|
1603 |
(AssistantPageSpec
|
|
1604 |
pageTitle: 'Build'
|
2656
|
1605 |
windowSpecSelector: page7_buildSpec
|
|
1606 |
canEnterQuerySelector: #canEnterBuild
|
2646
|
1607 |
enterCallbackSelector: #restoreMakeOutputsContents
|
|
1608 |
leaveCallbackSelector: #rememberMakeOutputsContents
|
2659
|
1609 |
infoText: 'Start the build-process. This will run make/bcc to compile
|
|
1610 |
all required classes and nsis to generate a self-installable
|
|
1611 |
executable. You must have the borland-cc and NullSoft NSIS
|
|
1612 |
packages installed for this to work.'
|
2636
|
1613 |
)
|
|
1614 |
|
|
1615 |
(AssistantPageSpec
|
|
1616 |
pageTitle: 'Deploy'
|
2656
|
1617 |
windowSpecSelector: page8_deploySpec
|
|
1618 |
canEnterQuerySelector: #canEnterDeploy
|
2659
|
1619 |
infoText: 'Find the installer to be deployed (or test-run the binary).
|
|
1620 |
You can open a WindowsExplorer there to copy the files for
|
|
1621 |
deployment. After that, the build directory is no longer needed
|
|
1622 |
(but you can keep it for a faster compile the next time).'
|
2636
|
1623 |
)
|
|
1624 |
) decodeAsLiteralArray.
|
|
1625 |
! !
|
|
1626 |
|
|
1627 |
!ProjectBuilderAssistantApplication methodsFor:'update'!
|
|
1628 |
|
2646
|
1629 |
rememberMakeOutputsContents
|
|
1630 |
makeOutputHolder value:(makeOutputWindow contents)
|
|
1631 |
!
|
|
1632 |
|
|
1633 |
restoreMakeOutputsContents
|
|
1634 |
makeOutputWindow contents:makeOutputHolder value
|
|
1635 |
!
|
|
1636 |
|
2636
|
1637 |
update:something with:anArgument from:changedObject
|
|
1638 |
changedObject == Smalltalk ifTrue:[
|
|
1639 |
(something == #newClass
|
|
1640 |
or:[something == #classRemove
|
|
1641 |
or:[something == #projectOrganization]]) ifTrue:[
|
|
1642 |
self updateListOfMatchingProjects.
|
|
1643 |
^ self.
|
|
1644 |
].
|
|
1645 |
^ self.
|
|
1646 |
].
|
|
1647 |
super update:something with:anArgument from:changedObject
|
|
1648 |
!
|
|
1649 |
|
|
1650 |
updateApplicationComment
|
|
1651 |
|comment|
|
|
1652 |
|
|
1653 |
self selectedApplicationIndexHolder value notNil ifTrue:[
|
|
1654 |
comment := self commentFromClass:selectedApplication.
|
|
1655 |
comment isNil ifTrue:[
|
|
1656 |
comment := 'Application has no comment' allItalic colorizeAllWith:Color lightGrey.
|
|
1657 |
].
|
|
1658 |
] ifFalse:[
|
|
1659 |
comment := 'Please select an Application' allItalic colorizeAllWith:Color lightGrey.
|
|
1660 |
].
|
|
1661 |
self selectedApplicationsComment value:comment.
|
|
1662 |
!
|
|
1663 |
|
|
1664 |
updateComment
|
|
1665 |
|comment|
|
|
1666 |
|
|
1667 |
self selectedProjectIndexHolder value notNil ifTrue:[
|
|
1668 |
comment := self commentFromClass:selectedProjectDefinition.
|
|
1669 |
comment isNil ifTrue:[
|
|
1670 |
comment := 'Project has no comment' allItalic colorizeAllWith:Color lightGrey.
|
|
1671 |
].
|
|
1672 |
] ifFalse:[
|
|
1673 |
comment := 'Please select a Project' allItalic colorizeAllWith:Color lightGrey.
|
|
1674 |
].
|
|
1675 |
self selectedProjectsComment value:comment.
|
|
1676 |
!
|
|
1677 |
|
|
1678 |
updateListOfApplicationsInProject
|
2649
|
1679 |
|applicationClasses package startUpClassName startUpClass appClassIndex|
|
2636
|
1680 |
|
2649
|
1681 |
appClassIndex := nil.
|
2636
|
1682 |
self selectedApplicationIndexHolder value:nil.
|
2649
|
1683 |
|
2636
|
1684 |
selectedProjectDefinition isNil ifTrue:[
|
|
1685 |
applicationClasses := #()
|
|
1686 |
] ifFalse:[
|
|
1687 |
package := selectedProjectDefinition package.
|
|
1688 |
|
|
1689 |
applicationClasses := Smalltalk allClasses
|
|
1690 |
select:[:cls |
|
|
1691 |
(cls package = package
|
|
1692 |
and:[ cls isSubclassOf:ApplicationModel ])
|
|
1693 |
].
|
|
1694 |
applicationClasses := applicationClasses asOrderedCollection.
|
|
1695 |
applicationClasses sort:[:a :b | a name < b name].
|
2649
|
1696 |
|
2659
|
1697 |
startUpClassName := [ selectedProjectDefinition startupClassName ] ifError:[ nil ].
|
2649
|
1698 |
startUpClassName notNil ifTrue:[
|
|
1699 |
startUpClass := Smalltalk classNamed:startUpClassName.
|
|
1700 |
startUpClass notNil ifTrue:[
|
|
1701 |
appClassIndex := applicationClasses indexOf:startUpClass.
|
|
1702 |
appClassIndex == 0 ifTrue:[ appClassIndex := nil ].
|
|
1703 |
].
|
|
1704 |
].
|
2636
|
1705 |
].
|
2649
|
1706 |
self listOfApplicationsInProject value:applicationClasses.
|
|
1707 |
|
|
1708 |
self selectedApplicationIndexHolder value:appClassIndex.
|
2636
|
1709 |
!
|
|
1710 |
|
|
1711 |
updateListOfClassesInProject
|
|
1712 |
self listOfClassesInProject value:(selectedProjectDefinition classNames).
|
|
1713 |
!
|
|
1714 |
|
|
1715 |
updateListOfMatchingProjects
|
|
1716 |
|matching projectType idx|
|
|
1717 |
|
2659
|
1718 |
projectType := self projectType.
|
2636
|
1719 |
matching := ProjectDefinition allSubclasses
|
|
1720 |
select:[:defClass |
|
|
1721 |
|match|
|
|
1722 |
|
|
1723 |
match := false.
|
|
1724 |
defClass isAbstract ifFalse:[
|
|
1725 |
(self hideSTXProjects value not
|
|
1726 |
or:[ defClass package asPackageId module ~= 'stx' ])
|
|
1727 |
ifTrue:[
|
2659
|
1728 |
projectType == ProjectDefinition libraryType ifTrue:[
|
2636
|
1729 |
match := defClass isLibraryDefinition
|
|
1730 |
] ifFalse:[
|
2659
|
1731 |
projectType == ProjectDefinition guiApplicationType ifTrue:[
|
2636
|
1732 |
match := defClass isGUIApplication
|
|
1733 |
] ifFalse:[
|
2659
|
1734 |
projectType == ProjectDefinition nonGuiApplicationType ifTrue:[
|
2636
|
1735 |
match := defClass isConsoleApplication
|
|
1736 |
] ifFalse:[
|
|
1737 |
self error.
|
|
1738 |
].
|
|
1739 |
].
|
|
1740 |
].
|
|
1741 |
].
|
|
1742 |
].
|
|
1743 |
].
|
|
1744 |
matching sort:[:a :b | a name < b name].
|
|
1745 |
self listOfMatchingProjects value:matching.
|
|
1746 |
|
|
1747 |
idx := matching indexOf:selectedProjectDefinition.
|
|
1748 |
idx == 0 ifTrue:[
|
|
1749 |
self selectedProjectIndexHolder value:nil.
|
|
1750 |
] ifFalse:[
|
|
1751 |
self selectedProjectIndexHolder value:idx.
|
|
1752 |
].
|
2659
|
1753 |
!
|
|
1754 |
|
|
1755 |
updateListOfStartupClassesInProject
|
|
1756 |
|startupClasses package startUpClassName startUpClass startupClassIndex|
|
|
1757 |
|
|
1758 |
startupClassIndex := nil.
|
|
1759 |
self selectedStartupClassIndexHolder value:nil.
|
|
1760 |
|
|
1761 |
selectedProjectDefinition isNil ifTrue:[
|
|
1762 |
startupClasses := #()
|
|
1763 |
] ifFalse:[
|
|
1764 |
package := selectedProjectDefinition package.
|
|
1765 |
|
|
1766 |
startupClasses := Smalltalk allClasses
|
|
1767 |
select:[:cls |
|
|
1768 |
(cls package = package
|
|
1769 |
and:[ cls isSubclassOf:StandaloneStartup ])
|
|
1770 |
].
|
|
1771 |
startupClasses := startupClasses asOrderedCollection.
|
|
1772 |
startupClasses sort:[:a :b | a name < b name].
|
|
1773 |
|
|
1774 |
startUpClassName := [ selectedProjectDefinition startupClassName ] ifError:[ nil ].
|
|
1775 |
startUpClassName notNil ifTrue:[
|
|
1776 |
startUpClass := Smalltalk classNamed:startUpClassName.
|
|
1777 |
startUpClass notNil ifTrue:[
|
|
1778 |
startupClassIndex := startupClasses indexOf:startUpClass.
|
|
1779 |
startupClassIndex == 0 ifTrue:[ startupClassIndex := nil ].
|
|
1780 |
].
|
|
1781 |
].
|
|
1782 |
].
|
|
1783 |
self listOfStartupClassesInProject value:startupClasses.
|
|
1784 |
|
|
1785 |
self selectedStartupClassIndexHolder value:startupClassIndex.
|
2636
|
1786 |
! !
|
|
1787 |
|
|
1788 |
!ProjectBuilderAssistantApplication class methodsFor:'documentation'!
|
|
1789 |
|
|
1790 |
version_CVS
|
|
1791 |
^ '$Header$'
|
|
1792 |
! !
|