startup/stx_libjava_startup.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Fri, 06 Sep 2013 00:16:38 +0100
branchdevelopment
changeset 2711 a00302fe5083
parent 2429 ebece4dcaab9
child 2731 13f5be2bf83b
permissions -rw-r--r--
Added version_CVS to all classes and build files regenerated & cleaned. This is necessary step before updating CVS.
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
2711
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
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
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
2711
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    28
mandatoryPreRequisites
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    29
    "list all required mandatory packages.
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    30
     Packages are mandatory, if they contain superclasses of the package's classes
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    31
     or classes which are extended by this package.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    32
     This list can be maintained manually or (better) generated and
2711
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    33
     updated by scanning the superclass hierarchies
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    34
     (the browser has a menu function for that)"
749
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 "
2711
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    38
    )
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    39
!
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    40
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    41
referencedPreRequisites
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    42
    "list all packages containing classes referenced by the packages's members.
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    43
     This list can be maintained manually or (better) generated and
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    44
     updated by looking for global variable accesses
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    45
     (the browser has a menu function for that)
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    46
     However, often too much is found, and you may want to explicitely
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    47
     exclude individual packages in the #excludedFromPreRequisites method."
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    48
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
    49
    ^ #(
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    50
        #'stx:libjava'    "Java - referenced by JavaStartup class>>main: "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    51
    )
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    52
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    53
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    54
subProjects
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    55
    "list packages which are known as subprojects.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    56
     This method is generated automatically; however, when generating automatically,
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    57
     packages are only added - never removed, unless listed in #excludedFromSubProjects."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    58
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
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    62
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    63
!stx_libjava_startup class methodsFor:'description - contents'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    64
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    65
classNamesAndAttributes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    66
    "lists the classes which are to be included in the project.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    67
     Each entry in the list may be: a single class-name (symbol),
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    68
     or an array-literal consisting of class name and attributes.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    69
     Attributes are: #autoload or #<os> where os is one of win32, unix,..."
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
        "<className> or (<className> attributes...) in load order"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    73
        JavaStartup
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    74
        #'stx_libjava_startup'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    75
    )
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    76
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    77
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    78
extensionMethodNames
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    79
    "lists the extension methods which are to be included in the project.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    80
     Entries are 2-element array literals, consisting of class-name and selector."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    81
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
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    85
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    86
!stx_libjava_startup class methodsFor:'description - project information'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    87
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    88
applicationIconFileName
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    89
    "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
    90
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    91
    ^ nil
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    92
    "/ ^ self applicationName
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
companyName
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    96
    "Return a companyname which will appear in <lib>.rc"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    97
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    98
    ^ 'SWING Research Group & eXept Software AG'
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:22:53 / 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
description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   104
    "Return a description string which will appear in vc.def / bc.def"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   105
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   106
    ^ 'Smalltalk/X Java Launcher'
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:23:22 / 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
legalCopyright
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   112
    "Return a copyright string 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
    ^ '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
   115
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   116
    "Modified: / 07-04-2011 / 20:24:35 / 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
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   119
productName
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   120
    "Return a product name which will appear in <lib>.rc"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   121
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   122
    ^ 'Smalltalk/X JVM'
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:41 / 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
!stx_libjava_startup class methodsFor:'description - startup'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   128
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   129
startupClassName
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   130
    "the name of the class which starts the show in its <startupSelector> method.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   131
     Usually, the name of a subclass of StandAloneStartup."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   132
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   133
    ^ 'JavaStartup'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   134
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   135
    "Modified: / 07-04-2011 / 20:24:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   136
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   137
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   138
startupSelector
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   139
    "the message that is sent to the startupClass to start the show"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   140
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   141
    ^ #'start'        
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   142
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   143
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   144
!stx_libjava_startup class methodsFor:'description - svn'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   145
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   146
svnRevisionNr
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   147
    "Return a SVN revision number of myself.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   148
     This number is updated after a commit"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   149
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   150
    ^ "$SVN-Revision:"'nil'"$"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   151
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   152
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   153
!stx_libjava_startup class methodsFor:'documentation'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   154
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
   155
version_CVS
2711
a00302fe5083 Added version_CVS to all classes and build files regenerated & cleaned.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2429
diff changeset
   156
    ^ '$Header$'
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
   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
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   159
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
   160
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   161
    ^ '$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
   162
!
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   163
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   164
version_SVN
2396
fadc6d7a2f5b Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2353
diff changeset
   165
    ^ '$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
   166
! !
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
   167