author | Claus Gittinger <cg@exept.de> |
Mon, 06 Sep 1999 16:58:20 +0200 | |
changeset 4685 | d145298696b7 |
parent 4670 | 21eec331e1e9 |
child 4688 | 1b27165b9f97 |
permissions | -rw-r--r-- |
89 | 1 |
" |
236 | 2 |
COPYRIGHT (c) 1993 by Claus Gittinger |
203 | 3 |
All Rights Reserved |
89 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
1 | 12 |
|
13 |
Object subclass:#Project |
|
939
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
14 |
instanceVariableNames:'name changeSet views directoryName properties packageName |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
15 |
repositoryDirectory repositoryModule defaultNameSpace |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
16 |
overwrittenMethods subProjects prerequisites bitmapFiles |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
17 |
documentFiles otherFiles isLoaded' |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
18 |
classVariableNames:'CurrentProject SystemProject NextSequential AllProjects |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
19 |
LoadedProjects' |
939
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
20 |
poolDictionaries:'' |
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
21 |
category:'System-Support' |
1 | 22 |
! |
23 |
||
4668 | 24 |
Object subclass:#MethodInfo |
25 |
instanceVariableNames:'methodName className fileName' |
|
26 |
classVariableNames:'' |
|
27 |
poolDictionaries:'' |
|
28 |
privateIn:Project |
|
29 |
! |
|
30 |
||
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
31 |
Object subclass:#ClassInfo |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
32 |
instanceVariableNames:'conditionForInclusion className classFileName' |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
33 |
classVariableNames:'' |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
34 |
poolDictionaries:'' |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
35 |
privateIn:Project |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
36 |
! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
37 |
|
1854
b44227fd2b3d
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
38 |
!Project class methodsFor:'documentation'! |
89 | 39 |
|
40 |
copyright |
|
41 |
" |
|
42 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
203 | 43 |
All Rights Reserved |
89 | 44 |
|
45 |
This software is furnished under a license and may be used |
|
46 |
only in accordance with the terms of that license and with the |
|
47 |
inclusion of the above copyright notice. This software may not |
|
48 |
be provided or otherwise made available to, or used by, any |
|
49 |
other person. No title to or ownership of the software is |
|
50 |
hereby transferred. |
|
51 |
" |
|
52 |
! |
|
53 |
||
54 |
documentation |
|
55 |
" |
|
338 | 56 |
this class is still under construction (especially the build features are unfinished). |
235 | 57 |
Currently, all it does is keep track of per-project views |
58 |
(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
|
59 |
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
|
60 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
61 |
instance variables: |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
62 |
name <String> the name of this project, as shown |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
63 |
in a ProjectView |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
64 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
65 |
changeSet <ChangeSet> changes done, while this was the active project |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
66 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
67 |
views <Collection> views opened while this was the active project |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
68 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
69 |
directoryName <String> directory name, where fileOuts are done |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
70 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
71 |
properties |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
72 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
73 |
packageName <String> given to classes/methods which are created while |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
74 |
this is the active project |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
75 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
76 |
repositoryDirectory (default) name of the repository, when a new source containers are |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
77 |
created. |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
78 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
79 |
repositoryModule (default) name of the module, when new source containers are |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
80 |
created. |
235 | 81 |
|
82 |
Future: |
|
725
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
83 |
- keep track of per-project changes |
4069 | 84 |
- allow speficiation of the type of the project (application or library) |
725
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
85 |
- allow building of whatever the target (as defined by the type) is |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
86 |
(this will allow build of class libs and apps by clicking a button) |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
87 |
- allow removal of project specific classes, methods etc. |
1286 | 88 |
|
89 |
[author:] |
|
90 |
Claus Gittinger |
|
89 | 91 |
" |
92 |
! ! |
|
93 |
||
1854
b44227fd2b3d
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
94 |
!Project class methodsFor:'initialization'! |
236 | 95 |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
96 |
initKnownProjects |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
97 |
"this is a temporary experimental kludge - |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
98 |
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
|
99 |
'.prj' files ..." |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
100 |
|
4668 | 101 |
"/ collect project info while scanning all classes |
102 |
"/ and methods ... |
|
103 |
||
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
104 |
|packages anyUnloaded| |
4668 | 105 |
|
106 |
packages := IdentitySet new. |
|
107 |
||
108 |
AllProjects isNil ifTrue:[ |
|
109 |
AllProjects := OrderedCollection new. |
|
110 |
] ifFalse:[ |
|
111 |
AllProjects do:[:p | packages add:p packageName asSymbol]. |
|
112 |
]. |
|
113 |
Smalltalk allClassesDo:[:aClass | |
|
114 |
|packageID prj classFilename pkgInfo revInfo |
|
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
115 |
repositoryPath dir module lib nm| |
4668 | 116 |
|
117 |
aClass isMeta ifFalse:[ |
|
118 |
(aClass isNamespace not or:[aClass == Smalltalk]) ifTrue:[ |
|
119 |
packageID := aClass package asSymbol. |
|
120 |
(packages includes:packageID) ifFalse:[ |
|
121 |
packages add:packageID. |
|
122 |
||
123 |
"/ a new one ... |
|
124 |
||
125 |
prj := self new. |
|
126 |
prj packageName:packageID. |
|
127 |
prj directory:'???'. |
|
128 |
prj repositoryModule:'unknown'. |
|
129 |
prj repositoryDirectory:'unknown'. |
|
130 |
||
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
131 |
nm := 'unknown'. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
132 |
|
4668 | 133 |
pkgInfo := aClass packageSourceCodeInfo. |
134 |
pkgInfo notNil ifTrue:[ |
|
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
135 |
module := pkgInfo at:#module ifAbsent:nil. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
136 |
module notNil ifTrue:[ |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
137 |
prj repositoryModule:module |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
138 |
]. |
4668 | 139 |
dir := pkgInfo at:#directory ifAbsent:nil. |
140 |
dir notNil ifTrue:[ |
|
141 |
prj directory:dir |
|
142 |
]. |
|
143 |
lib := pkgInfo at:#library ifAbsent:nil. |
|
144 |
lib notNil ifTrue:[ |
|
145 |
prj type:#library. |
|
146 |
]. |
|
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
147 |
prj isLoaded:true. |
4668 | 148 |
]. |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
149 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
150 |
nm := (module ? 'unknown') |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
151 |
, ':' |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
152 |
, (dir ? (lib ? 'unknown')). |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
153 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
154 |
prj name:nm. |
4668 | 155 |
AllProjects add:prj. |
156 |
]. |
|
157 |
]. |
|
158 |
]. |
|
159 |
]. |
|
160 |
Method allSubInstancesDo:[:aMethod | |
|
161 |
|packageID prj who mthdClass| |
|
162 |
||
163 |
packageID := aMethod package asSymbol. |
|
164 |
who := aMethod who. |
|
165 |
who notNil ifTrue:[ "/ skip unbound methods ... |
|
166 |
mthdClass := who methodClass. |
|
167 |
mthdClass package ~= packageID ifTrue:[ |
|
168 |
(packages includes:packageID) ifFalse:[ |
|
169 |
packages add:packageID. |
|
170 |
||
171 |
"/ a new one ... |
|
172 |
prj := self new. |
|
173 |
"/ prj name:libName. |
|
174 |
prj package:packageID. |
|
175 |
prj type:#library. |
|
176 |
prj directory:'???'. |
|
177 |
prj repositoryModule:'stx'. |
|
178 |
prj repositoryDirectory:'???'. |
|
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
179 |
prj isLoaded:true. |
4668 | 180 |
AllProjects add:prj. |
181 |
]. |
|
182 |
] |
|
183 |
] |
|
184 |
]. |
|
185 |
self changed:#allProjects |
|
186 |
||
4066 | 187 |
"/ |stx p| |
188 |
"/ |
|
189 |
"/ stx := self new name:'stx'. |
|
190 |
"/ stx packageName:'noPackage'. |
|
191 |
"/ stx changeSet:nil. |
|
192 |
"/ stx type:#smalltalk. |
|
193 |
"/ stx comment:'The ST/X project itself'. |
|
194 |
"/ |
|
195 |
"/ AllProjects add:stx. |
|
196 |
"/ |
|
197 |
"/ #( |
|
198 |
"/ ('libbasic' #'stx:libbasic' 'Basic (non-GUI) classes. Required for all applications') |
|
199 |
"/ ('libbasic2' #'stx:libbasic2' 'More basic (non-GUI) classes. Required for most applications') |
|
200 |
"/ ('libbasic3' #'stx:libbasic3' 'More basic (non-GUI) classes. Required for development') |
|
201 |
"/ ('libcomp' #'stx:libcomp' 'The bytecode compiler. Required for all applications') |
|
202 |
"/ ('libview' #'stx:libview' 'Low level GUI classes. Required for all GUI applications') |
|
203 |
"/ ('libview2' #'stx:libview2' 'Additional low level GUI classes. Required for most GUI applications') |
|
204 |
"/ ('libwidg' #'stx:libwidg' 'Basic widgets. Required for all GUI applications') |
|
205 |
"/ ('libwidg2' #'stx:libwidg2' 'More widgets. Required for most GUI applications') |
|
206 |
"/ ('libwidg3' #'stx:libwidg3' 'More (fun) widgets. Seldom required') |
|
207 |
"/ ('libtool' #'stx:libtool' 'Development applications. Required for program development') |
|
208 |
"/ ('libtool2' #'stx:libtool2' 'More development applications. Required for GUI development') |
|
209 |
"/ ('libui' #'stx:libui' 'UI spec classes. Required for UIPainter applications') |
|
210 |
"/ ('libhtml' #'stx:libhtml' 'HTML related classes. Required for Web applications and the HTML browser') |
|
211 |
"/ ('libodbc' #'stx:libodbc' 'ODBC interface classes.') |
|
212 |
"/ ('libopengl' #'stx:libopengl' 'OpenGL interface classes.') |
|
213 |
"/ ('persistency' #'stx:goodies/persistency' 'Simple DB interface') |
|
214 |
"/ ('goodies' #'stx:goodies' 'Misc goodies - not really maintained') |
|
215 |
"/ ) do:[:entry | |
|
216 |
"/ |libName package comment| |
|
217 |
"/ |
|
218 |
"/ libName := entry at:1. |
|
219 |
"/ package := entry at:2. |
|
220 |
"/ comment := entry at:3. |
|
221 |
"/ |
|
222 |
"/ p := self new name:libName. |
|
223 |
"/ p packageName:package. |
|
224 |
"/ p type:#library. |
|
225 |
"/ p comment:comment. |
|
226 |
"/ stx addSubProject:p. |
|
227 |
"/ ]. |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
228 |
|
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
229 |
" |
4668 | 230 |
AllProjects := nil. |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
231 |
self initKnownProjects |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
232 |
" |
4069 | 233 |
|
234 |
"Modified: / 23.3.1999 / 14:20:12 / cg" |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
235 |
! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
236 |
|
236 | 237 |
initialize |
338 | 238 |
SystemProject isNil ifTrue:[ |
2028 | 239 |
NextSequential := 1. |
240 |
SystemProject := self new name:'default'. |
|
241 |
SystemProject packageName:'private'. |
|
242 |
SystemProject defaultNameSpace:Smalltalk. |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
243 |
SystemProject comment:'A default (dummy) project. |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
244 |
Will be made the current project in case no real project is ever activated.'. |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
245 |
|
2028 | 246 |
" |
247 |
the SystemProject does not keep a record if changes, |
|
248 |
but instead depends on the changes file - recording anything there. |
|
249 |
" |
|
250 |
SystemProject changeSet:nil. |
|
338 | 251 |
]. |
252 |
||
253 |
CurrentProject := SystemProject. |
|
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
254 |
AllProjects := nil. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
255 |
"/ now done lazy ... |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
256 |
"/ self initKnownProjects. |
236 | 257 |
|
315 | 258 |
" |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
259 |
SystemProject := nil. |
315 | 260 |
Project initialize |
261 |
" |
|
236 | 262 |
! ! |
263 |
||
1854
b44227fd2b3d
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
264 |
!Project class methodsFor:'instance creation'! |
236 | 265 |
|
266 |
new |
|
267 |
^ self basicNew initialize |
|
268 |
! ! |
|
269 |
||
1854
b44227fd2b3d
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
270 |
!Project class methodsFor:'accessing'! |
1 | 271 |
|
4071 | 272 |
addKnownProject:aProject |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
273 |
|allProjects| |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
274 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
275 |
allProjects := self knownProjects. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
276 |
(allProjects detect:[:p | p package = aProject package] ifNone:nil) notNil ifTrue:[ |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
277 |
self warn:'Project for ' , aProject package , ' is already present.'. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
278 |
^ self. |
4071 | 279 |
]. |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
280 |
|
4071 | 281 |
AllProjects add:aProject. |
282 |
self changed:#allProjects |
|
283 |
! |
|
284 |
||
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
285 |
addLoadedProject:aProject |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
286 |
aProject isLoaded:true. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
287 |
self addKnownProject:aProject. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
288 |
! |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
289 |
|
1 | 290 |
current |
10 | 291 |
"return the currently active project" |
292 |
||
1 | 293 |
^ CurrentProject |
294 |
||
362 | 295 |
" |
296 |
Project current |
|
297 |
" |
|
1 | 298 |
! |
299 |
||
300 |
current:aProject |
|
10 | 301 |
"set the currently active project" |
302 |
||
315 | 303 |
CurrentProject := aProject. |
304 |
self changed:#currentProject |
|
334 | 305 |
! |
306 |
||
617 | 307 |
currentPackageName |
308 |
CurrentProject notNil ifTrue:[ |
|
4112
5ee841c34b10
return nil (instead of 'no package') if no current package is defined.
Claus Gittinger <cg@exept.de>
parents:
4099
diff
changeset
|
309 |
^ CurrentProject packageName |
617 | 310 |
]. |
4112
5ee841c34b10
return nil (instead of 'no package') if no current package is defined.
Claus Gittinger <cg@exept.de>
parents:
4099
diff
changeset
|
311 |
^ nil |
617 | 312 |
|
313 |
" |
|
314 |
Project currentPackageName |
|
315 |
" |
|
316 |
! |
|
317 |
||
336 | 318 |
defaultProject |
319 |
"return the SystemDefault project" |
|
320 |
||
321 |
^ SystemProject. |
|
322 |
! |
|
323 |
||
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
324 |
knownProjects |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
325 |
AllProjects isNil ifTrue:[ |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
326 |
self initKnownProjects |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
327 |
]. |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
328 |
^ AllProjects ? #() |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
329 |
! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
330 |
|
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
331 |
loadedProjects |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
332 |
^ self knownProjects select:[:p | p isLoaded] |
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 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
335 |
projectNamed:aProjectName |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
336 |
"retrieve the named project; return nil if not known" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
337 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
338 |
^ self knownProjects detect:[:p | p name = aProjectName] ifNone:nil. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
339 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
340 |
" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
341 |
Project projectNamed:'libbasic' |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
342 |
" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
343 |
! |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
344 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
345 |
projectWithId:aPackageId |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
346 |
"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
|
347 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
348 |
^ self knownProjects detect:[:p | p package = aPackageId] ifNone:nil. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
349 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
350 |
" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
351 |
Project projectWithId:#'stx:libbasic' |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
352 |
" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
353 |
! |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
354 |
|
334 | 355 |
setDefaultProject |
356 |
"set the currently active project to be the SystemDEfault project" |
|
357 |
||
358 |
self current:SystemProject. |
|
939
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
359 |
! |
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
360 |
|
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
361 |
setProject:aProjectOrNil |
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
362 |
"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
|
363 |
|
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
364 |
CurrentProject := aProjectOrNil. |
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
365 |
|
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
366 |
"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
|
367 |
"Modified: 7.2.1996 / 14:01:16 / cg" |
1 | 368 |
! ! |
369 |
||
1854
b44227fd2b3d
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
370 |
!Project class methodsFor:'changes management'! |
149 | 371 |
|
664 | 372 |
addClassDefinitionChangeFor:aClass |
1115 | 373 |
"add a class-def-change for aClass to the current project" |
374 |
||
664 | 375 |
|p c| |
376 |
||
377 |
p := CurrentProject. |
|
378 |
(p notNil |
|
379 |
and:[(c := p changeSet) notNil]) ifTrue:[ |
|
666
6d4175de8c55
fixed primitiveDefinitions changes
Claus Gittinger <cg@exept.de>
parents:
664
diff
changeset
|
380 |
c addClassDefinitionChangeFor:aClass |
664 | 381 |
] |
382 |
||
383 |
"Created: 3.12.1995 / 13:44:58 / cg" |
|
384 |
"Modified: 3.12.1995 / 13:58:04 / cg" |
|
385 |
! |
|
386 |
||
617 | 387 |
addMethodCategoryChange:aMethod category:newCategory in:aClass |
1115 | 388 |
"add a method-category-change for aMethod in aClass to the current project" |
389 |
||
617 | 390 |
|p c| |
391 |
||
392 |
p := CurrentProject. |
|
393 |
(p notNil |
|
394 |
and:[(c := p changeSet) notNil]) ifTrue:[ |
|
395 |
c addMethodCategoryChange:aMethod category:newCategory in:aClass |
|
396 |
] |
|
397 |
! |
|
398 |
||
149 | 399 |
addMethodChange:aMethod in:aClass |
1115 | 400 |
"add a method change in aClass to the current project" |
149 | 401 |
|
235 | 402 |
|p c| |
149 | 403 |
|
404 |
p := CurrentProject. |
|
405 |
(p notNil |
|
235 | 406 |
and:[(c := p changeSet) notNil]) ifTrue:[ |
407 |
c addMethodChange:aMethod in:aClass |
|
203 | 408 |
] |
409 |
! |
|
410 |
||
617 | 411 |
addMethodPrivacyChange:aMethod in:aClass |
1115 | 412 |
"add a privacy change for aMethod in aClass to the current project" |
413 |
||
617 | 414 |
|p c| |
415 |
||
416 |
p := CurrentProject. |
|
417 |
(p notNil |
|
418 |
and:[(c := p changeSet) notNil]) ifTrue:[ |
|
419 |
c addMethodPrivacyChange:aMethod in:aClass |
|
420 |
] |
|
421 |
||
422 |
"Modified: 27.8.1995 / 22:48:17 / claus" |
|
423 |
! |
|
424 |
||
705 | 425 |
addPrimitiveDefinitionsChangeFor:aClass |
1115 | 426 |
"add a primitiveDef change for aClass to the current project" |
427 |
||
705 | 428 |
|p c| |
429 |
||
430 |
p := CurrentProject. |
|
431 |
(p notNil |
|
432 |
and:[(c := p changeSet) notNil]) ifTrue:[ |
|
433 |
c addPrimitiveDefinitionsChangeFor:aClass |
|
434 |
] |
|
435 |
! |
|
436 |
||
437 |
addPrimitiveFunctionsChangeFor:aClass |
|
1115 | 438 |
"add a primitiveFuncs change for aClass to the current project" |
439 |
||
705 | 440 |
|p c| |
441 |
||
442 |
p := CurrentProject. |
|
443 |
(p notNil |
|
444 |
and:[(c := p changeSet) notNil]) ifTrue:[ |
|
445 |
c addPrimitiveFunctionsChangeFor:aClass |
|
446 |
] |
|
447 |
! |
|
448 |
||
449 |
addPrimitiveVariablesChangeFor:aClass |
|
1115 | 450 |
"add a primitiveVars change for aClass to the current project" |
451 |
||
705 | 452 |
|p c| |
453 |
||
454 |
p := CurrentProject. |
|
455 |
(p notNil |
|
456 |
and:[(c := p changeSet) notNil]) ifTrue:[ |
|
457 |
c addPrimitiveVariablesChangeFor:aClass |
|
458 |
] |
|
459 |
! |
|
460 |
||
3288
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
461 |
addRemoveSelectorChange:aSelector in:aClass |
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
462 |
"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
|
463 |
|
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
464 |
|p c| |
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
465 |
|
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
466 |
p := CurrentProject. |
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
467 |
(p notNil |
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
468 |
and:[(c := p changeSet) notNil]) ifTrue:[ |
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
469 |
c addRemoveSelectorChange:aSelector in:aClass |
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
470 |
] |
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
471 |
|
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
472 |
"Created: / 16.2.1998 / 12:45:10 / cg" |
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
473 |
! |
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
474 |
|
149 | 475 |
currentProjectDirectory |
476 |
"return the name of the directory to use for fileOut. |
|
235 | 477 |
The returned name already includes a file-separator at the end, |
478 |
so the filename can be concatenated to it." |
|
149 | 479 |
|
480 |
|p dirName| |
|
481 |
||
482 |
p := CurrentProject. |
|
483 |
p notNil ifTrue:[ |
|
2907 | 484 |
dirName := p directory |
149 | 485 |
] ifFalse:[ |
2907 | 486 |
dirName := Filename currentDirectory name |
149 | 487 |
]. |
2962 | 488 |
^ dirName |
2907 | 489 |
|
490 |
"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
|
491 |
! |
7502902385ff
only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents:
2276
diff
changeset
|
492 |
|
7502902385ff
only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents:
2276
diff
changeset
|
493 |
rememberOverwrittenMethod:newMethod from:oldMethod |
7502902385ff
only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents:
2276
diff
changeset
|
494 |
"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
|
495 |
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
|
496 |
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
|
497 |
|
2558 | 498 |
|p| |
2334
7502902385ff
only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents:
2276
diff
changeset
|
499 |
|
7502902385ff
only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents:
2276
diff
changeset
|
500 |
p := CurrentProject. |
7502902385ff
only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents:
2276
diff
changeset
|
501 |
(p notNil |
7502902385ff
only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents:
2276
diff
changeset
|
502 |
and:[p ~~ SystemProject]) ifTrue:[ |
7502902385ff
only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents:
2276
diff
changeset
|
503 |
p rememberOverwrittenMethod:newMethod from:oldMethod |
7502902385ff
only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents:
2276
diff
changeset
|
504 |
] ifFalse:[ |
3332
8014b817988b
remove the 'does not remember ...' message.
Claus Gittinger <cg@exept.de>
parents:
3288
diff
changeset
|
505 |
"/ '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
|
506 |
] |
7502902385ff
only remember overwritten methods if the current project
Claus Gittinger <cg@exept.de>
parents:
2276
diff
changeset
|
507 |
|
3332
8014b817988b
remove the 'does not remember ...' message.
Claus Gittinger <cg@exept.de>
parents:
3288
diff
changeset
|
508 |
"Modified: / 7.3.1998 / 13:38:39 / cg" |
13 | 509 |
! ! |
510 |
||
1 | 511 |
!Project methodsFor:'accessing'! |
512 |
||
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
513 |
addSubProject:aProject |
4097 | 514 |
"add a subproject - obsolete; we use prerequisites now" |
515 |
||
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
516 |
subProjects isNil ifTrue:[ |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
517 |
subProjects := OrderedCollection new. |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
518 |
]. |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
519 |
subProjects add:aProject |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
520 |
! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
521 |
|
1 | 522 |
changeSet |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
523 |
"return the set of changes made in this project" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
524 |
|
1 | 525 |
^ changeSet |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
526 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
527 |
"Modified: 27.1.1997 / 11:58:36 / cg" |
1 | 528 |
! |
529 |
||
236 | 530 |
changeSet:aChangeSet |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
531 |
"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
|
532 |
the actual changeSet." |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
533 |
|
236 | 534 |
changeSet := aChangeSet |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
535 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
536 |
"Modified: 27.1.1997 / 11:59:02 / cg" |
73 | 537 |
! |
538 |
||
2028 | 539 |
defaultNameSpace |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
540 |
"return the defaultNameSpace of this project. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
541 |
New classes will (if not specified by a directive) be installed |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
542 |
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
|
543 |
overwriting of standard classes." |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
544 |
|
2028 | 545 |
^ defaultNameSpace |
546 |
||
547 |
"Created: 2.1.1997 / 19:54:42 / cg" |
|
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
548 |
"Modified: 27.1.1997 / 11:59:53 / cg" |
2028 | 549 |
! |
550 |
||
551 |
defaultNameSpace:aNamespace |
|
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
552 |
"set the defaultNameSpace of this project. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
553 |
New classes will (if not specified by a directive) be installed |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
554 |
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
|
555 |
overwriting of standard classes." |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
556 |
|
4077 | 557 |
aNamespace ~~ defaultNameSpace ifTrue:[ |
558 |
defaultNameSpace := aNamespace. |
|
559 |
self changed:#defaultNameSpace. |
|
560 |
self == CurrentProject ifTrue:[ |
|
561 |
Project changed:#defaultNameSpace |
|
562 |
] |
|
2032 | 563 |
] |
2028 | 564 |
|
565 |
"Created: 2.1.1997 / 19:54:37 / cg" |
|
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
566 |
"Modified: 27.1.1997 / 12:00:01 / cg" |
2028 | 567 |
! |
568 |
||
315 | 569 |
directory |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
570 |
"return the projects directory. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
571 |
If not specified, a fileOut will be done into that directory" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
572 |
|
315 | 573 |
directoryName isNil ifTrue:[^ '.']. |
574 |
^ directoryName |
|
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
575 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
576 |
"Modified: 27.1.1997 / 12:00:41 / cg" |
315 | 577 |
! |
578 |
||
579 |
directory:aDirectoryName |
|
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
580 |
"set the projects directory. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
581 |
If not specified, a fileOut will be done into that directory" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
582 |
|
315 | 583 |
directoryName := aDirectoryName. |
4070 | 584 |
self changed:#directory. |
315 | 585 |
self == CurrentProject ifTrue:[ |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
586 |
Project changed:#directory |
315 | 587 |
] |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
588 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
589 |
"Modified: 27.1.1997 / 12:00:47 / cg" |
617 | 590 |
! |
356 | 591 |
|
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
592 |
isLoaded:aBoolean |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
593 |
isLoaded := aBoolean |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
594 |
! |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
595 |
|
617 | 596 |
name |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
597 |
"return the projects name. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
598 |
This is for the user only - shown in the projectViews label" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
599 |
|
617 | 600 |
^ name |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
601 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
602 |
"Modified: 27.1.1997 / 12:01:16 / cg" |
617 | 603 |
! |
356 | 604 |
|
617 | 605 |
name:aString |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
606 |
"set the projects name. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
607 |
This is for the user only - shown in the projectViews label" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
608 |
|
617 | 609 |
name := aString. |
4070 | 610 |
self changed:#name. |
617 | 611 |
self == CurrentProject ifTrue:[ |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
612 |
Project changed:#name |
617 | 613 |
] |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
614 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
615 |
"Modified: 27.1.1997 / 12:01:09 / cg" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
616 |
! |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
617 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
618 |
overwrittenMethods |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
619 |
"return the set of methods which were overwritten in this project. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
620 |
This information allows uninstalling, by switching back to the |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
621 |
original methods." |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
622 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
623 |
^ overwrittenMethods |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
624 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
625 |
"Created: 27.1.1997 / 11:57:21 / cg" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
626 |
"Modified: 27.1.1997 / 12:09:14 / cg" |
356 | 627 |
! |
628 |
||
4668 | 629 |
package |
630 |
"return the projects package identifier. |
|
631 |
This identifier marks all methods and new classes which were created |
|
632 |
in this project." |
|
633 |
||
634 |
^ packageName |
|
635 |
||
636 |
"Modified: 27.1.1997 / 12:10:00 / cg" |
|
637 |
! |
|
638 |
||
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
639 |
package:aPackageId |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
640 |
"set the projects package identifier. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
641 |
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
|
642 |
in this project." |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
643 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
644 |
packageName := aPackageId |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
645 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
646 |
"Modified: 27.1.1997 / 12:10:00 / cg" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
647 |
! |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
648 |
|
617 | 649 |
packageName |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
650 |
"return the projects package identifier. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
651 |
This identifier marks all methods and new classes which were created |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
652 |
in this project." |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
653 |
|
617 | 654 |
^ packageName |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
655 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
656 |
"Modified: 27.1.1997 / 12:10:00 / cg" |
10 | 657 |
! |
658 |
||
617 | 659 |
packageName:aStringOrSymbol |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
660 |
"set the projects package identifier. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
661 |
This identifier marks all methods and new classes which were created |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
662 |
in this project." |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
663 |
|
617 | 664 |
packageName := aStringOrSymbol asSymbol. |
4070 | 665 |
self changed:#package. |
617 | 666 |
self == CurrentProject ifTrue:[ |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
667 |
Project changed:#package |
617 | 668 |
] |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
669 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
670 |
"Modified: 27.1.1997 / 12:10:09 / cg" |
10 | 671 |
! |
672 |
||
4099 | 673 |
prerequisiteClasses |
674 |
"return the prerequisiteClasses of the project" |
|
675 |
||
676 |
^ (self propertyAt:#prerequisiteClasses) ? #() |
|
677 |
! |
|
678 |
||
4124 | 679 |
prerequisiteClasses:aCollectionOfClassesOrClassNames |
4099 | 680 |
"set the prerequisiteClasses of the project" |
681 |
||
4124 | 682 |
^ self propertyAt:#prerequisiteClasses put:aCollectionOfClassesOrClassNames |
683 |
||
684 |
"Modified: / 26.4.1999 / 23:33:44 / cg" |
|
685 |
! |
|
686 |
||
687 |
prerequisitePackages |
|
688 |
"return the prerequisitePackages of the project" |
|
689 |
||
690 |
^ self prerequisites |
|
691 |
||
692 |
"Created: / 26.4.1999 / 23:33:22 / cg" |
|
693 |
! |
|
694 |
||
695 |
prerequisitePackages:aCollectionOfPackagesOrPackageNames |
|
696 |
"set the prerequisitePackages of the project" |
|
697 |
||
698 |
^ self prerequisites:aCollectionOfPackagesOrPackageNames |
|
699 |
||
700 |
"Modified: / 26.4.1999 / 23:34:40 / cg" |
|
4099 | 701 |
! |
702 |
||
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
703 |
prerequisites |
4097 | 704 |
"return the prerequisites of the project" |
705 |
||
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
706 |
^ prerequisites ? #() |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
707 |
! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
708 |
|
3973 | 709 |
prerequisites:aCollectionOfProjects |
4097 | 710 |
"set the prerequisites of the project" |
711 |
||
3973 | 712 |
prerequisites := aCollectionOfProjects |
713 |
! |
|
714 |
||
654 | 715 |
repositoryDirectory |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
716 |
"return the projects default repository location. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
717 |
This is offered initially, when classes are checked into the |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
718 |
source repository initially" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
719 |
|
725
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
720 |
^ repositoryDirectory |
654 | 721 |
|
722 |
"Created: 25.11.1995 / 18:04:51 / cg" |
|
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
723 |
"Modified: 27.1.1997 / 12:13:35 / cg" |
654 | 724 |
! |
725 |
||
726 |
repositoryDirectory:aRelativePathName |
|
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
727 |
"set the projects default repository location. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
728 |
This will be offered initially, when classes are checked into the |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
729 |
source repository initially" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
730 |
|
725
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
731 |
repositoryDirectory := aRelativePathName |
654 | 732 |
|
733 |
"Created: 25.11.1995 / 18:05:06 / cg" |
|
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
734 |
"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
|
735 |
! |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
736 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
737 |
repositoryModule |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
738 |
"return the projects default repository module name. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
739 |
This is offered initially, when classes are checked into the |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
740 |
source repository initially" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
741 |
|
725
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
742 |
^ repositoryModule |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
743 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
744 |
"Created: 25.11.1995 / 18:04:51 / cg" |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
745 |
"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
|
746 |
! |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
747 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
748 |
repositoryModule:aString |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
749 |
"set the projects default repository module name. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
750 |
This is offered initially, when classes are checked into the |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
751 |
source repository initially" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
752 |
|
725
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
753 |
repositoryModule := aString |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
754 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
755 |
"Created: 25.11.1995 / 18:05:06 / cg" |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
756 |
"Modified: 27.1.1997 / 12:13:57 / cg" |
654 | 757 |
! |
758 |
||
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
759 |
subProjects |
4097 | 760 |
"return the subprojects - obsolete; we use prerequisites now" |
761 |
||
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
762 |
^ subProjects ? #() |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
763 |
! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
764 |
|
617 | 765 |
views |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
766 |
"return a collection of views which were opened in this project" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
767 |
|
617 | 768 |
^ views asArray |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
769 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
770 |
"Modified: 27.1.1997 / 12:14:18 / cg" |
338 | 771 |
! |
772 |
||
617 | 773 |
views:aSetOfViews |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
774 |
"set the collection of views which were opened in this project" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
775 |
|
617 | 776 |
views := WeakIdentitySet withAll:aSetOfViews |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
777 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
778 |
"Modified: 27.1.1997 / 12:14:26 / cg" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
779 |
! ! |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
780 |
|
4079 | 781 |
!Project methodsFor:'administration'! |
782 |
||
783 |
removeClassesFromSystem |
|
784 |
"remove the all of my classes & patches from the system" |
|
785 |
||
786 |
self classInfo do:[:clsInfo | |
|
787 |
|clsName cls| |
|
788 |
||
789 |
clsName := clsInfo className. |
|
790 |
clsName isSymbol ifTrue:[ |
|
791 |
cls := Smalltalk at:clsName. |
|
792 |
cls notNil ifTrue:[ |
|
793 |
cls removeFromSystem. |
|
794 |
]. |
|
795 |
] ifFalse:[ |
|
796 |
self halt |
|
797 |
]. |
|
798 |
]. |
|
799 |
||
800 |
! |
|
801 |
||
802 |
removeFromSystem |
|
803 |
"remove the project and all of its classes & patches from the |
|
804 |
system" |
|
805 |
||
806 |
self removeClassesFromSystem. |
|
807 |
AllProjects remove:self ifAbsent:nil. |
|
808 |
! ! |
|
809 |
||
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
810 |
!Project methodsFor:'changes'! |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
811 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
812 |
rememberOverwrittenMethod:newMethod from:oldMethod |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
813 |
"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
|
814 |
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
|
815 |
Allows previous methods to be reconstructed." |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
816 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
817 |
overwrittenMethods isNil ifTrue:[ |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
818 |
overwrittenMethods := IdentityDictionary new. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
819 |
]. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
820 |
overwrittenMethods at:newMethod put:oldMethod |
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 |
"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
|
823 |
"Modified: 30.1.1997 / 21:10:51 / cg" |
10 | 824 |
! ! |
825 |
||
236 | 826 |
!Project methodsFor:'initialization'! |
827 |
||
828 |
initialize |
|
338 | 829 |
|numString| |
830 |
||
330 | 831 |
views := WeakIdentitySet new. |
338 | 832 |
numString := NextSequential printString. |
315 | 833 |
NextSequential := NextSequential + 1. |
338 | 834 |
|
835 |
name := 'new Project-' , numString. |
|
836 |
packageName := 'private-' , numString. |
|
2034
1c96469c3df8
preinit the defaultNamespace of new projects (to Smalltalk)
Claus Gittinger <cg@exept.de>
parents:
2032
diff
changeset
|
837 |
defaultNameSpace := Smalltalk. |
1c96469c3df8
preinit the defaultNamespace of new projects (to Smalltalk)
Claus Gittinger <cg@exept.de>
parents:
2032
diff
changeset
|
838 |
|
848
76a83f34c26a
moved ExtBytes & ExtFunc from libbasic2
Claus Gittinger <cg@exept.de>
parents:
725
diff
changeset
|
839 |
"/ |
76a83f34c26a
moved ExtBytes & ExtFunc from libbasic2
Claus Gittinger <cg@exept.de>
parents:
725
diff
changeset
|
840 |
"/ for tiny-configurations, allow ChangeSet to be absent |
76a83f34c26a
moved ExtBytes & ExtFunc from libbasic2
Claus Gittinger <cg@exept.de>
parents:
725
diff
changeset
|
841 |
"/ |
76a83f34c26a
moved ExtBytes & ExtFunc from libbasic2
Claus Gittinger <cg@exept.de>
parents:
725
diff
changeset
|
842 |
ChangeSet notNil ifTrue:[ |
76a83f34c26a
moved ExtBytes & ExtFunc from libbasic2
Claus Gittinger <cg@exept.de>
parents:
725
diff
changeset
|
843 |
changeSet := ChangeSet new. |
76a83f34c26a
moved ExtBytes & ExtFunc from libbasic2
Claus Gittinger <cg@exept.de>
parents:
725
diff
changeset
|
844 |
]. |
654 | 845 |
self directory:'.'. |
725
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
846 |
self repositoryModule:(OperatingSystem getLoginName). |
654 | 847 |
self repositoryDirectory:'private' |
848 |
||
849 |
"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
|
850 |
"Modified: 3.1.1997 / 13:24:10 / cg" |
236 | 851 |
! ! |
852 |
||
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
853 |
!Project methodsFor:'load & save'! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
854 |
|
4079 | 855 |
loadClassesFromProjectDirectory |
856 |
"load my classes into the system. |
|
857 |
The classes are loaded from the directory as defined by my |
|
858 |
directory insTvar" |
|
859 |
||
860 |
|myDirectory| |
|
861 |
||
862 |
myDirectory := self directory asFilename. |
|
863 |
||
864 |
self classInfo do:[:clsInfo | |
|
4080 | 865 |
|clsName clsFileNameString cls clsFilename| |
4079 | 866 |
|
867 |
clsName := clsInfo className. |
|
4080 | 868 |
clsFileNameString := clsInfo classFileName. |
869 |
clsFileNameString isNil ifTrue:[clsFileNameString := clsName , '.st']. |
|
4079 | 870 |
|
871 |
clsName isSymbol ifTrue:[ |
|
4080 | 872 |
clsFilename := myDirectory construct:clsFileNameString. |
4079 | 873 |
cls := Smalltalk at:clsName. |
874 |
cls isNil ifTrue:[ |
|
875 |
"/ ok - really not yet loaded. |
|
4080 | 876 |
Transcript showCR:'loading ' , clsFilename pathName , ' ...'. |
4079 | 877 |
] ifFalse:[ |
4080 | 878 |
Transcript showCR:'reloading ' , clsFilename pathName , ' ...'. |
4079 | 879 |
]. |
4080 | 880 |
Smalltalk fileIn:clsFilename |
4079 | 881 |
] ifFalse:[ |
882 |
self halt |
|
883 |
]. |
|
884 |
]. |
|
885 |
||
886 |
"/ read again; if the load order was not correct, |
|
887 |
"/ this will fix things (i.e. nil superclasses ...) |
|
888 |
||
889 |
self classInfo do:[:clsInfo | |
|
4080 | 890 |
|clsName clsFileNameString clsFilename| |
4079 | 891 |
|
892 |
clsName := clsInfo className. |
|
4080 | 893 |
clsFileNameString := clsInfo classFileName. |
894 |
clsFileNameString isNil ifTrue:[clsFileNameString := clsName , '.st']. |
|
4079 | 895 |
|
896 |
clsName isSymbol ifTrue:[ |
|
4080 | 897 |
clsFilename := myDirectory construct:clsFileNameString. |
898 |
Transcript showCR:'reloading ' , clsFilename pathName , ' ...'. |
|
899 |
Smalltalk fileIn:clsFilename |
|
4079 | 900 |
] ifFalse:[ |
901 |
self halt |
|
902 |
]. |
|
903 |
]. |
|
904 |
||
905 |
! |
|
906 |
||
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
907 |
loadFromProjectFile:aFilename |
4097 | 908 |
"fill all of my attributes from a projects file (.prj-file)" |
909 |
||
4124 | 910 |
|f l pack targetConditions s sourcesSubDir files module| |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
911 |
|
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
912 |
f := aFilename asFilename. |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
913 |
directoryName := f directory pathName. |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
914 |
self directory:(f directory pathName). |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
915 |
pack := ResourcePack fromFile:f baseName directory:directoryName. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
916 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
917 |
"/ convert the resourcePack ... |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
918 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
919 |
packageName := pack at:'package' ifAbsent:packageName. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
920 |
name := pack at:'name' ifAbsent:name. |
4071 | 921 |
|
4124 | 922 |
module := pack at:'repository.module' ifAbsent:nil. |
923 |
module notNil ifTrue:[ |
|
924 |
repositoryModule := module. |
|
925 |
repositoryDirectory := pack at:'repository.directory' ifAbsent:''. |
|
926 |
]. |
|
4071 | 927 |
|
4099 | 928 |
prerequisites := pack at:'prerequisites' ifAbsent:#(). |
929 |
self prerequisiteClasses:(pack at:'prerequisiteClasses' ifAbsent:#()). |
|
930 |
||
4074 | 931 |
s := pack at:'nameSpace' ifAbsent:nil. |
932 |
s notNil ifTrue:[ |
|
933 |
defaultNameSpace := Namespace name:s. |
|
934 |
]. |
|
935 |
||
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
936 |
subProjects := pack at:'subProjects' ifAbsent:subProjects. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
937 |
(s := pack at:'comment' ifAbsent:nil) notNil ifTrue:[ |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
938 |
self comment:s |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
939 |
]. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
940 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
941 |
"/ first, all of the conditions ... |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
942 |
targetConditions := Dictionary new. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
943 |
pack keysAndValuesDo:[:key :val | |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
944 |
|conditionKey| |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
945 |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
946 |
(key startsWith:'target.condition.') ifTrue:[ |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
947 |
conditionKey := key copyFrom:'target.condition.' size + 1. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
948 |
targetConditions at:conditionKey put:val. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
949 |
] |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
950 |
]. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
951 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
952 |
properties isNil ifTrue:[ |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
953 |
properties := IdentityDictionary new |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
954 |
]. |
4124 | 955 |
properties at:#'targetconditions' put:targetConditions. |
956 |
||
957 |
sourcesSubDir := pack at:'sources' ifAbsent:nil. |
|
958 |
sourcesSubDir notNil ifTrue:[ |
|
959 |
properties at:#'sourcesDirectory' put:sourcesSubDir. |
|
960 |
]. |
|
961 |
files := pack at:'files' ifAbsent:nil. |
|
962 |
files notNil ifTrue:[ |
|
963 |
properties at:#'files' put:files. |
|
964 |
]. |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
965 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
966 |
"/ fetch class info |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
967 |
|
4071 | 968 |
(pack at:'classes' default:#()) do:[:info | |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
969 |
|condKey className optionalFileName| |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
970 |
|
4078 | 971 |
condKey := #always. |
4073 | 972 |
info isSymbol ifTrue:[ |
973 |
className := info. |
|
974 |
] ifFalse:[ |
|
4078 | 975 |
className := info at:1. |
976 |
info size > 1 ifTrue:[ |
|
977 |
optionalFileName := info at:2. |
|
978 |
info size > 2 ifTrue:[ |
|
979 |
condKey := info at:3. |
|
980 |
] |
|
4073 | 981 |
]. |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
982 |
]. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
983 |
self |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
984 |
addClass:className |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
985 |
conditionForInclusion:condKey |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
986 |
classFileName:optionalFileName |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
987 |
]. |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
988 |
|
4069 | 989 |
self wasLoadedFromFile:true. |
990 |
||
4099 | 991 |
"/ all remaining properties |
992 |
pack keysAndValuesDo:[:key :val | |
|
993 |
(key startsWith:'property.') ifTrue:[ |
|
994 |
self propertyAt:(key copyFrom:'property.' size+1) asSymbol put:val. |
|
995 |
] |
|
996 |
]. |
|
997 |
||
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
998 |
" |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
999 |
Project current saveAsProjectFile. |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1000 |
|
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1001 |
Project new loadFromProjectFile:'default.prj' |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1002 |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1003 |
Project new loadFromProjectFile:'../../libbasic/libbasic.prj' |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1004 |
" |
4069 | 1005 |
|
4124 | 1006 |
"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
|
1007 |
! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1008 |
|
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1009 |
saveAsProjectFile |
4097 | 1010 |
"store all of my attributes into a projects file (.prj-file) |
1011 |
(in the project-directory and named as <projectName>.prj)" |
|
1012 |
||
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1013 |
|fn s| |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1014 |
|
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1015 |
fn := self directory asFilename. |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1016 |
fn := fn construct:self name. |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1017 |
fn := fn withSuffix:'prj'. |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1018 |
|
4124 | 1019 |
fn exists ifTrue:[ |
1020 |
fn copyTo:(fn pathName , '.bak') |
|
1021 |
]. |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1022 |
s := fn writeStream. |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1023 |
self saveAsProjectFileOn:s. |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1024 |
s close. |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1025 |
|
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1026 |
" |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1027 |
Project current saveAsProjectFile |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1028 |
" |
4124 | 1029 |
|
1030 |
"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
|
1031 |
! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1032 |
|
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1033 |
saveAsProjectFileOn:aStream |
4074 | 1034 |
"save the project info in a format which is both usable for reload |
1035 |
and somehow readable for humans. |
|
1036 |
Actually, the format is the same as used for resources (i.e. key - value pairs) |
|
1037 |
and the code below could be much simpler - if there where no humans to read it ..." |
|
1038 |
||
4124 | 1039 |
|s coll first maxLen t| |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1040 |
|
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1041 |
s := aStream. |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1042 |
|
4099 | 1043 |
s nextPutLine:'; $Header' , '$'; nextPutLine:';'. |
4074 | 1044 |
s nextPutLine:'; Project saved ' , Smalltalk timeStamp; nextPutLine:';'. |
1045 |
s nextPutLine:'; Be careful when editing - do not corrupt the files syntax.'. |
|
1046 |
s nextPutLine:'; (Lines starting with a semicolon are comment lines)'. |
|
1047 |
s nextPutLine:'; (Lines ending with a backslash are concatenated with the following line)'. |
|
1048 |
||
1049 |
s cr; nextPutLine:';'; nextPutLine:'; general:'; nextPutLine:';'. |
|
4071 | 1050 |
|
1051 |
s nextPutAll:'comment'. |
|
1052 |
s tab. s nextPutLine:(self comment storeString). |
|
1053 |
||
1054 |
s nextPutAll:'name'. |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1055 |
s tab. s nextPutLine:(name storeString). |
4071 | 1056 |
|
1057 |
s nextPutAll:'type'. |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1058 |
s tab. s nextPutLine:(self type storeString). |
4071 | 1059 |
|
1060 |
s nextPutAll:'package'. |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1061 |
s tab. s nextPutLine:(self packageName storeString). |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1062 |
|
4074 | 1063 |
(defaultNameSpace notNil and:[defaultNameSpace ~~ Smalltalk]) ifTrue:[ |
1064 |
s nextPutAll:'nameSpace'. |
|
1065 |
s tab. s nextPutLine:(defaultNameSpace name storeString). |
|
1066 |
]. |
|
1067 |
||
1068 |
s cr; nextPutLine:';'; nextPutLine:'; repository:'; nextPutLine:';'. |
|
4071 | 1069 |
s nextPutAll:'repository.module'. |
4099 | 1070 |
s tab. s nextPutLine:(repositoryModule ? 'private') storeString. |
4071 | 1071 |
s nextPutAll:'repository.directory'. |
4099 | 1072 |
s tab. s nextPutLine:(repositoryDirectory ? self packageName) storeString. |
4071 | 1073 |
s cr. |
1074 |
||
4124 | 1075 |
(t := properties at:#'sourcesDirectory' ifAbsent:nil) notNil ifTrue:[ |
1076 |
s nextPutAll:'sources'. |
|
1077 |
s tab. s nextPutLine:(t storeString). |
|
1078 |
]. |
|
1079 |
||
4074 | 1080 |
first := true. |
4071 | 1081 |
properties keysAndValuesDo:[:key :val | |
1082 |
(#( |
|
1083 |
comment |
|
1084 |
wasLoadedFromFile |
|
1085 |
targetconditions |
|
4074 | 1086 |
classes |
1087 |
classInfo |
|
4099 | 1088 |
prerequisiteClasses |
4124 | 1089 |
files |
4071 | 1090 |
) includes:key) ifFalse:[ |
4074 | 1091 |
first ifTrue:[ |
1092 |
first := false. |
|
1093 |
s cr; nextPutLine:';'; nextPutLine:'; properties:'; nextPutLine:';'. |
|
1094 |
]. |
|
4071 | 1095 |
s nextPutAll:'property.'; nextPutAll:key. |
1096 |
s tab. s nextPutLine:val storeString. |
|
1097 |
] |
|
1098 |
]. |
|
1099 |
||
4074 | 1100 |
"/ coll := self subProjects. |
1101 |
"/ coll size > 0 ifTrue:[ |
|
1102 |
"/ s nextPutLine:'[subprojects]'. |
|
1103 |
"/ coll do:[:aSubProject | |
|
1104 |
"/ s tab. s nextPutLine:(aSubProject name soreString). |
|
1105 |
"/ ]. |
|
1106 |
"/ ]. |
|
1107 |
||
1108 |
s cr; nextPutLine:';'; nextPutLine:'; required packages:'; nextPutLine:';'. |
|
1109 |
s nextPutAll:'prerequisites'; tab. |
|
1110 |
coll := self prerequisites. |
|
1111 |
coll size = 0 ifTrue:[ |
|
1112 |
s nextPutLine:'#()'. |
|
1113 |
] ifFalse:[ |
|
1114 |
s nextPutLine:'#( \'. |
|
4124 | 1115 |
coll do:[:aProjectOrProjectNameList | |
1116 |
|pName pPath| |
|
1117 |
||
1118 |
aProjectOrProjectNameList isString ifTrue:[ |
|
1119 |
pName := aProjectOrProjectNameList. |
|
1120 |
] ifFalse:[ |
|
1121 |
aProjectOrProjectNameList isArray ifTrue:[ |
|
1122 |
pName := aProjectOrProjectNameList at:1. |
|
1123 |
pPath := aProjectOrProjectNameList at:2. |
|
1124 |
] ifFalse:[ |
|
1125 |
pName := aProjectOrProjectNameList name. |
|
1126 |
pPath := aProjectOrProjectNameList repositoryPath. |
|
1127 |
] |
|
1128 |
]. |
|
1129 |
||
1130 |
pPath isNil ifTrue:[ |
|
1131 |
s tab. s nextPutAll:(pName storeString); nextPutLine:' \'. |
|
1132 |
] ifFalse:[ |
|
1133 |
s tab. s nextPutAll:'( '. |
|
1134 |
s nextPutAll:(pName storeString); space; |
|
1135 |
nextPutAll:(pPath storeString); nextPutLine:') \'. |
|
1136 |
] |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1137 |
]. |
4074 | 1138 |
s nextPutLine:')'. |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1139 |
]. |
4124 | 1140 |
|
4099 | 1141 |
s cr; nextPutLine:';'; nextPutLine:'; required classes:'; nextPutLine:';'. |
1142 |
s nextPutAll:'prerequisiteClasses'; tab. |
|
1143 |
coll := self prerequisiteClasses. |
|
4124 | 1144 |
s nextPutLine:'#( \'. |
1145 |
coll do:[:aClassOrSymbol | |className| |
|
4099 | 1146 |
|
4124 | 1147 |
(className := aClassOrSymbol) isSymbol ifFalse:[ |
1148 |
className := aClassOrSymbol name |
|
4099 | 1149 |
]. |
4124 | 1150 |
s tab. s nextPutAll:(className storeString); nextPutLine:' \'. |
4099 | 1151 |
]. |
4124 | 1152 |
s nextPutLine:')'. |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1153 |
|
4074 | 1154 |
s cr; nextPutLine:';'; nextPutLine:'; classes:'; nextPutLine:';'. |
4078 | 1155 |
s nextPutLine:'; (for each class, one line of the form: ( #''className'' [fileName [condition]] )'. |
4315 | 1156 |
s nextPutLine:'; (where fileName and condition are optional)'. |
4078 | 1157 |
s nextPutLine:';'. |
4074 | 1158 |
|
1159 |
coll := self classInfo. |
|
4124 | 1160 |
s nextPutAll:'classes'; tab; nextPutLine:'#( \'. |
1161 |
"/ find the longest className (for layout only) |
|
1162 |
||
1163 |
maxLen := coll inject:0 into:[:maxSoFar :aClassInfo | |
|
1164 |
|clsName| |
|
4078 | 1165 |
|
4124 | 1166 |
clsName := aClassInfo className. |
1167 |
maxSoFar max:clsName storeString size |
|
1168 |
]. |
|
4078 | 1169 |
|
4124 | 1170 |
coll do:[:aClassInfo | |
1171 |
|clsName fileName cond| |
|
4074 | 1172 |
|
4124 | 1173 |
clsName := aClassInfo className. |
1174 |
fileName := aClassInfo classFileName. |
|
1175 |
fileName isNil ifTrue:[ |
|
1176 |
fileName := clsName , '.st' |
|
1177 |
]. |
|
1178 |
cond := aClassInfo conditionForInclusion. |
|
1179 |
s tab. s nextPutAll:'( '; |
|
1180 |
nextPutAll:(clsName storeString paddedTo:maxLen); |
|
1181 |
tab; nextPutAll:fileName storeString. |
|
1182 |
cond == #always ifFalse:[ |
|
1183 |
s tab; nextPutAll:cond storeString. |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1184 |
]. |
4124 | 1185 |
s nextPutLine:') \'. |
1186 |
]. |
|
1187 |
s nextPutLine:')'. |
|
1188 |
||
1189 |
s cr; nextPutLine:';'; nextPutLine:'; files (for deployment):'; nextPutLine:';'. |
|
4314 | 1190 |
"/ |
1191 |
"/ already in properties |
|
1192 |
"/ |
|
1193 |
"/ s nextPutAll:'installDirectoryUnix'; tab. |
|
1194 |
"/ s nextPutLine:self installDirectoryUnix. |
|
1195 |
"/ s nextPutAll:'installDirectoryWin32'; tab. |
|
1196 |
"/ s nextPutLine:self installDirectoryWin32. |
|
1197 |
"/ s nextPutAll:'installDirectoryVMS'; tab. |
|
1198 |
"/ s nextPutLine:self installDirectoryVMS. |
|
1199 |
"/ s nextPutAll:'installDirectoryMacOS'; tab. |
|
1200 |
"/ s nextPutLine:self installDirectoryMacOS. |
|
1201 |
||
4124 | 1202 |
s nextPutAll:'files'; tab. |
1203 |
coll := properties at:#'files' ifAbsent:#(). |
|
1204 |
s nextPutLine:'#( \'. |
|
1205 |
coll do:[:aFileEntry | |
|
1206 |
s tab. s nextPutAll:(aFileEntry storeString); nextPutLine:' \'. |
|
1207 |
]. |
|
1208 |
s nextPutLine:')'. |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1209 |
|
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1210 |
" |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1211 |
Project current saveOn:Transcript |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1212 |
" |
4124 | 1213 |
|
1214 |
"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
|
1215 |
! ! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1216 |
|
2 | 1217 |
!Project methodsFor:'maintenance'! |
1218 |
||
13 | 1219 |
buildProject |
4097 | 1220 |
"invoke 'make' in the project directory" |
1221 |
||
13 | 1222 |
OperatingSystem executeCommand:('cd ' , self directory , ' ; make') |
1223 |
! |
|
1224 |
||
4097 | 1225 |
createLoadAllFile |
1226 |
"creates a 'loadAll' file, which will load all classes |
|
1227 |
of the project - this loadAll file is supposed to be located |
|
1228 |
in the projects source directory." |
|
1229 |
||
1230 |
|d f out in topName classes classInfo numBad firstBad msg| |
|
1231 |
||
1232 |
classes := self classes. |
|
1233 |
numBad := 0. |
|
1234 |
firstBad := nil. |
|
1235 |
||
1236 |
classes := classes collect:[:clsOrSymbol | |cls| |
|
1237 |
clsOrSymbol isSymbol ifTrue:[ |
|
1238 |
cls := Smalltalk at:clsOrSymbol. |
|
1239 |
cls isNil ifTrue:[ |
|
1240 |
numBad := numBad + 1. |
|
1241 |
firstBad := firstBad ? clsOrSymbol. |
|
1242 |
] ifFalse:[ |
|
1243 |
cls isLoaded ifFalse:[ |
|
1244 |
cls autoLoad. |
|
1245 |
cls isLoaded ifFalse:[ |
|
1246 |
cls := nil |
|
1247 |
] |
|
1248 |
]. |
|
1249 |
]. |
|
1250 |
cls. |
|
1251 |
] ifFalse:[ |
|
1252 |
clsOrSymbol |
|
1253 |
] |
|
1254 |
]. |
|
1255 |
numBad ~~ 0 ifTrue:[ |
|
1256 |
msg := 'Cannot generate ''loadAll''-file.\\'. |
|
1257 |
msg := msg , 'Reason: Class ''' , firstBad asText allBold |
|
1258 |
, ''' is not loaded.'. |
|
1259 |
numBad ~~ 1 ifTrue:[ |
|
1260 |
msg := msg , '\(' , (numBad-1) printString , ' more unloaded classes were found)' |
|
1261 |
]. |
|
1262 |
self warn:msg withCRs. |
|
1263 |
^ self. |
|
1264 |
]. |
|
1265 |
||
1266 |
classes := classes copy topologicalSort:[:a :b | b isSubclassOf:a]. |
|
1267 |
||
1268 |
Transcript showCR:'creating loadAll file'. |
|
1269 |
||
1270 |
d := directoryName asFilename. |
|
1271 |
f := d construct:'loadAll'. |
|
1272 |
f exists ifTrue:[ |
|
1273 |
f renameTo:(d construct:'loadAll.bak') |
|
1274 |
]. |
|
1275 |
out := f writeStream. |
|
1276 |
out isNil ifTrue:[ |
|
1277 |
self warn:'cannot create loadAll'. |
|
1278 |
(d construct:'loadAll.bak') renameTo:f. |
|
1279 |
^ self |
|
1280 |
]. |
|
1281 |
||
1282 |
out nextPutAll:' |
|
1283 |
|files| |
|
1284 |
||
1285 |
files := #( |
|
1286 |
'. |
|
1287 |
||
1288 |
classes do:[:cls | |
|
1289 |
out nextPut:$'. |
|
1290 |
cls nameWithoutNameSpacePrefix printOn:out. |
|
1291 |
out nextPutAll:'.st'''. |
|
1292 |
out cr. |
|
1293 |
]. |
|
1294 |
||
1295 |
out nextPutAll:'). |
|
1296 |
||
1297 |
files do:[:s | |
|
1298 |
''.'' print. |
|
1299 |
Smalltalk fileIn:s. |
|
1300 |
]. |
|
1301 |
'' done'' printCR. |
|
1302 |
'. |
|
1303 |
||
1304 |
out close |
|
1305 |
! |
|
1306 |
||
2 | 1307 |
createMakefile |
1308 |
"creates an initial makefile, which will recreate a correct |
|
1309 |
Makefile, then compile all" |
|
1310 |
||
362 | 1311 |
|d f out in topName| |
2 | 1312 |
|
1420 | 1313 |
Transcript showCR:'creating Makefile'. |
13 | 1314 |
|
356 | 1315 |
d := directoryName asFilename. |
2 | 1316 |
f := d construct:'Makefile'. |
13 | 1317 |
f exists ifTrue:[ |
1420 | 1318 |
f renameTo:(d construct:'Makefile.bak') |
13 | 1319 |
]. |
2 | 1320 |
out := f writeStream. |
13 | 1321 |
out isNil ifTrue:[ |
1420 | 1322 |
self warn:'cannot create Makefile'. |
1323 |
^ self |
|
13 | 1324 |
]. |
1325 |
in := Smalltalk systemFileStreamFor:'rules/stdHeader'. |
|
2 | 1326 |
out nextPutAll:in contents asString. |
1327 |
in close. |
|
362 | 1328 |
|
1329 |
topName := self findTopFrom:directoryName. |
|
1330 |
||
13 | 1331 |
out nextPutAll:'#TOP=/usr/local/lib/smalltalk'; cr. |
362 | 1332 |
out nextPutAll:'TOP=' , topName; cr. |
2 | 1333 |
out nextPutAll:'target:'; cr. |
1334 |
out tab; nextPutAll:'touch Make.proto'; cr. |
|
1335 |
out tab; nextPutAll:'$(MAKE) Makefile'; cr. |
|
1336 |
out tab; nextPutAll:'make'; cr; cr. |
|
1337 |
||
362 | 1338 |
in := Smalltalk systemFileStreamFor:'configurations/COMMON/defines'. |
1339 |
out nextPutAll:in contents asString. |
|
1340 |
in close. |
|
1341 |
||
1342 |
in := Smalltalk systemFileStreamFor:'configurations/vendorConf'. |
|
1343 |
out nextPutAll:in contents asString. |
|
1344 |
in close. |
|
1345 |
||
13 | 1346 |
in := Smalltalk systemFileStreamFor:'configurations/myConf'. |
2 | 1347 |
out nextPutAll:in contents asString. |
1348 |
in close. |
|
362 | 1349 |
|
13 | 1350 |
in := Smalltalk systemFileStreamFor:'rules/stdRules'. |
2 | 1351 |
out nextPutAll:in contents asString. |
1352 |
in close. |
|
1353 |
out close |
|
1420 | 1354 |
|
1355 |
"Modified: 18.5.1996 / 15:44:25 / cg" |
|
2 | 1356 |
! |
1357 |
||
617 | 1358 |
createProjectFiles |
1359 |
"actually, creates all files to do a make in the project directory" |
|
1360 |
||
1361 |
directoryName asFilename exists ifFalse:[ |
|
4097 | 1362 |
(self confirm:'create new projectDirectory: ' , directoryName) |
1363 |
ifFalse:[^ self]. |
|
1364 |
OperatingSystem recursiveCreateDirectory:directoryName. |
|
617 | 1365 |
]. |
1366 |
self createMakefile. |
|
1367 |
self createSourcefiles. |
|
1368 |
self createProtoMakefile. |
|
4097 | 1369 |
(self propertyAt:#deliverLoadAllFile) == true ifTrue:[ |
1370 |
self createLoadAllFile |
|
1371 |
]. |
|
617 | 1372 |
! |
1373 |
||
2 | 1374 |
createProtoMakefile |
1375 |
"creates a Make.proto file" |
|
1376 |
||
362 | 1377 |
|d f s type appName libName startUpClass startUpSelector |
1378 |
topName classes| |
|
2 | 1379 |
|
362 | 1380 |
topName := self findTopFrom:directoryName. |
2 | 1381 |
|
1420 | 1382 |
Transcript showCR:'creating Make.proto'. |
13 | 1383 |
|
356 | 1384 |
d := directoryName asFilename. |
2 | 1385 |
f := d construct:'Make.proto'. |
1386 |
f exists ifTrue:[ |
|
1420 | 1387 |
f renameTo:(d construct:'Make.proto.bak') |
2 | 1388 |
]. |
1389 |
s := f writeStream. |
|
13 | 1390 |
s isNil ifTrue:[ |
1420 | 1391 |
self warn:'cannot create prototype Makefile'. |
1392 |
^ self |
|
13 | 1393 |
]. |
2 | 1394 |
s nextPutAll:'# |
362 | 1395 |
# ' , Smalltalk timeStamp , ' |
1396 |
# |
|
235 | 1397 |
# created by Smalltalks Project support |
2 | 1398 |
# |
362 | 1399 |
|
1400 |
||
1401 |
# the next line defines the path to the TOP directory, |
|
1402 |
# (where the directories "configurations" and "include" are found) |
|
1403 |
# |
|
1404 |
#TOP=/usr/local/lib/smalltalk |
|
1405 |
TOP=' , topName ,' |
|
1406 |
||
1407 |
# |
|
1408 |
# add any subdirectories that have to be visited by make |
|
1409 |
# |
|
1410 |
SUBDIRS= |
|
1411 |
||
1412 |
# |
|
1413 |
# do not change |
|
1414 |
# |
|
2 | 1415 |
SHELL=/bin/sh |
1416 |
||
362 | 1417 |
'. |
1418 |
||
1419 |
s nextPutAll:'# |
|
1420 |
# set the stc options |
|
1421 |
# |
|
1422 |
STCOPT=$(DEFAULT_STCOPT) |
|
1423 |
# STCOPT=+optspace2 |
|
1424 |
# STCOPT=+optspace2 -warnNonStandard |
|
1425 |
||
1426 |
# |
|
1427 |
# and packageName option |
|
1428 |
# |
|
1429 |
STCLOCALOPT=''-Pprivate-classes-(libapp)'' |
|
2 | 1430 |
|
1431 |
'. |
|
1432 |
||
356 | 1433 |
type := #library. |
1434 |
appName := 'app'. |
|
1435 |
libName := 'lib'. |
|
1436 |
startUpClass := 'Smalltalk'. |
|
1437 |
startUpSelector := 'start'. |
|
13 | 1438 |
|
356 | 1439 |
properties notNil ifTrue:[ |
1420 | 1440 |
type := properties at:#projectType ifAbsent:type. |
1441 |
appName := properties at:#applicationName ifAbsent:appName. |
|
1442 |
startUpClass := properties at:#startupClass ifAbsent:startUpClass. |
|
1443 |
startUpSelector := properties at:#startupSelector ifAbsent:startUpSelector. |
|
356 | 1444 |
]. |
1445 |
||
362 | 1446 |
s nextPutAll:'# |
1447 |
# define the name of the library to create |
|
1448 |
# |
|
1449 |
'. |
|
1450 |
s nextPutAll:'LIBNAME=lib' , appName; cr; cr. |
|
1451 |
||
1452 |
s nextPutAll:'# |
|
1453 |
# the target rule: |
|
1454 |
# |
|
1455 |
all:: abbrev.stc objs genClassList $(OBJTARGET) |
|
1456 |
||
1457 |
'. |
|
2 | 1458 |
|
1459 |
type == #executable ifTrue:[ |
|
1420 | 1460 |
s nextPutAll:'PROGS = ' , appName; cr. |
1461 |
s nextPutAll:('STARTUP_CLASS=' , startUpClass); cr. |
|
1462 |
s nextPutAll:'STARTUP_SELECTOR="' , startUpSelector; nextPutAll:'"'; cr. |
|
2 | 1463 |
]. |
1464 |
||
362 | 1465 |
s nextPutAll:'# |
1466 |
# define the object files that are to be created |
|
1467 |
# |
|
1468 |
'. |
|
2 | 1469 |
s nextPutAll:'OBJS='. |
1470 |
||
362 | 1471 |
(classes := self classes) notNil ifTrue:[ |
1420 | 1472 |
classes do:[:aClass | |
1473 |
|abbrev| |
|
362 | 1474 |
|
1420 | 1475 |
s nextPutAll:' \'. s cr. |
1476 |
abbrev := Smalltalk fileNameForClass:aClass name. |
|
1477 |
s nextPutAll:' '; nextPutAll:abbrev; nextPutAll:'.o'. |
|
1478 |
]. |
|
2 | 1479 |
]. |
1480 |
s cr; cr. |
|
1481 |
||
362 | 1482 |
s nextPutAll:'# |
1483 |
# dependencies: |
|
1484 |
# |
|
1485 |
I=$(TOP)/include |
|
1486 |
RT_STUFF=$(I)/Object.H $(I)/stc.h $(I)/stcIntern.h |
|
1487 |
||
1488 |
'. |
|
1489 |
classes notNil ifTrue:[ |
|
1420 | 1490 |
classes do:[:aClass | |
1491 |
|abbrev| |
|
362 | 1492 |
|
1420 | 1493 |
abbrev := Smalltalk fileNameForClass:aClass name. |
1494 |
s nextPutAll:abbrev; nextPutAll:'.o: '. |
|
1495 |
s nextPutAll:abbrev; nextPutAll:'.st '. |
|
1496 |
aClass allSuperclassesDo:[:superClass| |
|
1497 |
s nextPutAll:'$(I)/'. |
|
1498 |
s nextPutAll:(Smalltalk fileNameForClass:superClass name) , '.H '. |
|
1499 |
]. |
|
1500 |
s nextPutAll:'$(RT_STUFF)'; cr. |
|
1501 |
]. |
|
362 | 1502 |
]. |
1503 |
s cr; cr. |
|
2 | 1504 |
|
1505 |
type == #executable ifTrue:[ |
|
1420 | 1506 |
s nextPutAll:'all:: $(PROGS)'; cr. |
2 | 1507 |
|
1420 | 1508 |
s nextPutAll:appName. |
1509 |
s nextPutAll:':: main.o classList.o $(OBJS)'; cr. |
|
1510 |
s tab; nextPutAll:'$(LD) $(ST_LDFLAG) $(LDFLAGS) -o '; |
|
1511 |
nextPutAll:appName; |
|
1512 |
nextPutAll:' \'; cr. |
|
1513 |
s tab; tab; nextPutAll:'$(CRT0) main.$(O) classList.$(O) $(OBJS) $(EXTRA_OBJ) $(LIBOBJS) \'; cr. |
|
1514 |
s tab; tab; nextPutAll:'$(LIBRUNDIR)/hidata.o $(LIBRUN) \'; cr. |
|
1515 |
s tab; tab; nextPutAll:'$(MATHLIB) $(EXTRALIBS) -lXext $(SYSLIBS) $(OTHERLIBS) $(CRTN)'; cr. |
|
2 | 1516 |
]. |
1517 |
||
1518 |
s close |
|
1420 | 1519 |
|
4069 | 1520 |
"Modified: / 23.3.1999 / 14:20:09 / cg" |
617 | 1521 |
! |
1522 |
||
1523 |
createSourcefiles |
|
1524 |
"creates all Smalltalk-source files in the project directory" |
|
1525 |
||
1526 |
|classes methods methodClasses dir stream| |
|
1527 |
||
2956
952a09bdeed1
Use Filename instead of obsolete FileDirectory
Stefan Vogel <sv@exept.de>
parents:
2907
diff
changeset
|
1528 |
dir := self directory asFilename. |
1420 | 1529 |
Transcript showCR:'creating sources in ' , dir pathName , ' ...'; endEntry. |
617 | 1530 |
|
1531 |
classes := self classes. |
|
1532 |
classes isNil ifTrue:[ |
|
1420 | 1533 |
self warn:'no classes in current project' |
617 | 1534 |
]. |
1535 |
||
1536 |
classes notNil ifTrue:[ |
|
1420 | 1537 |
classes do:[:aClass | |
1538 |
aClass isLoaded ifFalse:[ |
|
1539 |
aClass autoload. |
|
1540 |
]. |
|
1541 |
]. |
|
1542 |
classes := classes topologicalSort:[:a :b | a isSubclassOf:b]. |
|
617 | 1543 |
|
1420 | 1544 |
classes do:[:aClass | |
1545 |
Transcript show:' ... '; showCR:aClass name, '.st'; endEntry. |
|
1546 |
aClass fileOutIn:dir |
|
1547 |
] |
|
617 | 1548 |
]. |
1549 |
||
1550 |
methods := self individualMethods. |
|
1551 |
methods notNil ifTrue:[ |
|
1420 | 1552 |
methods := methods asIdentitySet. |
1553 |
" |
|
1554 |
get classes ... |
|
1555 |
" |
|
1556 |
methodClasses := IdentitySet new. |
|
1557 |
methods do:[:m | |
|
1558 |
|mCls| |
|
617 | 1559 |
|
1854
b44227fd2b3d
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
1560 |
mCls := m containingClass. |
1420 | 1561 |
mCls isMeta ifTrue:[ |
1562 |
mCls := mCls soleInstance. |
|
1563 |
]. |
|
1564 |
methodClasses add:mCls]. |
|
1565 |
" |
|
1566 |
fileOut by class |
|
1567 |
" |
|
1568 |
methodClasses do:[:cls | |
|
1569 |
stream := (self directory asFilename construct:(cls name , '.chg')) writeStream. |
|
617 | 1570 |
|
1420 | 1571 |
Transcript show:' ... '; showCR:cls name, '.chg'; endEntry. |
1572 |
methods do:[:m | |
|
1573 |
|mCls| |
|
617 | 1574 |
|
1854
b44227fd2b3d
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
1575 |
mCls := m containingClass. |
1420 | 1576 |
(mCls == cls or:[mCls == cls class]) ifTrue:[ |
1577 |
mCls fileOutMethod:m on:stream. |
|
1578 |
]. |
|
1579 |
stream cr. |
|
1580 |
]. |
|
1581 |
stream close. |
|
1582 |
]. |
|
617 | 1583 |
]. |
1420 | 1584 |
|
1854
b44227fd2b3d
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
1585 |
"Modified: 1.11.1996 / 16:37:15 / cg" |
2956
952a09bdeed1
Use Filename instead of obsolete FileDirectory
Stefan Vogel <sv@exept.de>
parents:
2907
diff
changeset
|
1586 |
"Modified: 18.9.1997 / 18:50:34 / stefan" |
617 | 1587 |
! |
1588 |
||
1589 |
findTopFrom:directoryName |
|
1590 |
"returns the relative path from directoryName to the TOP |
|
1591 |
directory." |
|
1592 |
||
1593 |
|topName relParent foundTop| |
|
1594 |
||
1595 |
"/ find TOP |
|
1596 |
relParent := '..'. |
|
1597 |
foundTop := false. |
|
1598 |
[foundTop] whileFalse:[ |
|
1599 |
topName := directoryName , '/' , relParent. |
|
1600 |
topName asFilename pathName = '/' ifTrue:[ |
|
1601 |
self warn:'could not find TOP; assume absoulte path to TOP'. |
|
1602 |
topName := '/usr/local/lib/smalltalk'. |
|
1603 |
foundTop := true. |
|
1604 |
] ifFalse:[ |
|
1605 |
(topName , '/configurations') asFilename exists ifTrue:[ |
|
1606 |
(topName , '/include') asFilename exists ifTrue:[ |
|
1607 |
foundTop := true. |
|
1608 |
topName := relParent. |
|
1609 |
] |
|
1610 |
]. |
|
1611 |
foundTop ifFalse:[ |
|
1612 |
relParent := relParent , '/..'. |
|
1613 |
] |
|
1614 |
] |
|
1615 |
]. |
|
1616 |
^ topName |
|
1617 |
! ! |
|
1618 |
||
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1619 |
!Project methodsFor:'printing & storing'! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1620 |
|
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1621 |
displayString |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1622 |
^ super displayString , '(''' , (name ? '<unnamed>') , ''')' |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1623 |
! ! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1624 |
|
617 | 1625 |
!Project methodsFor:'properties'! |
1626 |
||
4097 | 1627 |
addClass:classOrClassName classFileName:fileName |
1628 |
"add a class to the project" |
|
1629 |
||
1630 |
self |
|
1631 |
addClass:classOrClassName |
|
1632 |
conditionForInclusion:#always |
|
1633 |
classFileName:fileName |
|
1634 |
||
1635 |
! |
|
1636 |
||
1637 |
addClass:classOrClassName conditionForInclusion:conditionBlock classFileName:fileName |
|
1638 |
"add a class to the project" |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1639 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1640 |
|i| |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1641 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1642 |
i := ClassInfo new. |
4097 | 1643 |
i className:classOrClassName. |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1644 |
i classFileName:fileName. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1645 |
i conditionForInclusion:conditionBlock. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1646 |
self addClassInfo:i |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1647 |
! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1648 |
|
4089 | 1649 |
addClassInfo:newInfo |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1650 |
"add a class info to the project" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1651 |
|
4315 | 1652 |
|infoCollection index nm prefix| |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1653 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1654 |
(infoCollection := self classInfo) isNil ifTrue:[ |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1655 |
self classInfo:(infoCollection := OrderedCollection new). |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1656 |
]. |
4315 | 1657 |
|
1658 |
index := infoCollection findFirst:[:i | |nm1 nm2| |
|
1659 |
nm1 := i className. |
|
1660 |
nm2 := newInfo className. |
|
1661 |
(nm1 includes:$:) ifFalse:[ |
|
1662 |
nm1 := self defaultNameSpace name , '::' , nm1 |
|
1663 |
]. |
|
1664 |
(nm2 includes:$:) ifFalse:[ |
|
1665 |
nm2 := self defaultNameSpace name , '::' , nm2 |
|
1666 |
]. |
|
1667 |
nm1 = nm2 |
|
1668 |
]. |
|
1669 |
"/ strip off nameSpace prefix, if its the same as |
|
1670 |
"/ the default ... |
|
1671 |
||
1672 |
nm := newInfo className. |
|
1673 |
prefix := self defaultNameSpace name , '::'. |
|
1674 |
(nm startsWith:prefix) ifTrue:[ |
|
1675 |
nm := nm copyFrom:(prefix size + 1). |
|
1676 |
newInfo className:nm asSymbol. |
|
1677 |
]. |
|
4089 | 1678 |
index ~~ 0 ifTrue:[ |
1679 |
infoCollection at:index put:newInfo |
|
1680 |
] ifFalse:[ |
|
1681 |
infoCollection add:newInfo |
|
1682 |
] |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1683 |
! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1684 |
|
4668 | 1685 |
addMethod:methodOrSelector inClass:aClassOrClassName fileName:fileName |
1686 |
"add an individual method to the project" |
|
1687 |
||
1688 |
|i| |
|
1689 |
||
1690 |
i := MethodInfo new. |
|
1691 |
i methodName:methodOrSelector. |
|
1692 |
i className:aClassOrClassName. |
|
1693 |
i fileName:fileName. |
|
1694 |
self addMethodInfo:i |
|
1695 |
! |
|
1696 |
||
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1697 |
classInfo:aClassInfoCollection |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1698 |
"set the class info of the project" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1699 |
|
4071 | 1700 |
self propertyAt:#classInfo put:aClassInfoCollection |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1701 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1702 |
! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1703 |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1704 |
comment |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1705 |
"return the comment of the project" |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1706 |
|
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1707 |
properties isNil ifTrue:[^ '']. |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1708 |
^ properties at:#comment ifAbsent:'' |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1709 |
! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1710 |
|
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1711 |
comment:aString |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1712 |
"set the projects comment" |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1713 |
|
4071 | 1714 |
self propertyAt:#comment put:aString |
4070 | 1715 |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1716 |
! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1717 |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1718 |
documentationURL |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1719 |
"return the documentation-URL of the project" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1720 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1721 |
properties isNil ifTrue:[^ nil]. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1722 |
^ properties at:#documentationURL ifAbsent:nil |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1723 |
! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1724 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1725 |
documentationURL:anURLString |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1726 |
"set the projects documentation-URL" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1727 |
|
4071 | 1728 |
self propertyAt:#documentationURL put:anURLString |
1729 |
||
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1730 |
! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1731 |
|
617 | 1732 |
properties |
4097 | 1733 |
"return the property dictionary" |
1734 |
||
617 | 1735 |
^ properties |
1736 |
! |
|
1737 |
||
1738 |
properties:p |
|
4097 | 1739 |
"set the property dictionary" |
1740 |
||
617 | 1741 |
properties := p |
1742 |
! |
|
1743 |
||
4071 | 1744 |
propertyAt:aKey |
4097 | 1745 |
"return a property; the key is a symbol" |
1746 |
||
4071 | 1747 |
properties isNil ifTrue:[^ nil]. |
1748 |
^ properties at:aKey ifAbsent:nil. |
|
1749 |
! |
|
1750 |
||
1751 |
propertyAt:aKey put:aValue |
|
4097 | 1752 |
"set a property; the key is a symbol" |
1753 |
||
4077 | 1754 |
|oldValue| |
1755 |
||
1756 |
oldValue := self propertyAt:aKey. |
|
1757 |
||
4071 | 1758 |
properties isNil ifTrue:[ |
1759 |
properties := IdentityDictionary new |
|
1760 |
]. |
|
1761 |
properties at:aKey put:aValue. |
|
4077 | 1762 |
|
1763 |
oldValue ~~ aValue ifTrue:[ |
|
1764 |
self changed:aKey. |
|
1765 |
]. |
|
4071 | 1766 |
|
1767 |
"Created: / 23.3.1999 / 14:21:11 / cg" |
|
1768 |
! |
|
1769 |
||
617 | 1770 |
type |
4097 | 1771 |
"return the type of project (one of #application, #library, #smalltalk)" |
617 | 1772 |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1773 |
properties isNil ifTrue:[^ #application]. |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1774 |
^ properties at:#type ifAbsent:#application |
617 | 1775 |
! |
1776 |
||
1777 |
type:aSymbol |
|
4097 | 1778 |
"set the projects type (one of #application, #library, #smalltalk)" |
617 | 1779 |
|
1780 |
(#(application library smalltalk) includes:aSymbol) ifFalse:[ |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1781 |
self warn:'invalid project type'. |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1782 |
^ self |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1783 |
]. |
4077 | 1784 |
self propertyAt:#type put:aSymbol |
4069 | 1785 |
! |
1786 |
||
1787 |
wasLoadedFromFile |
|
1788 |
"return true, if the project was loaded from a file" |
|
1789 |
||
1790 |
properties isNil ifTrue:[^ nil]. |
|
1791 |
^ properties at:#wasLoadedFromFile ifAbsent:false |
|
1792 |
||
1793 |
"Modified: / 23.3.1999 / 13:59:32 / cg" |
|
1794 |
"Created: / 23.3.1999 / 14:21:06 / cg" |
|
1795 |
! |
|
1796 |
||
1797 |
wasLoadedFromFile:aBoolean |
|
4097 | 1798 |
"set/clear the flag stating that the project was loaded from a file" |
1799 |
||
4071 | 1800 |
self propertyAt:#wasLoadedFromFile put:aBoolean |
617 | 1801 |
! ! |
1802 |
||
1803 |
!Project methodsFor:'queries'! |
|
1804 |
||
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1805 |
classInfo |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1806 |
"return a classInfo collection of classes belonging to that project" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1807 |
|
4073 | 1808 |
|classInfo classes| |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1809 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1810 |
properties notNil ifTrue:[ |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1811 |
classInfo := properties at:#classInfo ifAbsent:nil. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1812 |
classInfo notNil ifTrue:[^ classInfo]. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1813 |
]. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1814 |
|
4073 | 1815 |
classes := self classes. |
1816 |
classes size == 0 ifTrue:[ |
|
1817 |
classInfo := OrderedCollection new |
|
1818 |
] ifFalse:[ |
|
1819 |
classInfo := classes asOrderedCollection |
|
1820 |
collect:[:class | |
|
1821 |
|i fn| |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1822 |
|
4073 | 1823 |
i := ClassInfo new. |
1824 |
i conditionForInclusion:#always. |
|
1825 |
i className:class name. |
|
1826 |
fn := class classFilename ? ((Smalltalk fileNameForClass:class) , '.st'). |
|
1827 |
i classFileName:fn. |
|
1828 |
i |
|
1829 |
] |
|
1830 |
]. |
|
1831 |
self propertyAt:#classInfo put:classInfo. |
|
1832 |
^ classInfo |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1833 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1834 |
"Modified: 4.1.1997 / 16:51:18 / cg" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1835 |
! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1836 |
|
617 | 1837 |
classes |
4013
f06d31702f2a
ignore private classes in classList
Claus Gittinger <cg@exept.de>
parents:
4010
diff
changeset
|
1838 |
"return a collection of classes belonging to that project. |
f06d31702f2a
ignore private classes in classList
Claus Gittinger <cg@exept.de>
parents:
4010
diff
changeset
|
1839 |
This excludes any private classes." |
617 | 1840 |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1841 |
|classes classInfo| |
617 | 1842 |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1843 |
properties notNil ifTrue:[ |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1844 |
classInfo := properties at:#classInfo ifAbsent:nil. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1845 |
classInfo notNil ifTrue:[ |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1846 |
classes := classInfo collect:[:i | i className] |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1847 |
] ifFalse:[ |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1848 |
classes := properties at:#classes ifAbsent:nil |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1849 |
] |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1850 |
]. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1851 |
|
617 | 1852 |
classes isNil ifTrue:[ |
2056 | 1853 |
classes := OrderedCollection new. |
1854 |
Smalltalk |
|
4013
f06d31702f2a
ignore private classes in classList
Claus Gittinger <cg@exept.de>
parents:
4010
diff
changeset
|
1855 |
allClassesDo:[:aClass | |
4670 | 1856 |
(true "aClass owningClass isNil" |
4089 | 1857 |
and:[aClass isMeta not |
4670 | 1858 |
and:[aClass package = packageName |
1859 |
and:[aClass isNamespace not or:[aClass == Smalltalk]]]]) ifTrue:[ |
|
4089 | 1860 |
classes add:aClass |
2056 | 1861 |
] |
1862 |
]. |
|
1863 |
classes isEmpty ifTrue:[^ nil]. |
|
617 | 1864 |
]. |
1865 |
^ classes |
|
1866 |
||
2056 | 1867 |
"Modified: 4.1.1997 / 16:51:18 / cg" |
617 | 1868 |
! |
1869 |
||
1870 |
individualMethods |
|
1871 |
"return a collection of individual methods belonging to that project, |
|
1872 |
only methods are returned which are not contained in the |
|
1873 |
projects class set." |
|
1874 |
||
1875 |
|classes methods| |
|
1876 |
||
1877 |
classes := self classes. |
|
1878 |
classes notNil ifTrue:[ |
|
1461
dd25bb1e9973
Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents:
1420
diff
changeset
|
1879 |
classes := classes asIdentitySet. |
617 | 1880 |
] ifFalse:[ |
1461
dd25bb1e9973
Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents:
1420
diff
changeset
|
1881 |
classes := #() |
617 | 1882 |
]. |
1883 |
||
1884 |
methods := IdentitySet new. |
|
1885 |
Smalltalk allBehaviorsDo:[:cls | |
|
4119 | 1886 |
|classToCheck| |
1887 |
||
1888 |
classToCheck := cls. |
|
4670 | 1889 |
"/ cls isPrivate ifTrue:[ |
1890 |
"/ classToCheck := cls topOwningClass |
|
1891 |
"/ ]. |
|
4119 | 1892 |
(classes isNil |
1893 |
or:[((classes includes:classToCheck) |
|
1894 |
or:[classes includes:classToCheck name]) not]) ifTrue:[ |
|
1461
dd25bb1e9973
Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents:
1420
diff
changeset
|
1895 |
cls methodDictionary do:[:m | |
dd25bb1e9973
Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents:
1420
diff
changeset
|
1896 |
m package = packageName ifTrue:[ |
dd25bb1e9973
Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents:
1420
diff
changeset
|
1897 |
methods add:m |
dd25bb1e9973
Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents:
1420
diff
changeset
|
1898 |
] |
dd25bb1e9973
Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents:
1420
diff
changeset
|
1899 |
]. |
dd25bb1e9973
Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents:
1420
diff
changeset
|
1900 |
cls class methodDictionary do:[:m | |
dd25bb1e9973
Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents:
1420
diff
changeset
|
1901 |
m package = packageName ifTrue:[ |
dd25bb1e9973
Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents:
1420
diff
changeset
|
1902 |
methods add:m |
dd25bb1e9973
Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents:
1420
diff
changeset
|
1903 |
] |
dd25bb1e9973
Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents:
1420
diff
changeset
|
1904 |
]. |
dd25bb1e9973
Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents:
1420
diff
changeset
|
1905 |
] |
617 | 1906 |
]. |
1907 |
^ methods asArray |
|
1908 |
||
1909 |
" |
|
1910 |
Project current classes |
|
1911 |
Project current individualMethods |
|
1912 |
" |
|
1461
dd25bb1e9973
Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents:
1420
diff
changeset
|
1913 |
|
dd25bb1e9973
Use methodDictionary instead of selector/method arrays.
Stefan Vogel <sv@exept.de>
parents:
1420
diff
changeset
|
1914 |
"Modified: 7.6.1996 / 09:16:25 / stefan" |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1915 |
! |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1916 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1917 |
isLoaded |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1918 |
"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
|
1919 |
into the system" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1920 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1921 |
|binaryModule| |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1922 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1923 |
isLoaded notNil ifTrue:[^ isLoaded]. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1924 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1925 |
"/ check for loaded class-libraries. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1926 |
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
|
1927 |
binaryModule notNil ifTrue:[ |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1928 |
^ true |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1929 |
]. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1930 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1931 |
self halt. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1932 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1933 |
" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1934 |
(Project projectWithId:#'stx:libbasic') isLoaded |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1935 |
(Project projectWithId:#'stx:goodies/persistency') isLoaded |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1936 |
" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1937 |
|
2 | 1938 |
! ! |
1939 |
||
1940 |
!Project methodsFor:'specifications'! |
|
1941 |
||
1942 |
readSpec |
|
1943 |
|s chunk fileName| |
|
1944 |
||
1945 |
fileName := (properties at:#directoryName) asFilename construct:'.project'. |
|
1946 |
s := fileName readStream. |
|
1947 |
s isNil ifTrue:[^ self]. |
|
1948 |
[s atEnd] whileFalse:[ |
|
203 | 1949 |
chunk := s nextChunk. |
1950 |
Compiler evaluate:chunk receiver:properties notifying:nil |
|
2 | 1951 |
]. |
1952 |
s close. |
|
1953 |
||
1954 |
"(Project new directory:'../projects/Clock') readSpec" |
|
1955 |
! |
|
1956 |
||
1957 |
saveSpec |
|
1958 |
|f d s| |
|
1959 |
||
1960 |
d := (properties at:#directoryName) asFilename. |
|
1961 |
d exists ifFalse:[ |
|
4522
29a6625dc7b1
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
4315
diff
changeset
|
1962 |
self error:'directory does not exist' mayProceed:true. |
29a6625dc7b1
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
4315
diff
changeset
|
1963 |
^ self |
2 | 1964 |
]. |
1965 |
f := d construct:'.project'. |
|
1966 |
s := f writeStream. |
|
1967 |
s isNil ifTrue:[^ self]. |
|
1968 |
properties associationsDo:[:aProp | |
|
4522
29a6625dc7b1
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
4315
diff
changeset
|
1969 |
(aProp == #directoryName) ifFalse:[ |
29a6625dc7b1
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
4315
diff
changeset
|
1970 |
s nextChunkPut:('self at:' , aProp key storeString, |
29a6625dc7b1
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
4315
diff
changeset
|
1971 |
' put:' , aProp value storeString). |
29a6625dc7b1
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
4315
diff
changeset
|
1972 |
s cr |
29a6625dc7b1
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
4315
diff
changeset
|
1973 |
] |
2 | 1974 |
]. |
1975 |
s close |
|
1976 |
||
1977 |
"((Project new directory:'../projects/Clock') readSpec |
|
4522
29a6625dc7b1
error: vs. error:mayProceed:
Claus Gittinger <cg@exept.de>
parents:
4315
diff
changeset
|
1978 |
directory:'../projects/xxx') saveSpec" |
2 | 1979 |
! ! |
1980 |
||
617 | 1981 |
!Project methodsFor:'views'! |
1982 |
||
1983 |
addView:aView |
|
2164
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
1984 |
"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
|
1985 |
|
617 | 1986 |
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
|
1987 |
|
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
1988 |
"Modified: 14.2.1997 / 15:36:51 / cg" |
617 | 1989 |
! |
1990 |
||
1991 |
destroyViews |
|
1992 |
"destroy all views of this project" |
|
1993 |
||
1994 |
views notNil ifTrue:[ |
|
1995 |
views do:[:aView | |
|
1996 |
aView notNil ifTrue:[aView destroy] |
|
1997 |
] |
|
1998 |
]. |
|
1999 |
! |
|
2000 |
||
2001 |
hideViews |
|
2002 |
"hide all views of this project" |
|
2003 |
||
2004 |
views notNil ifTrue:[ |
|
1332
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
2005 |
views do:[:aView | |
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
2006 |
aView notNil ifTrue:[aView unmap] |
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
2007 |
] |
617 | 2008 |
]. |
1332
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
2009 |
|
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
2010 |
"Modified: 3.5.1996 / 23:48:51 / stefan" |
617 | 2011 |
! |
2012 |
||
2013 |
removeView:aView |
|
2164
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
2014 |
"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
|
2015 |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2016 |
views notNil ifTrue:[ |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2017 |
views remove:aView ifAbsent:nil |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2018 |
] |
2164
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
2019 |
|
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
2020 |
"Modified: 14.2.1997 / 15:37:20 / cg" |
617 | 2021 |
! |
2022 |
||
2023 |
showViews |
|
2164
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
2024 |
"show all views of this project" |
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
2025 |
|
617 | 2026 |
views notNil ifTrue:[ |
1332
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
2027 |
views do:[:aView | |
2164
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
2028 |
aView notNil ifTrue:[aView remap] |
1332
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
2029 |
] |
617 | 2030 |
]. |
1332
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
2031 |
|
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
2032 |
"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
|
2033 |
"Modified: 14.2.1997 / 15:38:47 / cg" |
617 | 2034 |
! ! |
2035 |
||
4668 | 2036 |
!Project::MethodInfo methodsFor:'accessing'! |
2037 |
||
2038 |
className |
|
2039 |
"return the value of the instance variable 'className' (automatically generated)" |
|
2040 |
||
2041 |
^ className! |
|
2042 |
||
2043 |
className:something |
|
2044 |
"set the value of the instance variable 'className' (automatically generated)" |
|
2045 |
||
2046 |
className := something.! |
|
2047 |
||
2048 |
fileName |
|
2049 |
"return the value of the instance variable 'fileName' (automatically generated)" |
|
2050 |
||
2051 |
^ fileName! |
|
2052 |
||
2053 |
fileName:something |
|
2054 |
"set the value of the instance variable 'fileName' (automatically generated)" |
|
2055 |
||
2056 |
fileName := something.! |
|
2057 |
||
2058 |
methodName |
|
2059 |
"return the value of the instance variable 'methodName' (automatically generated)" |
|
2060 |
||
2061 |
^ methodName! |
|
2062 |
||
2063 |
methodName:something |
|
2064 |
"set the value of the instance variable 'methodName' (automatically generated)" |
|
2065 |
||
2066 |
methodName := something.! ! |
|
2067 |
||
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2068 |
!Project::ClassInfo methodsFor:'accessing'! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2069 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2070 |
classFileName |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2071 |
"return the value of the instance variable 'classFileName' (automatically generated)" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2072 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2073 |
^ classFileName! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2074 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2075 |
classFileName:something |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2076 |
"set the value of the instance variable 'classFileName' (automatically generated)" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2077 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2078 |
classFileName := something.! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2079 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2080 |
className |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2081 |
"return the value of the instance variable 'className' (automatically generated)" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2082 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2083 |
^ className! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2084 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2085 |
className:something |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2086 |
"set the value of the instance variable 'className' (automatically generated)" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2087 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2088 |
className := something.! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2089 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2090 |
conditionForInclusion |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2091 |
"return the value of the instance variable 'conditionForInclusion' (automatically generated)" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2092 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2093 |
^ conditionForInclusion! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2094 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2095 |
conditionForInclusion:something |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2096 |
"set the value of the instance variable 'conditionForInclusion' (automatically generated)" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2097 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2098 |
conditionForInclusion := something.! ! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
2099 |
|
1854
b44227fd2b3d
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
2100 |
!Project class methodsFor:'documentation'! |
630 | 2101 |
|
2102 |
version |
|
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
2103 |
^ '$Header: /cvs/stx/stx/libbasic/Project.st,v 1.87 1999-09-06 14:58:20 cg Exp $' |
1298 | 2104 |
! ! |
1 | 2105 |
Project initialize! |