Project.st
author james
Wed, 09 Apr 2003 14:29:15 +0200
changeset 7182 42dce0ee1b98
parent 7107 167e49f952b4
child 7207 2382822f9abc
permissions -rw-r--r--
james' package changes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
89
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
     1
"
236
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
     2
 COPYRIGHT (c) 1993 by Claus Gittinger
203
3d88fa870de0 *** empty log message ***
claus
parents: 150
diff changeset
     3
	      All Rights Reserved
89
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
     4
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
     5
 This software is furnished under a license and may be used
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
     6
 only in accordance with the terms of that license and with the
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
     8
 be provided or otherwise made available to, or used by, any
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
     9
 other person.  No title to or ownership of the software is
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    10
 hereby transferred.
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    11
"
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
    12
5371
6376d1fcf30f use #allSelectorsAndMethodsDo:
Claus Gittinger <cg@exept.de>
parents: 5338
diff changeset
    13
"{ Package: 'stx:libbasic' }"
6376d1fcf30f use #allSelectorsAndMethodsDo:
Claus Gittinger <cg@exept.de>
parents: 5338
diff changeset
    14
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
    15
Object subclass:#Project
939
ffee570b0f09 added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents: 848
diff changeset
    16
	instanceVariableNames:'name changeSet views directoryName properties packageName
4726
5c5e1c7f8933 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4721
diff changeset
    17
		repositoryDirectory repositoryModule overwrittenMethods
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
    18
		subProjects prerequisites isLoaded changedClasses'
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
    19
	classVariableNames:'CurrentProject SystemProject NextSequential AllProjects
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
    20
		LoadedProjects'
939
ffee570b0f09 added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents: 848
diff changeset
    21
	poolDictionaries:''
ffee570b0f09 added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents: 848
diff changeset
    22
	category:'System-Support'
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
    23
!
a27a279701f8 Initial revision
claus
parents:
diff changeset
    24
5734
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
    25
Object subclass:#ClassInfo
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
    26
	instanceVariableNames:'conditionForInclusion className classFileName'
4668
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
    27
	classVariableNames:''
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
    28
	poolDictionaries:''
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
    29
	privateIn:Project
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
    30
!
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
    31
5734
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
    32
Object subclass:#MethodInfo
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
    33
	instanceVariableNames:'conditionForInclusion methodName className fileName'
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
    34
	classVariableNames:''
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
    35
	poolDictionaries:''
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
    36
	privateIn:Project
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
    37
!
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
    38
1854
b44227fd2b3d use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents: 1636
diff changeset
    39
!Project class methodsFor:'documentation'!
89
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    40
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    41
copyright
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    42
"
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    43
 COPYRIGHT (c) 1993 by Claus Gittinger
203
3d88fa870de0 *** empty log message ***
claus
parents: 150
diff changeset
    44
	      All Rights Reserved
89
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    45
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    46
 This software is furnished under a license and may be used
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    47
 only in accordance with the terms of that license and with the
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    48
 inclusion of the above copyright notice.   This software may not
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    49
 be provided or otherwise made available to, or used by, any
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    50
 other person.  No title to or ownership of the software is
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    51
 hereby transferred.
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    52
"
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    53
!
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    54
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    55
documentation
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    56
"
338
claus
parents: 336
diff changeset
    57
    this class is still under construction (especially the build features are unfinished).
235
d8e62525bfdf *** empty log message ***
claus
parents: 203
diff changeset
    58
    Currently, all it does is keep track of per-project views 
d8e62525bfdf *** empty log message ***
claus
parents: 203
diff changeset
    59
    (to hide or show them), define the directory when filing-out,
725
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
    60
    and define packageNames for new classes and methods.
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
    61
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
    62
    instance variables:
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    63
	name            <String>        the name of this project, as shown
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    64
					in a ProjectView
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    65
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    66
	changeSet       <ChangeSet>     changes done, while this was the active project
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    67
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    68
	views           <Collection>    views opened while this was the active project
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    69
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    70
	directoryName   <String>        directory name, where fileOuts are done
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    71
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    72
	properties 
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    73
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    74
	packageName     <String>        given to classes/methods which are created while
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    75
					this is the active project
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    76
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    77
	repositoryDirectory             (default) name of the repository, when a new source containers are
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    78
					created.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    79
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    80
	repositoryModule                (default) name of the module, when new source containers are
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    81
					created.
235
d8e62525bfdf *** empty log message ***
claus
parents: 203
diff changeset
    82
d8e62525bfdf *** empty log message ***
claus
parents: 203
diff changeset
    83
    Future: 
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    84
	- keep track of per-project changes
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    85
	- allow speficiation of the type of the project (application or library)
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    86
	- allow building of whatever the target (as defined by the type) is
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    87
	  (this will allow build of class libs and apps by clicking a button)
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    88
	- allow removal of project specific classes, methods etc.
1286
4270a0b4917d documentation
Claus Gittinger <cg@exept.de>
parents: 1115
diff changeset
    89
4270a0b4917d documentation
Claus Gittinger <cg@exept.de>
parents: 1115
diff changeset
    90
    [author:]
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
    91
	Claus Gittinger
89
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    92
"
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    93
! !
7be0b86ef80f *** empty log message ***
claus
parents: 87
diff changeset
    94
1854
b44227fd2b3d use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents: 1636
diff changeset
    95
!Project class methodsFor:'initialization'!
236
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
    96
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
    97
initKnownProjects
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
    98
    "this is a temporary experimental kludge -
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
    99
     once the ProjectBrowser is finished, this info is read from
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   100
     '.prj' files ..."
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   101
4668
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   102
    "/ collect project info while scanning all classes
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   103
    "/ and methods ...
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   104
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   105
    AllProjects isNil ifTrue:[
5547
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   106
        AllProjects := IdentitySet new.
4668
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   107
    ].
5547
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   108
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   109
    AllProjects add:SystemProject.
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   110
    AllProjects add:CurrentProject.
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   111
4912
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   112
"/    Smalltalk allClassesDo:[:aClass |
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   113
"/        |packageID prj classFilename pkgInfo revInfo 
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   114
"/         repositoryPath dir module lib nm|
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   115
"/
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   116
"/        aClass isMeta ifFalse:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   117
"/            (aClass isNamespace not or:[aClass == Smalltalk]) ifTrue:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   118
"/                (Smalltalk at:aClass name) == aClass ifFalse:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   119
"/                    Transcript showCR:'skipping obsolete/removed class: ' , aClass name.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   120
"/                ] ifTrue:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   121
"/                    packageID := aClass package asSymbol.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   122
"/                    (packages includesKey:packageID) ifFalse:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   123
"/
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   124
"/                        "/ a new one ...
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   125
"/
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   126
"/                        prj := self new.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   127
"/                        prj package:packageID.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   128
"/                        prj directory:'???'.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   129
"/                        prj repositoryModule:'unknown'.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   130
"/                        prj repositoryDirectory:'unknown'.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   131
"/
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   132
"/                        nm := 'unknown'.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   133
"/
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   134
"/                        pkgInfo := aClass packageSourceCodeInfo.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   135
"/                        pkgInfo notNil ifTrue:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   136
"/                            module := pkgInfo at:#module ifAbsent:nil.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   137
"/                            module notNil ifTrue:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   138
"/                                prj repositoryModule:module    
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   139
"/                            ].
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   140
"/                            dir := pkgInfo at:#directory ifAbsent:nil.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   141
"/                            dir notNil ifTrue:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   142
"/                                prj repositoryDirectory:dir    
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   143
"/                            ].
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   144
"/                            lib := pkgInfo at:#library ifAbsent:nil.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   145
"/                            lib notNil ifTrue:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   146
"/                                prj type:#library.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   147
"/                            ].
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   148
"/                            prj isLoaded:true.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   149
"/                        ].
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   150
"/
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   151
"/                        nm := (module ? 'unknown')
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   152
"/                              , ':'
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   153
"/                              , (dir ? (lib ? 'unknown')).
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   154
"/                            
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   155
"/                        prj name:nm.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   156
"/                        AllProjects add:prj.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   157
"/                        packages at:packageID put:prj.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   158
"/                    ] ifTrue:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   159
"/                        prj := packages at:packageID.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   160
"/                        prj addClass:aClass.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   161
"/                    ].
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   162
"/                ].
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   163
"/            ].
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   164
"/        ].
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   165
"/    ].
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   166
"/
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   167
"/    Method allSubInstancesDo:[:aMethod |
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   168
"/        |packageID prj who mthdClass|
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   169
"/
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   170
"/        who := aMethod who.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   171
"/        who notNil ifTrue:[ "/ skip unbound methods ...
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   172
"/            packageID := aMethod package asSymbol.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   173
"/            (packages includesKey:packageID) ifFalse:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   174
"/                "/ a new one ...
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   175
"/                prj := self new.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   176
"/        "/            prj name:libName.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   177
"/                prj package:packageID.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   178
"/                prj type:#library.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   179
"/                prj directory:'???'.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   180
"/                prj repositoryModule:'stx'.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   181
"/                prj repositoryDirectory:'???'.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   182
"/                prj isLoaded:true.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   183
"/                AllProjects add:prj.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   184
"/                packages at:packageID put:prj.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   185
"/            ] ifTrue:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   186
"/                "/ see if the methods class is in the project;
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   187
"/                "/ if so, remove any patch-entry for this method.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   188
"/                prj := packages at:packageID.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   189
"/                ((prj classes includes:who methodClass)
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   190
"/                or:[prj classes includes:who methodClass name]) ifTrue:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   191
"/                    prj removeMethod:aMethod.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   192
"/                ]
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   193
"/            ]
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   194
"/        ]
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   195
"/    ].
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   196
"/
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   197
"/    "/ walk over binary modules, to find out directory names ...
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   198
"/
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   199
"/    ObjectFileLoader loadedObjectHandles do:[:h |
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   200
"/        |cls prj mDir|
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   201
"/
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   202
"/        cls := h classes firstIfEmpty:nil.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   203
"/        cls notNil ifTrue:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   204
"/            prj := packages at:cls package ifAbsent:nil.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   205
"/            prj notNil ifTrue:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   206
"/                mDir := h pathName asFilename directory pathName.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   207
"/                prj directory = '???' ifTrue:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   208
"/                    prj directory:mDir
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   209
"/                ] ifFalse:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   210
"/                    prj directory ~= mDir ifTrue:[
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   211
"/                        ('Project [warning]: conflicting project directories for ' , cls package) infoPrintCR.
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   212
"/                    ]
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   213
"/                ]
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   214
"/            ]
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   215
"/        ].
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   216
"/    ].
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   217
"/
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   218
"/    self changed:#allProjects
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   219
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   220
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   221
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   222
4668
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   223
4066
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   224
"/    |stx p|
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   225
"/
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   226
"/    stx := self new name:'stx'.
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   227
"/    stx packageName:'noPackage'.
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   228
"/    stx changeSet:nil.
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   229
"/    stx type:#smalltalk.
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   230
"/    stx comment:'The ST/X project itself'.
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   231
"/
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   232
"/    AllProjects add:stx.
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   233
"/
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   234
"/    #(
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   235
"/        ('libbasic'      #'stx:libbasic'            'Basic (non-GUI) classes. Required for all applications')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   236
"/        ('libbasic2'     #'stx:libbasic2'           'More basic (non-GUI) classes. Required for most applications')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   237
"/        ('libbasic3'     #'stx:libbasic3'           'More basic (non-GUI) classes. Required for development')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   238
"/        ('libcomp'       #'stx:libcomp'             'The bytecode compiler. Required for all applications')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   239
"/        ('libview'       #'stx:libview'             'Low level GUI classes. Required for all GUI applications')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   240
"/        ('libview2'      #'stx:libview2'            'Additional low level GUI classes. Required for most GUI applications')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   241
"/        ('libwidg'       #'stx:libwidg'             'Basic widgets. Required for all GUI applications')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   242
"/        ('libwidg2'      #'stx:libwidg2'            'More widgets. Required for most GUI applications')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   243
"/        ('libwidg3'      #'stx:libwidg3'            'More (fun) widgets. Seldom required')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   244
"/        ('libtool'       #'stx:libtool'             'Development applications. Required for program development')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   245
"/        ('libtool2'      #'stx:libtool2'            'More development applications. Required for GUI development')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   246
"/        ('libui'         #'stx:libui'               'UI spec classes. Required for UIPainter applications')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   247
"/        ('libhtml'       #'stx:libhtml'             'HTML related classes. Required for Web applications and the HTML browser')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   248
"/        ('libodbc'       #'stx:libodbc'             'ODBC interface classes.')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   249
"/        ('libopengl'     #'stx:libopengl'           'OpenGL interface classes.')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   250
"/        ('persistency'   #'stx:goodies/persistency' 'Simple DB interface')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   251
"/        ('goodies'       #'stx:goodies'             'Misc goodies - not really maintained')
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   252
"/    ) do:[:entry |
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   253
"/        |libName package comment|
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   254
"/
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   255
"/        libName := entry at:1.
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   256
"/        package := entry at:2.
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   257
"/        comment := entry at:3.
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   258
"/
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   259
"/        p := self new name:libName.
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   260
"/        p packageName:package.
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   261
"/        p type:#library.
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   262
"/        p comment:comment.
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   263
"/        stx addSubProject:p.
74e64b5cedce checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   264
"/    ].
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   265
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   266
    "
4668
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   267
     AllProjects := nil.
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   268
     self initKnownProjects
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   269
    "
4069
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
   270
4912
43182d65eaf2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   271
    "Modified: / 16.10.1999 / 13:10:37 / cg"
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   272
!
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   273
236
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
   274
initialize
338
claus
parents: 336
diff changeset
   275
    SystemProject isNil ifTrue:[
5547
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   276
        self initializeSystemProject.
338
claus
parents: 336
diff changeset
   277
    ].
claus
parents: 336
diff changeset
   278
claus
parents: 336
diff changeset
   279
    CurrentProject := SystemProject.
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   280
    AllProjects := nil.
5547
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   281
    self initKnownProjects.
236
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
   282
315
7683685383d6 *** empty log message ***
claus
parents: 236
diff changeset
   283
    "
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   284
     SystemProject := nil.
315
7683685383d6 *** empty log message ***
claus
parents: 236
diff changeset
   285
     Project initialize
7683685383d6 *** empty log message ***
claus
parents: 236
diff changeset
   286
    "
4886
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
   287
!
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
   288
