startup/stx_libjava_startup.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 07 May 2013 12:39:09 +0100
branchdevelopment
changeset 2588 58b1e0fd20e7
parent 2429 ebece4dcaab9
child 2711 a00302fe5083
permissions -rw-r--r--
Changed JavaVM>>classForName: to faster JavaVM>>classForName:definedBy:
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
2396
fadc6d7a2f5b Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2353
diff changeset
     3
ApplicationDefinition subclass:#'stx_libjava_startup'
749
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
2396
fadc6d7a2f5b Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2353
diff changeset
    11
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    12
!stx_libjava_startup class methodsFor:'description'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    13
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    14
excludedFromPreRequisites
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    15
    "list all packages which should be ignored in the automatic
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    16
     preRequisites scan. See #preRequisites for more."
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
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    22
isGUIApplication
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    23
    "return true, if this is a GUI application.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    24
     (these need more libraries and use a different startup procedure)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    25
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    26
    ^ false
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    27
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    28
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    29
preRequisites
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    30
    "list all required packages.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    31
     This list can be maintained manually or (better) generated and
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    32
     updated by scanning the superclass hierarchies and looking for
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    33
     global variable accesses. (the browser has a menu function for that)
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    34
     Howevery, often too much is found, and you may want to explicitely
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    35
     exclude individual packages in the #excludedFromPrerequisites method."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    36
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    37
    ^ #(
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    38
        #'stx:libbasic'    "ApplicationDefinition - superclass of stx_libjava_startup "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    39
        #'stx:libcomp'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    40
        #'stx:libjava'    "Java - referenced by JavaStartup class>>main: "
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
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    44
subProjects
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    45
    "list packages which are known as subprojects.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    46
     This method is generated automatically; however, when generating automatically,
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    47
     packages are only added - never removed, unless listed in #excludedFromSubProjects."
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
2396
fadc6d7a2f5b Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2353
diff changeset
    53
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    54
!stx_libjava_startup class methodsFor:'description - contents'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    55
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    56
classNamesAndAttributes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    57
    "lists the classes which are to be included in the project.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    58
     Each entry in the list may be: a single class-name (symbol),
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    59
     or an array-literal consisting of class name and attributes.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    60
     Attributes are: #autoload or #<os> where os is one of win32, unix,..."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    61
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    62
    ^ #(
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    63
        "<className> or (<className> attributes...) in load order"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    64
        JavaStartup
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    65
        #'stx_libjava_startup'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    66
    )
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    67
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    68
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    69
extensionMethodNames
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    70
    "lists the extension methods which are to be included in the project.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    71
     Entries are 2-element array literals, consisting of class-name and selector."
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
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    76
2396
fadc6d7a2f5b Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2353
diff changeset
    77
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    78
!stx_libjava_startup class methodsFor:'description - project information'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    79
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    80
applicationIconFileName
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    81
    "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
    82
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    83
    ^ nil
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    84
    "/ ^ self applicationName
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    85
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    86
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    87
companyName
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    88
    "Return a companyname which will appear in <lib>.rc"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    89
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    90
    ^ 'SWING Research Group & eXept Software AG'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    91
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    92
    "Modified: / 07-04-2011 / 20:22:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    93
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    94
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    95
description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    96
    "Return a description string which will appear in vc.def / bc.def"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    97
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    98
    ^ 'Smalltalk/X Java Launcher'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    99
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   100
    "Modified: / 07-04-2011 / 20:23:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   101
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   102
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   103
legalCopyright
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   104
    "Return a copyright string which will appear in <lib>.rc"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   105
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   106
    ^ '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
   107
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   108
    "Modified: / 07-04-2011 / 20:24:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   109
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   110
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   111
productName
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   112
    "Return a product name which will appear in <lib>.rc"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   113
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   114
    ^ 'Smalltalk/X JVM'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   115
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   116
    "Modified: / 07-04-2011 / 20:24:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   117
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   118
2396
fadc6d7a2f5b Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2353
diff changeset
   119
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   120
!stx_libjava_startup class methodsFor:'description - startup'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   121
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   122
startupClassName
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   123
    "the name of the class which starts the show in its <startupSelector> method.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   124
     Usually, the name of a subclass of StandAloneStartup."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   125
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   126
    ^ 'JavaStartup'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   127
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   128
    "Modified: / 07-04-2011 / 20:24:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   129
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   130
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   131
startupSelector
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   132
    "the message that is sent to the startupClass to start the show"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   133
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   134
    ^ #'start'        
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   135
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   136
2396
fadc6d7a2f5b Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2353
diff changeset
   137
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   138
!stx_libjava_startup class methodsFor:'description - svn'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   139
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   140
svnRevisionNr
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   141
    "Return a SVN revision number of myself.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   142
     This number is updated after a commit"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   143
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   144
    ^ "$SVN-Revision:"'nil'"$"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   145
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   146
2396
fadc6d7a2f5b Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2353
diff changeset
   147
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   148
!stx_libjava_startup class methodsFor:'documentation'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   149
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   150
version_CVS
2396
fadc6d7a2f5b Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2353
diff changeset
   151
    ^ '$Header: /cvs/stx/stx/libjava/startup/stx_libjava_startup.st,v 1.3 2013-02-25 11:15:34 vrany Exp $'
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   152
!
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   153
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   154
version_HG
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   155
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   156
    ^ '$Changeset: <not expanded> $'
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   157
!
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   158
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   159
version_SVN
2396
fadc6d7a2f5b Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2353
diff changeset
   160
    ^ '$Id: stx_libjava_startup.st,v 1.3 2013-02-25 11:15:34 vrany Exp $'
2152
1cbdfbcc685c Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 749
diff changeset
   161
! !
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   162