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