19519
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2016 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 |
"
|
|
12 |
"{ Package: 'stx:libbasic' }"
|
|
13 |
|
|
14 |
"{ NameSpace: Smalltalk }"
|
|
15 |
|
|
16 |
StandaloneStartup subclass:#StandaloneStartupHeadless
|
|
17 |
instanceVariableNames:''
|
|
18 |
classVariableNames:''
|
|
19 |
poolDictionaries:''
|
|
20 |
category:'System-Support'
|
|
21 |
!
|
|
22 |
|
|
23 |
!StandaloneStartupHeadless class methodsFor:'documentation'!
|
|
24 |
|
|
25 |
copyright
|
|
26 |
"
|
|
27 |
COPYRIGHT (c) 2016 by eXept Software AG
|
|
28 |
All Rights Reserved
|
|
29 |
|
|
30 |
This software is furnished under a license and may be used
|
|
31 |
only in accordance with the terms of that license and with the
|
|
32 |
inclusion of the above copyright notice. This software may not
|
|
33 |
be provided or otherwise made available to, or used by, any
|
|
34 |
other person. No title to or ownership of the software is
|
|
35 |
hereby transferred.
|
|
36 |
"
|
|
37 |
!
|
|
38 |
|
|
39 |
documentation
|
|
40 |
"
|
|
41 |
When smalltalk is started as IDE (stx), the show starts in Smalltalk>>start.
|
|
42 |
In contrast, when a standAlone app is linked,
|
|
43 |
the show starts in the startup class's start method.
|
|
44 |
|
20671
|
45 |
This class is an abstract, subclassable template for a standalone headless-application's startup.
|
19519
|
46 |
For your own stand alone programs, define a subclass of this,
|
|
47 |
and redefine the #main: method there.
|
|
48 |
(of course, the other methods can also be redefined.)
|
|
49 |
|
|
50 |
[author:]
|
|
51 |
Claus Gittinger
|
|
52 |
|
|
53 |
[start with:]
|
|
54 |
<yourNamehere>Startup start
|
|
55 |
|
|
56 |
[see also:]
|
|
57 |
Smalltalk
|
|
58 |
GetOpt
|
|
59 |
ReadEvalPrintLoop
|
|
60 |
StandaloneStartup
|
|
61 |
"
|
|
62 |
! !
|
|
63 |
|
|
64 |
!StandaloneStartupHeadless class methodsFor:'queries'!
|
|
65 |
|
|
66 |
isAbstract
|
|
67 |
^ self == StandaloneStartupHeadless
|
|
68 |
!
|
|
69 |
|
|
70 |
isHeadless
|
|
71 |
"this is invoked early by Smalltalk>>mainStartup, to ask if I like to
|
|
72 |
have a Display or if I am a non-GUI headless application"
|
|
73 |
|
|
74 |
^ true
|
|
75 |
! !
|
|
76 |
|
|
77 |
!StandaloneStartupHeadless class methodsFor:'documentation'!
|
|
78 |
|
|
79 |
version
|
|
80 |
^ '$Header$'
|
|
81 |
!
|
|
82 |
|
|
83 |
version_CVS
|
|
84 |
^ '$Header$'
|
|
85 |
! !
|
|
86 |
|