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