5547
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   289
initializeSystemProject
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   290
    NextSequential := 1.
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   291
    SystemProject := self new name:'default'.
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   292
    "/ SystemProject package:(OperatingSystem getLoginName , ':NoProject') asSymbol.
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   293
    SystemProject package:#'__NoProject__'.
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   294
    SystemProject defaultNameSpace:Smalltalk.
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   295
    SystemProject comment:'A default (dummy) project. 
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   296
Is used as the current project in case no real project is ever activated.
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   297
Please do never save/checkin this project; instead, move classes & methods
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   298
into a concrete, real project and save that one in regular intervals.
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   299
Use this as a `scratch project''.
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   300
'.
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   301
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   302
    "/ no longer - changes are always remembered in some project
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   303
    false ifTrue:[
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   304
        "
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   305
         the SystemProject does not keep a record if changes,
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   306
         but instead depends on the changes file - recording anything there.
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   307
        "
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   308
        SystemProject changeSet:nil.
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   309
    ].
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   310
    ChangeSet notNil ifTrue:[
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   311
        SystemProject changeSet:ChangeSet new
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   312
    ].
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   313
    self changed:#defaultProject
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   314
!
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   315
4886
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
   316
reinitKnownProjects
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
   317
    "rescan the image for projects"
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
   318
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
   319
    AllProjects := nil.
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
   320
    self initKnownProjects
236
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
   321
! !
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
   322
1854
b44227fd2b3d use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents: 1636
diff changeset
   323
!Project class methodsFor:'instance creation'!
236
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
   324
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
   325
new
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
   326
    ^ self basicNew initialize
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
   327
! !
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
   328
1854
b44227fd2b3d use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents: 1636
diff changeset
   329
!Project class methodsFor:'accessing'!
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
   330
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
   331
addKnownProject:aProject
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   332
    |allProjects|
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   333
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   334
    allProjects := self knownProjects.
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   335
    (allProjects detect:[:p | p package = aProject package] ifNone:nil) notNil ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   336
	self warn:'Project for ' , aProject package , ' is already present.'.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   337
	^ self.
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
   338
    ].
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   339
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
   340
    AllProjects add:aProject.
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
   341
    self changed:#allProjects
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
   342
!
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
   343
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   344
addLoadedProject:aProject
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   345
    aProject isLoaded:true.
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   346
    self addKnownProject:aProject.
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   347
!
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   348
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
   349
current
10
claus
parents: 2
diff changeset
   350
    "return the currently active project"
claus
parents: 2
diff changeset
   351
5692
2467be0050a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5690
diff changeset
   352
    CurrentProject isNil ifTrue:[CurrentProject := SystemProject ].
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
   353
    ^ CurrentProject
a27a279701f8 Initial revision
claus
parents:
diff changeset
   354
362
claus
parents: 356
diff changeset
   355
    "
claus
parents: 356
diff changeset
   356
     Project current
claus
parents: 356
diff changeset
   357
    "
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
   358
!
a27a279701f8 Initial revision
claus
parents:
diff changeset
   359
a27a279701f8 Initial revision
claus
parents:
diff changeset
   360
current:aProject
10
claus
parents: 2
diff changeset
   361
    "set the currently active project"
claus
parents: 2
diff changeset
   362
5542
418fabf22e56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5371
diff changeset
   363
    |prevProject|
418fabf22e56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5371
diff changeset
   364
418fabf22e56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5371
diff changeset
   365
    prevProject := CurrentProject.
315
7683685383d6 *** empty log message ***
claus
parents: 236
diff changeset
   366
    CurrentProject := aProject.
5542
418fabf22e56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5371
diff changeset
   367
    prevProject notNil ifTrue:[
418fabf22e56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5371
diff changeset
   368
        self changed:#currentProject
418fabf22e56 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5371
diff changeset
   369
    ].
334
claus
parents: 330
diff changeset
   370
!
claus
parents: 330
diff changeset
   371
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   372
currentPackageName
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   373
    CurrentProject notNil ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   374
	^ CurrentProject package
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   375
    ].
4112
5ee841c34b10 return nil (instead of 'no package') if no current package is defined.
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
   376
    ^ nil
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   377
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   378
    "
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   379
     Project currentPackageName
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   380
    "
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   381
!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   382
336
claus
parents: 334
diff changeset
   383
defaultProject
claus
parents: 334
diff changeset
   384
    "return the SystemDefault project"
claus
parents: 334
diff changeset
   385
claus
parents: 334
diff changeset
   386
    ^ SystemProject.
6032
58d08e191a78 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5912
diff changeset
   387
58d08e191a78 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5912
diff changeset
   388
    "
58d08e191a78 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5912
diff changeset
   389
     Project defaultProject package
58d08e191a78 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5912
diff changeset
   390
    "
336
claus
parents: 334
diff changeset
   391
!
claus
parents: 334
diff changeset
   392
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   393
knownProjects
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   394
    AllProjects isNil ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   395
	self initKnownProjects
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   396
    ].
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   397
    ^ AllProjects ? #()
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   398
!
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   399
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   400
loadedProjects
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   401
    ^ self knownProjects select:[:p | p isLoaded]
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   402
!
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   403
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   404
projectNamed:aProjectName
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   405
    "retrieve the named project; return nil if not known"
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   406
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   407
    ^ self knownProjects detect:[:p | p name = aProjectName] ifNone:nil.
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   408
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   409
    "
5547
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   410
     Project projectNamed:'stx'
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   411
     Project projectNamed:'default'
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   412
    "
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   413
!
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   414
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   415
projectWithId:aPackageId
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   416
    "retrieve the project with a particular id; return nil if not known"
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   417
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   418
    ^ self knownProjects detect:[:p | p package = aPackageId] ifNone:nil.
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   419
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   420
    "
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   421
     Project projectWithId:#'stx:libbasic'
5547
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   422
     Project projectWithId:'__NoProject__'
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   423
    "
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   424
!
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   425
334
claus
parents: 330
diff changeset
   426
setDefaultProject
claus
parents: 330
diff changeset
   427
    "set the currently active project to be the SystemDEfault project"
claus
parents: 330
diff changeset
   428
claus
parents: 330
diff changeset
   429
    self current:SystemProject.
939
ffee570b0f09 added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents: 848
diff changeset
   430
!
ffee570b0f09 added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents: 848
diff changeset
   431
ffee570b0f09 added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents: 848
diff changeset
   432
setProject:aProjectOrNil
ffee570b0f09 added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents: 848
diff changeset
   433
    "set the currently active project without updating others"
ffee570b0f09 added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents: 848
diff changeset
   434
ffee570b0f09 added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents: 848
diff changeset
   435
    CurrentProject := aProjectOrNil.
ffee570b0f09 added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents: 848
diff changeset
   436
ffee570b0f09 added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents: 848
diff changeset
   437
    "Created: 7.2.1996 / 14:00:45 / cg"
ffee570b0f09 added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents: 848
diff changeset
   438
    "Modified: 7.2.1996 / 14:01:16 / cg"
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
   439
! !
a27a279701f8 Initial revision
claus
parents:
diff changeset
   440
1854
b44227fd2b3d use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents: 1636
diff changeset
   441
!Project class methodsFor:'changes management'!
149
a3b1bf2938c6 changeSet interface changed
claus
parents: 97
diff changeset
   442
5224
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   443
addClassCommentChangeFor:aClass
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   444
    "add a comment-change for aClass to the current project"
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   445
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   446
    |p|
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   447
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   448
    p := CurrentProject.
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   449
    p notNil ifTrue:[
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   450
        p addClassCommentChangeFor:aClass 
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   451
    ]
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   452
!
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   453
664
42ea897fbebe project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
   454
addClassDefinitionChangeFor:aClass
1115
16ebfd63db43 commentary
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
   455
    "add a class-def-change for aClass to the current project"
16ebfd63db43 commentary
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
   456
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   457
    |p|
664
42ea897fbebe project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
   458
42ea897fbebe project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
   459
    p := CurrentProject.
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   460
    p notNil ifTrue:[
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   461
        p addClassDefinitionChangeFor:aClass 
664
42ea897fbebe project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
   462
    ]
42ea897fbebe project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
   463
42ea897fbebe project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
   464
    "Created: 3.12.1995 / 13:44:58 / cg"
42ea897fbebe project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
   465
    "Modified: 3.12.1995 / 13:58:04 / cg"
42ea897fbebe project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
   466
!
42ea897fbebe project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
   467
7182
42dce0ee1b98 james' package changes
james
parents: 7107
diff changeset
   468
addClassRemoveChange:oldClass
6178
361b2efd99b1 class remove change
Claus Gittinger <cg@exept.de>
parents: 6167
diff changeset
   469
    "add a class-remove-change to the current project"
361b2efd99b1 class remove change
Claus Gittinger <cg@exept.de>
parents: 6167
diff changeset
   470
361b2efd99b1 class remove change
Claus Gittinger <cg@exept.de>
parents: 6167
diff changeset
   471
    |p|
361b2efd99b1 class remove change
Claus Gittinger <cg@exept.de>
parents: 6167
diff changeset
   472
361b2efd99b1 class remove change
Claus Gittinger <cg@exept.de>
parents: 6167
diff changeset
   473
    p := CurrentProject.
361b2efd99b1 class remove change
Claus Gittinger <cg@exept.de>
parents: 6167
diff changeset
   474
    p notNil ifTrue:[
7182
42dce0ee1b98 james' package changes
james
parents: 7107
diff changeset
   475
        p addClassRemoveChange:oldClass
6178
361b2efd99b1 class remove change
Claus Gittinger <cg@exept.de>
parents: 6167
diff changeset
   476
    ]
361b2efd99b1 class remove change
Claus Gittinger <cg@exept.de>
parents: 6167
diff changeset
   477
!
361b2efd99b1 class remove change
Claus Gittinger <cg@exept.de>
parents: 6167
diff changeset
   478
6167
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
   479
addClassRenameChangeFrom:oldName to:newName
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
   480
    "add a class-rename-change to the current project"
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
   481
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
   482
    |p|
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
   483
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
   484
    p := CurrentProject.
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
   485
    p notNil ifTrue:[
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
   486
        p addClassRenameChangeFrom:oldName to:newName 
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
   487
    ]
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
   488
!
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
   489
6097
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
   490
addDoIt:aString
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
   491
    "add a doIt to the current project"
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
   492
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
   493
    |p|
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
   494
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
   495
    p := CurrentProject.
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
   496
    p notNil ifTrue:[
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
   497
        p addDoIt:aString 
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
   498
    ]
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
   499
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
   500
    "Created: 3.12.1995 / 13:44:58 / cg"
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
   501
    "Modified: 3.12.1995 / 13:58:04 / cg"
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
   502
!
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
   503
5224
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   504
addInstVarDefinitionChangeFor:aClass
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   505
    "add an instvar-change for aClass to the current project"
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   506
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   507
    |p|
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   508
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   509
    p := CurrentProject.
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   510
    p notNil ifTrue:[
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   511
        p addInstVarDefinitionChangeFor:aClass 
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   512
    ]
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   513
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   514
    "Created: 3.12.1995 / 13:44:58 / cg"
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   515
    "Modified: 3.12.1995 / 13:58:04 / cg"
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   516
!
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
   517
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   518
addMethodCategoryChange:aMethod category:newCategory in:aClass
1115
16ebfd63db43 commentary
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
   519
    "add a method-category-change for aMethod in aClass to the current project"
16ebfd63db43 commentary
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
   520
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   521
    |p|
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   522
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   523
    p := CurrentProject.
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   524
    p notNil ifTrue:[
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   525
        p addMethodCategoryChange:aMethod category:newCategory in:aClass 
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   526
    ]
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   527
!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   528
5553
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
   529
addMethodChange:aMethod fromOld:oldMethod in:aClass
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
   530
    "add a method change in aClass to the current project"
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
   531
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
   532
    |p|
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
   533
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
   534
    p := CurrentProject.
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
   535
    p notNil ifTrue:[
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
   536
        p addMethodChange:aMethod fromOld:oldMethod in:aClass 
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
   537
    ].
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
   538
!
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
   539
149
a3b1bf2938c6 changeSet interface changed
claus
parents: 97
diff changeset
   540
addMethodChange:aMethod in:aClass
1115
16ebfd63db43 commentary
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
   541
    "add a method change in aClass to the current project"
149
a3b1bf2938c6 changeSet interface changed
claus
parents: 97
diff changeset
   542
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   543
    |p|
149
a3b1bf2938c6 changeSet interface changed
claus
parents: 97
diff changeset
   544
a3b1bf2938c6 changeSet interface changed
claus
parents: 97
diff changeset
   545
    p := CurrentProject.
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   546
    p notNil ifTrue:[
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   547
        p addMethodChange:aMethod in:aClass 
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   548
    ].
203
3d88fa870de0 *** empty log message ***
claus
parents: 150
diff changeset
   549
!
3d88fa870de0 *** empty log message ***
claus
parents: 150
diff changeset
   550
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   551
addMethodPrivacyChange:aMethod in:aClass
1115
16ebfd63db43 commentary
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
   552
    "add a privacy change for aMethod in aClass to the current project"
16ebfd63db43 commentary
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
   553
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   554
    |p|
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   555
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   556
    p := CurrentProject.
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   557
    p notNil ifTrue:[
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   558
        p addMethodPrivacyChange:aMethod in:aClass 
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   559
    ]
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   560
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   561
    "Modified: 27.8.1995 / 22:48:17 / claus"
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   562
!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   563
705
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   564
addPrimitiveDefinitionsChangeFor:aClass
1115
16ebfd63db43 commentary
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
   565
    "add a primitiveDef change for aClass to the current project"
16ebfd63db43 commentary
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
   566
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   567
    |p|
705
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   568
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   569
    p := CurrentProject.
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   570
    p notNil ifTrue:[
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   571
        p addPrimitiveDefinitionsChangeFor:aClass 
705
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   572
    ]
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   573
!
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   574
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   575
addPrimitiveFunctionsChangeFor:aClass
1115
16ebfd63db43 commentary
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
   576
    "add a primitiveFuncs change for aClass to the current project"
16ebfd63db43 commentary
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
   577
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   578
    |p|
705
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   579
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   580
    p := CurrentProject.
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   581
    p notNil ifTrue:[
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   582
        p addPrimitiveFunctionsChangeFor:aClass 
705
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   583
    ]
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   584
!
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   585
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   586
addPrimitiveVariablesChangeFor:aClass
1115
16ebfd63db43 commentary
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
   587
    "add a primitiveVars change for aClass to the current project"
16ebfd63db43 commentary
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
   588
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   589
    |p|
705
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   590
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   591
    p := CurrentProject.
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   592
    p notNil ifTrue:[
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   593
        p addPrimitiveVariablesChangeFor:aClass 
705
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   594
    ]
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   595
!
2126aba57d34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 666
diff changeset
   596
6746
8bbd639df663 removeSelector change: remember methods previous version
Claus Gittinger <cg@exept.de>
parents: 6557
diff changeset
   597
addRemoveSelectorChange:aSelector fromOld:oldMethod in:aClass
3288
373af30a15ca add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents: 2962
diff changeset
   598
    "add a method-remove change in aClass to the current project"
373af30a15ca add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents: 2962
diff changeset
   599
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   600
    |p|
3288
373af30a15ca add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents: 2962
diff changeset
   601
373af30a15ca add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents: 2962
diff changeset
   602
    p := CurrentProject.
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   603
    p notNil ifTrue:[
6746
8bbd639df663 removeSelector change: remember methods previous version
Claus Gittinger <cg@exept.de>
parents: 6557
diff changeset
   604
        p addRemoveSelectorChange:aSelector fromOld:oldMethod in:aClass 
3288
373af30a15ca add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents: 2962
diff changeset
   605
    ]
373af30a15ca add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents: 2962
diff changeset
   606
373af30a15ca add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents: 2962
diff changeset
   607
    "Created: / 16.2.1998 / 12:45:10 / cg"
373af30a15ca add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents: 2962
diff changeset
   608
!
373af30a15ca add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents: 2962
diff changeset
   609
5239
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
   610
addRenameCategoryChangeIn:aClass from:oldCategory to:newCategory
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
   611
    "add a category rename change for aClass to the current project"
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
   612
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
   613
    |p|
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
   614
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
   615
    p := CurrentProject.
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
   616
    p notNil ifTrue:[
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
   617
        p addRenameCategoryChangeIn:aClass from:oldCategory to:newCategory 
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
   618
    ]
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
   619
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
   620
    "Created: / 6.2.2000 / 02:27:35 / cg"
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
   621
!
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
   622
149
a3b1bf2938c6 changeSet interface changed
claus
parents: 97
diff changeset
   623
currentProjectDirectory
a3b1bf2938c6 changeSet interface changed
claus
parents: 97
diff changeset
   624
    "return the name of the directory to use for fileOut.
235
d8e62525bfdf *** empty log message ***
claus
parents: 203
diff changeset
   625
     The returned name already includes a file-separator at the end, 
d8e62525bfdf *** empty log message ***
claus
parents: 203
diff changeset
   626
     so the filename can be concatenated to it."
149
a3b1bf2938c6 changeSet interface changed
claus
parents: 97
diff changeset
   627
a3b1bf2938c6 changeSet interface changed
claus
parents: 97
diff changeset
   628
    |p dirName|
a3b1bf2938c6 changeSet interface changed
claus
parents: 97
diff changeset
   629
a3b1bf2938c6 changeSet interface changed
claus
parents: 97
diff changeset
   630
    p := CurrentProject.
a3b1bf2938c6 changeSet interface changed
claus
parents: 97
diff changeset
   631
    p notNil ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   632
	dirName := p directory  
149
a3b1bf2938c6 changeSet interface changed
claus
parents: 97
diff changeset
   633
    ] ifFalse:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   634
	dirName := Filename currentDirectory name
149
a3b1bf2938c6 changeSet interface changed
claus
parents: 97
diff changeset
   635
    ].
2962
038a8f143e49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2956
diff changeset
   636
    ^ dirName
2907
1666bf27f351 VMS changes
Claus Gittinger <cg@exept.de>
parents: 2664
diff changeset
   637
1666bf27f351 VMS changes
Claus Gittinger <cg@exept.de>
parents: 2664
diff changeset
   638
    "Modified: 7.9.1997 / 23:52:25 / cg"
2334
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
   639
!
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
   640
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
   641
rememberOverwrittenMethod:newMethod from:oldMethod
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
   642
    "remember a method (from another package) being overwritten.
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
   643
     This is only remembered, if the current project is not the
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
   644
     system project (to avoid filling this remembered-table)"
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
   645
2558
07e7d6fef46d removed unused var
Claus Gittinger <cg@exept.de>
parents: 2334
diff changeset
   646
    |p|
2334
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
   647
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
   648
    p := CurrentProject.
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
   649
    (p notNil 
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
   650
    and:[p ~~ SystemProject]) ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   651
	p rememberOverwrittenMethod:newMethod from:oldMethod
2334
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
   652
    ] ifFalse:[
3332
8014b817988b remove the 'does not remember ...' message.
Claus Gittinger <cg@exept.de>
parents: 3288
diff changeset
   653
"/        'Project [info]: DefaultProject does not remember overwritten methods' infoPrintCR
2334
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
   654
    ]
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
   655
3332
8014b817988b remove the 'does not remember ...' message.
Claus Gittinger <cg@exept.de>
parents: 3288
diff changeset
   656
    "Modified: / 7.3.1998 / 13:38:39 / cg"
13
62303f84ff5f *** empty log message ***
claus
parents: 10
diff changeset
   657
! !
62303f84ff5f *** empty log message ***
claus
parents: 10
diff changeset
   658
4909
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
   659
!Project class methodsFor:'misc'!
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
   660
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
   661
projectFileFormatVersion
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
   662
    ^ 1
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
   663
! !
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
   664
5151
f242e78be683 checkin from browser
ps
parents: 5150
diff changeset
   665
!Project class methodsFor:'testing'!
f242e78be683 checkin from browser
ps
parents: 5150
diff changeset
   666
f242e78be683 checkin from browser
ps
parents: 5150
diff changeset
   667
isClassChanged:aClass
5547
5bbe4deab773 default project setup
Claus Gittinger <cg@exept.de>
parents: 5542
diff changeset
   668
    "return true, if aClass has been changed"
5151
f242e78be683 checkin from browser
ps
parents: 5150
diff changeset
   669
f242e78be683 checkin from browser
ps
parents: 5150
diff changeset
   670
    ^self current changedClasses includesIdentical:aClass
f242e78be683 checkin from browser
ps
parents: 5150
diff changeset
   671
! !
f242e78be683 checkin from browser
ps
parents: 5150
diff changeset
   672
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
   673
!Project methodsFor:'accessing'!
a27a279701f8 Initial revision
claus
parents:
diff changeset
   674
5177
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
   675
addPrerequisitePackage:aPackageId
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
   676
    "add onother prerequisitePackage to the project"
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
   677
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
   678
    |list|
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
   679
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
   680
    list := self prerequisites.
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
   681
    (list includes:aPackageId) ifFalse:[
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
   682
        list addLast:aPackageId
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
   683
    ].
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
   684
!
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
   685
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   686
addSubProject:aProject
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
   687
    "add a subproject - obsolete; we use prerequisites now"
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
   688
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   689
    subProjects isNil ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   690
	subProjects := OrderedCollection new.
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   691
    ].
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   692
    subProjects add:aProject
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   693
!
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   694
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
   695
changeSet
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   696
    "return the set of changes made in this project"
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   697
6557
c0d0ebb1f709 Initialize changeSet lazy.
Stefan Vogel <sv@exept.de>
parents: 6192
diff changeset
   698
    changeSet isNil ifTrue:[
c0d0ebb1f709 Initialize changeSet lazy.
Stefan Vogel <sv@exept.de>
parents: 6192
diff changeset
   699
        "/
c0d0ebb1f709 Initialize changeSet lazy.
Stefan Vogel <sv@exept.de>
parents: 6192
diff changeset
   700
        "/ for tiny-configurations, allow ChangeSet to be absent
c0d0ebb1f709 Initialize changeSet lazy.
Stefan Vogel <sv@exept.de>
parents: 6192
diff changeset
   701
        "/
c0d0ebb1f709 Initialize changeSet lazy.
Stefan Vogel <sv@exept.de>
parents: 6192
diff changeset
   702
        ChangeSet notNil ifTrue:[
c0d0ebb1f709 Initialize changeSet lazy.
Stefan Vogel <sv@exept.de>
parents: 6192
diff changeset
   703
            changeSet := ChangeSet new.
c0d0ebb1f709 Initialize changeSet lazy.
Stefan Vogel <sv@exept.de>
parents: 6192
diff changeset
   704
        ].
c0d0ebb1f709 Initialize changeSet lazy.
Stefan Vogel <sv@exept.de>
parents: 6192
diff changeset
   705
    ].
c0d0ebb1f709 Initialize changeSet lazy.
Stefan Vogel <sv@exept.de>
parents: 6192
diff changeset
   706
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
   707
    ^ changeSet
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   708
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   709
    "Modified: 27.1.1997 / 11:58:36 / cg"
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
   710
!
a27a279701f8 Initial revision
claus
parents:
diff changeset
   711
236
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
   712
changeSet:aChangeSet
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   713
    "set the set of changes made in this project - dangerous, you may loose
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   714
     the actual changeSet."
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   715
236
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
   716
    changeSet := aChangeSet
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   717
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   718
    "Modified: 27.1.1997 / 11:59:02 / cg"
73
a6640cc96199 *** empty log message ***
claus
parents: 13
diff changeset
   719
!
a6640cc96199 *** empty log message ***
claus
parents: 13
diff changeset
   720
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   721
changedClasses
5912
8e3d9ac02b3b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5897
diff changeset
   722
    changedClasses isNil ifTrue:[changedClasses := IdentitySet new].
8e3d9ac02b3b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5897
diff changeset
   723
    ^ changedClasses
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   724
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   725
    "
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   726
     self new changedClasses
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   727
    "
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   728
!
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
   729
2028
85ef24870d8a hold the default nameSpace
Claus Gittinger <cg@exept.de>
parents: 1854
diff changeset
   730
defaultNameSpace
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   731
    "return the defaultNameSpace of this project.
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   732
     New classes will (if not specified by a directive) be installed
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   733
     in this nameSpace. Useful, when filing in ST-80 code, to avoid
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   734
     overwriting of standard classes."
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   735
4726
5c5e1c7f8933 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4721
diff changeset
   736
    ^ (self propertyAt:#defaultNameSpace) ? Smalltalk
2028
85ef24870d8a hold the default nameSpace
Claus Gittinger <cg@exept.de>
parents: 1854
diff changeset
   737
85ef24870d8a hold the default nameSpace
Claus Gittinger <cg@exept.de>
parents: 1854
diff changeset
   738
!
85ef24870d8a hold the default nameSpace
Claus Gittinger <cg@exept.de>
parents: 1854
diff changeset
   739
85ef24870d8a hold the default nameSpace
Claus Gittinger <cg@exept.de>
parents: 1854
diff changeset
   740
defaultNameSpace:aNamespace
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   741
    "set the defaultNameSpace of this project.
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   742
     New classes will (if not specified by a directive) be installed
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   743
     in this nameSpace. Useful, when filing in ST-80 code, to avoid
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   744
     overwriting of standard classes."
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   745
4726
5c5e1c7f8933 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4721
diff changeset
   746
    |prevDefault|
5c5e1c7f8933 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4721
diff changeset
   747
5c5e1c7f8933 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4721
diff changeset
   748
    prevDefault := self defaultNameSpace.
5c5e1c7f8933 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4721
diff changeset
   749
    aNamespace ~~ prevDefault ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   750
	self propertyAt:#defaultNameSpace put:aNamespace.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   751
	self changed:#defaultNameSpace.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   752
	self == CurrentProject ifTrue:[
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   753
	    Project changed:#defaultNameSpace 
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   754
	]
2032
e39ca6532e1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2028
diff changeset
   755
    ]
2028
85ef24870d8a hold the default nameSpace
Claus Gittinger <cg@exept.de>
parents: 1854
diff changeset
   756
85ef24870d8a hold the default nameSpace
Claus Gittinger <cg@exept.de>
parents: 1854
diff changeset
   757
    "Created: 2.1.1997 / 19:54:37 / cg"
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   758
    "Modified: 27.1.1997 / 12:00:01 / cg"
2028
85ef24870d8a hold the default nameSpace
Claus Gittinger <cg@exept.de>
parents: 1854
diff changeset
   759
!
85ef24870d8a hold the default nameSpace
Claus Gittinger <cg@exept.de>
parents: 1854
diff changeset
   760
315
7683685383d6 *** empty log message ***
claus
parents: 236
diff changeset
   761
directory
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   762
    "return the projects directory.
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   763
     If not specified, a fileOut will be done into that directory"
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   764
315
7683685383d6 *** empty log message ***
claus
parents: 236
diff changeset
   765
    directoryName isNil ifTrue:[^ '.'].
7683685383d6 *** empty log message ***
claus
parents: 236
diff changeset
   766
    ^ directoryName
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   767
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   768
    "Modified: 27.1.1997 / 12:00:41 / cg"
315
7683685383d6 *** empty log message ***
claus
parents: 236
diff changeset
   769
!
7683685383d6 *** empty log message ***
claus
parents: 236
diff changeset
   770
7683685383d6 *** empty log message ***
claus
parents: 236
diff changeset
   771
directory:aDirectoryName
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   772
    "set the projects directory.
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   773
     If not specified, a fileOut will be done into that directory"
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   774
315
7683685383d6 *** empty log message ***
claus
parents: 236
diff changeset
   775
    directoryName := aDirectoryName.
4070
682f720cd0f6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4069
diff changeset
   776
    self changed:#directory.
315
7683685383d6 *** empty log message ***
claus
parents: 236
diff changeset
   777
    self == CurrentProject ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   778
	Project changed:#directory 
315
7683685383d6 *** empty log message ***
claus
parents: 236
diff changeset
   779
    ]
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   780
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   781
    "Modified: 27.1.1997 / 12:00:47 / cg"
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   782
!
356
claus
parents: 338
diff changeset
   783
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   784
isLoaded:aBoolean
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   785
    isLoaded := aBoolean
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   786
!
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   787
4789
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
   788
libraryName
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
   789
    "return the projects library name.
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
   790
     This is the name of a classLibrary, created from this project"
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
   791
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
   792
    |nm|
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
   793
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
   794
    nm := self name.
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
   795
    ^ nm copyFrom:(nm lastIndexOfAny:':/')+1
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
   796
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
   797
"/    ^ (self name copyReplaceAll:$/ with:$_) replaceAll:$: with:$_
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
   798
!
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
   799
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   800
name
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   801
    "return the projects name.
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   802
     This is for the user only - shown in the projectViews label"
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   803
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   804
    ^ name
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   805
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   806
    "Modified: 27.1.1997 / 12:01:16 / cg"
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   807
!
356
claus
parents: 338
diff changeset
   808
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   809
name:aString
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   810
    "set the projects name.
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   811
     This is for the user only - shown in the projectViews label"
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   812
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   813
    name := aString.
4070
682f720cd0f6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4069
diff changeset
   814
    self changed:#name.
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   815
    self == CurrentProject ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   816
	Project changed:#name
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   817
    ]
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   818
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   819
    "Modified: 27.1.1997 / 12:01:09 / cg"
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   820
!
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   821
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   822
overwrittenMethods
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   823
    "return the set of methods which were overwritten in this project.
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   824
     This information allows uninstalling, by switching back to the
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   825
     original methods."
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   826
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   827
    ^ overwrittenMethods
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   828
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   829
    "Created: 27.1.1997 / 11:57:21 / cg"
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   830
    "Modified: 27.1.1997 / 12:09:14 / cg"
356
claus
parents: 338
diff changeset
   831
!
claus
parents: 338
diff changeset
   832
4668
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   833
package
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   834
    "return the projects package identifier.
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   835
     This identifier marks all methods and new classes which were created
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   836
     in this project."
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   837
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   838
    ^ packageName
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   839
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   840
    "Modified: 27.1.1997 / 12:10:00 / cg"
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   841
!
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
   842
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   843
package:aPackageId
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   844
    "set the projects package identifier.
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   845
     This identifier marks all methods and new classes which were created
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   846
     in this project."
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   847
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   848
    packageName := aPackageId
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   849
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   850
    "Modified: 27.1.1997 / 12:10:00 / cg"
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   851
!
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
   852
4727
ec580e5f9b22 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4726
diff changeset
   853
packageName:aPackageId
ec580e5f9b22 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4726
diff changeset
   854
    "set the projects package identifier.
ec580e5f9b22 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4726
diff changeset
   855
     This identifier marks all methods and new classes which were created
ec580e5f9b22 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4726
diff changeset
   856
     in this project."
ec580e5f9b22 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4726
diff changeset
   857
ec580e5f9b22 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4726
diff changeset
   858
    self package:aPackageId
ec580e5f9b22 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4726
diff changeset
   859
ec580e5f9b22 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4726
diff changeset
   860
    "Modified: 27.1.1997 / 12:10:00 / cg"
ec580e5f9b22 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4726
diff changeset
   861
!
ec580e5f9b22 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4726
diff changeset
   862
4099
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
   863
prerequisiteClasses
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
   864
    "return the prerequisiteClasses of the project"
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
   865
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
   866
    ^ (self propertyAt:#prerequisiteClasses) ? #()
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
   867
!
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
   868
4124
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   869
prerequisiteClasses:aCollectionOfClassesOrClassNames
4099
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
   870
    "set the prerequisiteClasses of the project"
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
   871
4124
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   872
    ^ self propertyAt:#prerequisiteClasses put:aCollectionOfClassesOrClassNames
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   873
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   874
    "Modified: / 26.4.1999 / 23:33:44 / cg"
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   875
!
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   876
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   877
prerequisitePackages
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   878
    "return the prerequisitePackages of the project"
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   879
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   880
    ^ self prerequisites
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   881
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   882
    "Created: / 26.4.1999 / 23:33:22 / cg"
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   883
!
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   884
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   885
prerequisitePackages:aCollectionOfPackagesOrPackageNames
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   886
    "set the prerequisitePackages of the project"
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   887
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   888
    ^ self prerequisites:aCollectionOfPackagesOrPackageNames
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   889
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
   890
    "Modified: / 26.4.1999 / 23:34:40 / cg"
4099
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
   891
!
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
   892
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   893
prerequisites
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
   894
    "return the prerequisites of the project"
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
   895
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   896
    ^ prerequisites ? #()
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   897
!
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   898
3973
7065a27b136b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3972
diff changeset
   899
prerequisites:aCollectionOfProjects
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
   900
    "set the prerequisites of the project"
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
   901
3973
7065a27b136b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3972
diff changeset
   902
    prerequisites := aCollectionOfProjects
7065a27b136b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3972
diff changeset
   903
!
7065a27b136b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3972
diff changeset
   904
654
1e039f69fdee added repository
Claus Gittinger <cg@exept.de>
parents: 630
diff changeset
   905
repositoryDirectory
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   906
    "return the projects default repository location.
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   907
     This is offered initially, when classes are checked into the
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   908
     source repository initially"
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   909
725
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
   910
    ^ repositoryDirectory
654
1e039f69fdee added repository
Claus Gittinger <cg@exept.de>
parents: 630
diff changeset
   911
1e039f69fdee added repository
Claus Gittinger <cg@exept.de>
parents: 630
diff changeset
   912
    "Created: 25.11.1995 / 18:04:51 / cg"
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   913
    "Modified: 27.1.1997 / 12:13:35 / cg"
654
1e039f69fdee added repository
Claus Gittinger <cg@exept.de>
parents: 630
diff changeset
   914
!
1e039f69fdee added repository
Claus Gittinger <cg@exept.de>
parents: 630
diff changeset
   915
1e039f69fdee added repository
Claus Gittinger <cg@exept.de>
parents: 630
diff changeset
   916
repositoryDirectory:aRelativePathName
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   917
    "set the projects default repository location.
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   918
     This will be offered initially, when classes are checked into the
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   919
     source repository initially"
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   920
725
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
   921
    repositoryDirectory := aRelativePathName
654
1e039f69fdee added repository
Claus Gittinger <cg@exept.de>
parents: 630
diff changeset
   922
1e039f69fdee added repository
Claus Gittinger <cg@exept.de>
parents: 630
diff changeset
   923
    "Created: 25.11.1995 / 18:05:06 / cg"
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   924
    "Modified: 27.1.1997 / 12:13:28 / cg"
725
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
   925
!
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
   926
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
   927
repositoryModule
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   928
    "return the projects default repository module name.
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   929
     This is offered initially, when classes are checked into the
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   930
     source repository initially"
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   931
725
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
   932
    ^ repositoryModule
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
   933
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
   934
    "Created: 25.11.1995 / 18:04:51 / cg"
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   935
    "Modified: 27.1.1997 / 12:13:50 / cg"
725
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
   936
!
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
   937
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
   938
repositoryModule:aString
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   939
    "set the projects default repository module name.
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   940
     This is offered initially, when classes are checked into the
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   941
     source repository initially"
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   942
725
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
   943
    repositoryModule := aString
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
   944
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
   945
    "Created: 25.11.1995 / 18:05:06 / cg"
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   946
    "Modified: 27.1.1997 / 12:13:57 / cg"
654
1e039f69fdee added repository
Claus Gittinger <cg@exept.de>
parents: 630
diff changeset
   947
!
1e039f69fdee added repository
Claus Gittinger <cg@exept.de>
parents: 630
diff changeset
   948
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   949
subProjects
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
   950
    "return the subprojects - obsolete; we use prerequisites now"
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
   951
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   952
    ^ subProjects ? #()
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   953
!
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   954
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   955
views
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   956
    "return a collection of views which were opened in this project"
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   957
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   958
    ^ views asArray
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   959
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   960
    "Modified: 27.1.1997 / 12:14:18 / cg"
338
claus
parents: 336
diff changeset
   961
!
claus
parents: 336
diff changeset
   962
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   963
views:aSetOfViews
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   964
    "set the collection of views which were opened in this project"
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   965
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
   966
    views := WeakIdentitySet withAll:aSetOfViews
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   967
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   968
    "Modified: 27.1.1997 / 12:14:26 / cg"
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   969
! !
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
   970
4079
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   971
!Project methodsFor:'administration'!
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   972
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   973
removeClassesFromSystem
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   974
    "remove the all of my classes & patches from the system"
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   975
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   976
    self classInfo do:[:clsInfo |
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   977
	|clsName cls|
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   978
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   979
	clsName := clsInfo className.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   980
	clsName isSymbol ifTrue:[
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   981
	    cls := Smalltalk at:clsName.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   982
	    cls notNil ifTrue:[
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   983
		cls removeFromSystem.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   984
	    ].
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   985
	] ifFalse:[
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   986
	    self halt
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
   987
	].
4079
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   988
    ].
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   989
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   990
!
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   991
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   992
removeFromSystem
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   993
    "remove the project and all of its classes & patches from the
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   994
     system"
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   995
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   996
    self removeClassesFromSystem.
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   997
    AllProjects remove:self ifAbsent:nil.
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   998
! !
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
   999
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
  1000
!Project methodsFor:'changes'!
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
  1001
5224
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1002
addClassCommentChangeFor:aClass
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1003
    "add a comment-change for aClass to the receivers changeSet"
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1004
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1005
    |changeSet|
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1006
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1007
    (changeSet := self changeSet) notNil ifTrue:[
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1008
        changeSet addClassCommentChangeFor:aClass 
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1009
    ].
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1010
    self rememberChangedClass:aClass
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1011
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1012
!
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1013
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1014
addClassDefinitionChangeFor:aClass
5224
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1015
    "add a class-def-change for aClass to the receivers changeSet"
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1016
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1017
    |changeSet|
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1018
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1019
    (changeSet := self changeSet) notNil ifTrue:[
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1020
        changeSet addClassDefinitionChangeFor:aClass 
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1021
    ].
5156
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1022
    self rememberChangedClass:aClass
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1023
!
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1024
7182
42dce0ee1b98 james' package changes
james
parents: 7107
diff changeset
  1025
addClassRemoveChange:oldClass
6167
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1026
    "add a class-remove-change to the current project"
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1027
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1028
    |changeSet|
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1029
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1030
    (changeSet := self changeSet) notNil ifTrue:[
7182
42dce0ee1b98 james' package changes
james
parents: 7107
diff changeset
  1031
        changeSet addClassRemoveChange:oldClass
6167
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1032
    ].
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1033
!
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1034
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1035
addClassRenameChangeFrom:oldName to:newName
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1036
    "add a class-rename-change to the current project"
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1037
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1038
    |changeSet|
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1039
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1040
    (changeSet := self changeSet) notNil ifTrue:[
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1041
        changeSet addClassRenameChangeFrom:oldName to:newName 
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1042
    ].
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1043
    self rememberChangedClass:(Smalltalk at:newName)
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1044
!
f8e833471c82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6152
diff changeset
  1045
6097
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
  1046
addDoIt:aString
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
  1047
    "add a doIt to the receivers changeSet"
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
  1048
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
  1049
    |changeSet|
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
  1050
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
  1051
    (changeSet := self changeSet) notNil ifTrue:[
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
  1052
        changeSet addDoIt:aString 
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
  1053
    ].
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
  1054
!
276766efb318 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6079
diff changeset
  1055
5224
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1056
addInstVarDefinitionChangeFor:aClass
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1057
    "add an instvar-definition-change for aClass to the receivers changeSet"
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1058
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1059
    |changeSet|
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1060
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1061
    (changeSet := self changeSet) notNil ifTrue:[
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1062
        changeSet addInstVarDefinitionChangeFor:aClass 
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1063
    ].
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1064
    self rememberChangedClass:aClass
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1065
!
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1066
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1067
addMethodCategoryChange:aMethod category:newCategory in:aClass
5224
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1068
    "add a method-category-change for aMethod in aClass to the receivers changeSet"
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1069
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1070
    |changeSet|
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1071
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1072
    (changeSet := self changeSet) notNil ifTrue:[
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1073
        changeSet addMethodCategoryChange:aMethod category:newCategory in:aClass 
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1074
    ].
5156
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1075
    self rememberChangedClass:aClass
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1076
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1077
    "Modified: / 5.11.2001 / 16:25:34 / cg"
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1078
!
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1079
5553
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
  1080
addMethodChange:aMethod fromOld:oldMethod in:aClass
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
  1081
    "add a method change in aClass to the receivers changeSet"
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
  1082
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
  1083
    |changeSet|
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
  1084
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
  1085
    (changeSet := self changeSet) notNil ifTrue:[
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
  1086
        changeSet addMethodChange:aMethod fromOld:oldMethod in:aClass 
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
  1087
    ].
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
  1088
    self rememberChangedClass:aClass
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1089
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1090
    "Modified: / 5.11.2001 / 16:25:38 / cg"
5553
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
  1091
!
1740d3ae50ff keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents: 5547
diff changeset
  1092
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1093
addMethodChange:aMethod in:aClass
5224
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1094
    "add a method change in aClass to the receivers changeSet"
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1095
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1096
    |changeSet|
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1097
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1098
    (changeSet := self changeSet) notNil ifTrue:[
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1099
        changeSet addMethodChange:aMethod in:aClass 
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1100
    ].
5156
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1101
    self rememberChangedClass:aClass
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1102
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1103
    "Modified: / 5.11.2001 / 16:25:44 / cg"
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1104
!
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1105
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1106
addMethodPrivacyChange:aMethod in:aClass
5224
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1107
    "add a privacy change for aMethod in aClass to the receivers changeSet"
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1108
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1109
    |changeSet|
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1110
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1111
    (changeSet := self changeSet) notNil ifTrue:[
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1112
        changeSet addMethodPrivacyChange:aMethod in:aClass 
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1113
    ].
5156
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1114
    self rememberChangedClass:aClass
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1115
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1116
    "Modified: / 5.11.2001 / 16:25:49 / cg"
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1117
!
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1118
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1119
addPrimitiveDefinitionsChangeFor:aClass
5224
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1120
    "add a primitiveDef change for aClass to the receivers changeSet"
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1121
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1122
    |changeSet|
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1123
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1124
    (changeSet := self changeSet) notNil ifTrue:[
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1125
        changeSet addPrimitiveDefinitionsChangeFor:aClass 
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1126
    ].
5156
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1127
    self rememberChangedClass:aClass
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1128
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1129
    "Modified: / 5.11.2001 / 16:25:53 / cg"
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1130
!
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1131
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1132
addPrimitiveFunctionsChangeFor:aClass
5224
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1133
    "add a primitiveFuncs change for aClass to the receivers changeSet"
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1134
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1135
    |changeSet|
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1136
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1137
    (changeSet := self changeSet) notNil ifTrue:[
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1138
        changeSet addPrimitiveFunctionsChangeFor:aClass 
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1139
    ].
5156
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1140
    self rememberChangedClass:aClass
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1141
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1142
    "Modified: / 5.11.2001 / 16:26:05 / cg"
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1143
!
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1144
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1145
addPrimitiveVariablesChangeFor:aClass
5224
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1146
    "add a primitiveVars change for aClass to the receivers changeSet"
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1147
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1148
    |changeSet|
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1149
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1150
    (changeSet := self changeSet) notNil ifTrue:[
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1151
        changeSet addPrimitiveVariablesChangeFor:aClass 
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1152
    ].
5156
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1153
    self rememberChangedClass:aClass
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1154
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1155
    "Modified: / 5.11.2001 / 16:26:08 / cg"
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1156
!
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1157
6746
8bbd639df663 removeSelector change: remember methods previous version
Claus Gittinger <cg@exept.de>
parents: 6557
diff changeset
  1158
addRemoveSelectorChange:aSelector fromOld:oldMethod in:aClass
5224
003c8edae743 comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents: 5201
diff changeset
  1159
    "add a method-remove change in aClass to the receivers changeSet"
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1160
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1161
    |changeSet|
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1162
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1163
    (changeSet := self changeSet) notNil ifTrue:[
6746
8bbd639df663 removeSelector change: remember methods previous version
Claus Gittinger <cg@exept.de>
parents: 6557
diff changeset
  1164
        changeSet addRemoveSelectorChange:aSelector fromOld:oldMethod in:aClass 
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1165
    ].
5156
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1166
    self rememberChangedClass:aClass
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1167
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1168
    "Modified: / 5.11.2001 / 16:26:11 / cg"
5150
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1169
!
d7f854b5ede8 keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents: 5126
diff changeset
  1170
5239
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
  1171
addRenameCategoryChangeIn:aClass from:oldCategory to:newCategory
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
  1172
    "add a category rename change in aClass to the receivers changeSet"
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
  1173
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
  1174
    |changeSet|
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
  1175
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
  1176
    (changeSet := self changeSet) notNil ifTrue:[
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
  1177
        changeSet addRenameCategoryChangeIn:aClass from:oldCategory to:newCategory 
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
  1178
    ].
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
  1179
    self rememberChangedClass:aClass
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
  1180
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
  1181
    "Created: / 6.2.2000 / 02:28:07 / cg"
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1182
    "Modified: / 5.11.2001 / 16:26:14 / cg"
5239
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
  1183
!
8b70947d7036 category change in changeSet
Claus Gittinger <cg@exept.de>
parents: 5232
diff changeset
  1184
5155
d6e0aca50f36 checkin from browser
ps
parents: 5151
diff changeset
  1185
condenseChangesForClassCheckin:aClass
d6e0aca50f36 checkin from browser
ps
parents: 5151
diff changeset
  1186
    |changeSet|
d6e0aca50f36 checkin from browser
ps
parents: 5151
diff changeset
  1187
d6e0aca50f36 checkin from browser
ps
parents: 5151
diff changeset
  1188
    (changeSet := self changeSet) notNil ifTrue:[
d6e0aca50f36 checkin from browser
ps
parents: 5151
diff changeset
  1189
        changeSet condenseChangesForClass:aClass package:aClass package
d6e0aca50f36 checkin from browser
ps
parents: 5151
diff changeset
  1190
    ].
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1191
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1192
    "Modified: / 5.11.2001 / 16:24:18 / cg"
5156
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1193
!
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1194
5181
6079b255ee64 checkin from browser
ps
parents: 5179
diff changeset
  1195
condenseChangesForClassFilein:aClass
6079b255ee64 checkin from browser
ps
parents: 5179
diff changeset
  1196
6079b255ee64 checkin from browser
ps
parents: 5179
diff changeset
  1197
    #TODO.
6079b255ee64 checkin from browser
ps
parents: 5179
diff changeset
  1198
    "/ do not remove, if there are still methodChanges for other
6079b255ee64 checkin from browser
ps
parents: 5179
diff changeset
  1199
    "/ packages around
6079b255ee64 checkin from browser
ps
parents: 5179
diff changeset
  1200
    changedClasses := self changedClasses select:[:cls | |realClass|
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1201
                                                   realClass := cls theNonMetaclass.
5181
6079b255ee64 checkin from browser
ps
parents: 5179
diff changeset
  1202
                                                   realClass name ~= aClass name
6079b255ee64 checkin from browser
ps
parents: 5179
diff changeset
  1203
                                                 ].
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1204
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1205
    "Modified: / 5.11.2001 / 16:45:56 / cg"
5181
6079b255ee64 checkin from browser
ps
parents: 5179
diff changeset
  1206
!
6079b255ee64 checkin from browser
ps
parents: 5179
diff changeset
  1207
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1208
condenseChangesForExtensionsCheckInInPackage:package
6141
cd681933c6bf condense changes for extensions
Claus Gittinger <cg@exept.de>
parents: 6097
diff changeset
  1209
    |changeSet|
cd681933c6bf condense changes for extensions
Claus Gittinger <cg@exept.de>
parents: 6097
diff changeset
  1210
cd681933c6bf condense changes for extensions
Claus Gittinger <cg@exept.de>
parents: 6097
diff changeset
  1211
    (changeSet := self changeSet) notNil ifTrue:[
cd681933c6bf condense changes for extensions
Claus Gittinger <cg@exept.de>
parents: 6097
diff changeset
  1212
        changeSet condenseChangesForExtensionsInPackage:package
cd681933c6bf condense changes for extensions
Claus Gittinger <cg@exept.de>
parents: 6097
diff changeset
  1213
    ].
cd681933c6bf condense changes for extensions
Claus Gittinger <cg@exept.de>
parents: 6097
diff changeset
  1214
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1215
    "Created: / 5.11.2001 / 17:07:45 / cg"
6141
cd681933c6bf condense changes for extensions
Claus Gittinger <cg@exept.de>
parents: 6097
diff changeset
  1216
!
cd681933c6bf condense changes for extensions
Claus Gittinger <cg@exept.de>
parents: 6097
diff changeset
  1217
5156
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1218
rememberChangedClass:aClass
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1219
    |realClass|
f7d6a1e1a890 checkin from browser
ps
parents: 5155
diff changeset
  1220
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  1221
    realClass := aClass theNonMetaclass.
5181
6079b255ee64 checkin from browser
ps
parents: 5179
diff changeset
  1222
    self changedClasses add:realClass.
6192
ab760a607762 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6178
diff changeset
  1223
    changedClasses := changedClasses 
ab760a607762 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6178
diff changeset
  1224
                        select:[:aClass | aClass theNonMetaclass isObsolete not].
ab760a607762 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6178
diff changeset
  1225
ab760a607762 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6178
diff changeset
  1226
    "Modified: / 16.11.2001 / 13:18:16 / cg"
5155
d6e0aca50f36 checkin from browser
ps
parents: 5151
diff changeset
  1227
!
d6e0aca50f36 checkin from browser
ps
parents: 5151
diff changeset
  1228
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
  1229
rememberOverwrittenMethod:newMethod from:oldMethod
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
  1230
    "this is sent whenever a method is installed, which overwrites
2334
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
  1231
     an existing method from a different package.
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
  1232
     Allows previous methods to be reconstructed."
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
  1233
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
  1234
    overwrittenMethods isNil ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  1235
	overwrittenMethods := IdentityDictionary new.
2276
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
  1236
    ].
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
  1237
    overwrittenMethods at:newMethod put:oldMethod
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
  1238
4efec5219eef remember overwritten methods
Claus Gittinger <cg@exept.de>
parents: 2164
diff changeset
  1239
    "Created: 27.1.1997 / 11:52:01 / cg"
2334
7502902385ff only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents: 2276
diff changeset
  1240
    "Modified: 30.1.1997 / 21:10:51 / cg"
10
claus
parents: 2
diff changeset
  1241
! !
claus
parents: 2
diff changeset
  1242
236
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
  1243
!Project methodsFor:'initialization'!
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
  1244
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
  1245
initialize
338
claus
parents: 336
diff changeset
  1246
    |numString|
claus
parents: 336
diff changeset
  1247
330
claus
parents: 318
diff changeset
  1248
    views := WeakIdentitySet new.
338
claus
parents: 336
diff changeset
  1249
    numString := NextSequential printString.
315
7683685383d6 *** empty log message ***
claus
parents: 236
diff changeset
  1250
    NextSequential := NextSequential + 1.
338
claus
parents: 336
diff changeset
  1251
claus
parents: 336
diff changeset
  1252
    name := 'new Project-' , numString.
claus
parents: 336
diff changeset
  1253
    packageName := 'private-' , numString.
2034
1c96469c3df8 preinit the defaultNamespace of new projects (to Smalltalk)
Claus Gittinger <cg@exept.de>
parents: 2032
diff changeset
  1254
654
1e039f69fdee added repository
Claus Gittinger <cg@exept.de>
parents: 630
diff changeset
  1255
    self directory:'.'.
725
02759b2003a8 keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents: 705
diff changeset
  1256
    self repositoryModule:(OperatingSystem getLoginName).
654
1e039f69fdee added repository
Claus Gittinger <cg@exept.de>
parents: 630
diff changeset
  1257
    self repositoryDirectory:'private'
1e039f69fdee added repository
Claus Gittinger <cg@exept.de>
parents: 630
diff changeset
  1258
1e039f69fdee added repository
Claus Gittinger <cg@exept.de>
parents: 630
diff changeset
  1259
    "Created: 25.11.1995 / 18:05:44 / cg"
2034
1c96469c3df8 preinit the defaultNamespace of new projects (to Smalltalk)
Claus Gittinger <cg@exept.de>
parents: 2032
diff changeset
  1260
    "Modified: 3.1.1997 / 13:24:10 / cg"
236
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
  1261
! !
fa6d1f330010 *** empty log message ***
claus
parents: 235
diff changeset
  1262
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1263
!Project methodsFor:'load & save'!
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1264
4805
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1265
conditionForAutoloadIsTrue:cond
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1266
    "check condition ..."
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1267
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1268
    ^ cond == #autoload 
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1269
!
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1270
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1271
conditionForInclusionIsTrue:cond
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1272
    "check condition ..."
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1273
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1274
    cond == #always ifTrue:[^ true].
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1275
    cond == #autoload ifTrue:[^ true].
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1276
    cond == #never ifTrue:[^ false].
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1277
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1278
    cond == #unix ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  1279
	^ OperatingSystem isUNIXlike
4805
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1280
    ].
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1281
    cond == #win32 ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  1282
	^ OperatingSystem isMSWINDOWSlike
4805
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1283
    ].
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1284
    cond == #vms ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  1285
	^ OperatingSystem isVMSlike
4805
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1286
    ].
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1287
    cond == #macos ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  1288
	^ OperatingSystem isMAClike
4805
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1289
    ].
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1290
    self halt:'bad condition'
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1291
!
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1292
4079
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
  1293
loadClassesFromProjectDirectory
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
  1294
    "load my classes into the system.
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
  1295
     The classes are loaded from the directory as defined by my
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
  1296
     directory insTvar"
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
  1297
4805
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1298
    |myDirectory firstTrip|
4079
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
  1299
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
  1300
    myDirectory := self directory asFilename.
4805
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1301
    firstTrip := true.
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1302
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1303
    "/ read twice; if the load order was not correct,
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1304
    "/ this will fix things (i.e. nil superclasses ...)
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1305
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1306
    2 timesRepeat:[
4886
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1307
        self classInfo do:[:clsInfo |
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1308
            |clsName clsFileNameString cls clsFilename 
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1309
             cond include asAutoload|
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1310
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1311
            clsName := clsInfo className.
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1312
            (clsName startsWith:'Smalltalk::') ifTrue:[
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1313
                clsInfo className:(clsName := clsName copyFrom:'Smalltalk::' size + 1).
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1314
            ].
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1315
            clsName := clsName asSymbol.
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1316
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1317
            clsFileNameString := clsInfo classFileName.
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1318
            clsFileNameString isNil ifTrue:[clsFileNameString := clsName , '.st'].
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1319
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1320
            clsName isSymbol ifTrue:[
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1321
                clsFilename := myDirectory construct:clsFileNameString.
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1322
                cls := Smalltalk at:clsName.
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1323
                (cls isNil or:[firstTrip]) ifTrue:[
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1324
                    "/ ok - really not yet loaded.
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1325
                    Transcript showCR:'loading ' , clsFilename pathName , ' ...'.
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1326
                ] ifFalse:[
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1327
                    Transcript showCR:'reloading ' , clsFilename pathName , ' ...'.
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1328
                ].
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1329
                "/ check condition ...
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1330
                cond := clsInfo conditionForInclusion.
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1331
                (self conditionForInclusionIsTrue:cond) ifTrue:[
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1332
                    (self conditionForAutoloadIsTrue:cond) ifTrue:[
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1333
                        Smalltalk
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1334
                            installAutoloadedClassNamed:clsName
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1335
                            category:'autoloaded'
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1336
                            package:self package    
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1337
                            revision:nil
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1338
                    ] ifFalse:[
7095
54183681e86c Convert Object>>errorSignal -> Error
Stefan Vogel <sv@exept.de>
parents: 7090
diff changeset
  1339
                        Error handle:[:ex |
5199
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1340
                            self warn:'error during fileIn: ' , ex errorString
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1341
                        ] do:[
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1342
                            Class packageQuerySignal answer:packageName do:[    
5690
e5efb5ecbe6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5671
diff changeset
  1343
                                Parser::UndefinedSuperclassError handle:[:ex |
e5efb5ecbe6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5671
diff changeset
  1344
                                    firstTrip ifFalse:[
e5efb5ecbe6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5671
diff changeset
  1345
                                        ex reject.
e5efb5ecbe6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5671
diff changeset
  1346
                                    ]
e5efb5ecbe6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5671
diff changeset
  1347
                                ] do:[
e5efb5ecbe6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5671
diff changeset
  1348
                                    clsFilename fileIn.
e5efb5ecbe6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5671
diff changeset
  1349
                                    "/ Smalltalk fileIn:clsFilename
e5efb5ecbe6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5671
diff changeset
  1350
                                ]
5199
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1351
                            ]
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1352
                        ]
4886
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1353
                    ]
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1354
                ]
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1355
            ] ifFalse:[
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1356
                self halt
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1357
            ].
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1358
        ].
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1359
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1360
        firstTrip := false.
4079
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
  1361
    ].
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
  1362
!
84ad7326cc62 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4078
diff changeset
  1363
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1364
loadFromProjectFile:aFilename
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1365
    "fill all of my attributes from a projects file (.prj-file)"
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1366
5819
b46dd00555c6 Cleanup unused method vars
Stefan Vogel <sv@exept.de>
parents: 5734
diff changeset
  1367
    |f pack targetConditions s module dir formatVersion|
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1368
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1369
    f := aFilename asFilename.
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1370
    directoryName := f directory pathName.
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1371
    self directory:(f directory pathName).
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1372
    pack := ResourcePack fromFile:f baseName directory:directoryName.
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1373
4909
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1374
    formatVersion := pack at:'fileFormatVersion' ifAbsent:nil.
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1375
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1376
    "/ convert the resourcePack ...
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1377
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1378
    packageName := pack at:'package' ifAbsent:packageName.
5232
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1379
    repositoryModule := packageName upTo:$:.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1380
    repositoryDirectory := packageName restAfter:$:.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1381
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1382
    name := pack at:'name' ifAbsent:name.
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  1383
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1384
    self type:(pack at:'type' ifAbsent:#application) asSymbol.
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1385
4124
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1386
    module := pack at:'repository.module' ifAbsent:nil.
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1387
    module notNil ifTrue:[
5232
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1388
        repositoryModule ~= module ifTrue:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1389
            'Project [warning]: module does not correspond to packageId' infoPrintCR.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1390
            'Project [info]: this will be not supported in future versions' infoPrintCR.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1391
        ].
4833
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1392
        repositoryModule := module.
5232
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1393
        dir := pack at:'repository.directory' ifAbsent:nil.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1394
        dir notNil ifTrue:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1395
            repositoryDirectory ~= dir ifTrue:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1396
                'Project [warning]: directory does not correspond to packageId' infoPrintCR.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1397
                'Project [info]: this will be not supported in future versions' infoPrintCR.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1398
            ].
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1399
            repositoryDirectory := dir.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1400
        ]
4124
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1401
    ].
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  1402
4099
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
  1403
    prerequisites := pack at:'prerequisites' ifAbsent:#().
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
  1404
    self prerequisiteClasses:(pack at:'prerequisiteClasses' ifAbsent:#()).
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
  1405
4074
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1406
    s := pack at:'nameSpace' ifAbsent:nil.
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1407
    s notNil ifTrue:[
5328
319b8e3ee60e renamed Namespace to NameSpace
Claus Gittinger <cg@exept.de>
parents: 5327
diff changeset
  1408
        self defaultNameSpace:(NameSpace name:s asSymbol).
4074
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1409
    ].
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1410
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1411
    subProjects := pack at:'subProjects' ifAbsent:subProjects.
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1412
    (s := pack at:'comment' ifAbsent:nil) notNil ifTrue:[
4833
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1413
        self comment:s
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1414
    ].
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1415
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1416
    "/ first, all of the conditions ...
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1417
    targetConditions := Dictionary new.
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1418
    pack keysAndValuesDo:[:key :val |
4833
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1419
        |conditionKey|
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1420
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1421
        (key startsWith:'target.condition.') ifTrue:[
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1422
            conditionKey := key copyFrom:'target.condition.' size + 1.
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1423
            targetConditions at:conditionKey put:val.
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1424
        ]
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1425
    ].
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1426
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1427
    properties isNil ifTrue:[
4833
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1428
        properties := IdentityDictionary new
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1429
    ].
5819
b46dd00555c6 Cleanup unused method vars
Stefan Vogel <sv@exept.de>
parents: 5734
diff changeset
  1430
    properties at:#targetconditions put:targetConditions.
b46dd00555c6 Cleanup unused method vars
Stefan Vogel <sv@exept.de>
parents: 5734
diff changeset
  1431
    properties declare:#sourcesDirectory from:pack.
4833
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1432
    properties declare:#methodsFile from:pack.
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1433
    properties declare:#files from:pack.
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1434
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1435
    "/ fetch class info
4805
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1436
    "/
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1437
    "/ each entry consist of:
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1438
    "/    full-name-of-class
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1439
    "/    condition (optional)  - #unix / #win32 / #vms / #macos / #always / #never / #autoload
a7e6d2cb9b29 care for conditions when generatong loadAll / Make.proto files.
Claus Gittinger <cg@exept.de>
parents: 4796
diff changeset
  1440
    "/    fileName (optional)
5201
Claus Gittinger <cg@exept.de>
parents: 5199
diff changeset
  1441
    properties at:#autoIncludeImageClasses put:false.
Claus Gittinger <cg@exept.de>
parents: 5199
diff changeset
  1442
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  1443
    (pack at:'classes' default:#()) do:[:info |
4833
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1444
        |condKey className optionalFileName|
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1445
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1446
        condKey := #always.
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1447
        info isSymbol ifTrue:[
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1448
            className := info.
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1449
        ] ifFalse:[
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1450
            className := info at:1.
4909
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1451
            formatVersion == 0 ifTrue:[
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1452
                info size > 1 ifTrue:[
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1453
                    optionalFileName := info at:2.
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1454
                    info size > 2 ifTrue:[
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1455
                        condKey := info at:3.
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1456
                    ]
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1457
                ].
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1458
            ] ifFalse:[
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1459
                className := info at:1.
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1460
                info size > 1 ifTrue:[
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1461
                    condKey := info at:2.
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1462
                    info size > 2 ifTrue:[
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1463
                        optionalFileName := info at:3.
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1464
                    ]
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1465
                ].
4833
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1466
            ].
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1467
        ].
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1468
        self 
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1469
            addClass:className 
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1470
            conditionForInclusion:condKey 
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1471
            classFileName:optionalFileName
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1472
    ].
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1473
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  1474
    "/ fetch methods info
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  1475
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  1476
    (pack at:'methods' default:#()) do:[:info |
4833
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1477
        |condKey className methodName optionalFileName|
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1478
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1479
        condKey := #always.
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1480
        className := info at:1.
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1481
        methodName := info at:2.
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1482
        info size > 2 ifTrue:[
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1483
            optionalFileName := info at:3.
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1484
            info size > 3 ifTrue:[
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1485
                condKey := info at:4.
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1486
            ]
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1487
        ].
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1488
        self 
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1489
            addMethod:methodName inClass:className 
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1490
            conditionForInclusion:condKey 
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1491
            fileName:optionalFileName
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  1492
    ].
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  1493
4069
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  1494
    self wasLoadedFromFile:true.
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  1495
4099
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
  1496
    "/ all remaining properties
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
  1497
    pack keysAndValuesDo:[:key :val |
4833
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1498
        (key startsWith:'property.') ifTrue:[
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1499
            self propertyAt:(key copyFrom:'property.' size+1) asSymbol put:val.
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  1500
        ]
4099
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
  1501
    ].
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
  1502
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1503
    "
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1504
     Project current saveAsProjectFile.
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1505
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1506
     Project new loadFromProjectFile:'default.prj'
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1507
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  1508
     Project new loadFromProjectFile:'../../libbasic/libbasic.prj'
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1509
    "
4069
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  1510
4124
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1511
    "Modified: / 26.4.1999 / 23:21:33 / cg"
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1512
!
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1513
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1514
saveAsProjectFile
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1515
    "store all of my attributes into a projects file (.prj-file)
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1516
     (in the project-directory and named as <projectName>.prj)"
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1517
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1518
    |dir fn nm s|
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1519
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1520
    dir := self directory asFilename.
4790
38030fd8b681 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4789
diff changeset
  1521
    nm := self libraryName.
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1522
    fn := dir construct:nm.
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1523
    fn := fn withSuffix:'prj'.
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1524
4124
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1525
    fn exists ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  1526
	fn copyTo:(fn pathName , '.bak')
4124
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1527
    ].
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1528
    s := fn writeStream.
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1529
    self saveAsProjectFileOn:s.
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1530
    s close.
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1531
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1532
    "
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1533
     Project current saveAsProjectFile
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1534
    "
4124
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1535
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1536
    "Modified: / 26.4.1999 / 22:53:38 / cg"
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1537
!
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1538
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1539
saveAsProjectFileOn:aStream
4074
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1540
    "save the project info in a format which is both usable for reload
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1541
     and somehow readable for humans.
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1542
     Actually, the format is the same as used for resources (i.e. key - value pairs)
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1543
     and the code below could be much simpler - if there where no humans to read it ..."
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1544
5232
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1545
    |s coll first maxLen t defNS methodsFile classes packageId
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1546
     moduleFromPackageId directoryFromPackageId|
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1547
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1548
    packageId := self package.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1549
    packageId isNil ifTrue:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1550
        'Project [warning]: no valid packageId - generating a default' infoPrintCR.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1551
        packageId := OperatingSystem getLoginName , ':private'.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1552
    ] ifFalse:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1553
        (packageId includes:$:) ifFalse:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1554
            'Project [warning]: no module in packageId - generating a default' infoPrintCR.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1555
            packageId := OperatingSystem getLoginName , ':' , packageId.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1556
        ]
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1557
    ].
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1558
    moduleFromPackageId := packageId upTo:$:.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1559
    directoryFromPackageId := packageId restAfter:$:.
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1560
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1561
    s := aStream.
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1562
4099
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
  1563
    s nextPutLine:'; $Header' , '$'; nextPutLine:';'.
4074
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1564
    s nextPutLine:'; Project saved ' , Smalltalk timeStamp; nextPutLine:';'.
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1565
    s nextPutAll:'; Be careful when editing - do not corrupt the files syntax.
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1566
; Lines starting with a semicolon are comment lines.
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1567
; Lines ending with a backslash are concatenated with the following line.
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1568
; Entries are key-value pairs, separated by whitespace;
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1569
; the value is a smalltalk literal expression.
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1570
'.
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1571
4909
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1572
    s nextPutAll:'fileFormatVersion'; tab; nextPutLine:(self class projectFileFormatVersion printString).
bc474f9c0180 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4900
diff changeset
  1573
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1574
    s nextPutAll:'
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1575
;
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1576
; general:
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1577
;
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1578
'.
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  1579
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  1580
    s nextPutAll:'comment'. 
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  1581
    s tab. s nextPutLine:(self comment storeString).
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  1582
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  1583
    s nextPutAll:'name'. 
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1584
    s tab. s nextPutLine:(name storeString).
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  1585
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  1586
    s nextPutAll:'type'. 
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1587
    s tab. s nextPutLine:(self type storeString).
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  1588
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  1589
    s nextPutAll:'package'. 
5232
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1590
    s tab. s nextPutLine:(packageId storeString).
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1591
4726
5c5e1c7f8933 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4721
diff changeset
  1592
    defNS := self defaultNameSpace.
5199
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1593
    (defNS notNil and:[defNS ~~ Smalltalk]) ifTrue:[
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1594
        s nextPutAll:'nameSpace'. 
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1595
        s tab. s nextPutLine:(defNS name storeString).
5199
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1596
    ] ifFalse:[
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1597
        defNS := nil.
4074
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1598
    ].
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1599
5232
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1600
    "/ skip if same as what the packageID implies;
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1601
    "/ this will be enforced in future versions.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1602
    repositoryModule isNil ifTrue:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1603
        repositoryModule := moduleFromPackageId.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1604
    ].
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1605
    repositoryDirectory isNil ifTrue:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1606
        repositoryDirectory := directoryFromPackageId
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1607
    ].
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1608
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1609
    (repositoryModule ~= moduleFromPackageId
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1610
    or:[repositoryDirectory ~= directoryFromPackageId]) ifTrue:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1611
        'Project [warning]: module/directory does not correspond to packageId' infoPrintCR.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1612
        'Project [info]: this will be not supported in future versions' infoPrintCR.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1613
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1614
        s nextPutAll:'
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1615
;
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1616
; repository:
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1617
;
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1618
'.
5232
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1619
        s nextPutAll:'repository.module'. 
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1620
        s tab. s nextPutLine:(repositoryModule ? 'private') storeString.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1621
        s nextPutAll:'repository.directory'. 
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1622
        s tab. s nextPutLine:(repositoryDirectory ? packageId) storeString.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1623
        s cr.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1624
    ].
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  1625
4124
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1626
    (t := properties at:#'sourcesDirectory' ifAbsent:nil) notNil ifTrue:[
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1627
        s nextPutAll:'sources'. 
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1628
        s tab. s nextPutLine:(t storeString).
4124
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1629
    ].
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1630
4074
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1631
    first := true.
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  1632
    properties keysAndValuesDo:[:key :val |
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1633
        (#(
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1634
            comment
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1635
            wasLoadedFromFile
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1636
            targetconditions
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1637
            classes
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1638
            classInfo
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1639
            methodInfo
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1640
            prerequisiteClasses
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1641
            files
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1642
            sourcesDirectory
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1643
            methodsFile
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1644
            type
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1645
            defaultNameSpace
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1646
        ) includes:key) ifFalse:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1647
            first ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1648
                first := false.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1649
                s nextPutAll:'
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1650
;
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1651
; properties:
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1652
;
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1653
'.
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1654
            ].    
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1655
            s nextPutAll:'property.'; nextPutAll:key. 
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1656
            s tab. 
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1657
            key == #defaultNameSpace ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1658
                s nextPutLine:val name storeString.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1659
            ] ifFalse:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1660
                s nextPutLine:val storeString.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1661
            ]
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1662
        ]
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  1663
    ].
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1664
        
5232
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1665
    s nextPutAll:'
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1666
;
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1667
; sub-projects:
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1668
;
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1669
'.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1670
    s nextPutAll:'subProjects'; tab.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1671
    coll := self subProjects.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1672
    coll size = 0 ifTrue:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1673
        s nextPutLine:'#()'. 
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1674
    ] ifFalse:[    
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1675
        s nextPutLine:'#( \'. 
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1676
        coll do:[:aProjectOrProjectNameList |
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1677
            |pName pPath|
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1678
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1679
            aProjectOrProjectNameList isString ifTrue:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1680
                pName := aProjectOrProjectNameList.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1681
            ] ifFalse:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1682
                aProjectOrProjectNameList isArray ifTrue:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1683
                    pName := aProjectOrProjectNameList at:1.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1684
                    pPath := aProjectOrProjectNameList at:2.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1685
                ] ifFalse:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1686
                    pName := aProjectOrProjectNameList name.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1687
                    pPath := aProjectOrProjectNameList repositoryPath.    
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1688
                ]
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1689
            ].
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1690
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1691
            pPath isNil ifTrue:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1692
                s tab. s nextPutAll:(pName storeString); nextPutLine:' \'.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1693
            ] ifFalse:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1694
                s tab. s nextPutAll:'( '.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1695
                s nextPutAll:(pName storeString); space;
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1696
                  nextPutAll:(pPath storeString); nextPutLine:') \'.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1697
            ]
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1698
        ].
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1699
        s nextPutLine:')'.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1700
    ].
4074
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1701
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1702
    s nextPutAll:'
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1703
;
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1704
; required packages:
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1705
;
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1706
'.
4074
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1707
    s nextPutAll:'prerequisites'; tab.
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1708
    coll := self prerequisites.
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1709
    coll size = 0 ifTrue:[
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1710
        s nextPutLine:'#()'. 
4074
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1711
    ] ifFalse:[    
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1712
        s nextPutLine:'#( \'. 
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1713
        coll do:[:aProjectOrProjectNameList |
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1714
            |pName pPath|
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1715
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1716
            aProjectOrProjectNameList isString ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1717
                pName := aProjectOrProjectNameList.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1718
            ] ifFalse:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1719
                aProjectOrProjectNameList isArray ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1720
                    pName := aProjectOrProjectNameList at:1.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1721
                    pPath := aProjectOrProjectNameList at:2.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1722
                ] ifFalse:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1723
                    pName := aProjectOrProjectNameList name.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1724
                    pPath := aProjectOrProjectNameList repositoryPath.    
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1725
                ]
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1726
            ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1727
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1728
            pPath isNil ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1729
                s tab. s nextPutAll:(pName storeString); nextPutLine:' \'.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1730
            ] ifFalse:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1731
                s tab. s nextPutAll:'( '.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1732
                s nextPutAll:(pName storeString); space;
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1733
                  nextPutAll:(pPath storeString); nextPutLine:') \'.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1734
            ]
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1735
        ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1736
        s nextPutLine:')'.
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1737
    ].
4124
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1738
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1739
    s nextPutAll:'
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1740
;
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1741
; required classes:
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1742
;
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1743
'.
4099
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
  1744
    s nextPutAll:'prerequisiteClasses'; tab.
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
  1745
    coll := self prerequisiteClasses.
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1746
    coll size = 0 ifTrue:[
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1747
        s nextPutLine:'#()'. 
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1748
    ] ifFalse:[    
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1749
        s nextPutLine:'#( \'. 
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1750
        coll do:[:aClassOrSymbol | |className|
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1751
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1752
            (className := aClassOrSymbol) isSymbol ifFalse:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1753
                className := aClassOrSymbol name
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1754
            ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1755
            s tab. s nextPutAll:(className storeString); nextPutLine:' \'.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1756
        ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1757
        s nextPutLine:')'.
4099
f6984fc5cb6c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4097
diff changeset
  1758
    ].
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1759
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1760
    s nextPutAll:'
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1761
;
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1762
; classes:
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1763
; (for each class, one line of the form: ( #''className'' [condition [fileName]] )
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1764
; (where fileName and condition are optional)
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1765
;
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1766
'.
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1767
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1768
    s nextPutAll:'classes'; tab.
4074
4db3db1fe7ff checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4073
diff changeset
  1769
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1770
    classes := self classesInOrderFor:'save ''prj''-file.'.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1771
    classes isNil ifTrue:[^ self].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1772
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1773
    classes size = 0 ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1774
        s nextPutLine:'#()'. 
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1775
    ] ifFalse:[    
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1776
        s nextPutLine:'#( \'.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1777
        "/ find the longest className (for layout only)
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1778
        
5199
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1779
        maxLen := classes inject:0 into:[:maxSoFar :aClassOrName |
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1780
                                        |clsName|
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1781
5199
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1782
                                        aClassOrName isBehavior ifTrue:[
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1783
                                            clsName := aClassOrName name.
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1784
                                        ] ifFalse:[
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1785
                                            clsName := aClassOrName.
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1786
                                            defNS notNil ifTrue:[
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1787
                                                (clsName startsWith:(defNS name , '::')) ifFalse:[
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1788
                                                    clsName := (defNS name , '::' , clsName)
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1789
                                                ]
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1790
                                            ].
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1791
                                            clsName := clsName asSymbol.
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1792
                                        ].
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1793
                                        maxSoFar max:clsName storeString size
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1794
                                     ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1795
5199
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1796
        classes do:[:aClassOrName |
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1797
            |clsInfo clsName fileName cond|
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1798
5199
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1799
            aClassOrName isBehavior ifTrue:[
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1800
                clsName := aClassOrName name.
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1801
            ] ifFalse:[
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1802
                clsName := aClassOrName.
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1803
                defNS notNil ifTrue:[
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1804
                    (clsName startsWith:(defNS name , '::')) ifFalse:[
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1805
                        clsName := (defNS name , '::' , clsName)
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1806
                    ]
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1807
                ].
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1808
                clsName := clsName asSymbol.
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1809
            ].
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1810
            clsInfo := self classInfoFor:clsName.
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1811
            clsInfo isNil ifTrue:[
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1812
                clsInfo := self classInfoFor:aClassOrName.
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1813
            ].
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1814
            fileName := clsInfo classFileName.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1815
            fileName = (clsName , '.st') ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1816
                fileName := nil
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1817
            ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1818
            cond := (clsInfo conditionForInclusion) ? #always.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1819
            s tab. s nextPutAll:'( '; 
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1820
                     nextPutAll:(clsName storeString paddedTo:maxLen).
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1821
            (cond ~~ #always or:[fileName notNil]) ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1822
                s tab; nextPutAll:cond storeString.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1823
            ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1824
            fileName notNil ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1825
                s tab; nextPutAll:fileName storeString.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1826
            ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1827
            s nextPutLine:') \'.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1828
        ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1829
        s nextPutLine:')'.
4124
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1830
    ].
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1831
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1832
    s nextPutAll:'
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1833
;
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1834
; methods (patches & extensions):
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1835
; (for each method, one line of the form: ( #''className'' #''methodName'' )
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1836
; (for metaclasses, #''name class'' is used)
5232
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1837
; These are stored in the methodsFile (see below)
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1838
'.
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1839
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1840
    s nextPutAll:'methods'; tab.
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1841
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1842
    coll := self methodInfo.
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1843
    coll size = 0 ifTrue:[
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1844
        s nextPutLine:'#()'. 
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1845
    ] ifFalse:[    
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1846
        s nextPutLine:'#( \'.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1847
        "/ find the longest className (for layout only)
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1848
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1849
        maxLen := coll inject:0 into:[:maxSoFar :aMethodInfo |
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1850
                                        |clsName|
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1851
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1852
                                        clsName := aMethodInfo className.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1853
                                        maxSoFar max:clsName storeString size
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1854
                                     ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1855
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1856
        coll do:[:aMethodInfo |
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1857
            |clsName mthdName fileName cond|
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1858
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1859
            clsName := aMethodInfo className.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1860
            mthdName := aMethodInfo methodName.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1861
            s tab. s nextPutAll:'( '; 
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1862
                     nextPutAll:(clsName storeString paddedTo:maxLen); 
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1863
                     tab; nextPutAll:mthdName storeString.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1864
            s nextPutLine:') \'.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1865
        ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1866
        s nextPutLine:')'.
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1867
    ].
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1868
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1869
    methodsFile := properties at:#methodsFile ifAbsent:nil.
5232
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1870
    methodsFile size == 0 ifTrue:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1871
        self methodInfo size > 0 ifTrue:[
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1872
            'Project [warning]: no methodsFile defined - generating a default' infoPrintCR.
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1873
            methodsFile := 'extensions.st'
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1874
        ]
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1875
    ].
4792
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  1876
    methodsFile size > 0 ifTrue:[
5232
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1877
        s nextPutAll:'
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1878
;
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1879
; methods above are stored in:
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1880
;
0ee28b0cfa50 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5229
diff changeset
  1881
'.
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1882
        s nextPutAll:'methodsFile'; tab; nextPutLine:'''' , methodsFile , ''''.
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1883
    ].
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1884
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1885
    s nextPutAll:'
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1886
;
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1887
; files (for deployment):
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1888
;
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1889
'.
4314
b973832ffe15 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4124
diff changeset
  1890
4124
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1891
    s nextPutAll:'files'; tab.
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1892
    coll := properties at:#'files' ifAbsent:#().
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1893
    coll size = 0 ifTrue:[
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1894
        s nextPutLine:'#()'. 
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  1895
    ] ifFalse:[    
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1896
        s nextPutLine:'#( \'. 
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1897
        coll do:[:aFileEntry |
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1898
            s tab. s nextPutAll:(aFileEntry storeString); nextPutLine:' \'.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1899
        ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1900
        s nextPutLine:')'.
4124
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1901
    ].
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1902
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1903
    "
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1904
     Project current saveOn:Transcript
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1905
    "
4124
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1906
06bfbaba171a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4119
diff changeset
  1907
    "Modified: / 26.4.1999 / 23:24:12 / cg"
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1908
! !
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  1909
2
claus
parents: 1
diff changeset
  1910
!Project methodsFor:'maintenance'!
claus
parents: 1
diff changeset
  1911
13
62303f84ff5f *** empty log message ***
claus
parents: 10
diff changeset
  1912
buildProject
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1913
    "invoke 'make' in the project directory"
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1914
13
62303f84ff5f *** empty log message ***
claus
parents: 10
diff changeset
  1915
    OperatingSystem executeCommand:('cd ' , self directory , ' ; make')
62303f84ff5f *** empty log message ***
claus
parents: 10
diff changeset
  1916
!
62303f84ff5f *** empty log message ***
claus
parents: 10
diff changeset
  1917
4850
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1918
buildProjectWithOutputTo:aStream
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1919
    "invoke 'make' in the project directory"
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1920
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1921
    |p cmdOutStream cmdInStream readerProcess|
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1922
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1923
    aStream notNil ifTrue:[
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1924
        "/ need an external stream for that.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1925
        aStream isExternalStream ifTrue:[
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1926
            cmdOutStream := aStream
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1927
        ] ifFalse:[
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1928
            p := ExternalStream makePipe.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1929
            cmdOutStream := p at:2.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1930
            "/ start a reader process
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1931
            readerProcess := [
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1932
                |data|
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1933
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1934
                cmdInStream := p at:1.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1935
                [cmdInStream atEnd] whileFalse:[
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1936
                    data := cmdInStream nextAvailable:512.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1937
                    aStream nextPutAll:data.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1938
                ]
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1939
            ] newProcess.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1940
            readerProcess name:'cmd output reader'.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1941
            readerProcess resume.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1942
        ]   
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1943
    ].
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1944
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1945
    OperatingSystem 
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1946
        executeCommand:('cd ' , self directory , ' ; make')
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1947
        inputFrom:nil 
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1948
        outputTo:cmdOutStream 
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1949
        errorTo:cmdOutStream 
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1950
        inDirectory:nil
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1951
        onError:[:status| false].
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1952
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1953
    readerProcess terminate.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1954
    cmdInStream close.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1955
    cmdOutStream close.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1956
!
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  1957
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1958
classesInOrderFor:whatMsg
5199
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1959
    |classesOrNames classes numBad firstBad msg|
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1960
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1961
    classesOrNames := self classes.
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1962
    numBad := 0.
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1963
    firstBad := nil.
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1964
5199
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1965
    classes := classesOrNames collect:[:clsOrSymbol |  |cls|
4886
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1966
                                        clsOrSymbol isBehavior ifFalse:[
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1967
                                            cls := Smalltalk at:clsOrSymbol asSymbol.
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1968
                                            cls isNil ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1969
                                                numBad := numBad + 1.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1970
                                                firstBad := firstBad ? clsOrSymbol.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1971
                                            ] ifFalse:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1972
                                                cls isLoaded ifFalse:[
5671
25efda9c2677 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5670
diff changeset
  1973
                                                    cls := cls autoload.
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1974
                                                    cls isLoaded ifFalse:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1975
                                                        cls := nil
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1976
                                                    ]
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1977
                                                ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1978
                                            ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1979
                                            cls.
4886
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  1980
                                        ] ifTrue:[
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1981
                                            clsOrSymbol
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1982
                                        ]
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1983
                              ].
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1984
    numBad ~~ 0 ifTrue:[
5199
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1985
        msg := 'Cannot determine load/compile order when about to ' , whatMsg.
5734
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  1986
        msg := msg , '\Reason: Class ''' , firstBad allBold
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1987
                   , ''' is not loaded.'.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1988
        numBad ~~ 1 ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1989
            msg := msg , '\(' , (numBad-1) printString , ' more unloaded classes were found)'
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1990
        ].
5199
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1991
        msg := msg , '\\You will have to manually load the classes or edit the project file.'.
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  1992
        self warn:msg withCRs.
5199
feb18acac2b2 project class handling
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1993
        ^ classesOrNames.
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1994
    ].
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1995
4785
4ced52c817e6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4779
diff changeset
  1996
    "/ to not list private classes
4ced52c817e6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4779
diff changeset
  1997
    classes := classes select:[:cls | cls owningClass isNil].
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1998
    classes := classes copy topologicalSort:[:a :b | b isSubclassOf:a].
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1999
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2000
    ^ classes
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2001
!
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2002
5314
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2003
createAbbrevFile
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2004
    "creates a 'abbrev.stc' file, for autoloading classes."
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2005
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2006
    |d f out classes myPackage transcript notEmpty|
5314
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2007
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2008
    classes := self classesInOrderFor:'generate ''abbrev.stc''-file.'.
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2009
    classes isNil ifTrue:[^ self].
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2010
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2011
    notEmpty := (classes size > 0).
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2012
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2013
    transcript := Transcript current.
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2014
    transcript showCR:'creating abbrev.stc file'.
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2015
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2016
    d := directoryName asFilename.
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2017
    f := d construct:'abbrev.stc'.
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2018
    [
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2019
        out := f writeStream.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2020
    ] on:FileStream openErrorSignal do:[:ex|
5314
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2021
        self warn:'cannot create abbrev.stc'.
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2022
        ^ self
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2023
    ].
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2024
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2025
    myPackage := self package.
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2026
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2027
    notEmpty ifTrue:[
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2028
        classes do:[:cls |
5338
7316969f2faf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5337
diff changeset
  2029
            |clsInfo cond fileName clsName clsCategory|
5314
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2030
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2031
            clsInfo := self classInfoFor:cls.
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2032
            cond := clsInfo conditionForInclusion.
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2033
            (cond == #always or:[cond == #autoload]) ifTrue:[
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2034
                fileName := clsInfo classFileName.
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2035
                fileName isNil ifTrue:[
5338
7316969f2faf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5337
diff changeset
  2036
                    cls isBehavior ifTrue:[
7316969f2faf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5337
diff changeset
  2037
                        fileName := cls nameWithoutNameSpacePrefix
7316969f2faf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5337
diff changeset
  2038
                    ] ifFalse:[
7316969f2faf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5337
diff changeset
  2039
                        fileName := cls
7316969f2faf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5337
diff changeset
  2040
                    ]
5314
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2041
                ].
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2042
                (fileName endsWith:'.st') ifTrue:[
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2043
                    fileName := fileName copyWithoutLast:3
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2044
                ].
5338
7316969f2faf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5337
diff changeset
  2045
                cls isBehavior ifTrue:[
7316969f2faf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5337
diff changeset
  2046
                    clsName := cls name.
7316969f2faf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5337
diff changeset
  2047
                    clsCategory := cls category.
7316969f2faf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5337
diff changeset
  2048
                ] ifFalse:[
7316969f2faf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5337
diff changeset
  2049
                    clsName := cls.
7316969f2faf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5337
diff changeset
  2050
                    clsCategory := 'unknown category'.
7316969f2faf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5337
diff changeset
  2051
                ].
7316969f2faf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5337
diff changeset
  2052
                out nextPutAll:clsName.
5314
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2053
                out space.
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2054
                out nextPutAll:fileName.
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2055
                out space.
5338
7316969f2faf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5337
diff changeset
  2056
                out nextPutAll:self package.
5314
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2057
                out space.
5338
7316969f2faf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5337
diff changeset
  2058
                out nextPut:$'; nextPutAll:clsCategory; nextPut:$'.
5314
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2059
                out cr.
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2060
            ]
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2061
        ].
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2062
    ].
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2063
    out close
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2064
!
8a4b8d5726a5 create abbrev file added
Claus Gittinger <cg@exept.de>
parents: 5293
diff changeset
  2065
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2066
createLoadAllFile
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2067
    "creates a 'loadAll' file, which will load all classes
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2068
     of the project - this loadAll file is supposed to be located
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2069
     in the projects source directory."
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2070
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2071
    |d f out classes transcript|
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2072
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2073
    classes := self classesInOrderFor:'generate ''loadAll''-file.'.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2074
    classes isNil ifTrue:[^ self].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2075
4850
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2076
    transcript := Transcript current.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2077
    transcript showCR:'creating loadAll file'.
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2078
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2079
    d := directoryName asFilename.
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2080
    f := d construct:'loadAll'.
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2081
    f exists ifTrue:[
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2082
        f renameTo:(d construct:'loadAll.bak')
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2083
    ].
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2084
    [
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2085
        out := f writeStream.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2086
    ] on:FileStream openErrorSignal do:[:ex|
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2087
        self warn:'cannot create loadAll'.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2088
        (d construct:'loadAll.bak') renameTo:f.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2089
        ^ self
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2090
    ].
5670
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2091
    self createLoadAllFileOn:out.
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2092
    out close
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2093
!
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2094
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2095
createLoadAllFileOn:outStream
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2096
    "creates a 'loadAll' file, which will load all classes
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2097
     of the project - this loadAll file is supposed to be located
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2098
     in the projects source directory."
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2099
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2100
    |in classes classInfo myPackage   
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2101
     methodsFile prerequisitePackages transcript notEmpty|
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2102
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2103
    classes := self classesInOrderFor:'generate ''loadAll''-file.'.
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2104
    classes isNil ifTrue:[^ self].
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2105
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2106
    methodsFile := self propertyAt:#methodsFile.
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2107
    notEmpty := (classes size > 0 or:[methodsFile size > 0]).
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2108
4886
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  2109
    myPackage := self package.
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  2110
5670
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2111
    outStream nextPutLine:'"/
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  2112
"/ $' , 'Header' , '$'.
5670
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2113
    outStream nextPutLine:'"/
4886
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  2114
"/ loadAll-file to fileIn code for: ' , myPackage.
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  2115
    
5670
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2116
    outStream nextPutAll:'"/
4776
9e7ef3a357a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4773
diff changeset
  2117
"/ Automatically generated from project definition.
4786
2375c3d2bffc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4785
diff changeset
  2118
"/ DO NOT MODIFY THIS fILE;
4789
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  2119
"/ modify the .prj file instead, and regenerate this file
4786
2375c3d2bffc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4785
diff changeset
  2120
"/ with the ProjectBrowser tool.
4776
9e7ef3a357a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4773
diff changeset
  2121
"/
9e7ef3a357a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4773
diff changeset
  2122
9e7ef3a357a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4773
diff changeset
  2123
"/
9e7ef3a357a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4773
diff changeset
  2124
"/ Prerequisites:
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  2125
"/'.
4796
eee167a75fcd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4792
diff changeset
  2126
    prerequisitePackages := self prerequisitePackages 
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2127
                                collect:[:entry |
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2128
                                    |pName|
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2129
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2130
                                    entry isString ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2131
                                        pName := entry
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2132
                                    ] ifFalse:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2133
                                        entry isArray ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2134
                                            pName := entry at:1
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2135
                                        ] ifFalse:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2136
                                            pName := entry name
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2137
                                        ]
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2138
                                    ]
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2139
                                ].
4796
eee167a75fcd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4792
diff changeset
  2140
eee167a75fcd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4792
diff changeset
  2141
    prerequisitePackages size == 0 ifTrue:[
5670
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2142
        outStream nextPutLine:''.
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2143
        outStream nextPutLine:'"/ Smalltalk loadPackage:''module:directory''.'.
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2144
        outStream nextPutLine:'"/ Smalltalk loadPackage:''....''.'.
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  2145
    ] ifFalse:[
5670
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2146
        outStream cr.
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2147
        prerequisitePackages do:[:packName |
5670
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2148
            outStream nextPutLine:'Smalltalk loadPackage:''' , packName , '''.'.
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2149
        ]
4796
eee167a75fcd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4792
diff changeset
  2150
    ].
eee167a75fcd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4792
diff changeset
  2151
5167
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2152
    methodsFile := self propertyAt:#methodsFile.
5177
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2153
    notEmpty ifTrue:[
5167
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2154
5670
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2155
        outStream nextPutAll:'!!
4776
9e7ef3a357a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4773
diff changeset
  2156
4886
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  2157
"{ package:''' , myPackage , ''' }"!!
4776
9e7ef3a357a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4773
diff changeset
  2158
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2159
|files|
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2160
4886
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  2161
''loading package ' , myPackage , ' ...'' infoPrintCR.
4776
9e7ef3a357a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4773
diff changeset
  2162
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2163
files := #(
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2164
'.
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2165
5167
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2166
        classes do:[:cls |
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2167
            |clsInfo cond fileName|
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2168
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2169
            clsInfo := self classInfoFor:cls.
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2170
            cond := clsInfo conditionForInclusion.
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2171
            (cond == #always or:[cond == #autoload]) ifTrue:[
5670
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2172
                outStream nextPutAll:'  '''.
5167
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2173
                fileName := clsInfo classFileName.
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2174
                fileName isNil ifTrue:[
5337
c25a74972343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5328
diff changeset
  2175
                    cls isBehavior ifFalse:[
c25a74972343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5328
diff changeset
  2176
                        fileName := cls
c25a74972343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5328
diff changeset
  2177
                    ] ifTrue:[
c25a74972343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5328
diff changeset
  2178
                        fileName := cls nameWithoutNameSpacePrefix
c25a74972343 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5328
diff changeset
  2179
                    ]
5167
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2180
                ].
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2181
                (fileName endsWith:'.st') ifFalse:[
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2182
                    fileName := fileName , '.st'
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2183
                ].
5670
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2184
                fileName printOn:outStream.
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2185
                outStream nextPutAll:''''; cr.
5167
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2186
            ]
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2187
        ].
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2188
        methodsFile size > 0 ifTrue:[
5670
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2189
             outStream 
5167
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2190
                nextPutAll:'  ''';
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2191
                nextPutAll:methodsFile;
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2192
                nextPutAll:'''';
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2193
                cr.
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2194
        ].
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2195
5670
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2196
        outStream nextPutAll:') asOrderedCollection.
4776
9e7ef3a357a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4773
diff changeset
  2197
4960
a047d70c18f6 *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 4912
diff changeset
  2198
"/ see if there is a classLibrary
5173
935228a12bfc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5167
diff changeset
  2199
(Smalltalk fileInClassLibrary:''' , self libraryName , ''') ifTrue:[
4776
9e7ef3a357a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4773
diff changeset
  2200
    |handle loaded|
9e7ef3a357a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4773
diff changeset
  2201
4785
4ced52c817e6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4779
diff changeset
  2202
    handle := ObjectFileLoader loadedObjectHandles 
4886
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  2203
                    detect:[:h | h package = ''' , myPackage , '''] ifNone:nil.
4776
9e7ef3a357a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4773
diff changeset
  2204
    handle ifNotNil:[
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2205
        loaded := Set new:(handle classes size).
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2206
        handle classes do:[:c| c isMeta ifFalse:[loaded add:c classFilename]].
4785
4ced52c817e6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4779
diff changeset
  2207
'.
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  2208
    
5167
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2209
        methodsFile size > 0 ifTrue:[
5670
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2210
            outStream nextPutLine:('        loaded add:''' , methodsFile , '''.').
5167
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2211
        ].
5670
5e1a1a8ab2a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5655
diff changeset
  2212
        outStream nextPutAll:'        files := files asOrderedCollection select:[:f| (loaded includes:f) not].
4776
9e7ef3a357a4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4773
diff changeset
  2213
    ].
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  2214
].
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2215
4960
a047d70c18f6 *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 4912
diff changeset
  2216
"/ load files which are not in the classLibrary (all if there is none)
a047d70c18f6 *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 4912
diff changeset
  2217
files size > 0 ifTrue:[
5165
212867b779e7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5156
diff changeset
  2218
  files do:[:f |
4785
4ced52c817e6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4779
diff changeset
  2219
    ''.'' infoPrint.
5165
212867b779e7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5156
diff changeset
  2220
    f asFilename exists ifTrue:[
212867b779e7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5156
diff changeset
  2221
        Smalltalk fileIn:f.
212867b779e7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5156
diff changeset
  2222
    ] ifFalse:[
212867b779e7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5156
diff changeset
  2223
        Smalltalk fileIn:(''source/'' , f)
212867b779e7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5156
diff changeset
  2224
    ]
4960
a047d70c18f6 *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 4912
diff changeset
  2225
  ].
a047d70c18f6 *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 4912
diff changeset
  2226
  '' '' infoPrintCR.
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2227
].
4886
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  2228
'' done (' , myPackage , ').'' infoPrintCR.
4887
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  2229
'.
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2230
5167
e9fdd899b44e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5166
diff changeset
  2231
    ].
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2232
!
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2233
4850
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2234
createMacMakefile
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2235
    "creates an mac-os makefile"
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2236
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2237
    Transcript current showCR:'Mac support not yet implemented - no mac.mak created for Mac'.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2238
!
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2239
2
claus
parents: 1
diff changeset
  2240
createMakefile
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2241
    "creates an initial Makefile from a Make.proto file.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2242
     Requires the stmkmf script"
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2243
5166
acea9e627935 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5165
diff changeset
  2244
    |d top transcript stmkmf|
2
claus
parents: 1
diff changeset
  2245
4821
c73b170cb6e0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4820
diff changeset
  2246
    OperatingSystem isUNIXlike ifTrue:[
4850
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2247
        Transcript current showCR:'creating Makefile'.
4821
c73b170cb6e0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4820
diff changeset
  2248
c73b170cb6e0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4820
diff changeset
  2249
        d := directoryName asFilename pathName.
5166
acea9e627935 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5165
diff changeset
  2250
        top := (d , '/' , (self findTopFrom:directoryName)) asFilename.
acea9e627935 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5165
diff changeset
  2251
acea9e627935 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5165
diff changeset
  2252
        (top construct:'rules') exists ifFalse:[
acea9e627935 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5165
diff changeset
  2253
            self warn:'Could not execute stmkmf - no TOP/rules directory found.'
acea9e627935 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5165
diff changeset
  2254
        ].
acea9e627935 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5165
diff changeset
  2255
        (stmkmf := ((top construct:'rules') construct:'stmkmf')) exists ifFalse:[
acea9e627935 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5165
diff changeset
  2256
            self warn:'Could not execute stmkmf - no TOP/rules/stmkmf found.'
acea9e627935 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5165
diff changeset
  2257
        ].
4821
c73b170cb6e0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4820
diff changeset
  2258
4850
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2259
        transcript := Transcript current.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2260
4821
c73b170cb6e0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4820
diff changeset
  2261
        (OperatingSystem 
5166
acea9e627935 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5165
diff changeset
  2262
            executeCommand:('sh ' , stmkmf pathName)
4850
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2263
            outputTo:transcript
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2264
            errorTo:transcript
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2265
            inDirectory:d
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2266
        ) ifFalse:[
5166
acea9e627935 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5165
diff changeset
  2267
            self warn:'Error executing stmkmf - no Makefile built.'
4821
c73b170cb6e0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4820
diff changeset
  2268
        ].
13
62303f84ff5f *** empty log message ***
claus
parents: 10
diff changeset
  2269
    ].
4850
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2270
    self createNTMakefile.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2271
    self createVMSMakefile.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2272
    self createMacMakefile.
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2273
4821
c73b170cb6e0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4820
diff changeset
  2274
    "Modified: / 26.9.1999 / 16:18:29 / cg"
2
claus
parents: 1
diff changeset
  2275
!
claus
parents: 1
diff changeset
  2276
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2277
createNTMakefile
4850
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2278
    "creates an nt.mak makefile"
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2279
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2280
    |d f s type appName topName classes methodsFile transcript|
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2281
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2282
    classes := self classesInOrderFor:'generate ''nt.mak''-file.'.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2283
    classes isNil ifTrue:[^ self].
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2284
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2285
    topName := self findTopFrom:directoryName.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2286
4850
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2287
    transcript := Transcript current.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2288
    transcript showCR:'Generating make support for Win9x/WinNT...'.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2289
    transcript showCR:'creating bmake.bat'.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2290
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2291
    [
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2292
        d := directoryName asFilename.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2293
        f := d construct:'bmake.bat'.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2294
        s := f writeStream.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2295
        s nextPutLine:'if not exist object\nul mkdir objbc'. 
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2296
        s nextPutLine:'make.exe -N -f nt.mak %1 %'. 
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2297
        s close.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2298
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2299
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2300
        transcript showCR:'creating bc.def'.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2301
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2302
        d := directoryName asFilename.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2303
        f := d construct:'bc.def'.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2304
        s := f writeStream.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2305
        s nextPutLine:'LIBRARY         ' , self libraryName.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2306
        s nextPutLine:'DESCRIPTION     ''AddOn library for ST/X''
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2307
CODE            PRELOAD MOVEABLE DISCARDABLE
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2308
SEGMENTS
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2309
    INITCODE PRELOAD SHARED DISCARDABLE
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2310
EXPORTS
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2311
        __' , self libraryName , '_Init     @1'.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2312
        s close.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2313
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2314
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2315
        transcript showCR:'creating nt.def'.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2316
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2317
        d := directoryName asFilename.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2318
        f := d construct:'nt.def'.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2319
        s := f writeStream.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2320
        s nextPutLine:'LIBRARY         ' , self libraryName.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2321
        s nextPutLine:'DESCRIPTION     ''AddOn library for ST/X''
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2322
CODE            EXECUTE READ SHARED
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2323
DATA            READ WRITE
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2324
SECTIONS
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2325
    INITCODE READ EXECUTE SHARED
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2326
    INITDATA READ WRITE
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2327
EXPORTS
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2328
        _' , self libraryName , '_Init'.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2329
        s close.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2330
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2331
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2332
        transcript showCR:'creating libInit.cc'.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2333
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2334
        d := directoryName asFilename.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2335
        f := d construct:'libInit.cc'.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2336
        s := f writeStream.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2337
        s nextPutAll:'/*
4823
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2338
 * DO NOT EDIT 
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2339
 * automatically generated from project.prj
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2340
 */
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2341
#define __INDIRECTVMINITCALLS__
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2342
#include <stc.h>
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2343
#define INIT_TEXT_SECT /* as nothing */
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2344
#ifdef WIN32
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2345
# pragma codeseg INITCODE "INITCODE"
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2346
#else /* not WIN32 */
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2347
# if defined(__GNUC__)
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2348
#  if (__GNUC__  == 2 && __GNUC_MINOR__ >= 7) || __GNUC__ > 2
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2349
#   undef INIT_TEXT_SECT
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2350
#   define INIT_TEXT_SECT __attribute__((section(".stxitext")))
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2351
#  endif
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2352
# endif /* not GNUC */
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2353
#endif /* not WIN32 */
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2354
#ifdef INIT_TEXT_SECT
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2355
extern void _' , self libraryName , '_Init() INIT_TEXT_SECT;
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2356
#endif
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2357
void _' , self libraryName , '_Init(pass, __pRT__, snd)
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2358
OBJ snd; struct __vmData__ *__pRT__; {
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2359
__BEGIN_PACKAGE2__("' , self libraryName , '", _' , self libraryName , '_Init, "' , self package , '");
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2360
'.
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2361
        classes notNil ifTrue:[
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2362
            classes do:[:aClass |
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2363
                |abbrev|
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2364
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2365
                abbrev := Smalltalk fileNameForClass:aClass name.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2366
                s nextPutAll:'_'; nextPutAll:abbrev; nextPutLine:'_Init(pass,__pRT__,snd);'.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2367
            ].
4823
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2368
        ].
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2369
        s nextPutAll:'__END_PACKAGE__();
4823
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2370
}
7308f4a53be6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4822
diff changeset
  2371
'.
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2372
        s close.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2373
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2374
        transcript showCR:'creating nt.mak'.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2375
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2376
        d := directoryName asFilename.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2377
        f := d construct:'nt.mak'.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2378
        f exists ifTrue:[
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2379
            f renameTo:(d construct:'nt.mak.bak')
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2380
        ].
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2381
        s := f writeStream.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2382
        s nextPutAll:'# $' , 'Header'. 
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2383
        s nextPutLine:'$'.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2384
        s nextPutAll:'#
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2385
# -- nt.mak created from project at ' . 
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2386
        s nextPutAll:Smalltalk timeStamp. 
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2387
        s nextPutAll:'
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2388
#
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2389
# Warning: YOU SHOULD NOT MODIFY THIS FILE - MODIFY THE .prj FILE INSTEAD
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2390
# and let the ProjectBrowser recreate this file.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2391
# once you modify this file, do not recreate nt.mak again 
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2392
# - otherwise, your changes are lost.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2393
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2394
# module and directory-in-module;
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2395
# these should correspond to the directory hierarchy
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2396
# location (otherwise, ST/X will have a hard time to
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2397
# find out the packages location from its packageID)
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2398
MODULE=' , self repositoryModule ? 'unknown' , '
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2399
MODULE_DIR=' , self repositoryDirectory ? 'unknown' , '
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2400
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2401
# default installation directory:
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2402
# (overwrite with ''make INSTALLTOP_DIR=... install'')
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2403
# the INSTALLBASE is imported from configurations... and usually
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2404
# defaults to something like /opt/smalltalk.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2405
# (overwrite with ''make INSTALLBASE=... install'')
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2406
INSTALLTOP_DIR=$(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR)
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2407
INSTALLLIB_DIR=$(INSTALLTOP_DIR)
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2408
INSTALLBIN_DIR=$(INSTALLTOP_DIR)
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2409
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2410
#
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2411
# position (of this package) in directory hierarchy:
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2412
# (must point to ST/X top directory, for tools and includes)
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2413
TOP=' , topName ,'
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2414
5126
3395d5b1c464 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5125
diff changeset
  2415
!!INCLUDE "$(TOP)\rules\stdHeader_nt"
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2416
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2417
# subdirectories where targets are to be made:
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2418
SUBDIRS=
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2419
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2420
# subdirectories where Makefiles are to be made:
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2421
# (only define if different from SUBDIRS)
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2422
# ALLSUBDIRS=
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2423
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2424
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2425
# the name of your classLibrary:
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2426
# ********** REQUIRED: CHECK the next line ***
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2427
LIBNAME=' , self libraryName , '
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2428
5196
395147c4e481 nt makefiles.
Claus Gittinger <cg@exept.de>
parents: 5181
diff changeset
  2429
#### LIB_BASE   =0x05000000
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2430
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2431
# the next define suppresses installation of 
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2432
# the classes as autoloaded (i.e. not added to abbrev.stc). 
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2433
SUPPRESS_LOCAL_ABBREVS=1
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2434
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2435
# the package is stored as an ID in classes and methods
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2436
# to identify code belonging to this project.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2437
# It also specifies the position in the source repository
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2438
# and directory tree, when packages are loaded by packageID.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2439
# ********** REQUIRED: CHECK the next line ***
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2440
PACKAGE=$(MODULE):$(MODULE_DIR)
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2441
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2442
# Argument(s) to the stc compiler.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2443
#  -H.         : create header files locally
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2444
#                (if removed, they will be created as common
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2445
#  -Pxxx       : defines the package
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2446
#  -Zxxx       : a prefix for variables within the classLib
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2447
#  -Dxxx       : defines passed to to CC for inline C-code
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2448
#  -Ixxx       : include path passed to CC for inline C-code
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2449
#  +optspace   : optimized for space
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2450
#  +optspace2  : optimized more for space
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2451
#  +optspace3  : optimized even more for space
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2452
#  +optinline  : generate inline code for some ST constructs
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2453
#  +inlineNew  : additionally inline new
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2454
#  +inlineMath : additionally inline some floatPnt math stuff
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2455
#
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2456
# ********** OPTIONAL: MODIFY the next line(s) ***
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2457
# STCLOCALOPTIMIZATIONS=+optinline +inlineNew
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2458
# STCLOCALOPTIMIZATIONS=+optspace3
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2459
STCLOCALOPTIMIZATIONS=+optspace3
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2460
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2461
# Argument(s) to the stc compiler.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2462
#  -warn            : no warnings
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2463
#  -warnNonStandard : no warnings about ST/X extensions
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2464
#  -warnEOLComments : no warnings about EOL comment extension
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2465
#  -warnPrivacy     : no warnings about privateClass extension
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2466
#
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2467
# ********** OPTIONAL: MODIFY the next line(s) ***
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2468
# STCWARNINGS=-warn
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2469
# STCWARNINGS=-warnNonStandard
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2470
# STCWARNINGS=-warnEOLComments
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2471
STCWARNINGS='.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2472
        (self propertyAt:#'make.stc.warnEOLComments') == false ifTrue:[
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2473
            s nextPutAll:'-warnEOLComments '.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2474
        ].
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2475
        (self propertyAt:#'make.stc.warnNonStandard') == false ifTrue:[
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2476
            s nextPutAll:'-warnNonStandard '.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2477
        ].
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2478
        s nextPutAll:((self propertyAt:#'make.stc.WARNINGOPTIONS') ? '') , '
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2479
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2480
# if your embedded C code requires any system includes, 
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2481
# add the path(es) here:, 
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2482
# ********** OPTIONAL: MODIFY the next lines ***
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2483
# LOCALINCLUDES=-Ifoo -Ibar
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2484
LOCALINCLUDES=' , ((self propertyAt:#'make.stc.LOCALINCLUDES') ? '') , '
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2485
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2486
# if you need any additional defines for embedded C code, 
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2487
# add them here:, 
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2488
# ********** OPTIONAL: MODIFY the next lines ***
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2489
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2490
LOCALDEFINES=' , ((self propertyAt:#'make.stc.LOCALDEFINES') ? '') , '
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2491
5125
85f6bbbee584 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4960
diff changeset
  2492
STCLOCALOPT=-I. $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALINCLUDES) $(LOCALDEFINES) -H. -package=$(PACKAGE) -varPrefix=$(LIBNAME) $(COMMONSYMFLAG) $(INITCODESEPFLAG)
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2493
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2494
# ********** OPTIONAL: MODIFY the next line ***
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2495
# additional C-libraries that should be pre-linked with the class-objects
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2496
LD_OBJ_LIBS=' , ((self propertyAt:#'make.LD_OBJ_LIBS') ? '') , '
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2497
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2498
# ********** OPTIONAL: MODIFY the next line ***
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2499
# additional C targets or libraries should be added below
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2500
LOCAL_EXTRA_TARGETS=' , ((self propertyAt:#'make.LOCAL_EXTRA_TARGETS') ? '') , '
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2501
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2502
#ALL:: preMake $(LIBDIR)\$(LIBNAME).lib $(BINDIR)\$(LIBNAME).dll postMake
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2503
ALL:: $(LIBDIR)\$(LIBNAME).lib $(BINDIR)\$(LIBNAME).dll
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2504
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2505
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2506
'.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2507
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2508
"/    type := #library.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2509
"/    appName := 'app'.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2510
"/    libName := 'lib'.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2511
"/    startUpClass := 'Smalltalk'.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2512
"/    startUpSelector := 'start'.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2513
"/
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2514
"/    properties notNil ifTrue:[
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2515
"/        type := properties at:#projectType ifAbsent:type.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2516
"/        appName := properties at:#applicationName ifAbsent:appName.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2517
"/        startUpClass := properties at:#startupClass ifAbsent:startUpClass.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2518
"/        startUpSelector := properties at:#startupSelector ifAbsent:startUpSelector.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2519
"/    ].
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2520
"/
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2521
"/    s nextPutAll:'#
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2522
"/# define the name of the library to create
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2523
"/#
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2524
"/'.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2525
"/    s nextPutAll:'LIBNAME=lib' , appName; cr; cr.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2526
"/
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2527
"/    s nextPutAll:'#
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2528
"/# the target rule:
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2529
"/#
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2530
"/all::   abbrev.stc objs genClassList $(OBJTARGET)
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2531
"/
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2532
"/'.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2533
"/
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2534
"/    type == #executable ifTrue:[
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2535
"/        s nextPutAll:'PROGS = ' , appName; cr.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2536
"/        s nextPutAll:('STARTUP_CLASS=' , startUpClass); cr.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2537
"/        s nextPutAll:'STARTUP_SELECTOR="' , startUpSelector; nextPutAll:'"'; cr.
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2538
"/    ].
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2539
"/
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2540
"/    s nextPutAll:'#
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2541
"/# define the object files that are to be created
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2542
"/#
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2543
"/'.
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2544
        s nextPutAll:'OBJS='.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2545
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2546
        classes do:[:aClass |
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2547
            |fileName clsInfo cond include|
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2548
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2549
            clsInfo := self classInfoFor:aClass.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2550
            include := true.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2551
            clsInfo notNil ifTrue:[
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2552
                cond := clsInfo conditionForInclusion.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2553
                (self conditionForInclusionIsTrue:cond) ifFalse:[
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2554
                    include := false.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2555
                ] ifTrue:[
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2556
                    (self conditionForAutoloadIsTrue:cond) ifTrue:[
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2557
                        include := false
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2558
                    ]
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2559
                ].
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2560
            ].
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2561
            include ifTrue:[
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2562
                s nextPutAll:' \'. s cr.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2563
                fileName := clsInfo classFileName.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2564
                fileName isNil ifTrue:[
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2565
                    fileName := Smalltalk fileNameForClass:aClass name.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2566
                ].
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2567
                fileName := fileName asFilename withoutSuffix name.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2568
                s nextPutAll:'  $(OUTDIR)'; nextPutAll:fileName; nextPutAll:'.$(O)'.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2569
            ]
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2570
        ].
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2571
        (methodsFile := self propertyAt:#methodsFile) size > 0 ifTrue:[
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2572
             s nextPutAll:' \'. s cr.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2573
             s nextPutAll:'  $(OUTDIR)'; 
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2574
               nextPutAll:(methodsFile asFilename withoutSuffix baseName);
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2575
               nextPutAll:'.$(O)'.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2576
        ].
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2577
        s cr.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2578
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2579
        s nextPutAll:'
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2580
# add more install actions here
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2581
install:
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2582
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2583
# add more install actions for aux-files (resources) here
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2584
installAux:
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2585
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2586
# add more preMake actions here
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2587
preMake:
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2588
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2589
# add more postMake actions here
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2590
postMake: cleanjunk
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2591
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2592
#clean::
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2593
#' , Character tab , '-del $(OUTDIR)*.obj
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2594
#' , Character tab , '-del *.sc
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2595
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2596
#clobber::
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2597
#' , Character tab , '-del $(OUTDIR)*.obj
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2598
#' , Character tab , '-del *.sc
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2599
#' , Character tab , '-del *.dll
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2600
#' , Character tab , '-del *.lib
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2601
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2602
5126
3395d5b1c464 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5125
diff changeset
  2603
!!INCLUDE $(TOP)\rules\stdRules_nt
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2604
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2605
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2606
'.
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2607
        classes notNil ifTrue:[
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2608
            classes do:[:aClass |
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2609
                |fileName clsInfo|
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2610
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2611
                clsInfo := self classInfoFor:aClass.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2612
                fileName := clsInfo classFileName.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2613
                fileName isNil ifTrue:[
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2614
                    fileName := Smalltalk fileNameForClass:aClass name.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2615
                ].
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2616
                fileName := fileName asFilename withoutSuffix name.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2617
                s nextPutAll:'$(OUTDIR)'; nextPutAll:fileName; nextPutAll:'.$(O): '.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2618
                s nextPutAll:fileName; nextPutAll:'.st '.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2619
    "/            aClass allSuperclassesDo:[:superClass|
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2620
    "/                s nextPutAll:(Smalltalk fileNameForClass:superClass name) , '.$(H) '.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2621
    "/            ].
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2622
                s nextPutAll:'$(STCHDR)';  cr.
4833
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  2623
            ].
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2624
        ].
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2625
        s nextPutAll:'# ENDMAKEDEPEND --- do not remove this line'.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2626
        s cr; cr.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2627
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2628
        type == #executable ifTrue:[
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2629
            s nextPutAll:'ALL:: $(PROGS)'; cr.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2630
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2631
            s nextPutAll:appName.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2632
            s nextPutAll:':: main.$(O) classList.$(O) $(OBJS)'; cr.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2633
            s tab;      nextPutAll:'$(LD) $(ST_LDFLAG) $(LDFLAGS) -o ';
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2634
                        nextPutAll:appName;
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2635
                        nextPutAll:' \'; cr.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2636
            s tab; tab; nextPutAll:'$(CRT0) main.$(O) classList.$(O) $(OBJS) $(EXTRA_OBJ) $(LIBOBJS) \'; cr.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2637
            s tab; tab; nextPutAll:'$(LIBRUNDIR)/hidata.o $(LIBRUN) \'; cr.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2638
            s tab; tab; nextPutAll:'$(MATHLIB) $(EXTRALIBS) -lXext $(SYSLIBS) $(OTHERLIBS) $(CRTN)'; cr.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2639
        ].
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2640
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2641
        s close
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2642
    ] on:FileStream openErrorSignal do:[:ex|
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2643
        self warn:'cannot create ', ex parameter printString.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2644
    ]
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2645
5196
395147c4e481 nt makefiles.
Claus Gittinger <cg@exept.de>
parents: 5181
diff changeset
  2646
    "Modified: / 19.1.2000 / 16:55:34 / cg"
4822
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2647
!
5f37058e56c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4821
diff changeset
  2648
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  2649
createProjectFiles
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  2650
    "actually, creates all files to do a make in the project directory"
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  2651
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  2652
    directoryName asFilename exists ifFalse:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  2653
	(self confirm:'create new projectDirectory: ' , directoryName) 
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  2654
	    ifFalse:[^ self].
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  2655
	OperatingSystem recursiveCreateDirectory:directoryName.
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  2656
    ].
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  2657
    self createMakefile.
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  2658
    self createSourcefiles.
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  2659
    self createProtoMakefile.
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2660
    (self propertyAt:#deliverLoadAllFile) == true ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  2661
	self createLoadAllFile
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2662
    ].
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  2663
!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  2664
2
claus
parents: 1
diff changeset
  2665
createProtoMakefile
claus
parents: 1
diff changeset
  2666
    "creates a Make.proto file"
claus
parents: 1
diff changeset
  2667
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2668
    |d f s type appName
5177
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2669
     topName classes methodsFile notEmpty repositoryModule repositoryDirectory pkg|
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2670
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2671
    classes := self classesInOrderFor:'generate ''Make.proto''-file.'.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2672
    classes isNil ifTrue:[^ self].
2
claus
parents: 1
diff changeset
  2673
5177
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2674
    methodsFile := self propertyAt:#methodsFile.
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2675
    notEmpty := (classes size > 0 or:[methodsFile size > 0]).
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2676
362
claus
parents: 356
diff changeset
  2677
    topName := self findTopFrom:directoryName.
2
claus
parents: 1
diff changeset
  2678
5177
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2679
    repositoryModule :=  self repositoryModule ? 'unknown'.
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2680
    repositoryDirectory := self repositoryDirectory ? 'unknown'.
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2681
    pkg := repositoryModule , ':' , repositoryDirectory.
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2682
4850
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  2683
    Transcript current showCR:'creating Make.proto'.
13
62303f84ff5f *** empty log message ***
claus
parents: 10
diff changeset
  2684
356
claus
parents: 338
diff changeset
  2685
    d := directoryName asFilename.
2
claus
parents: 1
diff changeset
  2686
    f := d construct:'Make.proto'.
claus
parents: 1
diff changeset
  2687
    f exists ifTrue:[
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2688
        f renameTo:(d construct:'Make.proto.bak')
2
claus
parents: 1
diff changeset
  2689
    ].
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2690
    [
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2691
        s := f writeStream.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  2692
    ] on:FileStream openErrorSignal do:[:ex|
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2693
        self warn:'cannot create prototype Makefile'.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2694
        ^ self
13
62303f84ff5f *** empty log message ***
claus
parents: 10
diff changeset
  2695
    ].
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  2696
    s nextPutAll:'# $' , 'Header'. 
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  2697
    s nextPutLine:'$'.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  2698
    s nextPutAll:'#
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  2699
# -- Make.proto created from project at ' . 
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  2700
    s nextPutAll:Smalltalk timeStamp. 
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  2701
    s nextPutAll:'
2
claus
parents: 1
diff changeset
  2702
#
4786
2375c3d2bffc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4785
diff changeset
  2703
# Warning: YOU SHOULD NOT MODIFY THIS FILE - MODIFY THE .prj FILE INSTEAD
2375c3d2bffc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4785
diff changeset
  2704
# and let the ProjectBrowser recreate this file.
2375c3d2bffc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4785
diff changeset
  2705
# once you modify this file, do not rerun
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2706
# stmkmp or recreate the Make.proto again - otherwise, your changes are lost.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2707
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2708
# module and directory-in-module;
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2709
# these should correspond to the directory hierarchy
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2710
# location (otherwise, ST/X will have a hard time to
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2711
# find out the packages location from its packageID)
5177
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2712
MODULE=' , repositoryModule , '
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2713
MODULE_DIR=' , repositoryDirectory , '
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2714
'.
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2715
    s nextPutAll:'
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2716
# default installation directory:
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2717
# (overwrite with ''make INSTALLTOP_DIR=... install'')
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2718
# the INSTALLBASE is imported from configurations... and usually
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2719
# defaults to something like /opt/smalltalk.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2720
# (overwrite with ''make INSTALLBASE=... install'')
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2721
INSTALLTOP_DIR=$(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR)
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2722
INSTALLLIB_DIR=$(INSTALLTOP_DIR)
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2723
INSTALLBIN_DIR=$(INSTALLTOP_DIR)
5177
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2724
'.
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2725
    s nextPutAll:'
362
claus
parents: 356
diff changeset
  2726
#
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2727
# position (of this package) in directory hierarchy:
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2728
# (must point to ST/X top directory, for tools and includes)
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2729
TOP=' , topName ,'
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2730
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2731
# subdirectories where targets are to be made:
5177
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2732
SUBDIRS='.
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2733
    self prerequisitePackages do:[:aPackageId |
5179
37fa0ca0a226 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5178
diff changeset
  2734
        |p|
37fa0ca0a226 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5178
diff changeset
  2735
5229
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2736
        "/ add sub-packages only
5177
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2737
        (aPackageId startsWith:pkg) ifTrue:[
5179
37fa0ca0a226 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5178
diff changeset
  2738
            p := aPackageId copyFrom:pkg size + 1.
37fa0ca0a226 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5178
diff changeset
  2739
            (p startsWith:$/) ifTrue:[
37fa0ca0a226 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5178
diff changeset
  2740
                p := p copyFrom:2
37fa0ca0a226 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5178
diff changeset
  2741
            ].
37fa0ca0a226 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5178
diff changeset
  2742
            s nextPutAll:p.
5177
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2743
            s space.
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2744
        ]
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2745
    ].
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2746
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2747
    s nextPutAll:'
362
claus
parents: 356
diff changeset
  2748
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2749
# subdirectories where Makefiles are to be made:
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2750
# (only define if different from SUBDIRS)
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2751
# ALLSUBDIRS=
5177
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2752
'.
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2753
    notEmpty ifTrue:[
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2754
        s nextPutAll:'
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2755
# the name of your classLibrary:
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2756
# ********** REQUIRED: CHECK the next line ***
4789
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  2757
LIBNAME=' , self libraryName , '
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2758
5177
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2759
'.
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2760
    ].
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2761
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2762
    false ifTrue:[
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2763
        s nextPutAll:'
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2764
# the next define suppresses installation of 
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2765
# the classes as autoloaded (i.e. not added to abbrev.stc). 
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2766
SUPPRESS_LOCAL_ABBREVS=1
5177
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2767
'.
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2768
].
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2769
    s nextPutAll:'
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2770
# the package is stored as an ID in classes and methods
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2771
# to identify code belonging to this project.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2772
# It also specifies the position in the source repository
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2773
# and directory tree, when packages are loaded by packageID.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2774
# ********** REQUIRED: CHECK the next line ***
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2775
PACKAGE=$(MODULE):$(MODULE_DIR)
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2776
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2777
# Argument(s) to the stc compiler.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2778
#  -H.         : create header files locally
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2779
#                (if removed, they will be created as common
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2780
#  -Pxxx       : defines the package
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2781
#  -Zxxx       : a prefix for variables within the classLib
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2782
#  -Dxxx       : defines passed to to CC for inline C-code
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2783
#  -Ixxx       : include path passed to CC for inline C-code
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2784
#  +optspace   : optimized for space
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2785
#  +optspace2  : optimized more for space
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2786
#  +optspace3  : optimized even more for space
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2787
#  +optinline  : generate inline code for some ST constructs
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2788
#  +inlineNew  : additionally inline new
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2789
#  +inlineMath : additionally inline some floatPnt math stuff
362
claus
parents: 356
diff changeset
  2790
#
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2791
# ********** OPTIONAL: MODIFY the next line(s) ***
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2792
# STCLOCALOPTIMIZATIONS=+optinline +inlineNew
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2793
# STCLOCALOPTIMIZATIONS=+optspace3
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2794
STCLOCALOPTIMIZATIONS=+optspace3
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2795
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2796
# Argument(s) to the stc compiler.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2797
#  -warn            : no warnings
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2798
#  -warnNonStandard : no warnings about ST/X extensions
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2799
#  -warnEOLComments : no warnings about EOL comment extension
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2800
#  -warnPrivacy     : no warnings about privateClass extension
362
claus
parents: 356
diff changeset
  2801
#
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2802
# ********** OPTIONAL: MODIFY the next line(s) ***
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2803
# STCWARNINGS=-warn
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2804
# STCWARNINGS=-warnNonStandard
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2805
# STCWARNINGS=-warnEOLComments
4796
eee167a75fcd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4792
diff changeset
  2806
STCWARNINGS='.
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2807
        (self propertyAt:#'make.stc.warnEOLComments') == false ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2808
            s nextPutAll:'-warnEOLComments '.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2809
        ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2810
        (self propertyAt:#'make.stc.warnNonStandard') == false ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2811
            s nextPutAll:'-warnNonStandard '.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2812
        ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2813
        s nextPutAll:((self propertyAt:#'make.stc.WARNINGOPTIONS') ? '') , '
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2814
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2815
# if your embedded C code requires any system includes, 
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2816
# add the path(es) here:, 
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2817
# ********** OPTIONAL: MODIFY the next lines ***
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2818
# LOCALINCLUDES=-Ifoo -Ibar
5229
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2819
LOCALINCLUDES='.
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2820
        s nextPutAll:((self propertyAt:#'make.stc.LOCALINCLUDES') ? '').
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2821
        self prerequisitePackages do:[:aPackageId |
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2822
            |prj|
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2823
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2824
            s nextPutAll:'-I$(TOP)/../' , (aPackageId copyReplaceAll:$: with:$/) , ' '.
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2825
        ].
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2826
        s nextPutAll:'
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2827
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2828
# if you need any additional defines for embedded C code, 
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2829
# add them here:, 
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2830
# ********** OPTIONAL: MODIFY the next lines ***
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2831
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG
4796
eee167a75fcd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4792
diff changeset
  2832
LOCALDEFINES=' , ((self propertyAt:#'make.stc.LOCALDEFINES') ? '') , '
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2833
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2834
STCLOCALOPT=-I. $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALINCLUDES) $(LOCALDEFINES) -H. ''-P$(PACKAGE)'' ''-Z$(LIBNAME)'' $(COMMONSYMFLAG) $(INITCODESEPFLAG)
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2835
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2836
# ********** OPTIONAL: MODIFY the next line ***
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2837
# additional C-libraries that should be pre-linked with the class-objects
4796
eee167a75fcd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4792
diff changeset
  2838
LD_OBJ_LIBS=' , ((self propertyAt:#'make.LD_OBJ_LIBS') ? '') , '
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2839
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2840
# ********** OPTIONAL: MODIFY the next line ***
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2841
# additional C targets or libraries should be added below
4796
eee167a75fcd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4792
diff changeset
  2842
LOCAL_EXTRA_TARGETS=' , ((self propertyAt:#'make.LOCAL_EXTRA_TARGETS') ? '') , '
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2843
5177
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2844
'.
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2845
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2846
    s nextPutAll:'
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2847
all:: preMake '.
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2848
    notEmpty ifTrue:[
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2849
        s nextPutAll:'classLibRule '
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2850
    ].
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2851
    s nextPutAll:'postMake
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2852
2
claus
parents: 1
diff changeset
  2853
claus
parents: 1
diff changeset
  2854
'.
claus
parents: 1
diff changeset
  2855
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2856
"/    type := #library.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2857
"/    appName := 'app'.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2858
"/    libName := 'lib'.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2859
"/    startUpClass := 'Smalltalk'.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2860
"/    startUpSelector := 'start'.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2861
"/
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2862
"/    properties notNil ifTrue:[
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2863
"/        type := properties at:#projectType ifAbsent:type.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2864
"/        appName := properties at:#applicationName ifAbsent:appName.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2865
"/        startUpClass := properties at:#startupClass ifAbsent:startUpClass.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2866
"/        startUpSelector := properties at:#startupSelector ifAbsent:startUpSelector.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2867
"/    ].
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2868
"/
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2869
"/    s nextPutAll:'#
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2870
"/# define the name of the library to create
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2871
"/#
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2872
"/'.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2873
"/    s nextPutAll:'LIBNAME=lib' , appName; cr; cr.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2874
"/
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2875
"/    s nextPutAll:'#
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2876
"/# the target rule:
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2877
"/#
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2878
"/all::   abbrev.stc objs genClassList $(OBJTARGET)
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2879
"/
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2880
"/'.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2881
"/
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2882
"/    type == #executable ifTrue:[
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2883
"/        s nextPutAll:'PROGS = ' , appName; cr.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2884
"/        s nextPutAll:('STARTUP_CLASS=' , startUpClass); cr.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2885
"/        s nextPutAll:'STARTUP_SELECTOR="' , startUpSelector; nextPutAll:'"'; cr.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2886
"/    ].
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2887
"/
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2888
"/    s nextPutAll:'#
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2889
"/# define the object files that are to be created
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2890
"/#
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2891
"/'.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2892
    s nextPutAll:'OBJS='.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2893
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2894
    classes do:[:aClass |
4833
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  2895
        |clsInfo cond include fileName|
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2896
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2897
        clsInfo := self classInfoFor:aClass.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2898
        include := true.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2899
        clsInfo notNil ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2900
            cond := clsInfo conditionForInclusion.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2901
            (self conditionForInclusionIsTrue:cond) ifFalse:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2902
                include := false.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2903
            ] ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2904
                (self conditionForAutoloadIsTrue:cond) ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2905
                    include := false
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2906
                ]
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2907
            ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2908
        ].
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2909
        include ifTrue:[
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2910
            s nextPutAll:' \'. s cr.
4833
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  2911
            fileName := clsInfo classFileName.
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  2912
            fileName isNil ifTrue:[
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  2913
                fileName := Smalltalk fileNameForClass:aClass name.
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  2914
            ].
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  2915
            fileName := fileName asFilename withoutSuffix name.
5652aec1b08a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4832
diff changeset
  2916
            s nextPutAll:'  '; nextPutAll:fileName; nextPutAll:'.$(O)'.
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2917
        ]
2
claus
parents: 1
diff changeset
  2918
    ].
4792
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  2919
    (methodsFile := self propertyAt:#methodsFile) size > 0 ifTrue:[
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2920
         s nextPutAll:' \'. s cr.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2921
         s nextPutAll:'  '; 
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2922
           nextPutAll:(methodsFile asFilename withoutSuffix baseName);
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2923
           nextPutAll:'.$(O)'.
4785
4ced52c817e6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4779
diff changeset
  2924
    ].
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2925
    s cr.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2926
5229
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2927
    self prerequisitePackages size > 0 ifTrue:[
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2928
        s nextPutAll:'
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2929
# make required packages
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2930
prerequisites::
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2931
'.
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2932
        self prerequisitePackages do:[:aPackageId |
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2933
            |prj|
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2934
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2935
            s tab; nextPutAll:'(cd $(TOP)/../' , (aPackageId copyReplaceAll:$: with:$/) , '; $(MAKE) ) '; cr.
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2936
        ].
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2937
        s cr.
9808b01ca5e6 *** empty log message ***
tm
parents: 5224
diff changeset
  2938
    ].
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2939
    s nextPutAll:'
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2940
# add more install actions here
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2941
install::
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2942
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2943
# add more install actions for aux-files (resources) here
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2944
installAux::
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2945
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2946
# add more preMake actions here
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2947
preMake::
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2948
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2949
# add more postMake actions here
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2950
postMake:: cleanjunk
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2951
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2952
cleanjunk::
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2953
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2954
clean::
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2955
' , Character tab , '-rm -f *.o *.H
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2956
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2957
clobber::
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2958
' , Character tab , '-rm -f *.so *.dll
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2959
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2960
$(INSTALLBASE)::
5177
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2961
' , Character tab , '@test -d $@ || mkdir -p $@
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2962
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2963
$(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR):: $(INSTALLBASE)/packages/$(MODULE)
5177
3b6861109161 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5173
diff changeset
  2964
' , Character tab , '@test -d $@ || mkdir -p $@
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2965
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2966
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
362
claus
parents: 356
diff changeset
  2967
'.
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2968
"/    classes notNil ifTrue:[
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2969
"/        classes do:[:aClass |
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2970
"/            |abbrev|
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2971
"/
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2972
"/            abbrev := Smalltalk fileNameForClass:aClass name.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2973
"/            s nextPutAll:abbrev; nextPutAll:'.$(O): '.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2974
"/            s nextPutAll:abbrev; nextPutAll:'.st '.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2975
"/            aClass allSuperclassesDo:[:superClass|
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2976
"/                s nextPutAll:(Smalltalk fileNameForClass:superClass name) , '.$(H) '.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2977
"/            ].
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2978
"/            s nextPutAll:'$(STCHDR)';  cr.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2979
"/        ].
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2980
"/    ].
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  2981
    s nextPutAll:'# ENDMAKEDEPEND --- do not remove this line'.
362
claus
parents: 356
diff changeset
  2982
    s cr; cr.
2
claus
parents: 1
diff changeset
  2983
claus
parents: 1
diff changeset
  2984
    type == #executable ifTrue:[
4832
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2985
        s nextPutAll:'all:: $(PROGS)'; cr.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2986
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2987
        s nextPutAll:appName.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2988
        s nextPutAll:':: main.o classList.o $(OBJS)'; cr.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2989
        s tab;      nextPutAll:'$(LD) $(ST_LDFLAG) $(LDFLAGS) -o ';
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2990
                    nextPutAll:appName;
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2991
                    nextPutAll:' \'; cr.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2992
        s tab; tab; nextPutAll:'$(CRT0) main.$(O) classList.$(O) $(OBJS) $(EXTRA_OBJ) $(LIBOBJS) \'; cr.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2993
        s tab; tab; nextPutAll:'$(LIBRUNDIR)/hidata.o $(LIBRUN) \'; cr.
d335c43bf297 care for inheritance order, when saving a project file.
Claus Gittinger <cg@exept.de>
parents: 4824
diff changeset
  2994
        s tab; tab; nextPutAll:'$(MATHLIB) $(EXTRALIBS) -lXext $(SYSLIBS) $(OTHERLIBS) $(CRTN)'; cr.
2
claus
parents: 1
diff changeset
  2995
    ].
claus
parents: 1
diff changeset
  2996
claus
parents: 1
diff changeset
  2997
    s close
1420
be5f8e9574cc showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
  2998
4069
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  2999
    "Modified: / 23.3.1999 / 14:20:09 / cg"
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3000
!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3001
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3002
createSourcefiles
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3003
    "creates all Smalltalk-source files in the project directory"
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3004
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3005
    |classes methods methodClasses dir stream|
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3006
2956
952a09bdeed1 Use Filename instead of obsolete FileDirectory
Stefan Vogel <sv@exept.de>
parents: 2907
diff changeset
  3007
    dir := self directory asFilename.
4850
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3008
    Transcript current showCR:'creating sources in ' , dir pathName , ' ...'; endEntry.
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3009
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3010
    classes := self classes.
4885
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3011
    classes size == 0 ifTrue:[
4850
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3012
        self warn:'no classes in current project'
4885
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3013
    ] ifFalse:[
4850
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3014
        classes do:[:aClass |
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3015
            aClass isLoaded ifFalse:[
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3016
                aClass autoload.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3017
            ].
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3018
        ].
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3019
        "/ to not list private classes
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3020
        classes := classes select:[:cls | cls owningClass isNil].
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3021
        classes := classes topologicalSort:[:a :b | a isSubclassOf:b].
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3022
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3023
        classes do:[:aClass |
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3024
            Transcript current show:' ... '; showCR:aClass name, '.st'; endEntry.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3025
            aClass fileOutIn:dir
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3026
        ]
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3027
    ].
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3028
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3029
    methods := self individualMethods.
4885
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3030
    methods size > 0 ifTrue:[
4850
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3031
        methods := methods asIdentitySet.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3032
        "
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3033
         get classes ...
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3034
        "
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3035
        methodClasses := IdentitySet new.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3036
        methods do:[:m | 
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3037
                        |mCls|
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3038
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3039
                        mCls := m containingClass.
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  3040
                        mCls := mCls theNonMetaclass.
4850
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3041
                        methodClasses add:mCls].
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3042
        "
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3043
         fileOut by class
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3044
        "
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3045
        methodClasses do:[:cls |
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3046
            stream := (self directory asFilename construct:(cls name , '.chg')) writeStream.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3047
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3048
            Transcript current show:' ... '; showCR:cls name, '.chg'; endEntry.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3049
            methods do:[:m |
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3050
                |mCls|
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3051
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3052
                mCls := m containingClass.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3053
                (mCls == cls or:[mCls == cls class]) ifTrue:[
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3054
                    mCls fileOutMethod:m on:stream.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3055
                ].
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3056
                stream cr.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3057
            ].
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3058
            stream close.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3059
        ].
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3060
    ].
1420
be5f8e9574cc showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
  3061
6152
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  3062
    "Modified: / 18.9.1997 / 18:50:34 / stefan"
b987f345234e condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents: 6141
diff changeset
  3063
    "Modified: / 5.11.2001 / 16:46:17 / cg"
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3064
!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3065
4850
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3066
createVMSMakefile
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3067
    "creates an vms.mak makefile"
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3068
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3069
    Transcript current showCR:'VMS support not yet implemented - no vms.mak created'.
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3070
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3071
!
43b7eac07273 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4834
diff changeset
  3072
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3073
findTopFrom:directoryName
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3074
    "returns the relative path from directoryName to the TOP
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3075
     directory."
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3076
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3077
    |topName relParent foundTop|
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3078
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3079
    "/ find TOP
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3080
    relParent := '..'.
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3081
    foundTop := false.
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3082
    [foundTop] whileFalse:[
4820
481593067423 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  3083
        topName := directoryName asFilename construct:relParent.
481593067423 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  3084
        ((topName construct:'stx') construct:'configurations') exists ifTrue:[
481593067423 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  3085
            ((topName construct:'stx') construct:'include') exists ifTrue:[
4821
c73b170cb6e0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4820
diff changeset
  3086
                ^ relParent asFilename constructString:'stx'.
4820
481593067423 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  3087
            ]
481593067423 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  3088
        ].
481593067423 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  3089
        (topName construct:'configurations') exists ifTrue:[
481593067423 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  3090
            (topName construct:'include') exists ifTrue:[
4888
8a44ac394b75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4887
diff changeset
  3091
                ^ relParent asFilename name
4820
481593067423 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  3092
            ]
481593067423 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  3093
        ].
481593067423 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  3094
        relParent := relParent asFilename constructString:'..'.
481593067423 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  3095
481593067423 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  3096
        topName isRootDirectory ifTrue:[
481593067423 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  3097
            self warn:'could not find TOP; assume absolute path to TOP'.
481593067423 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  3098
            ^ nil.
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  3099
"/            topName := '/usr/local/lib/smalltalk'.
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  3100
"/            foundTop := true.
4820
481593067423 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  3101
        ]
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3102
    ].
4779
767b94dabb98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4776
diff changeset
  3103
    ^ topName pathName
4820
481593067423 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  3104
4821
c73b170cb6e0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4820
diff changeset
  3105
    "Modified: / 26.9.1999 / 16:15:14 / cg"
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3106
! !
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3107
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3108
!Project methodsFor:'printing & storing'!
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3109
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3110
displayString
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3111
    ^ super displayString , '(''' , (name ? '<unnamed>') , ''')'
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3112
! !
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3113
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3114
!Project methodsFor:'properties'!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3115
4886
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3116
addClass:classOrClassName
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3117
    "add a class to the project"
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3118
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3119
    |fn|
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3120
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3121
    (classOrClassName isBehavior and:[classOrClassName isLoaded]) ifTrue:[
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3122
        fn := classOrClassName classFilename.
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3123
    ].
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3124
    fn isNil ifTrue:[
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3125
        fn := (Smalltalk fileNameForClass:classOrClassName) , '.st'
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3126
    ].
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3127
    self addClass:classOrClassName classFileName:fn
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3128
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3129
!
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3130
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3131
addClass:classOrClassName classFileName:fileName
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3132
    "add a class to the project"
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3133
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3134
    self
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3135
	addClass:classOrClassName 
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3136
	conditionForInclusion:#always 
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3137
	classFileName:fileName
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3138
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3139
!
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3140
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3141
addClass:classOrClassName conditionForInclusion:conditionBlock classFileName:fileName
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3142
    "add a class to the project"
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3143
4789
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3144
    |i clsName|
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3145
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3146
    (clsName := classOrClassName) isBehavior ifTrue:[
4886
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3147
        clsName := classOrClassName name
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3148
    ].
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3149
    (clsName startsWith:'Smalltalk::') ifTrue:[
63d9275b8210 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4885
diff changeset
  3150
        clsName := clsName copyFrom:'Smalltalk::' size + 1.
4789
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3151
    ].
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3152
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3153
    i := ClassInfo new.
4789
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3154
    i className:clsName.
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3155
    i classFileName:fileName.
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3156
    i conditionForInclusion:conditionBlock.
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3157
    self addClassInfo:i
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3158
!
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3159
4089
abcd3430bb9c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4080
diff changeset
  3160
addClassInfo:newInfo
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3161
    "add a class info to the project"
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3162
4315
047c3c925f2f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4314
diff changeset
  3163
    |infoCollection index nm prefix|
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3164
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3165
    (infoCollection := self classInfo) isNil ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3166
	self classInfo:(infoCollection := OrderedCollection new).
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3167
    ].
4315
047c3c925f2f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4314
diff changeset
  3168
047c3c925f2f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4314
diff changeset
  3169
    index := infoCollection findFirst:[:i | |nm1 nm2|
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3170
					nm1 := i className.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3171
					nm2 := newInfo className.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3172
					nm1 = nm2
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3173
				      ].
4089
abcd3430bb9c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4080
diff changeset
  3174
    index ~~ 0 ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3175
	infoCollection at:index put:newInfo
4089
abcd3430bb9c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4080
diff changeset
  3176
    ] ifFalse:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3177
	infoCollection add:newInfo
4089
abcd3430bb9c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4080
diff changeset
  3178
    ]
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3179
!
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3180
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3181
addMethod:methodName inClass:classOrClassName conditionForInclusion:condition fileName:optionalFileName
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3182
    "add a method to the project"
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3183
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3184
    |i|
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3185
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3186
    i := MethodInfo new.
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3187
    i className:classOrClassName.
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3188
    i methodName:methodName.
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3189
    i fileName:optionalFileName.
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3190
    i conditionForInclusion:condition.
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3191
    self addMethodInfo:i
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3192
!
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3193
4668
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
  3194
addMethod:methodOrSelector inClass:aClassOrClassName fileName:fileName
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
  3195
    "add an individual method to the project"
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
  3196
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
  3197
    |i|
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
  3198
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
  3199
    i := MethodInfo new.
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
  3200
    i methodName:methodOrSelector.
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
  3201
    i className:aClassOrClassName.
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
  3202
    i fileName:fileName.
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
  3203
    self addMethodInfo:i
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
  3204
!
a4e061d91251 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4522
diff changeset
  3205
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3206
addMethodInfo:newInfo
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3207
    "add a method info to the project"
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3208
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3209
    |infoCollection index nm prefix|
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3210
5655
d1bc7daf5add *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5581
diff changeset
  3211
    prefix := self defaultNameSpace name , '::'.
d1bc7daf5add *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5581
diff changeset
  3212
4887
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3213
    infoCollection := self methodInfo.
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3214
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3215
    index := infoCollection findFirst:[:i | |cnm1 cnm2|
4887
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3216
                                        cnm1 := i className.
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3217
                                        cnm2 := newInfo className.
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3218
                                        (cnm1 includes:$:) ifFalse:[
5655
d1bc7daf5add *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5581
diff changeset
  3219
                                            cnm1 := prefix , cnm1
4887
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3220
                                        ].
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3221
                                        (cnm2 includes:$:) ifFalse:[
5655
d1bc7daf5add *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5581
diff changeset
  3222
                                            cnm2 := prefix , cnm2
4887
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3223
                                        ].
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3224
                                        cnm1 = cnm2 and:[i methodName = newInfo methodName]
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3225
                                      ].
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3226
    "/ strip off nameSpace prefix, if its the same as
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3227
    "/ the default ...
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3228
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3229
    nm := newInfo className.
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3230
    (nm startsWith:prefix) ifTrue:[
4887
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3231
        nm := nm copyFrom:(prefix size + 1).
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3232
        newInfo className:nm asSymbol.
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3233
    ].
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3234
    index ~~ 0 ifTrue:[
4887
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3235
        infoCollection at:index put:newInfo
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3236
    ] ifFalse:[
4887
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3237
        infoCollection add:newInfo
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3238
    ]
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3239
!
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3240
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3241
classInfo:aClassInfoCollection
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3242
    "set the class info of the project"
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3243
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3244
    self propertyAt:#classInfo put:aClassInfoCollection
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3245
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3246
!
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3247
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3248
comment
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3249
    "return the comment of the project"
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3250
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3251
    properties isNil ifTrue:[^ ''].
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3252
    ^ properties at:#comment ifAbsent:''
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3253
!
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3254
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3255
comment:aString
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3256
    "set the projects comment"
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3257
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3258
    self propertyAt:#comment put:aString
4070
682f720cd0f6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4069
diff changeset
  3259
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3260
!
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3261
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3262
documentationURL
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3263
    "return the documentation-URL of the project"
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3264
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3265
    properties isNil ifTrue:[^ nil].
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3266
    ^ properties at:#documentationURL ifAbsent:nil
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3267
!
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3268
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3269
documentationURL:anURLString
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3270
    "set the projects documentation-URL"
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3271
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3272
    self propertyAt:#documentationURL put:anURLString
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3273
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3274
!
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3275
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3276
methodInfo:aMethodInfoCollection
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3277
    "set the method info of the project"
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3278
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3279
    self propertyAt:#methodInfo put:aMethodInfoCollection
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3280
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3281
!
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3282
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3283
properties
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3284
    "return the property dictionary"
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3285
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3286
    ^ properties
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3287
!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3288
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3289
properties:p
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3290
    "set the property dictionary"
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3291
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3292
    properties := p
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3293
!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3294
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3295
propertyAt:aKey
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3296
    "return a property; the key is a symbol"
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3297
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3298
    properties isNil ifTrue:[^ nil].
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3299
    ^ properties at:aKey ifAbsent:nil.
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3300
!
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3301
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3302
propertyAt:aKey put:aValue
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3303
    "set a property; the key is a symbol"
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3304
4077
cc1f4c165ace checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4074
diff changeset
  3305
    |oldValue|
cc1f4c165ace checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4074
diff changeset
  3306
cc1f4c165ace checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4074
diff changeset
  3307
    oldValue := self propertyAt:aKey.
cc1f4c165ace checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4074
diff changeset
  3308
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3309
    properties isNil ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3310
	properties := IdentityDictionary new
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3311
    ].
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3312
    properties at:aKey put:aValue.
4077
cc1f4c165ace checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4074
diff changeset
  3313
cc1f4c165ace checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4074
diff changeset
  3314
    oldValue ~~ aValue ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3315
	self changed:aKey.
4077
cc1f4c165ace checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4074
diff changeset
  3316
    ].
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3317
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3318
    "Created: / 23.3.1999 / 14:21:11 / cg"
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3319
!
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3320
4792
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  3321
removeClass:classOrClassName
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  3322
    "remove a class from the project"
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  3323
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  3324
    |infoCollection index className|
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  3325
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  3326
    (infoCollection := self classInfo) isNil ifTrue:[^ self].
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  3327
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  3328
    (className := classOrClassName) isBehavior ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3329
	className := classOrClassName name
4792
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  3330
    ].
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  3331
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  3332
    index := infoCollection findFirst:[:i | i className = className.].
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  3333
    index ~~ 0 ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3334
	infoCollection removeIndex:index
4792
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  3335
    ]
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  3336
!
8e50b8218546 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4791
diff changeset
  3337
4834
522f10359ce9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4833
diff changeset
  3338
removeMethod:method
522f10359ce9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4833
diff changeset
  3339
    "remove a method from the project"
522f10359ce9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4833
diff changeset
  3340
522f10359ce9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4833
diff changeset
  3341
    |infoCollection index className selector|
522f10359ce9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4833
diff changeset
  3342
4887
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3343
    (infoCollection := self methodInfo) size == 0 ifTrue:[^ self].
4834
522f10359ce9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4833
diff changeset
  3344
    className := method who methodClass name.
522f10359ce9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4833
diff changeset
  3345
    selector := method who methodSelector.
522f10359ce9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4833
diff changeset
  3346
522f10359ce9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4833
diff changeset
  3347
    index := infoCollection findFirst:[:i | i className = className.].
522f10359ce9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4833
diff changeset
  3348
    index ~~ 0 ifTrue:[
522f10359ce9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4833
diff changeset
  3349
        infoCollection removeIndex:index
522f10359ce9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4833
diff changeset
  3350
    ]
522f10359ce9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4833
diff changeset
  3351
!
522f10359ce9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4833
diff changeset
  3352
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3353
type
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3354
    "return the type of project (one of #application, #library, #smalltalk)"
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3355
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3356
    properties isNil ifTrue:[^ #application].
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3357
    ^ properties at:#type ifAbsent:#application
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3358
!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3359
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3360
type:aSymbol
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3361
    "set the projects type (one of #application, #library, #smalltalk)"
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3362
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  3363
    |sym|
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  3364
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  3365
    (sym := aSymbol) == #classLibrary ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3366
	sym := #library
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  3367
    ].
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  3368
    (#(application library extension smalltalk) includes:sym) ifFalse:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3369
	self warn:'invalid project type'.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3370
	^ self
3972
efc25c2863e9 more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
  3371
    ].
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  3372
    self propertyAt:#type put:sym
4069
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  3373
!
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  3374
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  3375
wasLoadedFromFile
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  3376
    "return true, if the project was loaded from a file"
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  3377
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  3378
    properties isNil ifTrue:[^ nil].
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  3379
    ^ properties at:#wasLoadedFromFile ifAbsent:false
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  3380
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  3381
    "Modified: / 23.3.1999 / 13:59:32 / cg"
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  3382
    "Created: / 23.3.1999 / 14:21:06 / cg"
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  3383
!
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  3384
7d36633a470a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4066
diff changeset
  3385
wasLoadedFromFile:aBoolean
4097
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3386
    "set/clear the flag stating that the project was loaded from a file"
66466729c1de more PBrowser support
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3387
4071
2b6946e843c5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4070
diff changeset
  3388
    self propertyAt:#wasLoadedFromFile put:aBoolean
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3389
! !
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3390
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3391
!Project methodsFor:'queries'!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3392
4688
1b27165b9f97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4685
diff changeset
  3393
areAllClassesLoaded
1b27165b9f97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4685
diff changeset
  3394
    "return true, if all classes of the package are loaded
1b27165b9f97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4685
diff changeset
  3395
     (i.e. there are no autoloaded stubs present)"
1b27165b9f97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4685
diff changeset
  3396
4690
563f4d832234 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4688
diff changeset
  3397
    |classes|
563f4d832234 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4688
diff changeset
  3398
563f4d832234 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4688
diff changeset
  3399
    classes := self classes.
4885
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3400
    classes size == 0 ifTrue:[^ isLoaded ? false].
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3401
4690
563f4d832234 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4688
diff changeset
  3402
    classes do:[:aClass |
4900
7371c0da8359 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4888
diff changeset
  3403
        aClass isBehavior ifFalse:[^ false].
4885
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3404
        aClass isLoaded ifFalse:[^ false].
4688
1b27165b9f97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4685
diff changeset
  3405
    ].
1b27165b9f97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4685
diff changeset
  3406
    ^ true
1b27165b9f97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4685
diff changeset
  3407
1b27165b9f97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4685
diff changeset
  3408
!
1b27165b9f97 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4685
diff changeset
  3409
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3410
classInfo
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3411
    "return a classInfo collection of classes belonging to that project"
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3412
4073
21939187f19c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4071
diff changeset
  3413
    |classInfo classes|
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3414
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3415
    properties notNil ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3416
	classInfo := properties at:#classInfo ifAbsent:nil.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3417
	classInfo notNil ifTrue:[^ classInfo].
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3418
    ].
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3419
4073
21939187f19c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4071
diff changeset
  3420
    classes := self classes.
21939187f19c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4071
diff changeset
  3421
    classes size == 0 ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3422
	classInfo := OrderedCollection new
4073
21939187f19c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4071
diff changeset
  3423
    ] ifFalse:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3424
	classInfo := classes asOrderedCollection
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3425
			collect:[:class |
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3426
			    |i fn|
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3427
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3428
			    i := ClassInfo new.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3429
			    i conditionForInclusion:#always.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3430
			    i className:class name.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3431
			    fn := class classFilename ? ((Smalltalk fileNameForClass:class) , '.st').
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3432
			    i classFileName:fn.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3433
			    i
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3434
			]
4073
21939187f19c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4071
diff changeset
  3435
    ].
21939187f19c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4071
diff changeset
  3436
    self propertyAt:#classInfo put:classInfo.
21939187f19c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4071
diff changeset
  3437
    ^ classInfo
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3438
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3439
    "Modified: 4.1.1997 / 16:51:18 / cg"
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3440
!
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3441
4789
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3442
classInfoFor:aClassOrClassName
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3443
    "return a classInfo for a particular class"
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3444
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3445
    |classInfo clsName index|
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3446
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3447
    (classInfo := self classInfo) isNil ifTrue:[^ nil].
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3448
    (clsName := aClassOrClassName) isBehavior ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3449
	clsName := aClassOrClassName name
4789
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3450
    ].
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3451
    ^ classInfo detect:[:i | i className = clsName] ifNone:nil.
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3452
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3453
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3454
    "Modified: 4.1.1997 / 16:51:18 / cg"
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3455
!
72a61dc595ad loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents: 4787
diff changeset
  3456
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3457
classes
4013
f06d31702f2a ignore private classes in classList
Claus Gittinger <cg@exept.de>
parents: 4010
diff changeset
  3458
    "return a collection of classes belonging to that project.
f06d31702f2a ignore private classes in classList
Claus Gittinger <cg@exept.de>
parents: 4010
diff changeset
  3459
     This excludes any private classes."
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3460
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3461
    |classes classInfo|
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3462
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3463
    properties notNil ifTrue:[
4885
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3464
        classInfo := properties at:#classInfo ifAbsent:nil.
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3465
        classInfo notNil ifTrue:[
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3466
            classes := classInfo collect:[:i | i className]
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3467
        ] ifFalse:[
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3468
            classes := properties at:#classes ifAbsent:nil
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3469
        ]
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3470
    ].
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3471
5201
Claus Gittinger <cg@exept.de>
parents: 5199
diff changeset
  3472
    (properties isNil
Claus Gittinger <cg@exept.de>
parents: 5199
diff changeset
  3473
    or:[properties at:#autoIncludeImageClasses ifAbsent:true])
Claus Gittinger <cg@exept.de>
parents: 5199
diff changeset
  3474
    ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 5199
diff changeset
  3475
        classes isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 5199
diff changeset
  3476
            classes := OrderedCollection new.
Claus Gittinger <cg@exept.de>
parents: 5199
diff changeset
  3477
            Smalltalk 
Claus Gittinger <cg@exept.de>
parents: 5199
diff changeset
  3478
                allClassesDo:[:aClass |
Claus Gittinger <cg@exept.de>
parents: 5199
diff changeset
  3479
                    (true "aClass owningClass isNil"
Claus Gittinger <cg@exept.de>
parents: 5199
diff changeset
  3480
                    and:[aClass isMeta not
Claus Gittinger <cg@exept.de>
parents: 5199
diff changeset
  3481
                    and:[aClass package = packageName
5327
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3482
                    and:[aClass isNameSpace not or:[aClass == Smalltalk]]]]) ifTrue:[
5201
Claus Gittinger <cg@exept.de>
parents: 5199
diff changeset
  3483
                        classes add:aClass
Claus Gittinger <cg@exept.de>
parents: 5199
diff changeset
  3484
                    ]
Claus Gittinger <cg@exept.de>
parents: 5199
diff changeset
  3485
                ].
Claus Gittinger <cg@exept.de>
parents: 5199
diff changeset
  3486
        ].
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3487
    ].
4885
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3488
    ^ classes ? #()
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3489
2056
1beb5756e9e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2034
diff changeset
  3490
    "Modified: 4.1.1997 / 16:51:18 / cg"
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3491
!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3492
4887
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3493
includesClass:aClassOrClassName
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3494
    "return true, if a class is contained in the project"
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3495
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3496
    |infoCollection index className|
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3497
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3498
    (infoCollection := self classInfo) isNil ifTrue:[^ false].
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3499
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3500
    aClassOrClassName isBehavior ifTrue:[
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3501
        className := aClassOrClassName name
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3502
    ] ifFalse:[
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3503
        className := aClassOrClassName
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3504
    ].
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3505
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3506
    index := infoCollection findFirst:[:i | |nm1 nm2|
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3507
                                        i className = className
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3508
                                      ].
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3509
    ^ index ~~ 0 
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3510
!
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3511
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3512
includesMethod:aMethod
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3513
    "return true, if the given method is contained in the project
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3514
     (either as patch/extension or as class"
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3515
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3516
    |who methodClass|
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3517
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3518
    who := aMethod who.
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3519
    who isNil ifTrue:[^ false].
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3520
    methodClass := who methodClass.
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3521
    (self includesClass:methodClass) ifTrue:[^ true].
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3522
    ^ self includesMethodPatch:aMethod
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3523
!
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3524
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3525
includesMethodPatch:aMethod
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3526
    "return true, if the given method is contained in the project
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3527
     as patch/extension"
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3528
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3529
    |who methodClass methodClassName methodSelector infoCollection index className selector|
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3530
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3531
    who := aMethod who.
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3532
    who isNil ifTrue:[^ false].
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3533
    methodClass := who methodClass.
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3534
    methodClassName := methodClass name.
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3535
    methodSelector := who methodSelector.
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3536
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3537
    infoCollection := self methodInfo.
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3538
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3539
    index := infoCollection findFirst:[:i | 
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3540
                        (i className = methodClassName 
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3541
                        and:[i methodName = methodSelector])
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3542
             ].
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3543
    ^ index ~~ 0 
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3544
!
f9e375e800a8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4886
diff changeset
  3545
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3546
individualMethods
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3547
    "return a collection of individual methods belonging to that project,
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3548
     only methods are returned which are not contained in the
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3549
     projects class set."
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3550
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3551
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3552
"/
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3553
"/ obsoleted by #methods ...
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3554
"/
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3555
    |classes methods|
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3556
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3557
    classes := self classes.
4885
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3558
    classes size > 0 ifTrue:[
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3559
        classes := classes asIdentitySet.
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3560
    ].
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3561
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3562
    methods := IdentitySet new.
5581
7bef1c75fb06 allBehaviors vs. allClasses
Claus Gittinger <cg@exept.de>
parents: 5553
diff changeset
  3563
    Smalltalk allClassesDo:[:cls |
4885
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3564
        |classToCheck|
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3565
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3566
        classToCheck := cls.
4670
21eec331e1e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4668
diff changeset
  3567
"/        cls isPrivate ifTrue:[
21eec331e1e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4668
diff changeset
  3568
"/            classToCheck := cls topOwningClass
21eec331e1e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4668
diff changeset
  3569
"/        ].
4885
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3570
        ((classes includes:classToCheck) 
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3571
        or:[classes includes:classToCheck name]) not 
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3572
        ifTrue:[
6079
c18b15a12fe5 renamed: #allSelectorsAndMethodsDo: into: #instAndClassSelectorsAndMethodsDo:
Claus Gittinger <cg@exept.de>
parents: 6032
diff changeset
  3573
            cls instAndClassSelectorsAndMethodsDo:[:sel :m |
4885
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3574
                m package = packageName ifTrue:[
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3575
                    methods add:m
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3576
                ]
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3577
            ].
bdbdb37f4252 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4850
diff changeset
  3578
        ]
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3579
    ].
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3580
    ^ methods asArray
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3581
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3582
    "
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3583
     Project current classes
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3584
     Project current individualMethods
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3585
    "
1461
dd25bb1e9973 Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents: 1420
diff changeset
  3586
dd25bb1e9973 Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents: 1420
diff changeset
  3587
    "Modified: 7.6.1996 / 09:16:25 / stefan"
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3588
!
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3589
5897
793b0adad934 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5819
diff changeset
  3590
isDefaultProject
793b0adad934 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5819
diff changeset
  3591
    ^ self == Project defaultProject
793b0adad934 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5819
diff changeset
  3592
!
793b0adad934 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5819
diff changeset
  3593
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3594
isLoaded
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3595
    "return true, if all of this project-package has been loaded
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3596
     into the system"
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3597
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  3598
    |binaryModule cls|
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3599
5178
5cc5f9ed5313 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5177
diff changeset
  3600
    isLoaded == true ifTrue:[^ isLoaded].
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3601
4791
c2cdad0ab823 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4790
diff changeset
  3602
    "/ check for loaded class-library - assume loaded if present.
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3603
    binaryModule := ObjectMemory binaryModuleInfo detect:[:i | i package = self package] ifNone:nil.
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3604
    binaryModule notNil ifTrue:[
5178
5cc5f9ed5313 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5177
diff changeset
  3605
        isLoaded := true.
4819
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3606
        ^ true
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3607
    ].
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3608
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  3609
    "/ check for all classes ...
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  3610
    self classes do:[:aClassOrClassName |
4819
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3611
        aClassOrClassName isBehavior ifFalse:[
5165
212867b779e7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5156
diff changeset
  3612
            aClassOrClassName isString ifTrue:[
212867b779e7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5156
diff changeset
  3613
                (cls := Smalltalk at:aClassOrClassName asSymbol) isNil ifTrue:[
4819
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3614
                    ^ false
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3615
                ].
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3616
                cls isBehavior ifFalse:[^ false].
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3617
                cls isLoaded ifFalse:[^ false].
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3618
            ] ifFalse:[
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3619
                self halt.
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3620
                ^ false
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3621
            ]
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3622
        ]
4769
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  3623
    ].
202c54048ce4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4755
diff changeset
  3624
4791
c2cdad0ab823 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4790
diff changeset
  3625
    "/ check for all patches & extensions ...
c2cdad0ab823 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4790
diff changeset
  3626
    self methods do:[:aMethodInfo |
4819
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3627
        aMethodInfo theMethod isNil ifTrue:[
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3628
            ^ false
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3629
        ].
4791
c2cdad0ab823 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4790
diff changeset
  3630
    ].
c2cdad0ab823 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4790
diff changeset
  3631
5178
5cc5f9ed5313 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5177
diff changeset
  3632
    isLoaded := true.
4791
c2cdad0ab823 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4790
diff changeset
  3633
    ^ true
4685
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3634
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3635
    "
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3636
     (Project projectWithId:#'stx:libbasic') isLoaded
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3637
     (Project projectWithId:#'stx:goodies/persistency') isLoaded 
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3638
    "
d145298696b7 more package loading support
Claus Gittinger <cg@exept.de>
parents: 4670
diff changeset
  3639
4819
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3640
    "Modified: / 26.9.1999 / 13:39:55 / cg"
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3641
!
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3642
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3643
methodInfo
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3644
    "return a methodInfo collection of methods belonging to that project"
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3645
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3646
    |methodInfo methods|
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3647
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3648
    properties notNil ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3649
	methodInfo := properties at:#methodInfo ifAbsent:nil.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3650
	methodInfo notNil ifTrue:[^ methodInfo].
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3651
    ].
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3652
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3653
    methods := self methods.
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3654
    methods size == 0 ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3655
	methodInfo := OrderedCollection new
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3656
    ] ifFalse:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3657
	methodInfo := methods asOrderedCollection
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3658
			collect:[:mthd |
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3659
			    |i fn who className selector|
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3660
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3661
			    mthd isMethod ifTrue:[   
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3662
				who := mthd who.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3663
				className := who methodClass name.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3664
				selector := who methodSelector.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3665
				i := MethodInfo new.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3666
				i conditionForInclusion:#always.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3667
				i className:className.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3668
				i methodName:className.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3669
				fn := mthd sourceFilename.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3670
				i fileName:fn.
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3671
				i
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3672
			    ] ifFalse:[
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3673
				mthd "/ already a methodInfo
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3674
			    ]
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3675
			]
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3676
    ].
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3677
    self propertyAt:#methodInfo put:methodInfo.
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3678
    ^ methodInfo
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3679
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3680
    "Modified: 4.1.1997 / 16:51:18 / cg"
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3681
!
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3682
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3683
methods
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3684
    "return a collection of methods belonging to that project.
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3685
     This excludes any methods which are already in my class-set."
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3686
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3687
    |methods methodsInfo|
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3688
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3689
    properties notNil ifTrue:[
5327
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3690
        methodsInfo := properties at:#methodsInfo ifAbsent:nil.
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3691
        methodsInfo notNil ifTrue:[
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3692
            methods := methodsInfo collect:[:i | i className]
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3693
        ] ifFalse:[
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3694
            methods := properties at:#methods ifAbsent:nil
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3695
        ]
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3696
    ].
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3697
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3698
    methods isNil ifTrue:[
5327
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3699
        methods := OrderedCollection new.
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3700
        Smalltalk allClassesDo:[:aClass |
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3701
            (true "aClass owningClass isNil"
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3702
            and:[aClass isMeta not
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3703
            and:[aClass package ~= packageName
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3704
            and:[aClass isNameSpace not or:[aClass == Smalltalk]]]]) ifTrue:[
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3705
            
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3706
                aClass methodDictionary keysAndValuesDo:[:sel :mthd |
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3707
                    mthd package = packageName ifTrue:[
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3708
                        methods add:(MethodInfo new
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3709
                                        className:aClass name;
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3710
                                        methodName:sel;
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3711
                                        yourself)
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3712
                    ].
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3713
                ].
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3714
                aClass class methodDictionary keysAndValuesDo:[:sel :mthd |
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3715
                    mthd package = packageName ifTrue:[
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3716
                        methods add:(MethodInfo new
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3717
                                        className:(aClass name , ' class');
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3718
                                        methodName:sel;
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3719
                                        yourself)
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3720
                    ].
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3721
                ]
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3722
            ]
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3723
        ].
5e5602d156fa #isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents: 5314
diff changeset
  3724
        methods isEmpty ifTrue:[^ #()].
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3725
    ].
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3726
    ^ methods
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3727
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3728
    "Modified: 4.1.1997 / 16:51:18 / cg"
2
claus
parents: 1
diff changeset
  3729
! !
claus
parents: 1
diff changeset
  3730
claus
parents: 1
diff changeset
  3731
!Project methodsFor:'specifications'!
claus
parents: 1
diff changeset
  3732
claus
parents: 1
diff changeset
  3733
readSpec
claus
parents: 1
diff changeset
  3734
    |s chunk fileName|
claus
parents: 1
diff changeset
  3735
claus
parents: 1
diff changeset
  3736
    fileName := (properties at:#directoryName) asFilename construct:'.project'.
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  3737
    s := fileName readStreamOrNil.
2
claus
parents: 1
diff changeset
  3738
    s isNil ifTrue:[^ self].
claus
parents: 1
diff changeset
  3739
    [s atEnd] whileFalse:[
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  3740
        chunk := s nextChunk.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  3741
        Compiler evaluate:chunk receiver:properties notifying:nil
2
claus
parents: 1
diff changeset
  3742
    ].
claus
parents: 1
diff changeset
  3743
    s close.
claus
parents: 1
diff changeset
  3744
claus
parents: 1
diff changeset
  3745
    "(Project new directory:'../projects/Clock') readSpec"
claus
parents: 1
diff changeset
  3746
!
claus
parents: 1
diff changeset
  3747
claus
parents: 1
diff changeset
  3748
saveSpec
claus
parents: 1
diff changeset
  3749
    |f d s|
claus
parents: 1
diff changeset
  3750
claus
parents: 1
diff changeset
  3751
    d := (properties at:#directoryName) asFilename.
claus
parents: 1
diff changeset
  3752
    d exists ifFalse:[
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  3753
        self error:'directory does not exist' mayProceed:true.
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  3754
        ^ self
2
claus
parents: 1
diff changeset
  3755
    ].
claus
parents: 1
diff changeset
  3756
    f := d construct:'.project'.
claus
parents: 1
diff changeset
  3757
    s := f writeStream.
7107
167e49f952b4 More openErrorSignal change preparations
Stefan Vogel <sv@exept.de>
parents: 7095
diff changeset
  3758
    s checkNilFileStream.
2
claus
parents: 1
diff changeset
  3759
    properties associationsDo:[:aProp |
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  3760
        (aProp == #directoryName) ifFalse:[
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  3761
            s nextChunkPut:('self at:' , aProp key storeString, 
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  3762
                               ' put:' , aProp value storeString).
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  3763
            s cr
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  3764
        ]
2
claus
parents: 1
diff changeset
  3765
    ].
claus
parents: 1
diff changeset
  3766
    s close
claus
parents: 1
diff changeset
  3767
claus
parents: 1
diff changeset
  3768
    "((Project new directory:'../projects/Clock') readSpec
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  3769
         directory:'../projects/xxx') saveSpec"
2
claus
parents: 1
diff changeset
  3770
! !
claus
parents: 1
diff changeset
  3771
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3772
!Project methodsFor:'views'!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3773
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3774
addView:aView
2164
063b0227aeda use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents: 2056
diff changeset
  3775
    "add a view to this projects set of views"
063b0227aeda use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents: 2056
diff changeset
  3776
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3777
    views notNil ifTrue:[views add:aView]
2164
063b0227aeda use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents: 2056
diff changeset
  3778
063b0227aeda use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents: 2056
diff changeset
  3779
    "Modified: 14.2.1997 / 15:36:51 / cg"
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3780
!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3781
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3782
destroyViews
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3783
    "destroy all views of this project"
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3784
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3785
    views notNil ifTrue:[
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3786
	views do:[:aView |
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3787
	    aView notNil ifTrue:[aView destroy]
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3788
	]
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3789
    ].
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3790
!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3791
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3792
hideViews
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3793
    "hide all views of this project"
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3794
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3795
    views notNil ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3796
	views do:[:aView |
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3797
	    aView notNil ifTrue:[aView unmap]
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3798
	]
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3799
    ].
1332
a1d72522f5fc Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents: 1298
diff changeset
  3800
a1d72522f5fc Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents: 1298
diff changeset
  3801
    "Modified: 3.5.1996 / 23:48:51 / stefan"
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3802
!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3803
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3804
removeView:aView
2164
063b0227aeda use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents: 2056
diff changeset
  3805
    "remove a view from this projects set of views"
063b0227aeda use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents: 2056
diff changeset
  3806
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3807
    views notNil ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3808
	views remove:aView ifAbsent:nil
3996
3183ccccabaa more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents: 3974
diff changeset
  3809
    ]
2164
063b0227aeda use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents: 2056
diff changeset
  3810
063b0227aeda use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents: 2056
diff changeset
  3811
    "Modified: 14.2.1997 / 15:37:20 / cg"
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3812
!
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3813
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3814
showViews
2164
063b0227aeda use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents: 2056
diff changeset
  3815
    "show all views of this project"
063b0227aeda use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents: 2056
diff changeset
  3816
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3817
    views notNil ifTrue:[
4814
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3818
	views do:[:aView |
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3819
	    aView notNil ifTrue:[aView remap]
7825b9141f01 changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents: 4813
diff changeset
  3820
	]
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3821
    ].
1332
a1d72522f5fc Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents: 1298
diff changeset
  3822
a1d72522f5fc Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents: 1298
diff changeset
  3823
    "Modified: 3.5.1996 / 23:59:10 / stefan"
2164
063b0227aeda use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents: 2056
diff changeset
  3824
    "Modified: 14.2.1997 / 15:38:47 / cg"
617
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3825
! !
427245e28240 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
  3826
5734
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3827
!Project::ClassInfo methodsFor:'accessing'!
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3828
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3829
classFileName
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3830
    "return the value of the instance variable 'classFileName' (automatically generated)"
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3831
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3832
    ^ classFileName
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3833
!
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3834
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3835
classFileName:something
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3836
    "set the value of the instance variable 'classFileName' (automatically generated)"
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3837
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3838
    classFileName := something.
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3839
!
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3840
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3841
className
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3842
    "return the value of the instance variable 'className' (automatically generated)"
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3843
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3844
    ^ className
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3845
!
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3846
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3847
className:something
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3848
    "set the value of the instance variable 'className' (automatically generated)"
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3849
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3850
    className := something.
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3851
!
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3852
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3853
conditionForInclusion
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3854
    "return the value of the instance variable 'conditionForInclusion' (automatically generated)"
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3855
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3856
    ^ conditionForInclusion
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3857
!
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3858
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3859
conditionForInclusion:something
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3860
    "set the value of the instance variable 'conditionForInclusion' (automatically generated)"
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3861
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3862
    conditionForInclusion := something.
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3863
! !
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3864
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3865
!Project::ClassInfo methodsFor:'printing & storing'!
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3866
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3867
displayString
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3868
    ^ 'ClassInfo: ' , className
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3869
! !
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3870
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3871
!Project::ClassInfo methodsFor:'queries'!
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3872
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3873
theClass
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3874
    |cls|
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3875
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3876
    cls := Smalltalk classNamed:className.
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3877
    cls isNil ifTrue:[ ^ nil].
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3878
    ^ cls
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3879
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3880
    "Created: / 26.9.1999 / 13:39:00 / cg"
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3881
! !
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3882
4743
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3883
!Project::MethodInfo methodsFor:'accessing'!
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3884
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3885
className
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3886
    "return the value of the instance variable 'className' (automatically generated)"
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3887
5734
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3888
    ^ className
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3889
!
4743
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3890
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3891
className:something
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3892
    "set the value of the instance variable 'className' (automatically generated)"
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3893
5734
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3894
    className := something.
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3895
!
4743
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3896
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3897
conditionForInclusion
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3898
    "return the value of the instance variable 'conditionForInclusion' (automatically generated)"
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3899
5734
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3900
    ^ conditionForInclusion
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3901
!
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3902
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3903
conditionForInclusion:something
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3904
    "set the value of the instance variable 'conditionForInclusion' (automatically generated)"
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3905
5734
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3906
    conditionForInclusion := something.
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3907
!
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3908
4743
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3909
fileName
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3910
    "return the value of the instance variable 'fileName' (automatically generated)"
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3911
5734
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3912
    ^ fileName
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3913
!
4743
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3914
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3915
fileName:something
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3916
    "set the value of the instance variable 'fileName' (automatically generated)"
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3917
5734
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3918
    fileName := something.
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3919
!
4743
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3920
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3921
methodName
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3922
    "return the value of the instance variable 'methodName' (automatically generated)"
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3923
5734
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3924
    ^ methodName
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3925
!
4743
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3926
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3927
methodName:something
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3928
    "set the value of the instance variable 'methodName' (automatically generated)"
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3929
5734
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3930
    methodName := something.
c734386ad598 asText allBold -> allBold
Claus Gittinger <cg@exept.de>
parents: 5692
diff changeset
  3931
! !
4743
11f9e45976cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4727
diff changeset
  3932
4755
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3933
!Project::MethodInfo methodsFor:'printing & storing'!
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3934
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3935
displayString
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3936
    ^ 'MethodInfo: ' , className , ' ' , methodName
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3937
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3938
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3939
! !
2d866f87d1da preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents: 4747
diff changeset
  3940
4791
c2cdad0ab823 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4790
diff changeset
  3941
!Project::MethodInfo methodsFor:'queries'!
c2cdad0ab823 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4790
diff changeset
  3942
c2cdad0ab823 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4790
diff changeset
  3943
method
4819
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3944
    self obsoleteMethodWarning.
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3945
    ^ self theMethod.
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3946
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3947
    "Modified: / 26.9.1999 / 13:40:16 / cg"
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3948
!
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3949
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3950
theMethod
4791
c2cdad0ab823 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4790
diff changeset
  3951
    |cls|
c2cdad0ab823 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4790
diff changeset
  3952
c2cdad0ab823 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4790
diff changeset
  3953
    cls := Smalltalk classNamed:className.
c2cdad0ab823 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4790
diff changeset
  3954
    cls isNil ifTrue:[ ^ nil].
c2cdad0ab823 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4790
diff changeset
  3955
    ^ cls compiledMethodAt:methodName asSymbol.
4819
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3956
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3957
    "Created: / 26.9.1999 / 13:39:07 / cg"
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3958
! !
19b89da166c0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4814
diff changeset
  3959
1854
b44227fd2b3d use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents: 1636
diff changeset
  3960
!Project class methodsFor:'documentation'!
630
b785d23d7c5b version at the end
Claus Gittinger <cg@exept.de>
parents: 617
diff changeset
  3961
b785d23d7c5b version at the end
Claus Gittinger <cg@exept.de>
parents: 617
diff changeset
  3962
version
7182
42dce0ee1b98 james' package changes
james
parents: 7107
diff changeset
  3963
    ^ '$Header: /cvs/stx/stx/libbasic/Project.st,v 1.184 2003-04-09 12:29:15 james Exp $'
1298
23d0ba91c9be documentation
Claus Gittinger <cg@exept.de>
parents: 1286
diff changeset
  3964
! !
7090
7afcbe4a5264 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 6746
diff changeset
  3965
1
a27a279701f8 Initial revision
claus
parents:
diff changeset
  3966
Project initialize!