author | Claus Gittinger <cg@exept.de> |
Tue, 04 Sep 2012 00:34:29 +0200 | |
changeset 2911 | e12e4a47cfaa |
parent 2910 | 8024f7e8f9f4 |
child 2913 | 94e5ae8e15b2 |
permissions | -rw-r--r-- |
2742 | 1 |
" |
2 |
COPYRIGHT (c) 2009 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
2636 | 12 |
"{ Package: 'stx:libtool2' }" |
13 |
||
14 |
"{ NameSpace: Tools }" |
|
15 |
||
16 |
AssistantApplication subclass:#ProjectBuilderAssistantApplication |
|
2687
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
17 |
instanceVariableNames:'packageToBuildHolder projectType projectTypeHolder |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
18 |
selectedProjectIndexHolder selectedProjectDefinition |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
19 |
listOfMatchingProjects listOfMatchingPackageIds |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
20 |
selectedProjectsComment hasProjectSelectedHolder newProjectsName |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
21 |
hideSTXProjects hideOtherApplicationClasses |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
22 |
hideOtherStartupClasses startMakeButtonEnabled |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
23 |
stopMakeButtonVisible makeOutputHolder newApplicationsName |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
24 |
listOfApplicationsInProject selectedApplicationIndexHolder |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
25 |
selectedApplication hasApplicationSelectedHolder |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
26 |
listOfStartupClassesInProject selectedStartupClassIndexHolder |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
27 |
selectedStartupClass hasStartupClassSelectedHolder |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
28 |
selectedApplicationsComment buildDirectoryHolder makeProcess |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
29 |
listOfClassesInProject makeOutputWindow projectBuilder |
2705 | 30 |
newStartupClassName usedCompilerHolder listOfNewProjectsName |
2724 | 31 |
newProjectsNameListExtendedComboBox productNameHolder |
32 |
companyNameHolder compilerWarnMessageHolder |
|
2910 | 33 |
compilerWarnMessageVisibleHolder listOfPrerequisitesInProject |
34 |
nameOfUsedCompilerSuiteHolder' |
|
2687
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
35 |
classVariableNames:'' |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
36 |
poolDictionaries:'' |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
37 |
category:'System-Support-Projects' |
2636 | 38 |
! |
39 |
||
2668 | 40 |
!ProjectBuilderAssistantApplication class methodsFor:'documentation'! |
41 |
||
2742 | 42 |
copyright |
43 |
" |
|
44 |
COPYRIGHT (c) 2009 by eXept Software AG |
|
45 |
All Rights Reserved |
|
46 |
||
47 |
This software is furnished under a license and may be used |
|
48 |
only in accordance with the terms of that license and with the |
|
49 |
inclusion of the above copyright notice. This software may not |
|
50 |
be provided or otherwise made available to, or used by, any |
|
51 |
other person. No title to or ownership of the software is |
|
52 |
hereby transferred. |
|
53 |
" |
|
54 |
! |
|
55 |
||
2668 | 56 |
documentation |
57 |
" |
|
58 |
a user friendly interface to the build process. |
|
59 |
Simply wraps up existing tools like the CodeGeneratorTool, the browsers |
|
60 |
and the ProjetBuilder |
|
61 |
||
62 |
[see also:] |
|
63 |
CodeGeneratorTool |
|
64 |
ProjectBuilder |
|
65 |
ProjectDefinition |
|
66 |
||
67 |
[author:] |
|
68 |
Claus Gittinger |
|
69 |
" |
|
2721 | 70 |
! |
71 |
||
72 |
help |
|
2825 | 73 |
" |
74 |
Packager - A Standalone-Executable Builder and Packager |
|
2721 | 75 |
|
2825 | 76 |
This assistant-application allows for standalone applications to be built very easily. |
77 |
It will generate all required classes, files, start the compilation process, |
|
78 |
generate a self-installable executable with a few mouse clicks. |
|
79 |
||
80 |
A simple demo application like the famous 'Hello World' can be generated in a few minutes. |
|
81 |
||
82 |
Prerequisites |
|
83 |
||
84 |
* Windows Users: |
|
85 |
Please install either the 'Borland Free Commandline Compiler Tools (bcc32)' |
|
86 |
or the 'Microsoft Visual-C++' package (also free). |
|
87 |
In addition, the 'NullSoft NSIS-Installer Package' is required. |
|
88 |
||
89 |
Due to limitations and bugs in the Visual-C++ compiler (limit on the size of |
|
90 |
string-constants), some Smalltalk code is still not compilable |
|
91 |
(currently, this affects classes which contain image-resource methods for big images). |
|
92 |
Although microsoft is doing their best (a relative measure) to make things better |
|
93 |
(they increase the string-limit with every new release), they still seem to be unable |
|
94 |
to figure out how ti use malloc for string-data). |
|
95 |
We are patiently waiting for a real fix and still using bcc in the meanwhile. |
|
96 |
Therefore, we recommend using the borland compiler suite. |
|
97 |
Please install it at its standard location ('C:\Borland') as our makefiles might |
|
98 |
still contain hard-coded pathes (yes, we are ashamed about this). |
|
99 |
||
100 |
* Unix Users: |
|
101 |
You should already have the gcc compile suite (including all required header files) |
|
102 |
installed and ready to use. For a lack of time on our side, there is currently no |
|
103 |
self-installer support for Unix. The packager will generate a zipped tar file, |
|
104 |
which must be deployed and unpacked for use. This may change in the near future. |
|
105 |
||
106 |
Packages, Projects, PackageIDs and ProjectDefinitions |
|
107 |
||
108 |
Smalltalk basically uses two objects for packaging: |
|
109 |
||
110 |
* PackageIDs (also called ProjectID's occasionally) |
|
111 |
* ProjectDefinitions |
|
112 |
||
113 |
Older ST/X versions used instances of a Project class - this is now obsolete and |
|
114 |
removed from the system (although there are still some minor uses of it, |
|
115 |
which might remain there for backward compatibility for some time, as some customers |
|
116 |
have built their own packaging scheme around it). |
|
117 |
||
118 |
PackageIDs |
|
119 |
||
120 |
These are simple symbols and are attached to classes and methods. If a method has |
|
121 |
a packageID different from its class, it is called an extension method. |
|
122 |
PackageIDs must have a certain fixed format: they always contain exactly two parts, |
|
123 |
which are separated by a colon character: the module and the directory part. |
|
124 |
The module is used as main-selector on where and how the source code repository is |
|
125 |
accessed. The directory is a path below that repository. If checked out into the local |
|
126 |
filesystem, the module defines the top-level directory. Thus, if a packageID is |
|
127 |
'stx:libbasic', the corresponding sources will be found in the repository associated |
|
128 |
to the 'stx' module, under the directory 'libbasic'. |
|
129 |
In the local file system, it will be found under 'stx/libbasic'. |
|
130 |
As another example, if the packageID is 'exept:expecco/plugins/foo', |
|
131 |
the repository is whichever is associated with the 'exept' module, and the subdirectory |
|
132 |
is 'expecco/plugins/foo'. The local path to the sourcefiles would be |
|
133 |
'exept/expecco/plugins/foo'. |
|
134 |
||
135 |
Please notice that it does make sense to associate different repositories to different |
|
136 |
modules: for example, you could setup the sourceCodeManager to use CVS access to the |
|
137 |
exept repository for everything under the 'stx' module, |
|
138 |
and at the same time, use a local SVN repository for everything under the 'myCompany' |
|
139 |
module. |
|
140 |
||
141 |
ProjectDefinitions |
|
142 |
||
143 |
These describe the contents of a project, such as the classes to include, |
|
144 |
the set of extension methods, any additional compilation information. |
|
145 |
ProjectDefinitions come in 3 flavours: |
|
146 |
||
147 |
* GUI Application Definition |
|
148 |
* non-GUI Application Definition |
|
149 |
* ClassLibrary Definition |
|
150 |
||
151 |
ProjectDefinitions are stored and managed as class-instances, located as subclasses |
|
152 |
of one of ApplicationDefinition or LibraryDefinition. |
|
153 |
As classes, they are themself managed, compiled and packaged as part of the project |
|
154 |
(and also have the same PackageID as their components). |
|
155 |
They are also treated like any other class w.r.t. source code management. |
|
156 |
||
157 |
Packaging |
|
158 |
||
159 |
All classes and extension methods belonging to a single package are supposed to be |
|
160 |
loaded (and possibly unloaded) together. They are also usually deployed inside a single |
|
161 |
dynamic link library ('dll', for short). In the Unix world, these are called |
|
162 |
'shared object' or 'so'. |
|
163 |
Finally, they are stored in a common directory both on the local file system and in a |
|
164 |
source code repository (CVS, SVN, etc.). |
|
165 |
||
166 |
Structure of a Project |
|
167 |
||
168 |
The artefacts as manipulated by the packager are: |
|
169 |
||
170 |
* the ProjectDefinition class |
|
171 |
This defines the type of application (GUI / non-GUI), |
|
172 |
its contents (i.e. the set of classes to be included in the binary itself and |
|
173 |
the set of library-dll's to be included in the deployed package), |
|
174 |
and some other metadata, such as icon, title etc. |
|
175 |
||
176 |
* the ApplicationModel class |
|
177 |
This defines the GUI, and is typically created using the UI-Painter. |
|
178 |
||
179 |
* the Startup class |
|
180 |
This is the first class which gets control when the executable is started; |
|
181 |
it can analyze the command line arguments, read patches or updates, |
|
182 |
start background ptocesses, and will eventually open the applications GUI. |
|
183 |
||
184 |
Build Procedure |
|
185 |
||
186 |
All of the three components above can be generated by the packager to provide an |
|
187 |
initial framework for further work. |
|
188 |
||
189 |
After the definition of those classes, all required files are stored in a temporary |
|
190 |
build directory. This means that the above classes are filed out, |
|
191 |
and make- and other support files are generated. |
|
192 |
||
193 |
Finally, the actual build process is started. This requires an external C-compiler. |
|
194 |
Under windows, both Borland-C (free download available via the internet) and Microsoft's |
|
195 |
Visual-C++ (also available for free) can be used (the later with some limitations as explained above). |
|
196 |
||
197 |
A self-installing executable is built using the NullSoft NSIS package. |
|
198 |
This is also required to be installed before the packager is started. |
|
199 |
||
200 |
After the build, all required files are packaged in a single install-file. |
|
201 |
This is called 'MyApplicationSetup.exe' and found in the project-specific subdirectory |
|
202 |
of the build directory. For deployment, this single file has to be delivered to a customer |
|
203 |
and executed there. |
|
204 |
||
205 |
Summary: It has NEVER been easier to create a GUI application with Smalltalk. |
|
206 |
" |
|
2668 | 207 |
! ! |
2636 | 208 |
|
2703 | 209 |
!ProjectBuilderAssistantApplication class methodsFor:'assistant pages spec'! |
210 |
||
211 |
assistantSpec |
|
212 |
^ #(Array |
|
213 |
( AssistantPageSpec |
|
214 |
pageTitle: 'Project Type Selection' |
|
215 |
windowSpecSelector: page1_projectTypeSelectionSpec |
|
216 |
enterCallbackSelector: updateListOfMatchingProjects |
|
217 |
infoText: 'Choose the <B>type</B> of project you are about to build.' |
|
218 |
) |
|
219 |
||
220 |
(AssistantPageSpec |
|
221 |
pageTitle: 'ProjectDefinition Selection' |
|
222 |
windowSpecSelector: page2_projectSelectionSpec |
|
2907
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
223 |
enterCallbackSelector: updateListOfMatchingProjectsAndProjectIDs |
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
224 |
infoText: 'Choose an existing project definition or create a new one. These are subclasses of <I>ProjectDefinition</I> and define the type and contents of a project. Notice that the ID directly reflects the project''s location within the source code repository (module:directory/subdirectory...). If in doubt, use "<yourname>:demos/xxx_n".' |
2703 | 225 |
) |
226 |
||
227 |
(AssistantPageSpec |
|
228 |
pageTitle: 'Startup Application Selection' |
|
229 |
windowSpecSelector: page3_applicationSelectionSpec |
|
230 |
isEnabledQuerySelector: #projectTypeIsGuiApplication |
|
231 |
canEnterQuerySelector: #canEnterApplicationSelection |
|
232 |
enterCallbackSelector: updateListOfApplicationsInProject |
|
2825 | 233 |
infoText: 'Choose an existing application or create a new one. These are subclasses of <I>ApplicationModel</I> and define the GUI and control flow inside the application. Can also be left blank if the startup class does it all (stx build).' |
2703 | 234 |
) |
235 |
||
236 |
(AssistantPageSpec |
|
237 |
pageTitle: 'Startup Class Selection' |
|
238 |
windowSpecSelector: page4_startupClassSelectionSpec |
|
239 |
isEnabledQuerySelector: #projectTypeIsNotLibrary |
|
240 |
canEnterQuerySelector: #canEnterStartupClassSelection |
|
241 |
enterCallbackSelector: updateListOfStartupClassesInProject |
|
2825 | 242 |
infoText: 'Choose an existing startup-class or create a new one. These are subclasses of <I>StandaloneStartup</I> and start the application. Command line arguments can be interpreted there.' |
2703 | 243 |
) |
244 |
||
245 |
(AssistantPageSpec |
|
246 |
pageTitle: 'Specify Contents' |
|
247 |
windowSpecSelector: page5_specifyIncludedClasses |
|
248 |
enterCallbackSelector: enterContentsSpecification |
|
249 |
canEnterQuerySelector: #canEnterContentsSelection |
|
2825 | 250 |
infoText: 'Define which (other) classes are to be included. Press "<I>Scan</I>" to include all classes of the package; browse to edit the contents manually.' |
2703 | 251 |
) |
252 |
||
253 |
(AssistantPageSpec |
|
2872 | 254 |
pageTitle: 'Specify Prerequisites' |
255 |
windowSpecSelector: page5b_specifyPrerequisitePackages |
|
256 |
enterCallbackSelector: enterPrerequisitesSpecification |
|
257 |
canEnterQuerySelector: #canEnterPrerequisitesSelection |
|
2907
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
258 |
infoText: 'Define which packages are needed as prerequisites. Press "<I>Scan</I>" to search for prerequisites; browse to edit the list manually.' |
2872 | 259 |
) |
260 |
||
261 |
(AssistantPageSpec |
|
2724 | 262 |
pageTitle: 'Specify Project Attributes' |
263 |
windowSpecSelector: page6a_specifyProjectAttributes |
|
264 |
infoText: 'Define additional attributes.' |
|
265 |
enterCallbackSelector: updateProjectAttributes |
|
266 |
leaveCallbackSelector: #rememberProjectAttributes |
|
267 |
) |
|
268 |
||
269 |
(AssistantPageSpec |
|
2703 | 270 |
pageTitle: 'Specify Build Directory' |
2724 | 271 |
windowSpecSelector: page6b_specifyBuildDirectorySpec |
2825 | 272 |
infoText: 'Define where the build-process is to be performed. All generated files are created below that directory. After deployment, the build directory is no longer needed (but you can keep it for a faster compile the next time).' |
2724 | 273 |
enterCallbackSelector: #checkCompilerAvailability |
2703 | 274 |
) |
275 |
||
276 |
(AssistantPageSpec |
|
277 |
pageTitle: 'Build' |
|
278 |
windowSpecSelector: page7_buildSpec |
|
279 |
canEnterQuerySelector: #canEnterBuild |
|
280 |
enterCallbackSelector: #restoreMakeOutputsContents |
|
281 |
leaveCallbackSelector: #rememberMakeOutputsContents |
|
2907
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
282 |
infoText: 'Start the build-process. This will run make+bcc/vc to compile all required classes and nsis to generate a self-installable executable. You must have the compiler (borland-bcc or visual-c) and NullSoft NSIS packages installed for this to work.' |
2703 | 283 |
) |
284 |
||
285 |
(AssistantPageSpec |
|
286 |
pageTitle: 'Deploy' |
|
287 |
windowSpecSelector: page8_deploySpec |
|
288 |
canEnterQuerySelector: #canEnterDeploy |
|
2907
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
289 |
infoText: 'Find the installer to be deployed (or test-run the binary). You can open a Windows-Explorer there to copy the files for deployment. After that, the build directory is no longer needed. However, you can keep it for a faster compile the next time.' |
2703 | 290 |
) |
291 |
) decodeAsLiteralArray. |
|
2825 | 292 |
|
2907
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
293 |
"Modified: / 20-08-2012 / 19:44:04 / cg" |
2703 | 294 |
! ! |
295 |
||
2670 | 296 |
!ProjectBuilderAssistantApplication class methodsFor:'defaults'! |
297 |
||
298 |
defaultIcon |
|
2838 | 299 |
<resource: #programImage> |
300 |
||
2670 | 301 |
^ ToolbarIconLibrary projectBuilderIcon |
302 |
! |
|
303 |
||
304 |
windowLabelTemplate |
|
305 |
^ 'ST/X Packager: %1' |
|
306 |
! ! |
|
307 |
||
2703 | 308 |
!ProjectBuilderAssistantApplication class methodsFor:'help'! |
309 |
||
310 |
flyByHelpSpec |
|
311 |
<resource: #help> |
|
312 |
||
313 |
^ super flyByHelpSpec addPairsFrom:#( |
|
314 |
||
2706 | 315 |
#'projectType' |
316 |
'Choose the type of Project you are about to deploy.' |
|
317 |
||
318 |
#existingProjects |
|
319 |
'Projects with an existing ProjectDefinition of the chosen type (above).' |
|
2703 | 320 |
|
2706 | 321 |
#browseSelectedProject |
322 |
'Open a SystemBrowser on the selected Project.' |
|
323 |
||
324 |
#hideSTXBasePackages |
|
325 |
'Only show packages which are not already included in the basic ST/X delivery.' |
|
2703 | 326 |
|
327 |
#'listOfNewProjectsName' |
|
2706 | 328 |
'PackageID (module:directory). |
329 |
The pull-down list contains packageIDs for which no ProjectDefinition exists (yet).' |
|
330 |
||
331 |
#'createNewProject' |
|
332 |
'PackageID (module:directory). |
|
333 |
Click to create a new (empty) ProjectDefinition for the given PackageID.' |
|
2703 | 334 |
|
335 |
) |
|
336 |
! ! |
|
337 |
||
2636 | 338 |
!ProjectBuilderAssistantApplication class methodsFor:'interface specs'! |
339 |
||
2645 | 340 |
page1_projectTypeSelectionSpec |
2636 | 341 |
"This resource specification was automatically generated |
342 |
by the UIPainter of ST/X." |
|
343 |
||
344 |
"Do not manually edit this!! If it is corrupted, |
|
345 |
the UIPainter may not be able to read the specification." |
|
346 |
||
347 |
" |
|
2648 | 348 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page1_projectTypeSelectionSpec |
349 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page1_projectTypeSelectionSpec |
|
2636 | 350 |
" |
351 |
||
352 |
<resource: #canvas> |
|
353 |
||
354 |
^ |
|
355 |
#(FullSpec |
|
2645 | 356 |
name: #'page1_projectTypeSelectionSpec' |
2636 | 357 |
window: |
358 |
(WindowSpec |
|
359 |
label: 'Project Selection' |
|
360 |
name: 'Project Selection' |
|
361 |
min: (Point 0 0) |
|
362 |
bounds: (Rectangle 0 0 626 394) |
|
363 |
) |
|
364 |
component: |
|
365 |
(SpecCollection |
|
366 |
collection: ( |
|
367 |
(FramedBoxSpec |
|
2706 | 368 |
label: 'Project Type' |
2636 | 369 |
name: 'FramedBox1' |
2698
64d179f1eae7
changed: #page1_projectTypeSelectionSpec
Claus Gittinger <cg@exept.de>
parents:
2697
diff
changeset
|
370 |
layout: (LayoutFrame 0 0.0 0 0 4 1.0 120 0) |
2706 | 371 |
activeHelpKey: projectType |
2636 | 372 |
labelPosition: topLeft |
373 |
translateLabel: true |
|
374 |
component: |
|
375 |
(SpecCollection |
|
376 |
collection: ( |
|
377 |
(VerticalPanelViewSpec |
|
378 |
name: 'VerticalPanel1' |
|
379 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
380 |
horizontalLayout: leftSpace |
|
381 |
verticalLayout: topSpace |
|
382 |
horizontalSpace: 3 |
|
383 |
verticalSpace: 3 |
|
384 |
component: |
|
385 |
(SpecCollection |
|
386 |
collection: ( |
|
387 |
(ViewSpec |
|
388 |
name: 'Box1' |
|
389 |
extent: (Point 10 10) |
|
390 |
) |
|
391 |
(RadioButtonSpec |
|
392 |
label: 'GUI Application' |
|
393 |
name: 'RadioButton1' |
|
394 |
translateLabel: true |
|
2659 | 395 |
model: projectTypeHolder |
2636 | 396 |
isTriggerOnDown: true |
397 |
onCallBackSelector: projectTypeChanged |
|
2897 | 398 |
select: #'GUI-Application' |
2636 | 399 |
extent: (Point 136 22) |
400 |
) |
|
401 |
(RadioButtonSpec |
|
402 |
label: 'Non-GUI Application' |
|
403 |
name: 'RadioButton2' |
|
404 |
translateLabel: true |
|
2659 | 405 |
model: projectTypeHolder |
2636 | 406 |
isTriggerOnDown: true |
407 |
onCallBackSelector: projectTypeChanged |
|
2897 | 408 |
select: #'NonGUI-Application' |
2636 | 409 |
extent: (Point 136 22) |
410 |
) |
|
411 |
(RadioButtonSpec |
|
412 |
label: 'Class Library' |
|
413 |
name: 'RadioButton3' |
|
414 |
translateLabel: true |
|
2659 | 415 |
model: projectTypeHolder |
2636 | 416 |
isTriggerOnDown: true |
417 |
onCallBackSelector: projectTypeChanged |
|
2897 | 418 |
select: #Library |
2636 | 419 |
extent: (Point 136 22) |
420 |
) |
|
421 |
) |
|
422 |
||
423 |
) |
|
424 |
) |
|
425 |
) |
|
426 |
||
427 |
) |
|
428 |
) |
|
429 |
(FramedBoxSpec |
|
2726
7263301b5216
changed: #page1_projectTypeSelectionSpec
Claus Gittinger <cg@exept.de>
parents:
2725
diff
changeset
|
430 |
label: 'Existing Projects of this Type (PackageIDs)' |
2636 | 431 |
name: 'FramedBox2' |
2698
64d179f1eae7
changed: #page1_projectTypeSelectionSpec
Claus Gittinger <cg@exept.de>
parents:
2697
diff
changeset
|
432 |
layout: (LayoutFrame 0 0.0 123 0 4 1.0 0 1) |
2706 | 433 |
activeHelpKey: existingProjects |
2636 | 434 |
labelPosition: topLeft |
435 |
translateLabel: true |
|
436 |
component: |
|
437 |
(SpecCollection |
|
438 |
collection: ( |
|
439 |
(VariableHorizontalPanelSpec |
|
440 |
name: 'VariableHorizontalPanel1' |
|
441 |
layout: (LayoutFrame 0 0 4 0 0 1 -26 1) |
|
442 |
component: |
|
443 |
(SpecCollection |
|
444 |
collection: ( |
|
445 |
(SequenceViewSpec |
|
446 |
name: 'List1' |
|
447 |
model: selectedProjectIndexHolder |
|
448 |
hasHorizontalScrollBar: true |
|
449 |
hasVerticalScrollBar: true |
|
450 |
useIndex: true |
|
2686
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
451 |
sequenceList: listOfMatchingPackageIds |
2636 | 452 |
) |
453 |
(TextEditorSpec |
|
454 |
name: 'TextEditor1' |
|
455 |
model: selectedProjectsComment |
|
456 |
hasHorizontalScrollBar: true |
|
457 |
hasVerticalScrollBar: true |
|
458 |
isReadOnly: true |
|
459 |
hasKeyboardFocusInitially: false |
|
460 |
) |
|
461 |
) |
|
462 |
||
463 |
) |
|
464 |
handles: (Any 0.34560327198364 1.0) |
|
465 |
) |
|
466 |
(CheckBoxSpec |
|
467 |
label: 'Hide ST/X Base Packages' |
|
468 |
name: 'CheckBox1' |
|
2659 | 469 |
layout: (LayoutFrame -1 0 -18 1 0 1 4 1) |
2706 | 470 |
activeHelpKey: hideSTXBasePackages |
2636 | 471 |
model: hideSTXProjects |
472 |
translateLabel: true |
|
473 |
) |
|
474 |
) |
|
475 |
||
476 |
) |
|
477 |
) |
|
478 |
) |
|
479 |
||
480 |
) |
|
481 |
) |
|
2897 | 482 |
|
483 |
"Modified: / 20-07-2012 / 13:27:45 / cg" |
|
2636 | 484 |
! |
485 |
||
2645 | 486 |
page2_projectSelectionSpec |
2636 | 487 |
"This resource specification was automatically generated |
488 |
by the UIPainter of ST/X." |
|
489 |
||
490 |
"Do not manually edit this!! If it is corrupted, |
|
491 |
the UIPainter may not be able to read the specification." |
|
492 |
||
493 |
" |
|
2648 | 494 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page2_projectSelectionSpec |
495 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page2_projectSelectionSpec |
|
2636 | 496 |
" |
497 |
||
498 |
<resource: #canvas> |
|
499 |
||
500 |
^ |
|
501 |
#(FullSpec |
|
2645 | 502 |
name: #'page2_projectSelectionSpec' |
2636 | 503 |
window: |
504 |
(WindowSpec |
|
505 |
label: 'Project Selection' |
|
506 |
name: 'Project Selection' |
|
507 |
min: (Point 0 0) |
|
508 |
bounds: (Rectangle 0 0 521 453) |
|
509 |
) |
|
510 |
component: |
|
511 |
(SpecCollection |
|
512 |
collection: ( |
|
513 |
(FramedBoxSpec |
|
2706 | 514 |
label: 'New Project''s PackageID' |
2636 | 515 |
name: 'FramedBox3' |
516 |
layout: (LayoutFrame 0 0.0 5 0 4 1.0 72 0) |
|
517 |
labelPosition: topLeft |
|
518 |
translateLabel: true |
|
519 |
component: |
|
520 |
(SpecCollection |
|
521 |
collection: ( |
|
2706 | 522 |
(ExtendedComboBoxSpec |
523 |
name: 'NewProjectsNameListExtendedComboBox' |
|
524 |
layout: (LayoutFrame 1 0 6 0 -113 1 28 0) |
|
525 |
model: newProjectsName |
|
526 |
readOnly: false |
|
527 |
miniScrollerHorizontal: true |
|
528 |
postBuildCallback: postBuildNewProjectsNameListExtendedComboBox: |
|
529 |
activeHelpKey: listOfNewProjectsName |
|
530 |
) |
|
2636 | 531 |
(ActionButtonSpec |
532 |
label: 'Create' |
|
533 |
name: 'Button1' |
|
2659 | 534 |
layout: (LayoutFrame -100 1 6 0 2 1 28 0) |
2636 | 535 |
translateLabel: true |
536 |
model: createNewProject |
|
2703 | 537 |
activeHelpKey: createNewProject |
2706 | 538 |
|
2636 | 539 |
) |
2706 | 540 |
|
2636 | 541 |
) |
542 |
||
543 |
) |
|
544 |
) |
|
545 |
(FramedBoxSpec |
|
2706 | 546 |
label: 'Existing Projects with ProjectDefinition' |
2636 | 547 |
name: 'FramedBox4' |
2648 | 548 |
layout: (LayoutFrame 0 0.0 70 0 4 1.0 -30 1) |
2636 | 549 |
labelPosition: topLeft |
550 |
translateLabel: true |
|
551 |
component: |
|
552 |
(SpecCollection |
|
553 |
collection: ( |
|
554 |
(VariableHorizontalPanelSpec |
|
555 |
name: 'VariableHorizontalPanel2' |
|
556 |
layout: (LayoutFrame 0 0 4 0 0 1 -26 1) |
|
557 |
component: |
|
558 |
(SpecCollection |
|
559 |
collection: ( |
|
560 |
(SequenceViewSpec |
|
561 |
name: 'List2' |
|
562 |
model: selectedProjectIndexHolder |
|
563 |
hasHorizontalScrollBar: true |
|
564 |
hasVerticalScrollBar: true |
|
565 |
useIndex: true |
|
2686
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
566 |
sequenceList: listOfMatchingPackageIds |
2636 | 567 |
) |
568 |
(TextEditorSpec |
|
569 |
name: 'TextEditor2' |
|
570 |
model: selectedProjectsComment |
|
571 |
hasHorizontalScrollBar: true |
|
572 |
hasVerticalScrollBar: true |
|
573 |
isReadOnly: true |
|
574 |
hasKeyboardFocusInitially: false |
|
575 |
viewClassName: 'TextView' |
|
576 |
) |
|
577 |
) |
|
578 |
||
579 |
) |
|
580 |
handles: (Any 0.34560327198364 1.0) |
|
581 |
) |
|
582 |
(CheckBoxSpec |
|
583 |
label: 'Hide ST/X Base Packages' |
|
584 |
name: 'CheckBox1' |
|
2659 | 585 |
layout: (LayoutFrame -1 0 -17 1 0 1 5 1) |
2636 | 586 |
model: hideSTXProjects |
587 |
translateLabel: true |
|
2706 | 588 |
activeHelpKey: hideSTXBasePackages |
2636 | 589 |
) |
590 |
) |
|
591 |
||
592 |
) |
|
593 |
) |
|
2648 | 594 |
(HorizontalPanelViewSpec |
595 |
name: 'HorizontalPanel1' |
|
596 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) |
|
597 |
horizontalLayout: leftSpace |
|
598 |
verticalLayout: center |
|
599 |
horizontalSpace: 3 |
|
600 |
verticalSpace: 3 |
|
601 |
component: |
|
602 |
(SpecCollection |
|
603 |
collection: ( |
|
604 |
(ActionButtonSpec |
|
605 |
label: 'Browse Selected Project' |
|
606 |
name: 'Button3' |
|
607 |
translateLabel: true |
|
608 |
model: doBrowseProject |
|
2659 | 609 |
enableChannel: hasProjectSelectedHolder |
2648 | 610 |
extent: (Point 180 22) |
2706 | 611 |
activeHelpKey: browseSelectedProject |
2648 | 612 |
) |
613 |
) |
|
614 |
||
615 |
) |
|
2636 | 616 |
) |
617 |
) |
|
618 |
||
619 |
) |
|
620 |
) |
|
621 |
! |
|
622 |
||
2645 | 623 |
page3_applicationSelectionSpec |
2636 | 624 |
"This resource specification was automatically generated |
625 |
by the UIPainter of ST/X." |
|
626 |
||
627 |
"Do not manually edit this!! If it is corrupted, |
|
628 |
the UIPainter may not be able to read the specification." |
|
629 |
||
630 |
" |
|
2648 | 631 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page3_applicationSelectionSpec |
632 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page3_applicationSelectionSpec |
|
2636 | 633 |
" |
634 |
||
635 |
<resource: #canvas> |
|
636 |
||
637 |
^ |
|
638 |
#(FullSpec |
|
2645 | 639 |
name: #'page3_applicationSelectionSpec' |
2636 | 640 |
window: |
641 |
(WindowSpec |
|
642 |
label: 'Application Selection' |
|
643 |
name: 'Application Selection' |
|
644 |
min: (Point 0 0) |
|
2671 | 645 |
bounds: (Rectangle 0 0 519 406) |
2636 | 646 |
) |
647 |
component: |
|
648 |
(SpecCollection |
|
649 |
collection: ( |
|
650 |
(FramedBoxSpec |
|
2725 | 651 |
label: 'New Application Class' |
2636 | 652 |
name: 'FramedBox3' |
2725 | 653 |
layout: (LayoutFrame 0 0.0 5 0 4 1.0 70 0) |
2636 | 654 |
labelPosition: topLeft |
655 |
translateLabel: true |
|
656 |
component: |
|
657 |
(SpecCollection |
|
658 |
collection: ( |
|
659 |
(InputFieldSpec |
|
660 |
name: 'EntryField1' |
|
2659 | 661 |
layout: (LayoutFrame 1 0 6 0 -113 1 28 0) |
2636 | 662 |
model: newApplicationsName |
663 |
acceptOnReturn: true |
|
664 |
acceptOnTab: true |
|
2693 | 665 |
acceptOnLostFocus: true |
2636 | 666 |
acceptOnPointerLeave: true |
667 |
emptyFieldReplacementText: 'MyApplication' |
|
668 |
) |
|
669 |
(ActionButtonSpec |
|
670 |
label: 'Create' |
|
671 |
name: 'Button1' |
|
2659 | 672 |
layout: (LayoutFrame -100 1 6 0 1 1 28 0) |
2636 | 673 |
translateLabel: true |
674 |
model: createNewApplication |
|
675 |
) |
|
676 |
) |
|
677 |
||
678 |
) |
|
679 |
) |
|
680 |
(FramedBoxSpec |
|
681 |
label: 'Existing Applications' |
|
682 |
name: 'FramedBox4' |
|
2725 | 683 |
layout: (LayoutFrame 0 0.0 72 0 4 1.0 -30 1) |
2636 | 684 |
labelPosition: topLeft |
685 |
translateLabel: true |
|
686 |
component: |
|
687 |
(SpecCollection |
|
688 |
collection: ( |
|
689 |
(VariableHorizontalPanelSpec |
|
690 |
name: 'VariableHorizontalPanel2' |
|
2671 | 691 |
layout: (LayoutFrame 0 0 4 0 0 1 -26 1) |
2636 | 692 |
component: |
693 |
(SpecCollection |
|
694 |
collection: ( |
|
695 |
(SequenceViewSpec |
|
696 |
name: 'List2' |
|
697 |
model: selectedApplicationIndexHolder |
|
698 |
hasHorizontalScrollBar: true |
|
699 |
hasVerticalScrollBar: true |
|
700 |
useIndex: true |
|
701 |
sequenceList: listOfApplicationsInProject |
|
2671 | 702 |
ignoreReselect: false |
2636 | 703 |
) |
704 |
(TextEditorSpec |
|
705 |
name: 'TextEditor2' |
|
706 |
model: selectedApplicationsComment |
|
707 |
hasHorizontalScrollBar: true |
|
708 |
hasVerticalScrollBar: true |
|
709 |
isReadOnly: true |
|
710 |
hasKeyboardFocusInitially: false |
|
711 |
viewClassName: 'TextView' |
|
712 |
) |
|
713 |
) |
|
714 |
||
715 |
) |
|
716 |
handles: (Any 0.34560327198364 1.0) |
|
717 |
) |
|
2671 | 718 |
(CheckBoxSpec |
719 |
label: 'Hide other Application Classes' |
|
720 |
name: 'CheckBox1' |
|
721 |
layout: (LayoutFrame -1 0 -18 1 0 1 4 1) |
|
722 |
model: hideOtherApplicationClasses |
|
723 |
translateLabel: true |
|
724 |
) |
|
2636 | 725 |
) |
726 |
||
727 |
) |
|
728 |
) |
|
2648 | 729 |
(HorizontalPanelViewSpec |
730 |
name: 'HorizontalPanel1' |
|
731 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) |
|
732 |
horizontalLayout: leftSpace |
|
733 |
verticalLayout: center |
|
734 |
horizontalSpace: 3 |
|
735 |
verticalSpace: 3 |
|
736 |
component: |
|
737 |
(SpecCollection |
|
738 |
collection: ( |
|
739 |
(ActionButtonSpec |
|
740 |
label: 'Browse Selected Application' |
|
741 |
name: 'Button3' |
|
742 |
translateLabel: true |
|
743 |
model: doBrowseApplication |
|
2659 | 744 |
enableChannel: hasApplicationSelectedHolder |
745 |
extent: (Point 180 22) |
|
746 |
) |
|
747 |
(ActionButtonSpec |
|
748 |
label: 'Launch Selected Application' |
|
749 |
name: 'Button4' |
|
750 |
translateLabel: true |
|
751 |
model: doLaunchApplication |
|
752 |
enableChannel: hasApplicationSelectedHolder |
|
2648 | 753 |
extent: (Point 180 22) |
754 |
) |
|
755 |
) |
|
756 |
||
757 |
) |
|
2636 | 758 |
) |
759 |
) |
|
760 |
||
761 |
) |
|
762 |
) |
|
763 |
! |
|
764 |
||
2656 | 765 |
page4_startupClassSelectionSpec |
2636 | 766 |
"This resource specification was automatically generated |
767 |
by the UIPainter of ST/X." |
|
768 |
||
769 |
"Do not manually edit this!! If it is corrupted, |
|
770 |
the UIPainter may not be able to read the specification." |
|
771 |
||
772 |
" |
|
2656 | 773 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page4_startupClassSelectionSpec |
774 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page4_startupClassSelectionSpec |
|
2636 | 775 |
" |
776 |
||
777 |
<resource: #canvas> |
|
778 |
||
779 |
^ |
|
780 |
#(FullSpec |
|
2656 | 781 |
name: #'page4_startupClassSelectionSpec' |
782 |
window: |
|
783 |
(WindowSpec |
|
784 |
label: 'Startup Class Selection' |
|
785 |
name: 'Startup Class Selection' |
|
786 |
min: (Point 0 0) |
|
787 |
bounds: (Rectangle 0 0 521 408) |
|
788 |
) |
|
789 |
component: |
|
790 |
(SpecCollection |
|
791 |
collection: ( |
|
792 |
(FramedBoxSpec |
|
2725 | 793 |
label: 'New Startup Class' |
2656 | 794 |
name: 'FramedBox3' |
2725 | 795 |
layout: (LayoutFrame 0 0.0 5 0 4 1.0 70 0) |
2656 | 796 |
labelPosition: topLeft |
797 |
translateLabel: true |
|
798 |
component: |
|
799 |
(SpecCollection |
|
800 |
collection: ( |
|
801 |
(InputFieldSpec |
|
802 |
name: 'EntryField1' |
|
2659 | 803 |
layout: (LayoutFrame 1 0 6 0 -113 1 28 0) |
2656 | 804 |
model: newStartupClassName |
805 |
acceptOnReturn: true |
|
806 |
acceptOnTab: true |
|
2693 | 807 |
acceptOnLostFocus: true |
2656 | 808 |
acceptOnPointerLeave: true |
809 |
emptyFieldReplacementText: 'MyStandAloneStartup' |
|
810 |
) |
|
811 |
(ActionButtonSpec |
|
812 |
label: 'Create' |
|
813 |
name: 'Button1' |
|
2659 | 814 |
layout: (LayoutFrame -100 1 6 0 1 1 28 0) |
2656 | 815 |
translateLabel: true |
816 |
model: createNewStartupClass |
|
817 |
) |
|
818 |
) |
|
819 |
||
820 |
) |
|
821 |
) |
|
822 |
(FramedBoxSpec |
|
2725 | 823 |
label: 'Existing Startup Classes' |
2656 | 824 |
name: 'FramedBox4' |
2725 | 825 |
layout: (LayoutFrame 0 0.0 72 0 4 1.0 -30 1) |
2656 | 826 |
labelPosition: topLeft |
827 |
translateLabel: true |
|
828 |
component: |
|
829 |
(SpecCollection |
|
830 |
collection: ( |
|
831 |
(VariableHorizontalPanelSpec |
|
832 |
name: 'VariableHorizontalPanel2' |
|
2671 | 833 |
layout: (LayoutFrame 0 0 4 0 0 1 -26 1) |
2656 | 834 |
component: |
835 |
(SpecCollection |
|
836 |
collection: ( |
|
837 |
(SequenceViewSpec |
|
838 |
name: 'List2' |
|
839 |
model: selectedStartupClassIndexHolder |
|
840 |
hasHorizontalScrollBar: true |
|
841 |
hasVerticalScrollBar: true |
|
842 |
useIndex: true |
|
843 |
sequenceList: listOfStartupClassesInProject |
|
844 |
) |
|
845 |
(TextEditorSpec |
|
846 |
name: 'TextEditor2' |
|
847 |
model: selectedStartupClassesComment |
|
848 |
hasHorizontalScrollBar: true |
|
849 |
hasVerticalScrollBar: true |
|
850 |
isReadOnly: true |
|
851 |
hasKeyboardFocusInitially: false |
|
852 |
viewClassName: 'TextView' |
|
853 |
) |
|
854 |
) |
|
855 |
||
856 |
) |
|
857 |
handles: (Any 0.34560327198364 1.0) |
|
858 |
) |
|
2671 | 859 |
(CheckBoxSpec |
860 |
label: 'Hide other Startup Classes' |
|
861 |
name: 'CheckBox1' |
|
862 |
layout: (LayoutFrame -1 0 -20 1 0 1 2 1) |
|
863 |
model: hideOtherStartupClasses |
|
864 |
translateLabel: true |
|
865 |
) |
|
2656 | 866 |
) |
867 |
||
868 |
) |
|
869 |
) |
|
870 |
(HorizontalPanelViewSpec |
|
871 |
name: 'HorizontalPanel1' |
|
872 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) |
|
873 |
horizontalLayout: leftSpace |
|
874 |
verticalLayout: center |
|
875 |
horizontalSpace: 3 |
|
876 |
verticalSpace: 3 |
|
877 |
component: |
|
878 |
(SpecCollection |
|
879 |
collection: ( |
|
880 |
(ActionButtonSpec |
|
881 |
label: 'Browse Selected StartupClass' |
|
882 |
name: 'Button3' |
|
883 |
translateLabel: true |
|
884 |
model: doBrowseStartupClass |
|
2659 | 885 |
enableChannel: hasStartupClassSelectedHolder |
2656 | 886 |
extent: (Point 180 22) |
887 |
) |
|
888 |
) |
|
889 |
||
890 |
) |
|
891 |
) |
|
892 |
) |
|
893 |
||
894 |
) |
|
895 |
) |
|
896 |
! |
|
897 |
||
898 |
page5_specifyIncludedClasses |
|
899 |
"This resource specification was automatically generated |
|
900 |
by the UIPainter of ST/X." |
|
901 |
||
902 |
"Do not manually edit this!! If it is corrupted, |
|
903 |
the UIPainter may not be able to read the specification." |
|
904 |
||
905 |
" |
|
906 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page5_specifyIncludedClasses |
|
907 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page5_specifyIncludedClasses |
|
908 |
" |
|
909 |
||
910 |
<resource: #canvas> |
|
911 |
||
912 |
^ |
|
913 |
#(FullSpec |
|
914 |
name: #'page5_specifyIncludedClasses' |
|
2636 | 915 |
window: |
916 |
(WindowSpec |
|
917 |
label: 'Project Selection' |
|
918 |
name: 'Project Selection' |
|
919 |
min: (Point 0 0) |
|
920 |
bounds: (Rectangle 0 0 521 400) |
|
921 |
) |
|
922 |
component: |
|
923 |
(SpecCollection |
|
924 |
collection: ( |
|
925 |
(FramedBoxSpec |
|
926 |
label: 'Project Contents' |
|
927 |
name: 'FramedBox3' |
|
2648 | 928 |
layout: (LayoutFrame 0 0.0 5 0 4 1.0 -30 1) |
2636 | 929 |
labelPosition: topLeft |
930 |
translateLabel: true |
|
931 |
component: |
|
932 |
(SpecCollection |
|
933 |
collection: ( |
|
934 |
(SequenceViewSpec |
|
935 |
name: 'List1' |
|
936 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
937 |
initiallyDisabled: true |
|
938 |
hasHorizontalScrollBar: true |
|
939 |
hasVerticalScrollBar: true |
|
940 |
useIndex: false |
|
941 |
sequenceList: listOfClassesInProject |
|
942 |
) |
|
943 |
) |
|
944 |
||
945 |
) |
|
946 |
) |
|
2648 | 947 |
(HorizontalPanelViewSpec |
948 |
name: 'HorizontalPanel1' |
|
949 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) |
|
950 |
horizontalLayout: center |
|
951 |
verticalLayout: center |
|
952 |
horizontalSpace: 3 |
|
953 |
verticalSpace: 3 |
|
954 |
component: |
|
955 |
(SpecCollection |
|
956 |
collection: ( |
|
957 |
(ActionButtonSpec |
|
958 |
label: 'Browse Project Definition' |
|
959 |
name: 'Button3' |
|
960 |
translateLabel: true |
|
2659 | 961 |
model: doBrowseProjectDefinitionClass |
2648 | 962 |
extent: (Point 180 22) |
963 |
) |
|
964 |
(ActionButtonSpec |
|
965 |
label: 'Update Contents (Scan)' |
|
966 |
name: 'Button4' |
|
967 |
translateLabel: true |
|
968 |
model: doGenerateProjectContentsDefinition |
|
969 |
extent: (Point 180 22) |
|
970 |
) |
|
971 |
) |
|
972 |
||
973 |
) |
|
2636 | 974 |
) |
975 |
) |
|
976 |
||
977 |
) |
|
978 |
) |
|
979 |
! |
|
980 |
||
2872 | 981 |
page5b_specifyPrerequisitePackages |
982 |
"This resource specification was automatically generated |
|
983 |
by the UIPainter of ST/X." |
|
984 |
||
985 |
"Do not manually edit this!! If it is corrupted, |
|
986 |
the UIPainter may not be able to read the specification." |
|
987 |
||
988 |
" |
|
989 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page5b_specifyPrerequisitePackages |
|
990 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page5b_specifyPrerequisitePackages |
|
991 |
" |
|
992 |
||
993 |
<resource: #canvas> |
|
994 |
||
995 |
^ |
|
996 |
#(FullSpec |
|
997 |
name: #'page5b_specifyPrerequisitePackages' |
|
998 |
window: |
|
999 |
(WindowSpec |
|
1000 |
label: 'Project Selection' |
|
1001 |
name: 'Project Selection' |
|
1002 |
min: (Point 0 0) |
|
1003 |
bounds: (Rectangle 0 0 521 400) |
|
1004 |
) |
|
1005 |
component: |
|
1006 |
(SpecCollection |
|
1007 |
collection: ( |
|
1008 |
(FramedBoxSpec |
|
1009 |
label: 'Prerequisite Packages' |
|
1010 |
name: 'FramedBox3' |
|
1011 |
layout: (LayoutFrame 0 0.0 5 0 4 1.0 -30 1) |
|
1012 |
labelPosition: topLeft |
|
1013 |
translateLabel: true |
|
1014 |
component: |
|
1015 |
(SpecCollection |
|
1016 |
collection: ( |
|
1017 |
(SequenceViewSpec |
|
1018 |
name: 'List1' |
|
1019 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
1020 |
initiallyDisabled: true |
|
1021 |
hasHorizontalScrollBar: true |
|
1022 |
hasVerticalScrollBar: true |
|
1023 |
useIndex: false |
|
1024 |
sequenceList: listOfPrerequisitesInProject |
|
1025 |
) |
|
1026 |
) |
|
1027 |
||
1028 |
) |
|
1029 |
) |
|
1030 |
(HorizontalPanelViewSpec |
|
1031 |
name: 'HorizontalPanel1' |
|
1032 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) |
|
1033 |
horizontalLayout: center |
|
1034 |
verticalLayout: center |
|
1035 |
horizontalSpace: 3 |
|
1036 |
verticalSpace: 3 |
|
1037 |
component: |
|
1038 |
(SpecCollection |
|
1039 |
collection: ( |
|
1040 |
(ActionButtonSpec |
|
1041 |
label: 'Browse Project Definition' |
|
1042 |
name: 'Button3' |
|
1043 |
translateLabel: true |
|
1044 |
model: doBrowseProjectDefinitionClass |
|
1045 |
extent: (Point 180 22) |
|
1046 |
) |
|
1047 |
(ActionButtonSpec |
|
1048 |
label: 'Update Prerequisites (Scan)' |
|
1049 |
name: 'Button4' |
|
1050 |
translateLabel: true |
|
1051 |
model: doGenerateProjectPrerequisitesDefinition |
|
1052 |
extent: (Point 180 22) |
|
1053 |
) |
|
1054 |
) |
|
1055 |
||
1056 |
) |
|
1057 |
) |
|
1058 |
) |
|
1059 |
||
1060 |
) |
|
1061 |
) |
|
1062 |
||
1063 |
"Modified: / 19-01-2012 / 15:45:14 / cg" |
|
1064 |
! |
|
1065 |
||
2724 | 1066 |
page6a_specifyProjectAttributes |
2636 | 1067 |
"This resource specification was automatically generated |
1068 |
by the UIPainter of ST/X." |
|
1069 |
||
1070 |
"Do not manually edit this!! If it is corrupted, |
|
1071 |
the UIPainter may not be able to read the specification." |
|
1072 |
||
1073 |
" |
|
2724 | 1074 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page6a_specifyProjectAttributes |
1075 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page6a_specifyProjectAttributes |
|
2636 | 1076 |
" |
1077 |
||
1078 |
<resource: #canvas> |
|
1079 |
||
1080 |
^ |
|
1081 |
#(FullSpec |
|
2724 | 1082 |
name: #'page6a_specifyProjectAttributes' |
2636 | 1083 |
window: |
1084 |
(WindowSpec |
|
1085 |
label: 'Project Selection' |
|
1086 |
name: 'Project Selection' |
|
1087 |
min: (Point 0 0) |
|
2681 | 1088 |
bounds: (Rectangle 0 0 521 239) |
2636 | 1089 |
) |
1090 |
component: |
|
1091 |
(SpecCollection |
|
1092 |
collection: ( |
|
1093 |
(FramedBoxSpec |
|
2724 | 1094 |
label: 'Product Information' |
1095 |
name: 'FramedBox3' |
|
1096 |
layout: (LayoutFrame 0 0.0 5 0 4 1.0 101 0) |
|
1097 |
labelPosition: topLeft |
|
1098 |
translateLabel: true |
|
1099 |
component: |
|
1100 |
(SpecCollection |
|
1101 |
collection: ( |
|
1102 |
(LabelSpec |
|
1103 |
label: 'Product Name:' |
|
1104 |
name: 'Label1' |
|
1105 |
layout: (LayoutFrame 0 0 10 0 148 0 32 0) |
|
1106 |
translateLabel: true |
|
1107 |
adjust: right |
|
1108 |
) |
|
1109 |
(InputFieldSpec |
|
1110 |
name: 'EntryField4' |
|
1111 |
layout: (LayoutFrame 150 0.0 10 0 0 1.0 32 0) |
|
1112 |
model: productNameHolder |
|
1113 |
acceptOnLostFocus: true |
|
1114 |
acceptOnPointerLeave: true |
|
1115 |
viewClassName: '' |
|
1116 |
) |
|
1117 |
(LabelSpec |
|
1118 |
label: 'Company Name:' |
|
1119 |
name: 'Label2' |
|
1120 |
layout: (LayoutFrame 0 0 39 0 148 0 61 0) |
|
1121 |
translateLabel: true |
|
1122 |
adjust: right |
|
1123 |
) |
|
1124 |
(InputFieldSpec |
|
1125 |
name: 'EntryField3' |
|
1126 |
layout: (LayoutFrame 150 0.0 39 0 0 1.0 61 0) |
|
1127 |
model: companyNameHolder |
|
1128 |
acceptOnLostFocus: true |
|
1129 |
acceptOnPointerLeave: true |
|
1130 |
viewClassName: '' |
|
1131 |
) |
|
1132 |
) |
|
1133 |
||
1134 |
) |
|
1135 |
) |
|
1136 |
) |
|
1137 |
||
1138 |
) |
|
1139 |
) |
|
1140 |
! |
|
1141 |
||
1142 |
page6b_specifyBuildDirectorySpec |
|
1143 |
"This resource specification was automatically generated |
|
1144 |
by the UIPainter of ST/X." |
|
1145 |
||
1146 |
"Do not manually edit this!! If it is corrupted, |
|
1147 |
the UIPainter may not be able to read the specification." |
|
1148 |
||
1149 |
" |
|
1150 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page6b_specifyBuildDirectorySpec |
|
1151 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page6b_specifyBuildDirectorySpec |
|
1152 |
" |
|
1153 |
||
1154 |
<resource: #canvas> |
|
1155 |
||
1156 |
^ |
|
1157 |
#(FullSpec |
|
1158 |
name: #'page6b_specifyBuildDirectorySpec' |
|
1159 |
window: |
|
1160 |
(WindowSpec |
|
1161 |
label: 'Project Selection' |
|
1162 |
name: 'Project Selection' |
|
1163 |
min: (Point 0 0) |
|
1164 |
bounds: (Rectangle 0 0 521 361) |
|
1165 |
) |
|
1166 |
component: |
|
1167 |
(SpecCollection |
|
1168 |
collection: ( |
|
1169 |
(FramedBoxSpec |
|
2636 | 1170 |
label: 'Build Directory' |
1171 |
name: 'FramedBox3' |
|
1172 |
layout: (LayoutFrame 0 0.0 5 0 4 1.0 79 0) |
|
1173 |
labelPosition: topLeft |
|
1174 |
translateLabel: true |
|
1175 |
component: |
|
1176 |
(SpecCollection |
|
1177 |
collection: ( |
|
1178 |
(FilenameInputFieldSpec |
|
1179 |
name: 'FilenameEntryField1' |
|
1180 |
layout: (LayoutFrame 0 0.0 10 0 0 1.0 32 0) |
|
1181 |
model: buildDirectoryHolder |
|
1182 |
acceptOnPointerLeave: true |
|
1183 |
viewClassName: FilenameWidgetWithHistory |
|
1184 |
) |
|
1185 |
) |
|
1186 |
||
1187 |
) |
|
1188 |
) |
|
2681 | 1189 |
(FramedBoxSpec |
1190 |
label: 'Compiler / Toolchain' |
|
1191 |
name: 'FramedBox4' |
|
1192 |
layout: (LayoutFrame 0 0.0 81 0 4 1.0 155 0) |
|
1193 |
labelPosition: topLeft |
|
1194 |
translateLabel: true |
|
1195 |
component: |
|
1196 |
(SpecCollection |
|
1197 |
collection: ( |
|
1198 |
(ComboListSpec |
|
1199 |
name: 'ComboList1' |
|
1200 |
layout: (LayoutFrame 0 0 10 0 137 0 32 0) |
|
1201 |
model: usedCompilerHolder |
|
1202 |
comboList: listOfPossibleCompilers |
|
1203 |
useIndex: false |
|
1204 |
) |
|
2910 | 1205 |
(LabelSpec |
1206 |
label: 'Compiler Suite' |
|
1207 |
name: 'Label2' |
|
1208 |
layout: (LayoutFrame 163 0 10 0 0 1 32 0) |
|
1209 |
translateLabel: true |
|
1210 |
labelChannel: nameOfUsedCompilerSuiteHolder |
|
1211 |
adjust: left |
|
1212 |
) |
|
2681 | 1213 |
) |
1214 |
||
1215 |
) |
|
1216 |
) |
|
2724 | 1217 |
(LabelSpec |
1218 |
label: 'Compiler Warn-Label' |
|
1219 |
name: 'Label1' |
|
1220 |
layout: (LayoutFrame 2 0.0 158 0 -2 1.0 303 0) |
|
1221 |
level: -1 |
|
1222 |
visibilityChannel: compilerWarnMessageVisibleHolder |
|
2910 | 1223 |
backgroundColor: (Color 100.0 49.9992370489052 49.9992370489052) |
2724 | 1224 |
translateLabel: true |
1225 |
labelChannel: compilerWarnMessageHolder |
|
1226 |
adjust: left |
|
1227 |
) |
|
2636 | 1228 |
) |
1229 |
||
1230 |
) |
|
1231 |
) |
|
1232 |
! |
|
1233 |
||
2656 | 1234 |
page7_buildSpec |
2636 | 1235 |
"This resource specification was automatically generated |
1236 |
by the UIPainter of ST/X." |
|
1237 |
||
1238 |
"Do not manually edit this!! If it is corrupted, |
|
1239 |
the UIPainter may not be able to read the specification." |
|
1240 |
||
1241 |
" |
|
2656 | 1242 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page7_buildSpec |
1243 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page7_buildSpec |
|
2636 | 1244 |
" |
1245 |
||
1246 |
<resource: #canvas> |
|
1247 |
||
1248 |
^ |
|
1249 |
#(FullSpec |
|
2656 | 1250 |
name: #'page7_buildSpec' |
2636 | 1251 |
window: |
1252 |
(WindowSpec |
|
1253 |
label: 'Project Selection' |
|
1254 |
name: 'Project Selection' |
|
1255 |
min: (Point 0 0) |
|
2906
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1256 |
bounds: (Rectangle 0 0 677 472) |
2636 | 1257 |
) |
1258 |
component: |
|
1259 |
(SpecCollection |
|
1260 |
collection: ( |
|
1261 |
(FramedBoxSpec |
|
1262 |
label: 'Make Output' |
|
1263 |
name: 'FramedBox3' |
|
2648 | 1264 |
layout: (LayoutFrame 0 0.0 5 0 4 1.0 -30 1) |
2636 | 1265 |
labelPosition: topLeft |
1266 |
translateLabel: true |
|
1267 |
component: |
|
1268 |
(SpecCollection |
|
1269 |
collection: ( |
|
1270 |
(TextEditorSpec |
|
2646 | 1271 |
name: 'MakeOutputWindow' |
2636 | 1272 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
1273 |
model: makeOutputHolder |
|
1274 |
hasHorizontalScrollBar: true |
|
1275 |
hasVerticalScrollBar: true |
|
1276 |
hasKeyboardFocusInitially: false |
|
1277 |
viewClassName: 'TextCollector' |
|
2646 | 1278 |
postBuildCallback: postBuildMakeOutputWindow: |
2636 | 1279 |
) |
1280 |
) |
|
1281 |
||
1282 |
) |
|
1283 |
) |
|
2648 | 1284 |
(HorizontalPanelViewSpec |
1285 |
name: 'HorizontalPanel1' |
|
1286 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) |
|
1287 |
horizontalLayout: leftSpace |
|
1288 |
verticalLayout: center |
|
1289 |
horizontalSpace: 3 |
|
1290 |
verticalSpace: 3 |
|
1291 |
component: |
|
1292 |
(SpecCollection |
|
1293 |
collection: ( |
|
1294 |
(ActionButtonSpec |
|
2674 | 1295 |
label: 'Make All' |
2648 | 1296 |
name: 'Button3' |
1297 |
translateLabel: true |
|
2674 | 1298 |
model: doStartMakeAll |
2648 | 1299 |
enableChannel: startMakeButtonEnabled |
1300 |
extent: (Point 107 22) |
|
1301 |
) |
|
1302 |
(ActionButtonSpec |
|
2674 | 1303 |
label: 'Make EXE only' |
1304 |
name: 'Button5' |
|
1305 |
translateLabel: true |
|
1306 |
model: doStartMakeExe |
|
1307 |
enableChannel: startMakeButtonEnabled |
|
1308 |
extent: (Point 107 22) |
|
1309 |
) |
|
1310 |
(ViewSpec |
|
1311 |
name: 'Box1' |
|
1312 |
extent: (Point 20 10) |
|
1313 |
) |
|
1314 |
(ActionButtonSpec |
|
2648 | 1315 |
label: 'Stop Make' |
1316 |
name: 'Button4' |
|
1317 |
visibilityChannel: stopMakeButtonVisible |
|
1318 |
translateLabel: true |
|
1319 |
model: doStopMake |
|
1320 |
extent: (Point 107 22) |
|
1321 |
) |
|
2906
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1322 |
(ViewSpec |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1323 |
name: 'Box2' |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1324 |
extent: (Point 20 10) |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1325 |
) |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1326 |
(ActionButtonSpec |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1327 |
label: 'Browse Build Directory' |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1328 |
name: 'Button6' |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1329 |
translateLabel: true |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1330 |
model: doBrowseBuildDirectory |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1331 |
extent: (Point 167 22) |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1332 |
) |
2648 | 1333 |
) |
1334 |
||
1335 |
) |
|
2636 | 1336 |
) |
1337 |
) |
|
1338 |
||
1339 |
) |
|
1340 |
) |
|
1341 |
! |
|
1342 |
||
2676 | 1343 |
page8_deploySpec |
1344 |
"This resource specification was automatically generated |
|
1345 |
by the UIPainter of ST/X." |
|
1346 |
||
1347 |
"Do not manually edit this!! If it is corrupted, |
|
1348 |
the UIPainter may not be able to read the specification." |
|
1349 |
||
1350 |
" |
|
1351 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#page8_deploySpec |
|
1352 |
Tools::ProjectBuilderAssistantApplication new openInterface:#page8_deploySpec |
|
1353 |
" |
|
1354 |
||
1355 |
<resource: #canvas> |
|
1356 |
||
1357 |
^ |
|
1358 |
#(FullSpec |
|
1359 |
name: #'page8_deploySpec' |
|
1360 |
window: |
|
1361 |
(WindowSpec |
|
1362 |
label: 'Project Selection' |
|
1363 |
name: 'Project Selection' |
|
1364 |
min: (Point 0 0) |
|
1365 |
bounds: (Rectangle 0 0 521 472) |
|
1366 |
) |
|
1367 |
component: |
|
1368 |
(SpecCollection |
|
1369 |
collection: ( |
|
1370 |
(FramedBoxSpec |
|
1371 |
label: 'Files for Deployment' |
|
1372 |
name: 'FramedBox3' |
|
1373 |
layout: (LayoutFrame 0 0.0 5 0 4 1.0 0 1) |
|
1374 |
labelPosition: topLeft |
|
1375 |
translateLabel: true |
|
1376 |
component: |
|
1377 |
(SpecCollection |
|
1378 |
collection: ( |
|
1379 |
(SubCanvasSpec |
|
1380 |
name: 'SubCanvas1' |
|
1381 |
layout: (LayoutFrame 0 0 0 0 0 1 -30 1) |
|
1382 |
hasHorizontalScrollBar: false |
|
1383 |
hasVerticalScrollBar: false |
|
1384 |
clientHolder: fileBrowserInstance |
|
1385 |
createNewApplication: true |
|
1386 |
createNewBuilder: true |
|
2675 | 1387 |
) |
2676 | 1388 |
(HorizontalPanelViewSpec |
1389 |
name: 'HorizontalPanel1' |
|
1390 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) |
|
2679 | 1391 |
horizontalLayout: centerMax |
2676 | 1392 |
verticalLayout: center |
1393 |
horizontalSpace: 3 |
|
1394 |
verticalSpace: 3 |
|
1395 |
component: |
|
1396 |
(SpecCollection |
|
1397 |
collection: ( |
|
1398 |
(ActionButtonSpec |
|
1399 |
label: 'Open Windows Explorer' |
|
1400 |
name: 'Button1' |
|
2720 | 1401 |
visibilityChannel: isWindowsOS |
2676 | 1402 |
translateLabel: true |
2649 | 1403 |
resizeForLabel: true |
1404 |
model: doOpenExplorer |
|
1405 |
extent: (Point 172 22) |
|
1406 |
) |
|
2679 | 1407 |
(ActionButtonSpec |
1408 |
label: 'Open Console' |
|
1409 |
name: 'Button2' |
|
2724 | 1410 |
visibilityChannel: isUnixOS |
2679 | 1411 |
translateLabel: true |
1412 |
resizeForLabel: true |
|
1413 |
model: doOpenConsoleTerminal |
|
1414 |
extent: (Point 172 22) |
|
1415 |
) |
|
2649 | 1416 |
) |
1417 |
||
1418 |
) |
|
1419 |
) |
|
2636 | 1420 |
) |
1421 |
||
1422 |
) |
|
1423 |
) |
|
1424 |
) |
|
1425 |
||
1426 |
) |
|
1427 |
) |
|
2676 | 1428 |
! ! |
1429 |
||
2697 | 1430 |
!ProjectBuilderAssistantApplication class methodsFor:'misc specs'! |
1431 |
||
1432 |
newProjectsNameListSpec |
|
1433 |
"This resource specification was automatically generated |
|
1434 |
by the UIPainter of ST/X." |
|
1435 |
||
1436 |
"Do not manually edit this!! If it is corrupted, |
|
1437 |
the UIPainter may not be able to read the specification." |
|
1438 |
||
1439 |
" |
|
1440 |
UIPainter new openOnClass:Tools::ProjectBuilderAssistantApplication andSelector:#newProjectsNameListSpec |
|
1441 |
Tools::ProjectBuilderAssistantApplication new openInterface:#newProjectsNameListSpec |
|
1442 |
" |
|
1443 |
||
1444 |
<resource: #canvas> |
|
1445 |
||
1446 |
^ |
|
1447 |
#(FullSpec |
|
1448 |
name: newProjectsNameListSpec |
|
1449 |
window: |
|
1450 |
(WindowSpec |
|
1451 |
label: 'NewApplication' |
|
1452 |
name: 'NewApplication' |
|
1453 |
min: (Point 0 0) |
|
1454 |
bounds: (Rectangle 0 0 131 207) |
|
1455 |
) |
|
1456 |
component: |
|
1457 |
(SpecCollection |
|
1458 |
collection: ( |
|
1459 |
(SequenceViewSpec |
|
1460 |
name: 'ReferencePoint2' |
|
1461 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
2705 | 1462 |
activeHelpKey: listOfNewProjectsName |
2697 | 1463 |
model: newProjectsName |
1464 |
hasHorizontalScrollBar: true |
|
1465 |
hasVerticalScrollBar: true |
|
1466 |
miniScrollerHorizontal: true |
|
1467 |
miniScrollerVertical: false |
|
1468 |
useIndex: false |
|
1469 |
sequenceList: listOfNewProjectsName |
|
2705 | 1470 |
doubleClickChannel: newProjectsNameListDoubleClickChannel |
2697 | 1471 |
) |
1472 |
) |
|
1473 |
||
1474 |
) |
|
1475 |
) |
|
1476 |
! ! |
|
1477 |
||
2897 | 1478 |
!ProjectBuilderAssistantApplication class methodsFor:'startup'! |
1479 |
||
1480 |
openOn:aProjectDefinitionClass |
|
1481 |
^ self new openOn:aProjectDefinitionClass |
|
1482 |
||
1483 |
"Created: / 20-07-2012 / 12:33:25 / cg" |
|
1484 |
! |
|
1485 |
||
1486 |
openOnPackage:aPackageId |
|
1487 |
^ self new openOnPackage:aPackageId |
|
1488 |
||
1489 |
"Created: / 20-07-2012 / 13:22:50 / cg" |
|
1490 |
! ! |
|
1491 |
||
2676 | 1492 |
!ProjectBuilderAssistantApplication methodsFor:'actions'! |
1493 |
||
1494 |
buildDirectoryChanged |
|
1495 |
self updateButtonEnableState. |
|
2636 | 1496 |
! |
1497 |
||
2676 | 1498 |
createNewApplication |
1499 |
<resource: #uiCallback> |
|
1500 |
||
1501 |
|newAppName newAppClass| |
|
2636 | 1502 |
|
2676 | 1503 |
newAppName := self newApplicationsName value. |
1504 |
newAppName isEmptyOrNil ifTrue:[ |
|
1505 |
Dialog warn:'Please enter the name of the Application-Class first.'. |
|
1506 |
^ self |
|
1507 |
]. |
|
1508 |
||
1509 |
self withWaitCursorDo:[ |
|
1510 |
Class packageQuerySignal answer:(selectedProjectDefinition package) |
|
1511 |
do:[ |
|
2659 | 1512 |
newAppClass := ApplicationModel |
1513 |
subclass:newAppName asSymbol |
|
1514 |
instanceVariableNames:'' |
|
1515 |
classVariableNames:'' |
|
1516 |
poolDictionaries:'' |
|
1517 |
category:'Applications'. |
|
2832
c1e7c5d29577
CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents:
2825
diff
changeset
|
1518 |
SmalltalkCodeGeneratorTool createApplicationCodeFor:newAppClass. |
2659 | 1519 |
]. |
2724 | 1520 |
self updateListOfApplicationsInProject. |
1521 |
self selectedApplicationIndexHolder value:(listOfApplicationsInProject value indexOf:newAppClass). |
|
2636 | 1522 |
]. |
2832
c1e7c5d29577
CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents:
2825
diff
changeset
|
1523 |
|
c1e7c5d29577
CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents:
2825
diff
changeset
|
1524 |
"Modified: / 31-01-2011 / 18:29:50 / cg" |
2636 | 1525 |
! |
1526 |
||
2676 | 1527 |
createNewProject |
1528 |
<resource: #uiCallback> |
|
1529 |
||
1530 |
|newProjectID projectDefinitionType projectDefinitionClass projectClasses| |
|
1531 |
||
1532 |
newProjectID := self newProjectsName value. |
|
1533 |
newProjectID isEmptyOrNil ifTrue:[ |
|
2686
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
1534 |
Dialog warn:(resources string:'Please enter a packageID first.'). |
2676 | 1535 |
^ self |
1536 |
]. |
|
1537 |
newProjectID asPackageId isModuleId ifTrue:[ |
|
2686
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
1538 |
Dialog warn:(resources stringWithCRs: |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
1539 |
'Please enter a corrent packageID. |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
1540 |
|
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
1541 |
All packages must be named like "%1:%2" |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
1542 |
(%2 can be a path like "dir/dir/...").' with:(resources string:'module')allItalic |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
1543 |
with:(resources string:'directory')allItalic). |
2676 | 1544 |
^ self |
1545 |
]. |
|
1546 |
||
2709 | 1547 |
self withWaitCursorDo:[ |
2900 | 1548 |
projectDefinitionType := self projectType. "/ ProjectDefinition perform:(self projectTypeHolder value). |
2676 | 1549 |
|
2709 | 1550 |
projectDefinitionClass := ProjectDefinition |
1551 |
definitionClassForPackage:newProjectID |
|
1552 |
projectType: projectDefinitionType |
|
1553 |
createIfAbsent:true. |
|
2676 | 1554 |
|
2709 | 1555 |
projectDefinitionClass compileDescriptionMethods. |
1556 |
self updateListOfMatchingProjects. |
|
1557 |
self updateListOfNewProjectsName. |
|
2676 | 1558 |
|
2709 | 1559 |
self selectedProjectIndexHolder value:( self listOfMatchingProjects value indexOf:projectDefinitionClass). |
2676 | 1560 |
|
2851 | 1561 |
projectClasses := projectDefinitionClass allClasses. |
2676 | 1562 |
|
1563 |
"/ projectDefinitionClass isGUIApplication ifTrue:[ |
|
1564 |
"/ "/ see if it has an AppModel class |
|
2659 | 1565 |
"/ (projectClasses contains:[:cls | cls isVisualStartable]) ifFalse:[ |
1566 |
"/ (Dialog confirm:'Create an Application Class ?') ifTrue:[ |
|
1567 |
"/ self halt. |
|
1568 |
"/ ]. |
|
1569 |
"/ ]. |
|
1570 |
"/ ]. |
|
2636 | 1571 |
|
1572 |
"/ projectDefinitionClass isLibrary ifFalse:[ |
|
1573 |
"/ "/ see if it has a Startup class |
|
1574 |
"/ (projectClasses contains:[:cls | cls isStartable]) ifFalse:[ |
|
1575 |
"/ ]. |
|
1576 |
"/ ]. |
|
2709 | 1577 |
|
1578 |
]. |
|
2851 | 1579 |
|
2900 | 1580 |
"Modified: / 06-08-2012 / 16:55:54 / cg" |
2636 | 1581 |
! |
1582 |
||
2676 | 1583 |
createNewStartupClass |
1584 |
<resource: #uiCallback> |
|
1585 |
||
2696 | 1586 |
|newClassName newStartupClass startupApplication| |
2676 | 1587 |
|
1588 |
newClassName := self newStartupClassName value. |
|
1589 |
newClassName isEmptyOrNil ifTrue:[ |
|
1590 |
Dialog warn:'Please enter the name of the Startup-Class first.'. |
|
1591 |
^ self |
|
1592 |
]. |
|
1593 |
||
2719 | 1594 |
self withWaitCursorDo:[ |
1595 |
|pkg| |
|
1596 |
||
1597 |
pkg := selectedProjectDefinition notNil |
|
1598 |
ifTrue:[selectedProjectDefinition package] |
|
1599 |
ifFalse:[newProjectsName value]. |
|
1600 |
Class packageQuerySignal answer:pkg |
|
2676 | 1601 |
do:[ |
1602 |
newStartupClass := StandaloneStartup |
|
2659 | 1603 |
subclass:newClassName asSymbol |
1604 |
instanceVariableNames:'' |
|
1605 |
classVariableNames:'' |
|
1606 |
poolDictionaries:'' |
|
2696 | 1607 |
category:'Applications'. |
1608 |
||
1609 |
self projectTypeIsGuiApplication ifTrue: [startupApplication := selectedApplication]. |
|
2832
c1e7c5d29577
CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents:
2825
diff
changeset
|
1610 |
SmalltalkCodeGeneratorTool createStartupCodeFor:newStartupClass forStartOf:startupApplication. |
2659 | 1611 |
]. |
2724 | 1612 |
self updateListOfStartupClassesInProject. |
1613 |
self selectedStartupClassIndexHolder value:(listOfStartupClassesInProject value indexOf:newStartupClass). |
|
2659 | 1614 |
]. |
2832
c1e7c5d29577
CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents:
2825
diff
changeset
|
1615 |
|
c1e7c5d29577
CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents:
2825
diff
changeset
|
1616 |
"Modified: / 31-01-2011 / 18:29:47 / cg" |
2659 | 1617 |
! |
1618 |
||
2676 | 1619 |
doAddClassToProject |
1620 |
<resource: #uiCallback> |
|
2636 | 1621 |
|
1622 |
Transcript showCR:self class name, ': action for doAddClassToProject ...'. |
|
1623 |
self halt. |
|
1624 |
! |
|
1625 |
||
2676 | 1626 |
doBrowseApplication |
1627 |
<resource: #uiCallback> |
|
2636 | 1628 |
|
1629 |
|appClass| |
|
1630 |
||
2659 | 1631 |
self hasApplicationSelected ifTrue:[ |
1632 |
appClass := self listOfApplicationsInProject value at:(self selectedApplicationIndexHolder value). |
|
1633 |
UserPreferences systemBrowserClass |
|
2668 | 1634 |
openInClass:appClass class selector:#windowSpec. |
2659 | 1635 |
]. |
2636 | 1636 |
! |
1637 |
||
2906
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1638 |
doBrowseBuildDirectory |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1639 |
<resource: #uiCallback> |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1640 |
|
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1641 |
UserPreferences current fileBrowserClass |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1642 |
openIn:projectBuilder packageBuildDirectory asFilename |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1643 |
"/ projectBuilder packageBuildDirectory asFilename openExplorer |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1644 |
|
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1645 |
"Created: / 20-08-2012 / 17:05:54 / cg" |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1646 |
! |
8057ed7bccd2
added: #doBrowseBuildDirectory
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
1647 |
|
2676 | 1648 |
doBrowseProject |
1649 |
<resource: #uiCallback> |
|
1650 |
||
1651 |
UserPreferences systemBrowserClass openOnPackage:selectedProjectDefinition package. |
|
2636 | 1652 |
! |
1653 |
||
2676 | 1654 |
doBrowseProjectDefinitionClass |
1655 |
<resource: #uiCallback> |
|
1656 |
||
1657 |
|defClass| |
|
1658 |
||
1659 |
self hasProjectSelected ifTrue:[ |
|
1660 |
defClass := self selectedProjectDefinition. |
|
1661 |
UserPreferences systemBrowserClass |
|
2659 | 1662 |
openInClass:defClass class selector:#classNamesAndAttributes. |
1663 |
]. |
|
1664 |
! |
|
1665 |
||
2676 | 1666 |
doBrowseStartupClass |
1667 |
<resource: #uiCallback> |
|
1668 |
||
1669 |
|startupClass| |
|
1670 |
||
1671 |
self hasStartupClassSelected ifTrue:[ |
|
1672 |
startupClass := self listOfStartupClassesInProject value at:(self selectedStartupClassIndexHolder value). |
|
1673 |
UserPreferences systemBrowserClass |
|
1674 |
openInClass:startupClass class selector:#main:. |
|
2659 | 1675 |
]. |
1676 |
! |
|
1677 |
||
2676 | 1678 |
doGenerateProjectContentsDefinition |
1679 |
self generatePackageContentsMethods |
|
1680 |
! |
|
1681 |
||
2872 | 1682 |
doGenerateProjectPrerequisitesDefinition |
1683 |
self generatePackageContentsMethods |
|
1684 |
||
1685 |
"Created: / 19-01-2012 / 15:44:23 / cg" |
|
1686 |
! |
|
1687 |
||
2676 | 1688 |
doLaunchApplication |
1689 |
<resource: #uiCallback> |
|
1690 |
||
1691 |
|appClass| |
|
1692 |
||
1693 |
self hasApplicationSelected ifTrue:[ |
|
1694 |
appClass := self listOfApplicationsInProject value at:(self selectedApplicationIndexHolder value). |
|
1695 |
appClass open. |
|
2659 | 1696 |
]. |
1697 |
! |
|
1698 |
||
2679 | 1699 |
doOpenConsoleTerminal |
1700 |
"/ OperatingSystem |
|
1701 |
"/ executeCommand:'cmd.exe' |
|
1702 |
"/ inDirectory:(projectBuilder packageBuildDirectory) |
|
2724 | 1703 |
OperatingSystem isUNIXlike ifTrue:[ |
1704 |
VT100TerminalView openShellIn:(projectBuilder packageBuildDirectory) |
|
1705 |
] ifFalse:[ |
|
1706 |
OperatingSystem |
|
1707 |
executeCommand:'c:\windows\System32\cmd.exe' |
|
1708 |
inDirectory:(projectBuilder packageBuildDirectory) |
|
1709 |
] |
|
2679 | 1710 |
! |
1711 |
||
2676 | 1712 |
doOpenExplorer |
2899 | 1713 |
projectBuilder packageBuildDirectory asFilename openExplorer |
1714 |
||
1715 |
"Modified: / 21-07-2012 / 12:29:21 / cg" |
|
2676 | 1716 |
! |
1717 |
||
2674 | 1718 |
doStartMakeAll |
2636 | 1719 |
<resource: #uiCallback> |
1720 |
||
1721 |
self stopMakeButtonVisible value:true. |
|
1722 |
self startMakeButtonEnabled value:false. |
|
1723 |
||
2724 | 1724 |
self infoHolder value:'Building (make) - please wait...'. |
2646 | 1725 |
makeOutputWindow clear. |
1726 |
||
2636 | 1727 |
makeProcess := |
1728 |
[ |
|
1729 |
[ |
|
2674 | 1730 |
self runBuildProcess:'all' |
1731 |
] ensure:[ |
|
1732 |
self stopMakeButtonVisible value:false. |
|
1733 |
self startMakeButtonEnabled value:true. |
|
1734 |
makeProcess := nil. |
|
1735 |
self updateButtonEnableState. |
|
2724 | 1736 |
self infoHolder value:''. |
2674 | 1737 |
]. |
1738 |
] newProcess. |
|
1739 |
||
1740 |
makeProcess priority:4. |
|
1741 |
makeProcess priorityRange:(4 to:8). |
|
1742 |
makeProcess resume. |
|
1743 |
! |
|
1744 |
||
2675 | 1745 |
doStartMakeExe |
2674 | 1746 |
<resource: #uiCallback> |
1747 |
||
1748 |
self stopMakeButtonVisible value:true. |
|
1749 |
self startMakeButtonEnabled value:false. |
|
1750 |
||
2724 | 1751 |
self infoHolder value:'Building (make) - please wait...'. |
2674 | 1752 |
makeOutputWindow clear. |
1753 |
||
1754 |
makeProcess := |
|
1755 |
[ |
|
1756 |
[ |
|
1757 |
self runBuildProcess:'exe' |
|
2636 | 1758 |
] ensure:[ |
1759 |
self stopMakeButtonVisible value:false. |
|
1760 |
self startMakeButtonEnabled value:true. |
|
2646 | 1761 |
makeProcess := nil. |
2648 | 1762 |
self updateButtonEnableState. |
2724 | 1763 |
self infoHolder value:''. |
2636 | 1764 |
]. |
1765 |
] newProcess. |
|
1766 |
||
1767 |
makeProcess priority:4. |
|
1768 |
makeProcess priorityRange:(4 to:8). |
|
1769 |
makeProcess resume. |
|
1770 |
! |
|
1771 |
||
2676 | 1772 |
doStopMake |
1773 |
<resource: #uiCallback> |
|
1774 |
||
1775 |
|p| |
|
2646 | 1776 |
|
2676 | 1777 |
(p := makeProcess) notNil ifTrue:[ |
1778 |
makeProcess := nil. |
|
1779 |
p terminate. |
|
1780 |
p waitUntilTerminated. |
|
1781 |
||
1782 |
makeOutputWindow endEntry. |
|
1783 |
makeOutputWindow cr. |
|
1784 |
makeOutputWindow nextPutLine:('Make Cancelled' colorizeAllWith:Color white on:Color red). |
|
1785 |
makeOutputWindow endEntry. |
|
1786 |
]. |
|
2646 | 1787 |
! |
1788 |
||
2676 | 1789 |
projectTypeChanged |
1790 |
<resource: #uiCallback> |
|
1791 |
||
1792 |
self updateListOfMatchingProjects |
|
2636 | 1793 |
! |
1794 |
||
2674 | 1795 |
runBuildProcess:what |
2636 | 1796 |
<resource: #uiCallback> |
1797 |
||
2646 | 1798 |
self assert:makeOutputWindow notNil. |
1799 |
self assert:makeOutputWindow model == self makeOutputHolder. |
|
1800 |
||
1801 |
ActivityNotification handle:[:ex | |
|
1802 |
ex messageText notNil ifTrue:[ |
|
1803 |
makeOutputWindow endEntry. |
|
1804 |
makeOutputWindow cr. |
|
2659 | 1805 |
makeOutputWindow nextPutLine:(ex messageText colorizeAllWith:Color white on:Color blue). |
2646 | 1806 |
makeOutputWindow endEntry. |
2687
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
1807 |
]. |
2646 | 1808 |
ex proceed. |
1809 |
] do:[ |
|
1810 |
projectBuilder := ProjectBuilder new. |
|
1811 |
projectBuilder package:(selectedProjectDefinition package). |
|
2874 | 1812 |
projectBuilder usedCompilerForBuild:(usedCompilerHolder value). |
2674 | 1813 |
what = 'exe' ifTrue:[ |
1814 |
projectBuilder makeExeOnly:true |
|
1815 |
] ifFalse:[ |
|
1816 |
projectBuilder makeExeOnly:false |
|
1817 |
]. |
|
1818 |
||
1819 |
Error handle:[:ex | |
|
1820 |
makeOutputWindow endEntry. |
|
1821 |
makeOutputWindow cr. |
|
2682 | 1822 |
makeOutputWindow nextPutLine:(ex description colorizeAllWith:Color white on:Color red). |
2674 | 1823 |
makeOutputWindow endEntry. |
2682 | 1824 |
ex proceed. |
2674 | 1825 |
] do:[ |
1826 |
projectBuilder buildWithColorizedOutputTo:makeOutputWindow. |
|
1827 |
]. |
|
2646 | 1828 |
]. |
2874 | 1829 |
|
1830 |
"Modified: / 22-01-2012 / 10:51:01 / cg" |
|
2636 | 1831 |
! |
1832 |
||
2676 | 1833 |
selectedApplicationChanged |
1834 |
|idx| |
|
2671 | 1835 |
|
2676 | 1836 |
((idx := self selectedApplicationIndexHolder value) isNil |
1837 |
or:[idx == 0]) ifTrue:[ |
|
1838 |
selectedApplication := nil. |
|
1839 |
] ifFalse:[ |
|
1840 |
selectedApplication := self listOfApplicationsInProject value at:idx. |
|
2636 | 1841 |
]. |
2676 | 1842 |
self hasApplicationSelectedHolder value:(selectedApplication notNil). |
2659 | 1843 |
|
2676 | 1844 |
"/ selectedApplication notNil ifTrue:[ |
1845 |
"/ "/ generate startupClass code |
|
1846 |
"/ CodeGeneratorTool |
|
2656 | 1847 |
"/ compile:(selectedProjectDefinition startupClassName_codeFor:(selectedApplication name)) |
1848 |
"/ forClass:selectedProjectDefinition theMetaclass |
|
1849 |
"/ inCategory:'description - startup'. |
|
1850 |
"/ ]. |
|
2636 | 1851 |
self updateApplicationComment. |
1852 |
self updateButtonEnableState. |
|
1853 |
! |
|
1854 |
||
2676 | 1855 |
selectedProjectChanged |
2694 | 1856 |
|
1857 |
|selectedProjectIndex| |
|
1858 |
||
1859 |
selectedProjectIndex := self selectedProjectIndexHolder value. |
|
1860 |
(selectedProjectIndex ? 0) == 0 ifTrue:[ |
|
2676 | 1861 |
selectedProjectDefinition := nil. |
1862 |
] ifFalse:[ |
|
2694 | 1863 |
selectedProjectDefinition := self listOfMatchingProjects value at:(selectedProjectIndex). |
2676 | 1864 |
]. |
1865 |
self hasProjectSelectedHolder value:(selectedProjectDefinition notNil). |
|
1866 |
||
1867 |
self updateComment. |
|
1868 |
self updateListOfApplicationsInProject. |
|
2636 | 1869 |
self updateButtonEnableState. |
2656 | 1870 |
! |
1871 |
||
2676 | 1872 |
selectedStartupClassChanged |
1873 |
self selectedStartupClassIndexHolder value isNil ifTrue:[ |
|
1874 |
selectedStartupClass := nil. |
|
1875 |
] ifFalse:[ |
|
1876 |
selectedStartupClass := self listOfStartupClassesInProject value at:(self selectedStartupClassIndexHolder value). |
|
2656 | 1877 |
]. |
2659 | 1878 |
self hasStartupClassSelectedHolder value:(selectedStartupClass notNil). |
1879 |
||
2656 | 1880 |
selectedStartupClass notNil ifTrue:[ |
1881 |
"/ generate startupClass code |
|
2832
c1e7c5d29577
CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents:
2825
diff
changeset
|
1882 |
SmalltalkCodeGeneratorTool |
2656 | 1883 |
compile:(selectedProjectDefinition startupClassName_codeFor:(selectedStartupClass name)) |
1884 |
forClass:selectedProjectDefinition theMetaclass |
|
1885 |
inCategory:'description - startup'. |
|
1886 |
]. |
|
1887 |
self updateButtonEnableState. |
|
2832
c1e7c5d29577
CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents:
2825
diff
changeset
|
1888 |
|
c1e7c5d29577
CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents:
2825
diff
changeset
|
1889 |
"Modified: / 31-01-2011 / 18:29:42 / cg" |
2676 | 1890 |
! ! |
2636 | 1891 |
|
2676 | 1892 |
!ProjectBuilderAssistantApplication methodsFor:'aspects'! |
2636 | 1893 |
|
2676 | 1894 |
buildDirectoryHolder |
1895 |
<resource: #uiAspect> |
|
2636 | 1896 |
|
1897 |
|buildDirectory| |
|
1898 |
||
1899 |
buildDirectoryHolder isNil ifTrue:[ |
|
1900 |
buildDirectoryHolder := nil asValue. |
|
1901 |
buildDirectoryHolder onChangeSend:#buildDirectoryChanged to:self. |
|
1902 |
]. |
|
1903 |
buildDirectoryHolder value isEmptyOrNil ifTrue:[ |
|
2686
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
1904 |
buildDirectory := ProjectBuilder previousBuildDirectory. |
2636 | 1905 |
buildDirectory isNil ifTrue:[ |
1906 |
buildDirectory := UserPreferences current buildDirectory. |
|
1907 |
buildDirectory isNil ifTrue:[ |
|
1908 |
buildDirectory := Filename tempDirectory construct:'stx_build'. |
|
1909 |
]. |
|
1910 |
]. |
|
1911 |
buildDirectoryHolder value: buildDirectory. |
|
1912 |
]. |
|
1913 |
^ buildDirectoryHolder. |
|
1914 |
! |
|
1915 |
||
2724 | 1916 |
companyNameHolder |
1917 |
<resource: #uiAspect> |
|
1918 |
||
1919 |
companyNameHolder isNil ifTrue:[ |
|
1920 |
companyNameHolder := 'MyCompany' asValue. |
|
1921 |
]. |
|
1922 |
^ companyNameHolder. |
|
1923 |
! |
|
1924 |
||
1925 |
compilerWarnMessageHolder |
|
1926 |
<resource: #uiAspect> |
|
1927 |
||
1928 |
compilerWarnMessageHolder isNil ifTrue:[ |
|
1929 |
compilerWarnMessageHolder := '' asValue. |
|
1930 |
]. |
|
1931 |
^ compilerWarnMessageHolder. |
|
1932 |
! |
|
1933 |
||
1934 |
compilerWarnMessageVisibleHolder |
|
1935 |
<resource: #uiAspect> |
|
1936 |
||
1937 |
compilerWarnMessageVisibleHolder isNil ifTrue:[ |
|
1938 |
compilerWarnMessageVisibleHolder := false asValue. |
|
1939 |
]. |
|
1940 |
^ compilerWarnMessageVisibleHolder. |
|
1941 |
! |
|
1942 |
||
2676 | 1943 |
hasApplicationSelectedHolder |
1944 |
<resource: #uiAspect> |
|
1945 |
||
1946 |
hasApplicationSelectedHolder isNil ifTrue:[ |
|
2659 | 1947 |
hasApplicationSelectedHolder := nil asValue. |
1948 |
]. |
|
1949 |
^ hasApplicationSelectedHolder. |
|
2636 | 1950 |
! |
1951 |
||
2676 | 1952 |
hasProjectSelectedHolder |
1953 |
<resource: #uiAspect> |
|
1954 |
||
1955 |
hasProjectSelectedHolder isNil ifTrue:[ |
|
2659 | 1956 |
hasProjectSelectedHolder := nil asValue. |
1957 |
]. |
|
1958 |
^ hasProjectSelectedHolder. |
|
2648 | 1959 |
! |
1960 |
||
2676 | 1961 |
hasStartupClassSelectedHolder |
1962 |
<resource: #uiAspect> |
|
1963 |
||
1964 |
hasStartupClassSelectedHolder isNil ifTrue:[ |
|
2659 | 1965 |
hasStartupClassSelectedHolder := nil asValue. |
1966 |
]. |
|
1967 |
^ hasStartupClassSelectedHolder. |
|
2636 | 1968 |
! |
1969 |
||
2676 | 1970 |
hideOtherApplicationClasses |
1971 |
<resource: #uiAspect> |
|
1972 |
||
1973 |
hideOtherApplicationClasses isNil ifTrue:[ |
|
2671 | 1974 |
hideOtherApplicationClasses := true asValue. |
1975 |
hideOtherApplicationClasses onChangeSend:#updateListOfApplicationsInProject to:self. |
|
1976 |
]. |
|
1977 |
^ hideOtherApplicationClasses. |
|
1978 |
! |
|
1979 |
||
2676 | 1980 |
hideOtherStartupClasses |
1981 |
<resource: #uiAspect> |
|
1982 |
||
1983 |
hideOtherStartupClasses isNil ifTrue:[ |
|
1984 |
hideOtherStartupClasses := true asValue. |
|
1985 |
hideOtherStartupClasses onChangeSend:#updateListOfStartupClassesInProject to:self. |
|
2671 | 1986 |
]. |
2676 | 1987 |
^ hideOtherStartupClasses. |
2671 | 1988 |
! |
1989 |
||
2676 | 1990 |
hideSTXProjects |
1991 |
<resource: #uiAspect> |
|
1992 |
||
1993 |
hideSTXProjects isNil ifTrue:[ |
|
1994 |
hideSTXProjects := true asValue. |
|
1995 |
hideSTXProjects onChangeSend:#updateListOfMatchingProjects to:self. |
|
1996 |
]. |
|
1997 |
^ hideSTXProjects. |
|
1998 |
! |
|
1999 |
||
2000 |
listOfApplicationsInProject |
|
2001 |
<resource: #uiAspect> |
|
2002 |
||
2003 |
listOfApplicationsInProject isNil ifTrue:[ |
|
2636 | 2004 |
listOfApplicationsInProject := ValueHolder new. |
2005 |
]. |
|
2006 |
^ listOfApplicationsInProject. |
|
2007 |
! |
|
2008 |
||
2676 | 2009 |
listOfClassesInProject |
2010 |
<resource: #uiAspect> |
|
2011 |
||
2012 |
listOfClassesInProject isNil ifTrue:[ |
|
2636 | 2013 |
listOfClassesInProject := ValueHolder new. |
2014 |
]. |
|
2015 |
^ listOfClassesInProject. |
|
2016 |
! |
|
2017 |
||
2686
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2018 |
listOfMatchingPackageIds |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2019 |
<resource: #uiAspect> |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2020 |
|
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2021 |
listOfMatchingPackageIds isNil ifTrue:[ |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2022 |
listOfMatchingPackageIds := ValueHolder new. |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2023 |
]. |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2024 |
^ listOfMatchingPackageIds. |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2025 |
! |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2026 |
|
2676 | 2027 |
listOfMatchingProjects |
2028 |
<resource: #uiAspect> |
|
2636 | 2029 |
|
2030 |
listOfMatchingProjects isNil ifTrue:[ |
|
2031 |
listOfMatchingProjects := ValueHolder new. |
|
2032 |
]. |
|
2033 |
^ listOfMatchingProjects. |
|
2034 |
! |
|
2035 |
||
2697 | 2036 |
listOfNewProjectsName |
2037 |
||
2038 |
<resource: #uiAspect> |
|
2039 |
||
2040 |
listOfNewProjectsName isNil ifTrue:[ |
|
2041 |
listOfNewProjectsName := ValueHolder new. |
|
2042 |
]. |
|
2043 |
^ listOfNewProjectsName. |
|
2044 |
! |
|
2045 |
||
2681 | 2046 |
listOfPossibleCompilers |
2874 | 2047 |
^ Tools::ProjectBuilder listOfPossibleCompilers |
2048 |
||
2049 |
"Modified: / 21-01-2012 / 14:05:52 / cg" |
|
2681 | 2050 |
! |
2051 |
||
2872 | 2052 |
listOfPrerequisitesInProject |
2053 |
<resource: #uiAspect> |
|
2054 |
||
2055 |
listOfPrerequisitesInProject isNil ifTrue:[ |
|
2056 |
listOfPrerequisitesInProject := ValueHolder new. |
|
2057 |
]. |
|
2058 |
^ listOfPrerequisitesInProject. |
|
2059 |
||
2060 |
"Created: / 19-01-2012 / 15:39:34 / cg" |
|
2061 |
! |
|
2062 |
||
2676 | 2063 |
listOfStartupClassesInProject |
2064 |
<resource: #uiAspect> |
|
2065 |
||
2066 |
listOfStartupClassesInProject isNil ifTrue:[ |
|
2067 |
listOfStartupClassesInProject := ValueHolder new. |
|
2068 |
]. |
|
2069 |
^ listOfStartupClassesInProject. |
|
2070 |
! |
|
2071 |
||
2072 |
makeOutputHolder |
|
2073 |
<resource: #uiAspect> |
|
2636 | 2074 |
|
2075 |
makeOutputHolder isNil ifTrue:[ |
|
2646 | 2076 |
makeOutputHolder := ValueHolder new. |
2636 | 2077 |
]. |
2078 |
^ makeOutputHolder. |
|
2079 |
! |
|
2080 |
||
2910 | 2081 |
nameOfUsedCompilerSuiteHolder |
2082 |
<resource: #uiAspect> |
|
2083 |
||
2084 |
nameOfUsedCompilerSuiteHolder isNil ifTrue:[ |
|
2085 |
nameOfUsedCompilerSuiteHolder := nil asValue. |
|
2086 |
]. |
|
2087 |
^ nameOfUsedCompilerSuiteHolder. |
|
2088 |
||
2089 |
"Created: / 03-09-2012 / 19:32:27 / cg" |
|
2090 |
! |
|
2091 |
||
2676 | 2092 |
newApplicationsName |
2093 |
<resource: #uiAspect> |
|
2094 |
||
2095 |
"automatically generated by UIPainter ..." |
|
2096 |
||
2097 |
"*** the code below creates a default model when invoked." |
|
2098 |
"*** (which may not be the one you wanted)" |
|
2099 |
"*** Please change as required and accept it in the browser." |
|
2100 |
"*** (and replace this comment by something more useful ;-)" |
|
2101 |
||
2102 |
newApplicationsName isNil ifTrue:[ |
|
2103 |
newApplicationsName := ValueHolder new. |
|
2104 |
"/ if your app needs to be notified of changes, uncomment one of the lines below: |
|
2636 | 2105 |
"/ newApplicationsName addDependent:self. |
2106 |
"/ newApplicationsName onChangeSend:#newApplicationsNameChanged to:self. |
|
2107 |
]. |
|
2108 |
^ newApplicationsName. |
|
2109 |
! |
|
2110 |
||
2676 | 2111 |
newProjectsName |
2112 |
<resource: #uiAspect> |
|
2113 |
||
2114 |
newProjectsName isNil ifTrue:[ |
|
2636 | 2115 |
newProjectsName := nil asValue. |
2116 |
]. |
|
2117 |
^ newProjectsName. |
|
2118 |
! |
|
2119 |
||
2705 | 2120 |
newProjectsNameListDoubleClickChannel |
2121 |
"automatically generated by UIPainter ..." |
|
2122 |
||
2123 |
"*** the code below creates a default model when invoked." |
|
2124 |
"*** (which may not be the one you wanted)" |
|
2125 |
"*** Please change as required and accept it in the browser." |
|
2126 |
||
2127 |
|holder| |
|
2128 |
||
2129 |
(holder := builder bindingAt:#newProjectsNameListDoubleClickChannel) isNil ifTrue:[ |
|
2130 |
holder := TriggerValue new. |
|
2131 |
builder aspectAt:#newProjectsNameListDoubleClickChannel put:holder. |
|
2132 |
holder onChangeEvaluate:[ |
|
2133 |
newProjectsNameListExtendedComboBox notNil ifTrue: [ |
|
2134 |
newProjectsNameListExtendedComboBox closeMenu. |
|
2135 |
] |
|
2136 |
] |
|
2137 |
]. |
|
2138 |
^ holder. |
|
2139 |
! |
|
2140 |
||
2676 | 2141 |
newStartupClassName |
2142 |
<resource: #uiAspect> |
|
2143 |
||
2144 |
newStartupClassName isNil ifTrue:[ |
|
2145 |
newStartupClassName := ValueHolder new. |
|
2146 |
]. |
|
2147 |
^ newStartupClassName. |
|
2659 | 2148 |
! |
2149 |
||
2724 | 2150 |
productNameHolder |
2151 |
<resource: #uiAspect> |
|
2152 |
||
2153 |
productNameHolder isNil ifTrue:[ |
|
2154 |
productNameHolder := 'MyProduct' asValue. |
|
2155 |
]. |
|
2156 |
^ productNameHolder. |
|
2157 |
! |
|
2158 |
||
2676 | 2159 |
projectType |
2897 | 2160 |
^ self projectTypeHolder value |
2161 |
||
2162 |
"Modified: / 20-07-2012 / 13:28:46 / cg" |
|
2659 | 2163 |
! |
2164 |
||
2676 | 2165 |
projectType:aProjectTypeSymbol |
2166 |
self assert:(ProjectDefinition projectTypes includes:aProjectTypeSymbol). |
|
2659 | 2167 |
self projectTypeHolder value:aProjectTypeSymbol |
2897 | 2168 |
|
2169 |
"Modified: / 20-07-2012 / 13:28:25 / cg" |
|
2659 | 2170 |
! |
2171 |
||
2676 | 2172 |
projectTypeHolder |
2173 |
<resource: #uiAspect> |
|
2659 | 2174 |
|
2676 | 2175 |
projectTypeHolder isNil ifTrue:[ |
2176 |
projectTypeHolder := RadioButtonGroup new. |
|
2897 | 2177 |
projectTypeHolder value:ProjectDefinition guiApplicationType. |
2659 | 2178 |
]. |
2179 |
^ projectTypeHolder. |
|
2897 | 2180 |
|
2181 |
"Modified: / 20-07-2012 / 13:30:16 / cg" |
|
2636 | 2182 |
! |
2183 |
||
2676 | 2184 |
selectedApplicationIndexHolder |
2185 |
<resource: #uiAspect> |
|
2186 |
||
2187 |
selectedApplicationIndexHolder isNil ifTrue:[ |
|
2636 | 2188 |
selectedApplicationIndexHolder := ValueHolder new. |
2189 |
selectedApplicationIndexHolder onChangeSend:#selectedApplicationChanged to:self. |
|
2190 |
]. |
|
2191 |
^ selectedApplicationIndexHolder. |
|
2192 |
! |
|
2193 |
||
2676 | 2194 |
selectedApplicationsComment |
2195 |
<resource: #uiAspect> |
|
2196 |
||
2197 |
"automatically generated by UIPainter ..." |
|
2636 | 2198 |
|
2199 |
"*** the code below creates a default model when invoked." |
|
2200 |
"*** (which may not be the one you wanted)" |
|
2201 |
"*** Please change as required and accept it in the browser." |
|
2202 |
"*** (and replace this comment by something more useful ;-)" |
|
2203 |
||
2204 |
selectedApplicationsComment isNil ifTrue:[ |
|
2205 |
selectedApplicationsComment := '' asValue. |
|
2206 |
"/ if your app needs to be notified of changes, uncomment one of the lines below: |
|
2207 |
"/ selectedApplicationsComment addDependent:self. |
|
2208 |
"/ selectedApplicationsComment onChangeSend:#selectedApplicationsCommentChanged to:self. |
|
2209 |
]. |
|
2210 |
^ selectedApplicationsComment. |
|
2211 |
! |
|
2212 |
||
2676 | 2213 |
selectedProjectDefinition |
2214 |
<resource: #uiAspect> |
|
2636 | 2215 |
|
2676 | 2216 |
^ selectedProjectDefinition. |
2636 | 2217 |
! |
2218 |
||
2676 | 2219 |
selectedProjectIndexHolder |
2220 |
<resource: #uiAspect> |
|
2636 | 2221 |
|
2222 |
selectedProjectIndexHolder isNil ifTrue:[ |
|
2223 |
selectedProjectIndexHolder := ValueHolder new. |
|
2224 |
selectedProjectIndexHolder onChangeSend:#selectedProjectChanged to:self. |
|
2225 |
]. |
|
2226 |
^ selectedProjectIndexHolder. |
|
2676 | 2227 |
! |
2228 |
||
2229 |
selectedProjectsComment |
|
2230 |
<resource: #uiAspect> |
|
2231 |
||
2232 |
selectedProjectsComment isNil ifTrue:[ |
|
2233 |
selectedProjectsComment := '' asValue. |
|
2234 |
]. |
|
2235 |
^ selectedProjectsComment. |
|
2236 |
! |
|
2237 |
||
2238 |
selectedStartupClassIndexHolder |
|
2239 |
<resource: #uiAspect> |
|
2240 |
||
2241 |
selectedStartupClassIndexHolder isNil ifTrue:[ |
|
2242 |
selectedStartupClassIndexHolder := ValueHolder new. |
|
2243 |
selectedStartupClassIndexHolder onChangeSend:#selectedStartupClassChanged to:self. |
|
2244 |
]. |
|
2245 |
^ selectedStartupClassIndexHolder. |
|
2246 |
! |
|
2247 |
||
2248 |
startMakeButtonEnabled |
|
2249 |
<resource: #uiAspect> |
|
2250 |
||
2251 |
startMakeButtonEnabled isNil ifTrue:[ |
|
2252 |
startMakeButtonEnabled := true asValue. |
|
2253 |
]. |
|
2254 |
^ startMakeButtonEnabled. |
|
2255 |
! |
|
2256 |
||
2257 |
stopMakeButtonVisible |
|
2258 |
<resource: #uiAspect> |
|
2259 |
||
2260 |
stopMakeButtonVisible isNil ifTrue:[ |
|
2261 |
stopMakeButtonVisible := false asValue. |
|
2262 |
]. |
|
2263 |
^ stopMakeButtonVisible. |
|
2681 | 2264 |
! |
2265 |
||
2266 |
usedCompilerHolder |
|
2267 |
<resource: #uiAspect> |
|
2268 |
||
2269 |
usedCompilerHolder isNil ifTrue:[ |
|
2270 |
usedCompilerHolder := ValueHolder new. |
|
2874 | 2271 |
usedCompilerHolder value:(ProjectBuilder defaultUsedCompiler). |
2724 | 2272 |
usedCompilerHolder onChangeSend:#checkCompilerAvailability to:self. |
2681 | 2273 |
]. |
2274 |
^ usedCompilerHolder. |
|
2874 | 2275 |
|
2276 |
"Modified: / 21-01-2012 / 14:07:16 / cg" |
|
2676 | 2277 |
! ! |
2278 |
||
2279 |
!ProjectBuilderAssistantApplication methodsFor:'initialization & release'! |
|
2280 |
||
2687
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
2281 |
fileBrowserInstance |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
2282 |
"setup the embedded fileBrowser (in the last page)" |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
2283 |
|
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
2284 |
|targetDirectory browser| |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
2285 |
|
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
2286 |
targetDirectory := projectBuilder packageBuildDirectory. |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
2287 |
|
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
2288 |
browser := FileBrowserV2 new. |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
2289 |
browser onDirectory:targetDirectory. |
2724 | 2290 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
2291 |
browser filter:'*.exe;*.com'. |
|
2292 |
] ifFalse:[ |
|
2293 |
browser filter:'*'. |
|
2294 |
]. |
|
2687
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
2295 |
^ browser. |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
2296 |
! |
66343568f2b2
changed: #fileBrowserInstance
Claus Gittinger <cg@exept.de>
parents:
2686
diff
changeset
|
2297 |
|
2897 | 2298 |
openOn:aProjectDefinitionClass |
2899 | 2299 |
|type apps startupClass pageToGo| |
2897 | 2300 |
|
2301 |
self allButOpen. |
|
2302 |
aProjectDefinitionClass isLibraryDefinition ifTrue:[ |
|
2303 |
type := ProjectDefinition libraryType |
|
2304 |
] ifFalse:[ |
|
2305 |
aProjectDefinitionClass isGUIApplication ifTrue:[ |
|
2306 |
type := ProjectDefinition guiApplicationType |
|
2307 |
] ifFalse:[ |
|
2308 |
type := ProjectDefinition nonGuiApplicationType |
|
2309 |
] |
|
2310 |
]. |
|
2311 |
self projectTypeHolder value:type. |
|
2312 |
self hideSTXProjects value:false. |
|
2313 |
selectedProjectDefinition := aProjectDefinitionClass. |
|
2314 |
self selectedProjectIndexHolder value:(self listOfMatchingPackageIds value indexOf:aProjectDefinitionClass package). |
|
2315 |
self hasProjectSelectedHolder value:true. |
|
2316 |
||
2899 | 2317 |
pageToGo := 3. |
2897 | 2318 |
type == ProjectDefinition guiApplicationType ifTrue:[ |
2319 |
(startupClass := aProjectDefinitionClass startupClass) notNil ifTrue:[ |
|
2899 | 2320 |
self updateListOfStartupClassesInProject. |
2897 | 2321 |
selectedStartupClass := startupClass. |
2899 | 2322 |
self selectedStartupClassIndexHolder value:(self listOfStartupClassesInProject value indexOf:startupClass). |
2323 |
pageToGo := 5. |
|
2897 | 2324 |
]. |
2325 |
"/ apps := (aProjectDefinitionClass classes select:[:cls | cls isKindOf:ApplicationModel]) |
|
2326 |
]. |
|
2899 | 2327 |
self gotoPage:pageToGo. |
2897 | 2328 |
self openWindow. |
2329 |
||
2330 |
"Created: / 20-07-2012 / 12:34:02 / cg" |
|
2331 |
! |
|
2332 |
||
2333 |
openOnPackage:aPackageId |
|
2334 |
self allButOpen. |
|
2335 |
self projectTypeHolder value:(ProjectDefinition guiApplicationType). |
|
2336 |
self hideSTXProjects value:false. |
|
2337 |
self selectedProjectIndexHolder value:(self listOfMatchingPackageIds indexOf:aPackageId). |
|
2338 |
self hasProjectSelectedHolder value:true. |
|
2339 |
self gotoPage:2. |
|
2340 |
self openWindow. |
|
2341 |
||
2342 |
"Created: / 20-07-2012 / 13:24:38 / cg" |
|
2343 |
! |
|
2344 |
||
2676 | 2345 |
postBuildMakeOutputWindow:aView |
2346 |
makeOutputWindow := aView |
|
2347 |
! |
|
2348 |
||
2705 | 2349 |
postBuildNewProjectsNameListExtendedComboBox:anExtendedComboBox |
2697 | 2350 |
|
2351 |
|menu| |
|
2352 |
||
2353 |
menu := SubCanvas new. |
|
2354 |
menu client:self spec:#newProjectsNameListSpec builder:nil. |
|
2705 | 2355 |
anExtendedComboBox closeOnSelect: false. |
2356 |
anExtendedComboBox menuWidget:menu. |
|
2697 | 2357 |
|
2705 | 2358 |
anExtendedComboBox editor |
2697 | 2359 |
immediateAccept:true; |
2360 |
acceptOnLeave:true; |
|
2361 |
acceptOnLostFocus:true; |
|
2362 |
acceptOnPointerLeave:true; |
|
2363 |
acceptOnReturn:true; |
|
2364 |
acceptOnTab:true. |
|
2705 | 2365 |
|
2366 |
newProjectsNameListExtendedComboBox := anExtendedComboBox. |
|
2697 | 2367 |
! |
2368 |
||
2676 | 2369 |
postBuildWith:aBuilder |
2370 |
super postBuildWith:aBuilder. |
|
2371 |
self updateListOfMatchingProjects. |
|
2697 | 2372 |
self updateListOfNewProjectsName. |
2676 | 2373 |
|
2374 |
Smalltalk addDependent:self. |
|
2375 |
! |
|
2376 |
||
2377 |
release |
|
2378 |
Smalltalk removeDependent:self. |
|
2379 |
super release |
|
2380 |
! ! |
|
2381 |
||
2382 |
!ProjectBuilderAssistantApplication methodsFor:'menu actions'! |
|
2383 |
||
2384 |
openDocumentation |
|
2385 |
self openHTMLDocument:'tools/misc/TOP.html#PACKAGER'. |
|
2659 | 2386 |
! ! |
2387 |
||
2636 | 2388 |
!ProjectBuilderAssistantApplication methodsFor:'private'! |
2389 |
||
2676 | 2390 |
commentFromClass:aClass |
2391 |
|docMethod comment indents minIndent maxLineLength| |
|
2636 | 2392 |
|
2393 |
docMethod := aClass class compiledMethodAt:#documentation. |
|
2394 |
docMethod notNil ifTrue:[ |
|
2395 |
comment := docMethod comment. |
|
2396 |
comment := comment asStringCollection |
|
2397 |
collect:[:line | line withoutTrailingSeparators]. |
|
2398 |
[comment notEmpty and:[comment first isBlank]] whileTrue:[ comment removeFirst ]. |
|
2399 |
maxLineLength := (comment collect:[:line | line size]) max. |
|
2400 |
indents := comment collect:[:line | |
|
2401 |
line isEmptyOrNil |
|
2402 |
ifTrue:[maxLineLength] |
|
2403 |
ifFalse:[ line findFirst:[:ch | ch isSeparator not]]]. |
|
2404 |
(minIndent := indents min) > 1 ifTrue:[ |
|
2405 |
comment := comment collect:[:line | line copyFrom:minIndent]. |
|
2406 |
]. |
|
2407 |
comment := comment asString. |
|
2408 |
]. |
|
2409 |
^ comment |
|
2659 | 2410 |
! |
2411 |
||
2676 | 2412 |
generatePackageContentsMethods |
2413 |
<resource: #uiCallback> |
|
2414 |
||
2415 |
Class packageQuerySignal answer:(selectedProjectDefinition package) |
|
2416 |
do:[ |
|
2417 |
selectedProjectDefinition |
|
2418 |
forEachContentsMethodsCodeToCompileDo:[:code :category | |
|
2832
c1e7c5d29577
CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents:
2825
diff
changeset
|
2419 |
SmalltalkCodeGeneratorTool |
2676 | 2420 |
compile:code |
2421 |
forClass:selectedProjectDefinition theMetaclass |
|
2422 |
inCategory:category. |
|
2423 |
] |
|
2424 |
ignoreOldDefinition:true |
|
2659 | 2425 |
]. |
2676 | 2426 |
self updateListOfClassesInProject |
2832
c1e7c5d29577
CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents:
2825
diff
changeset
|
2427 |
|
c1e7c5d29577
CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents:
2825
diff
changeset
|
2428 |
"Modified: / 31-01-2011 / 18:29:44 / cg" |
2659 | 2429 |
! |
2430 |
||
2676 | 2431 |
hasApplicationSelected |
2432 |
^ self selectedApplicationIndexHolder value notNil |
|
2433 |
! |
|
2434 |
||
2435 |
hasBuildDirectorySpecified |
|
2436 |
^ self buildDirectoryHolder value notEmptyOrNil |
|
2659 | 2437 |
! |
2438 |
||
2676 | 2439 |
hasProjectBuilder |
2440 |
^ projectBuilder notNil |
|
2441 |
! |
|
2442 |
||
2443 |
hasProjectSelected |
|
2444 |
^ self selectedProjectIndexHolder value notNil |
|
2445 |
! |
|
2446 |
||
2447 |
hasStartupClassSelected |
|
2448 |
^ self selectedStartupClassIndexHolder value notNil |
|
2636 | 2449 |
! ! |
2450 |
||
2656 | 2451 |
!ProjectBuilderAssistantApplication methodsFor:'queries'! |
2452 |
||
2676 | 2453 |
canEnterApplicationSelection |
2857 | 2454 |
self hasProjectSelected ifFalse:[ |
2455 |
self infoHolder value:'no project selected'. |
|
2456 |
^ false |
|
2457 |
]. |
|
2458 |
^ true |
|
2459 |
||
2460 |
"Modified: / 23-08-2011 / 12:12:35 / cg" |
|
2656 | 2461 |
! |
2462 |
||
2676 | 2463 |
canEnterBuild |
2857 | 2464 |
self hasBuildDirectorySpecified ifFalse:[ |
2465 |
self infoHolder value:'no build directory specified'. |
|
2466 |
^ false |
|
2467 |
]. |
|
2468 |
^ true |
|
2469 |
||
2470 |
"Modified: / 23-08-2011 / 12:13:29 / cg" |
|
2656 | 2471 |
! |
2472 |
||
2659 | 2473 |
canEnterContentsSelection |
2897 | 2474 |
|prj cls impl mthd| |
2857 | 2475 |
|
2476 |
self hasProjectSelected ifFalse:[ |
|
2477 |
self infoHolder value:'no project selected'. |
|
2478 |
^ false |
|
2479 |
]. |
|
2480 |
"self hasApplicationSelected ifFalse:[^ false]." |
|
2481 |
(self projectTypeIsLibrary or:[self hasStartupClassSelected]) ifFalse:[ |
|
2482 |
self infoHolder value:'must be either library or have a startup class'. |
|
2483 |
^ false |
|
2484 |
]. |
|
2485 |
prj := self selectedProjectDefinition. |
|
2486 |
([prj startupClassName] on:Error do:nil) notNil ifFalse:[ |
|
2487 |
self infoHolder value:'must have a startup class'. |
|
2488 |
^ false |
|
2489 |
]. |
|
2490 |
([prj startupSelector] on:Error do:nil) notNil ifFalse:[ |
|
2491 |
self infoHolder value:'must have a startup selector'. |
|
2492 |
^ false |
|
2493 |
]. |
|
2494 |
(prj class compiledMethodAt:#startupSelector) isNil ifTrue:[ |
|
2495 |
self infoHolder value:('inherited startup selector is "%1"' bindWith:prj startupSelector). |
|
2864
fcdea80a431e
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2863
diff
changeset
|
2496 |
impl := prj class whichClassImplements:#startupSelector. |
2865
2600408a8005
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2864
diff
changeset
|
2497 |
impl isNil ifTrue:[ |
2600408a8005
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2864
diff
changeset
|
2498 |
self infoHolder value:('inherited startup selector (%1) not implemented in %2' |
2600408a8005
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2864
diff
changeset
|
2499 |
bindWith:prj startupSelector |
2600408a8005
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2864
diff
changeset
|
2500 |
with:prj class name). |
2864
fcdea80a431e
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2863
diff
changeset
|
2501 |
^ false |
fcdea80a431e
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2863
diff
changeset
|
2502 |
]. |
2857 | 2503 |
]. |
2897 | 2504 |
(mthd := prj class compiledMethodAt:#startupClassName) package == prj package ifFalse:[ |
2505 |
mthd package == PackageId noProjectID ifFalse:[ |
|
2872 | 2506 |
self infoHolder value:('startup class method (#startupClassName) of %3 must be in package "%1" (is in "%2")' |
2507 |
bindWith:prj package |
|
2508 |
with:(prj class compiledMethodAt:#startupClassName) package |
|
2509 |
with:prj class name). |
|
2510 |
^ false |
|
2511 |
]. |
|
2857 | 2512 |
]. |
2897 | 2513 |
(mthd := prj class compiledMethodAt:#startupSelector) notNil ifTrue:[ |
2514 |
mthd package == prj package ifFalse:[ |
|
2515 |
mthd package == PackageId noProjectID ifFalse:[ |
|
2872 | 2516 |
self infoHolder value:('startup class method (#startupSelector) of %3 must be in package "%1" (is in "%2")' |
2517 |
bindWith:prj package |
|
2897 | 2518 |
with:mthd package |
2872 | 2519 |
with:prj class name). |
2520 |
^ false |
|
2521 |
] |
|
2857 | 2522 |
]. |
2523 |
]. |
|
2864
fcdea80a431e
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2863
diff
changeset
|
2524 |
cls := Smalltalk classNamed:prj startupClassName. |
fcdea80a431e
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2863
diff
changeset
|
2525 |
cls isNil ifTrue:[ |
fcdea80a431e
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2863
diff
changeset
|
2526 |
self infoHolder value:('startup class "%1" does not exist' bindWith:prj startupClassName). |
fcdea80a431e
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2863
diff
changeset
|
2527 |
^ false. |
fcdea80a431e
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2863
diff
changeset
|
2528 |
]. |
fcdea80a431e
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2863
diff
changeset
|
2529 |
(cls implements:(prj startupSelector)) ifFalse:[ |
2865
2600408a8005
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2864
diff
changeset
|
2530 |
(cls respondsTo:(prj startupSelector)) ifFalse:[ |
2600408a8005
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2864
diff
changeset
|
2531 |
self infoHolder value:('startup class "%1" does not implement startup selector "%2"' |
2600408a8005
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2864
diff
changeset
|
2532 |
bindWith:cls name |
2600408a8005
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2864
diff
changeset
|
2533 |
with:prj startupSelector). |
2600408a8005
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2864
diff
changeset
|
2534 |
^ false |
2600408a8005
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2864
diff
changeset
|
2535 |
]. |
2864
fcdea80a431e
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2863
diff
changeset
|
2536 |
]. |
2857 | 2537 |
^ true. |
2538 |
||
2897 | 2539 |
"Modified: / 20-07-2012 / 19:21:34 / cg" |
2659 | 2540 |
! |
2541 |
||
2676 | 2542 |
canEnterDeploy |
2857 | 2543 |
self hasProjectBuilder ifFalse:[ |
2544 |
self infoHolder value:'no project builder specified'. |
|
2545 |
^ false |
|
2546 |
]. |
|
2547 |
^ true |
|
2548 |
||
2549 |
"Modified: / 23-08-2011 / 12:13:23 / cg" |
|
2656 | 2550 |
! |
2551 |
||
2872 | 2552 |
canEnterPrerequisitesSelection |
2553 |
|prj cls impl| |
|
2554 |
||
2555 |
self hasProjectSelected ifFalse:[ |
|
2556 |
self infoHolder value:'no project selected'. |
|
2557 |
^ false |
|
2558 |
]. |
|
2559 |
^ true. |
|
2560 |
||
2561 |
"Created: / 19-01-2012 / 15:37:30 / cg" |
|
2562 |
! |
|
2563 |
||
2676 | 2564 |
canEnterStartupClassSelection |
2857 | 2565 |
self hasProjectSelected ifFalse:[ |
2566 |
self infoHolder value:'no project selected'. |
|
2567 |
^ false |
|
2568 |
]. |
|
2676 | 2569 |
^ self hasProjectSelected "and:[ self hasApplicationSelected ]" |
2857 | 2570 |
|
2571 |
"Modified: / 23-08-2011 / 12:16:35 / cg" |
|
2696 | 2572 |
! |
2573 |
||
2724 | 2574 |
isUnixOS |
2575 |
^ OperatingSystem isUNIXlike |
|
2576 |
! |
|
2577 |
||
2720 | 2578 |
isWindowsOS |
2579 |
^ OperatingSystem isMSWINDOWSlike |
|
2580 |
! |
|
2581 |
||
2696 | 2582 |
projectTypeIsGuiApplication |
2897 | 2583 |
^ self projectTypeHolder value == ProjectDefinition guiApplicationType |
2584 |
||
2585 |
"Modified: / 20-07-2012 / 13:29:59 / cg" |
|
2696 | 2586 |
! |
2587 |
||
2588 |
projectTypeIsLibrary |
|
2897 | 2589 |
^ self projectTypeHolder value == ProjectDefinition libraryType |
2590 |
||
2591 |
"Modified: / 20-07-2012 / 13:29:24 / cg" |
|
2696 | 2592 |
! |
2593 |
||
2594 |
projectTypeIsNotLibrary |
|
2595 |
^ self projectTypeIsLibrary not |
|
2656 | 2596 |
! ! |
2597 |
||
2636 | 2598 |
!ProjectBuilderAssistantApplication methodsFor:'specs'! |
2599 |
||
2676 | 2600 |
assistantSpec |
2703 | 2601 |
^ self class assistantSpec |
2676 | 2602 |
! ! |
2603 |
||
2604 |
!ProjectBuilderAssistantApplication methodsFor:'update'! |
|
2605 |
||
2724 | 2606 |
checkCompilerAvailability |
2607 |
|cmd suite warnMsg1 warnMsg2 sep| |
|
2608 |
||
2609 |
cmd := 'cc'. |
|
2610 |
warnMsg1 := warnMsg2 := ''. |
|
2611 |
||
2612 |
self usedCompilerHolder value = 'bcc' ifTrue:[ |
|
2613 |
cmd := 'bcc32'. |
|
2614 |
]. |
|
2615 |
self usedCompilerHolder value = 'vc' ifTrue:[ |
|
2616 |
cmd := 'cl'. |
|
2617 |
warnMsg2 := 'Due to bugs in this C-compiler, some classes may not be compilable.'. |
|
2618 |
]. |
|
2619 |
self usedCompilerHolder value = 'lcc' ifTrue:[ |
|
2620 |
cmd := 'lcc'. |
|
2621 |
warnMsg2 := 'The LCC C-compiler suite is not yet supported (linkage).'. |
|
2622 |
]. |
|
2910 | 2623 |
self usedCompilerHolder value = 'tcc' ifTrue:[ |
2624 |
cmd := 'tcc'. |
|
2625 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
|
2626 |
warnMsg2 := 'The Tiny C-compiler suite is not yet supported on MSDOS systems.'. |
|
2627 |
]. |
|
2628 |
]. |
|
2724 | 2629 |
self usedCompilerHolder value = 'gcc' ifTrue:[ |
2630 |
cmd := 'gcc'. |
|
2631 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
|
2632 |
warnMsg2 := 'The GNU C-compiler suite is not yet supported on MSDOS systems.'. |
|
2633 |
]. |
|
2634 |
]. |
|
2910 | 2635 |
suite := self suiteNameOfCompiler:(self usedCompilerHolder value). |
2636 |
self nameOfUsedCompilerSuiteHolder value:suite. |
|
2724 | 2637 |
|
2638 |
(OperatingSystem canExecuteCommand:cmd) ifFalse:[ |
|
2639 |
warnMsg1 := |
|
2640 |
'The "%1"-command seems to be not in your path. |
|
2641 |
Please ensure that you installed the |
|
2910 | 2642 |
"%2" compiler suite correctly. |
2643 |
(However, the makefiles might know where to find the compiler)' bindWith:cmd with:suite. |
|
2724 | 2644 |
]. |
2645 |
||
2646 |
(warnMsg1 notEmpty or:[warnMsg2 notEmpty]) ifTrue:[ |
|
2647 |
sep := ''. |
|
2648 |
(warnMsg2 notEmpty) ifTrue:[ sep := '\\' withCRs ]. |
|
2649 |
||
2650 |
self compilerWarnMessageHolder value:('Warning: |
|
2651 |
||
2652 |
',warnMsg1,sep,warnMsg2). |
|
2653 |
self compilerWarnMessageVisibleHolder value:true. |
|
2654 |
] ifFalse:[ |
|
2655 |
self compilerWarnMessageVisibleHolder value:false |
|
2656 |
]. |
|
2910 | 2657 |
|
2658 |
"Modified: / 03-09-2012 / 19:32:09 / cg" |
|
2724 | 2659 |
! |
2660 |
||
2686
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2661 |
enterContentsSpecification |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2662 |
|toAdd| |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2663 |
|
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2664 |
self updateListOfClassesInProject. |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2665 |
|
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2666 |
toAdd := OrderedCollection new. |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2667 |
|
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2668 |
"/ ensure that startup & app-class are in the list |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2669 |
selectedApplication notNil ifTrue:[ |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2670 |
(selectedProjectDefinition classNames includes:selectedApplication name) ifFalse:[ |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2671 |
toAdd add:selectedApplication. |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2672 |
]. |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2673 |
]. |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2674 |
selectedStartupClass notNil ifTrue:[ |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2675 |
(selectedProjectDefinition classNames includes:selectedStartupClass name) ifFalse:[ |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2676 |
toAdd add:selectedStartupClass. |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2677 |
]. |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2678 |
]. |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2679 |
|
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2680 |
selectedProjectDefinition includeClasses:toAdd usingCompiler:nil. |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2681 |
|
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2682 |
self updateListOfClassesInProject. |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2683 |
! |
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2684 |
|
2872 | 2685 |
enterPrerequisitesSpecification |
2686 |
|toAdd| |
|
2687 |
||
2688 |
self updateListOfPrerequisitesInProject. |
|
2689 |
||
2690 |
"/ toAdd := OrderedCollection new. |
|
2691 |
"/ |
|
2692 |
"/ "/ ensure that startup & app-class are in the list |
|
2693 |
"/ selectedApplication notNil ifTrue:[ |
|
2694 |
"/ (selectedProjectDefinition classNames includes:selectedApplication name) ifFalse:[ |
|
2695 |
"/ toAdd add:selectedApplication. |
|
2696 |
"/ ]. |
|
2697 |
"/ ]. |
|
2698 |
"/ selectedStartupClass notNil ifTrue:[ |
|
2699 |
"/ (selectedProjectDefinition classNames includes:selectedStartupClass name) ifFalse:[ |
|
2700 |
"/ toAdd add:selectedStartupClass. |
|
2701 |
"/ ]. |
|
2702 |
"/ ]. |
|
2703 |
"/ |
|
2704 |
"/ selectedProjectDefinition includeClasses:toAdd usingCompiler:nil. |
|
2705 |
"/ |
|
2706 |
"/ self updateListOfClassesInProject. |
|
2707 |
||
2708 |
"Created: / 19-01-2012 / 15:36:47 / cg" |
|
2709 |
! |
|
2710 |
||
2676 | 2711 |
rememberMakeOutputsContents |
2712 |
makeOutputHolder value:(makeOutputWindow contents) |
|
2713 |
! |
|
2714 |
||
2724 | 2715 |
rememberProjectAttributes |
2716 |
self assert:selectedProjectDefinition notNil. |
|
2717 |
Class withoutUpdatingChangesDo:[ |
|
2718 |
self productNameHolder value ~= selectedProjectDefinition productName ifTrue:[ |
|
2719 |
selectedProjectDefinition class compile:(selectedProjectDefinition |
|
2720 |
productName_codeFor:(self productNameHolder value)). |
|
2721 |
]. |
|
2722 |
self companyNameHolder value ~= selectedProjectDefinition companyName ifTrue:[ |
|
2723 |
selectedProjectDefinition class compile:(selectedProjectDefinition |
|
2724 |
companyName_codeFor:(self companyNameHolder value)). |
|
2725 |
] |
|
2726 |
]. |
|
2727 |
! |
|
2728 |
||
2676 | 2729 |
restoreMakeOutputsContents |
2730 |
makeOutputWindow contents:makeOutputHolder value |
|
2646 | 2731 |
! |
2732 |
||
2910 | 2733 |
suiteNameOfCompiler:usedCompiler |
2734 |
usedCompiler = 'bcc' ifTrue:[ |
|
2735 |
^ 'Borland C-Compiler'. |
|
2736 |
]. |
|
2737 |
usedCompiler = 'vc' ifTrue:[ |
|
2738 |
^ 'Microsoft Visual C C-Compiler'. |
|
2739 |
]. |
|
2740 |
usedCompiler = 'lcc' ifTrue:[ |
|
2741 |
^ 'LCC C-Compiler'. |
|
2742 |
]. |
|
2743 |
usedCompiler = 'tcc' ifTrue:[ |
|
2744 |
^ 'Tiny C-Compiler'. |
|
2745 |
]. |
|
2746 |
usedCompiler = 'gcc' ifTrue:[ |
|
2747 |
^ 'GNU C-Compiler'. |
|
2748 |
]. |
|
2749 |
||
2750 |
^ 'C-Compiler'. |
|
2751 |
||
2752 |
"Created: / 03-09-2012 / 19:28:41 / cg" |
|
2753 |
! |
|
2754 |
||
2676 | 2755 |
update:something with:anArgument from:changedObject |
2756 |
changedObject == Smalltalk ifTrue:[ |
|
2757 |
(something == #newClass |
|
2758 |
or:[something == #classRemove |
|
2759 |
or:[something == #projectOrganization]]) ifTrue:[ |
|
2760 |
self updateListOfMatchingProjects. |
|
2697 | 2761 |
self updateListOfNewProjectsName. |
2676 | 2762 |
^ self. |
2763 |
]. |
|
2764 |
^ self. |
|
2765 |
]. |
|
2766 |
super update:something with:anArgument from:changedObject |
|
2636 | 2767 |
! |
2768 |
||
2676 | 2769 |
updateApplicationComment |
2770 |
|comment| |
|
2636 | 2771 |
|
2676 | 2772 |
self selectedApplicationIndexHolder value notNil ifTrue:[ |
2773 |
comment := self commentFromClass:selectedApplication. |
|
2774 |
comment isNil ifTrue:[ |
|
2775 |
comment := 'Application has no comment' allItalic colorizeAllWith:Color lightGrey. |
|
2776 |
]. |
|
2777 |
] ifFalse:[ |
|
2778 |
comment := 'Please select an Application' allItalic colorizeAllWith:Color lightGrey. |
|
2779 |
]. |
|
2780 |
self selectedApplicationsComment value:comment. |
|
2636 | 2781 |
! |
2782 |
||
2676 | 2783 |
updateComment |
2784 |
|comment| |
|
2636 | 2785 |
|
2676 | 2786 |
self selectedProjectIndexHolder value notNil ifTrue:[ |
2787 |
comment := self commentFromClass:selectedProjectDefinition. |
|
2788 |
comment isNil ifTrue:[ |
|
2789 |
comment := 'Project has no comment' allItalic colorizeAllWith:Color lightGrey. |
|
2790 |
]. |
|
2791 |
] ifFalse:[ |
|
2792 |
comment := 'Please select a Project' allItalic colorizeAllWith:Color lightGrey. |
|
2793 |
]. |
|
2794 |
self selectedProjectsComment value:comment. |
|
2636 | 2795 |
! |
2796 |
||
2676 | 2797 |
updateListOfApplicationsInProject |
2798 |
|oldList applicationClasses package appClass appClassIndex| |
|
2636 | 2799 |
|
2649 | 2800 |
appClassIndex := nil. |
2801 |
||
2636 | 2802 |
selectedProjectDefinition isNil ifTrue:[ |
2803 |
applicationClasses := #() |
|
2804 |
] ifFalse:[ |
|
2805 |
package := selectedProjectDefinition package. |
|
2806 |
||
2807 |
applicationClasses := Smalltalk allClasses |
|
2808 |
select:[:cls | |
|
2671 | 2809 |
((cls isSubclassOf:ApplicationModel) |
2810 |
and:[ self hideOtherApplicationClasses value not |
|
2811 |
or:[ cls package = package ]]) |
|
2636 | 2812 |
]. |
2813 |
applicationClasses := applicationClasses asOrderedCollection. |
|
2814 |
applicationClasses sort:[:a :b | a name < b name]. |
|
2649 | 2815 |
|
2668 | 2816 |
"/ startUpClassName := [ selectedProjectDefinition startupClassName ] ifError:[ nil ]. |
2817 |
"/ startUpClassName notNil ifTrue:[ |
|
2818 |
"/ startUpClass := Smalltalk classNamed:startUpClassName. |
|
2819 |
"/ startUpClass notNil ifTrue:[ |
|
2820 |
"/ appClassIndex := applicationClasses indexOf:startUpClass. |
|
2821 |
"/ appClassIndex == 0 ifTrue:[ appClassIndex := nil ]. |
|
2822 |
"/ ]. |
|
2823 |
"/ ]. |
|
2636 | 2824 |
]. |
2649 | 2825 |
|
2668 | 2826 |
oldList := self listOfApplicationsInProject value. |
2827 |
oldList = applicationClasses ifFalse:[ |
|
2828 |
appClass := selectedApplication. |
|
2829 |
appClassIndex := applicationClasses indexOf:appClass. |
|
2830 |
appClassIndex == 0 ifTrue:[ appClassIndex := nil ]. |
|
2831 |
||
2832 |
self listOfApplicationsInProject value:applicationClasses. |
|
2833 |
self selectedApplicationIndexHolder value:appClassIndex. |
|
2834 |
]. |
|
2636 | 2835 |
! |
2836 |
||
2676 | 2837 |
updateListOfClassesInProject |
2838 |
self listOfClassesInProject value:(selectedProjectDefinition classNames). |
|
2839 |
! |
|
2636 | 2840 |
|
2676 | 2841 |
updateListOfMatchingProjects |
2719 | 2842 |
|query matching projectType idx| |
2676 | 2843 |
|
2844 |
projectType := self projectType. |
|
2863
eb998d836550
changed: #updateListOfMatchingProjects
Claus Gittinger <cg@exept.de>
parents:
2857
diff
changeset
|
2845 |
projectType = ProjectDefinition libraryType ifTrue:[ |
2719 | 2846 |
query := #isLibraryDefinition |
2847 |
] ifFalse:[ |
|
2863
eb998d836550
changed: #updateListOfMatchingProjects
Claus Gittinger <cg@exept.de>
parents:
2857
diff
changeset
|
2848 |
projectType = ProjectDefinition guiApplicationType ifTrue:[ |
2719 | 2849 |
query := #isGUIApplication |
2850 |
] ifFalse:[ |
|
2863
eb998d836550
changed: #updateListOfMatchingProjects
Claus Gittinger <cg@exept.de>
parents:
2857
diff
changeset
|
2851 |
projectType = ProjectDefinition nonGuiApplicationType ifTrue:[ |
2719 | 2852 |
query := #isConsoleApplication |
2853 |
] ifFalse:[ |
|
2897 | 2854 |
self halt:'oops'. |
2855 |
projectType := ProjectDefinition guiApplicationType. |
|
2719 | 2856 |
]. |
2857 |
]. |
|
2858 |
]. |
|
2859 |
||
2860 |
Class flushSubclassInfo. |
|
2861 |
||
2676 | 2862 |
matching := ProjectDefinition allSubclasses |
2863 |
select:[:defClass | |
|
2864 |
|match| |
|
2636 | 2865 |
|
2676 | 2866 |
match := false. |
2863
eb998d836550
changed: #updateListOfMatchingProjects
Claus Gittinger <cg@exept.de>
parents:
2857
diff
changeset
|
2867 |
|
2676 | 2868 |
defClass isAbstract ifFalse:[ |
2869 |
(self hideSTXProjects value not |
|
2870 |
or:[ defClass package asPackageId module ~= 'stx' ]) |
|
2871 |
ifTrue:[ |
|
2719 | 2872 |
match := defClass perform:query |
2676 | 2873 |
]. |
2874 |
]. |
|
2863
eb998d836550
changed: #updateListOfMatchingProjects
Claus Gittinger <cg@exept.de>
parents:
2857
diff
changeset
|
2875 |
match |
eb998d836550
changed: #updateListOfMatchingProjects
Claus Gittinger <cg@exept.de>
parents:
2857
diff
changeset
|
2876 |
]. |
2719 | 2877 |
|
2676 | 2878 |
matching sort:[:a :b | a name < b name]. |
2879 |
self listOfMatchingProjects value:matching. |
|
2686
5a19c21dada0
ensure starup and application are in the classList of the projectDef
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
2880 |
self listOfMatchingPackageIds value:(matching collect:[:def | def package]). |
2636 | 2881 |
|
2676 | 2882 |
idx := matching indexOf:selectedProjectDefinition. |
2883 |
idx == 0 ifTrue:[ |
|
2884 |
self selectedProjectIndexHolder value:nil. |
|
2885 |
] ifFalse:[ |
|
2886 |
self selectedProjectIndexHolder value:idx. |
|
2636 | 2887 |
]. |
2863
eb998d836550
changed: #updateListOfMatchingProjects
Claus Gittinger <cg@exept.de>
parents:
2857
diff
changeset
|
2888 |
|
2897 | 2889 |
"Modified: / 20-07-2012 / 15:04:15 / cg" |
2659 | 2890 |
! |
2891 |
||
2907
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
2892 |
updateListOfMatchingProjectsAndProjectIDs |
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
2893 |
self updateListOfMatchingProjects. |
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
2894 |
self updateListOfNewProjectsName. |
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
2895 |
|
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
2896 |
"Created: / 20-08-2012 / 19:33:12 / cg" |
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
2897 |
! |
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
2898 |
|
2697 | 2899 |
updateListOfNewProjectsName |
2900 |
|loadedProjectIDsWithoutProjectDefinition| |
|
2901 |
||
2902 |
loadedProjectIDsWithoutProjectDefinition := Smalltalk allLoadedProjectIDs |
|
2903 |
select:[:eachProjectID | |
|
2904 |
eachProjectID ~= PackageId noProjectID |
|
2905 |
and:[ (ProjectDefinition definitionClassForPackage: eachProjectID) isNil ]. |
|
2906 |
]. |
|
2907
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
2907 |
loadedProjectIDsWithoutProjectDefinition := loadedProjectIDsWithoutProjectDefinition asOrderedCollection. |
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
2908 |
loadedProjectIDsWithoutProjectDefinition addFirst:(OperatingSystem getLoginName,':','demos','/','demo1'). |
2697 | 2909 |
self listOfNewProjectsName value:loadedProjectIDsWithoutProjectDefinition. |
2907
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
2910 |
|
c842e3e6f526
added: #updateListOfMatchingProjectsAndProjectIDs
Claus Gittinger <cg@exept.de>
parents:
2906
diff
changeset
|
2911 |
"Modified: / 20-08-2012 / 19:31:35 / cg" |
2697 | 2912 |
! |
2913 |
||
2872 | 2914 |
updateListOfPrerequisitesInProject |
2915 |
self listOfPrerequisitesInProject value:(selectedProjectDefinition preRequisites). |
|
2916 |
||
2917 |
"Created: / 19-01-2012 / 15:39:15 / cg" |
|
2918 |
! |
|
2919 |
||
2659 | 2920 |
updateListOfStartupClassesInProject |
2921 |
|startupClasses package startUpClassName startUpClass startupClassIndex| |
|
2922 |
||
2923 |
startupClassIndex := nil. |
|
2924 |
self selectedStartupClassIndexHolder value:nil. |
|
2925 |
||
2926 |
selectedProjectDefinition isNil ifTrue:[ |
|
2927 |
startupClasses := #() |
|
2928 |
] ifFalse:[ |
|
2929 |
package := selectedProjectDefinition package. |
|
2930 |
||
2931 |
startupClasses := Smalltalk allClasses |
|
2932 |
select:[:cls | |
|
2671 | 2933 |
((cls includesBehavior:StandaloneStartup) |
2934 |
and:[ self hideOtherStartupClasses value not |
|
2935 |
or:[ cls package = package ]]) |
|
2674 | 2936 |
or:[ cls == Smalltalk |
2937 |
and:[ self hideOtherStartupClasses value not ] ] |
|
2659 | 2938 |
]. |
2939 |
startupClasses := startupClasses asOrderedCollection. |
|
2940 |
startupClasses sort:[:a :b | a name < b name]. |
|
2941 |
||
2942 |
startUpClassName := [ selectedProjectDefinition startupClassName ] ifError:[ nil ]. |
|
2943 |
startUpClassName notNil ifTrue:[ |
|
2944 |
startUpClass := Smalltalk classNamed:startUpClassName. |
|
2945 |
startUpClass notNil ifTrue:[ |
|
2946 |
startupClassIndex := startupClasses indexOf:startUpClass. |
|
2947 |
startupClassIndex == 0 ifTrue:[ startupClassIndex := nil ]. |
|
2948 |
]. |
|
2949 |
]. |
|
2950 |
]. |
|
2674 | 2951 |
|
2659 | 2952 |
self listOfStartupClassesInProject value:startupClasses. |
2953 |
self selectedStartupClassIndexHolder value:startupClassIndex. |
|
2724 | 2954 |
! |
2955 |
||
2956 |
updateProjectAttributes |
|
2957 |
self assert:selectedProjectDefinition notNil. |
|
2958 |
self productNameHolder value:(selectedProjectDefinition productName). |
|
2959 |
self companyNameHolder value:(selectedProjectDefinition companyName). |
|
2636 | 2960 |
! ! |
2961 |
||
2962 |
!ProjectBuilderAssistantApplication class methodsFor:'documentation'! |
|
2963 |
||
2864
fcdea80a431e
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2863
diff
changeset
|
2964 |
version |
fcdea80a431e
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2863
diff
changeset
|
2965 |
^ '$Header$' |
fcdea80a431e
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2863
diff
changeset
|
2966 |
! |
fcdea80a431e
changed: #canEnterContentsSelection
Claus Gittinger <cg@exept.de>
parents:
2863
diff
changeset
|
2967 |
|
2636 | 2968 |
version_CVS |
2969 |
^ '$Header$' |
|
2970 |
! ! |