startup/stx_libjava_startup.st
author Claus Gittinger <cg@exept.de>
Thu, 24 Nov 2011 12:54:24 +0100
changeset 2290 cd61fd0b66ac
parent 2152 1cbdfbcc685c
child 2353 fa7400d022a0
permissions -rw-r--r--
fixed: #version_SVN ($ to ยง)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     1
"{ Package: 'stx:libjava/startup' }"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     3
ApplicationDefinition subclass:#stx_libjava_startup
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     4
	instanceVariableNames:''
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     5
	classVariableNames:''
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     6
	poolDictionaries:''
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     7
	category:'* Projects & Packages *'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     8
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     9
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    10
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    11
!stx_libjava_startup class methodsFor:'description'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    12
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    13
excludedFromPreRequisites
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    14
    "list all packages which should be ignored in the automatic
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    15
     preRequisites scan. See #preRequisites for more."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    16
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    17
    ^ #(
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    18
    )
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    19
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    20
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    21
isGUIApplication
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    22
    "return true, if this is a GUI application.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    23
     (these need more libraries and use a different startup procedure)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    24
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    25
    ^ false
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    26
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    27
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    28
preRequisites
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    29
    "list all required packages.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    30
     This list can be maintained manually or (better) generated and
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    31
     updated by scanning the superclass hierarchies and looking for
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    32
     global variable accesses. (the browser has a menu function for that)
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    33
     Howevery, often too much is found, and you may want to explicitely
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    34
     exclude individual packages in the #excludedFromPrerequisites method."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    35
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    36
    ^ #(
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    37
        #'stx:libbasic'    "ApplicationDefinition - superclass of stx_libjava_startup "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    38
        #'stx:libcomp'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    39
        #'stx:libjava'    "Java - referenced by JavaStartup class>>main: "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    40
    )
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    41
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    42
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    43
subProjects
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    44
    "list packages which are known as subprojects.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    45
     This method is generated automatically; however, when generating automatically,
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    46
     packages are only added - never removed, unless listed in #excludedFromSubProjects."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    47
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    48
    ^ #(
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    49
)
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    50
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    51
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    52
!stx_libjava_startup class methodsFor:'description - contents'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    53
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    54
classNamesAndAttributes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    55
    "lists the classes which are to be included in the project.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    56
     Each entry in the list may be: a single class-name (symbol),
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    57
     or an array-literal consisting of class name and attributes.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    58
     Attributes are: #autoload or #<os> where os is one of win32, unix,..."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    59
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    60
    ^ #(
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    61
        "<className> or (<className> attributes...) in load order"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    62
        JavaStartup
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    63
        #'stx_libjava_startup'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    64
    )
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    65
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    66
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    67
extensionMethodNames
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    68
    "lists the extension methods which are to be included in the project.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    69
     Entries are 2-element array literals, consisting of class-name and selector."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    70
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    71
    ^ #(
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    72
    )
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    73
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    74
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    75
!stx_libjava_startup class methodsFor:'description - project information'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    76
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    77
applicationIconFileName
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    78
    "Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    79
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    80
    ^ nil
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    81
    "/ ^ self applicationName
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    82
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    83
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    84
companyName
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    85
    "Return a companyname which will appear in <lib>.rc"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    86
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    87
    ^ 'SWING Research Group & eXept Software AG'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    88
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    89
    "Modified: / 07-04-2011 / 20:22:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    90
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    91
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    92
description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    93
    "Return a description string which will appear in vc.def / bc.def"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    94
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    95
    ^ 'Smalltalk/X Java Launcher'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    96
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    97
    "Modified: / 07-04-2011 / 20:23:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    98
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    99
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   100
legalCopyright
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   101
    "Return a copyright string which will appear in <lib>.rc"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   102
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   103
    ^ 'Copyright 2010-2011 Jan Vrany, Jan Kurs, Marcel Hlopko\nCopyright 1988-2011Claus Gittinger \nCopyright 1998-2011 eXept Software AG'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   104
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   105
    "Modified: / 07-04-2011 / 20:24:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   106
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   107
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   108
productName
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   109
    "Return a product name which will appear in <lib>.rc"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   110
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   111
    ^ 'Smalltalk/X JVM'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   112
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   113
    "Modified: / 07-04-2011 / 20:24:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   114
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   115
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   116
!stx_libjava_startup class methodsFor:'description - startup'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   117
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   118
startupClassName
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   119
    "the name of the class which starts the show in its <startupSelector> method.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   120
     Usually, the name of a subclass of StandAloneStartup."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   121
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   122
    ^ 'JavaStartup'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   123
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   124
    "Modified: / 07-04-2011 / 20:24:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   125
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   126
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   127
startupSelector
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   128
    "the message that is sent to the startupClass to start the show"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   129
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   130
    ^ #'start'        
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   131
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   132
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   133
!stx_libjava_startup class methodsFor:'description - svn'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   134
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   135
svnRevisionNr
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   136
    "Return a SVN revision number of myself.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   137
     This number is updated after a commit"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   138
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   139
    ^ "$SVN-Revision:"'nil'"$"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   140
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   141
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   142
!stx_libjava_startup class methodsFor:'documentation'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   143
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   144
version_SVN
2152
1cbdfbcc685c Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 749
diff changeset
   145
    ^ '$Id: stx_libjava_startup.st,v 1.1 2011-08-18 19:06:54 vrany Exp $'
1cbdfbcc685c Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 749
diff changeset
   146
! !