--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/StandaloneStartupHeadless.st Fri Apr 01 13:53:55 2016 +0200
@@ -0,0 +1,86 @@
+"
+ COPYRIGHT (c) 2016 by eXept Software AG
+ All Rights Reserved
+
+ This software is furnished under a license and may be used
+ only in accordance with the terms of that license and with the
+ inclusion of the above copyright notice. This software may not
+ be provided or otherwise made available to, or used by, any
+ other person. No title to or ownership of the software is
+ hereby transferred.
+"
+"{ Package: 'stx:libbasic' }"
+
+"{ NameSpace: Smalltalk }"
+
+StandaloneStartup subclass:#StandaloneStartupHeadless
+ instanceVariableNames:''
+ classVariableNames:''
+ poolDictionaries:''
+ category:'System-Support'
+!
+
+!StandaloneStartupHeadless class methodsFor:'documentation'!
+
+copyright
+"
+ COPYRIGHT (c) 2016 by eXept Software AG
+ All Rights Reserved
+
+ This software is furnished under a license and may be used
+ only in accordance with the terms of that license and with the
+ inclusion of the above copyright notice. This software may not
+ be provided or otherwise made available to, or used by, any
+ other person. No title to or ownership of the software is
+ hereby transferred.
+"
+!
+
+documentation
+"
+ When smalltalk is started as IDE (stx), the show starts in Smalltalk>>start.
+ In contrast, when a standAlone app is linked,
+ the show starts in the startup class's start method.
+
+ This class is a subclassable template class for a standalone headless-application's startup.
+ For your own stand alone programs, define a subclass of this,
+ and redefine the #main: method there.
+ (of course, the other methods can also be redefined.)
+
+ [author:]
+ Claus Gittinger
+
+ [start with:]
+ <yourNamehere>Startup start
+
+ [see also:]
+ Smalltalk
+ GetOpt
+ ReadEvalPrintLoop
+ StandaloneStartup
+"
+! !
+
+!StandaloneStartupHeadless class methodsFor:'queries'!
+
+isAbstract
+ ^ self == StandaloneStartupHeadless
+!
+
+isHeadless
+ "this is invoked early by Smalltalk>>mainStartup, to ask if I like to
+ have a Display or if I am a non-GUI headless application"
+
+ ^ true
+! !
+
+!StandaloneStartupHeadless class methodsFor:'documentation'!
+
+version
+ ^ '$Header$'
+!
+
+version_CVS
+ ^ '$Header$'
+! !
+