author | convert-repo |
Thu, 05 Jul 2018 03:33:35 +0000 | |
changeset 23197 | 823c765c176d |
parent 23014 | 0499ae2fb456 |
child 24393 | c6585e658612 |
permissions | -rw-r--r-- |
23014 | 1 |
"{ Encoding: utf8 }" |
2 |
||
89 | 3 |
" |
236 | 4 |
COPYRIGHT (c) 1993 by Claus Gittinger |
203 | 5 |
All Rights Reserved |
89 | 6 |
|
7 |
This software is furnished under a license and may be used |
|
8 |
only in accordance with the terms of that license and with the |
|
9 |
inclusion of the above copyright notice. This software may not |
|
10 |
be provided or otherwise made available to, or used by, any |
|
11 |
other person. No title to or ownership of the software is |
|
12 |
hereby transferred. |
|
13 |
" |
|
5371
6376d1fcf30f
use #allSelectorsAndMethodsDo:
Claus Gittinger <cg@exept.de>
parents:
5338
diff
changeset
|
14 |
"{ Package: 'stx:libbasic' }" |
6376d1fcf30f
use #allSelectorsAndMethodsDo:
Claus Gittinger <cg@exept.de>
parents:
5338
diff
changeset
|
15 |
|
18735 | 16 |
"{ NameSpace: Smalltalk }" |
17 |
||
1 | 18 |
Object subclass:#Project |
939
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
19 |
instanceVariableNames:'name changeSet views directoryName properties packageName |
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
20 |
repositoryDirectory repositoryModule isLoaded' |
16629 | 21 |
classVariableNames:'CurrentProject SystemProject NextSequential AllProjects' |
939
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
22 |
poolDictionaries:'' |
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
23 |
category:'System-Support' |
1 | 24 |
! |
25 |
||
5734 | 26 |
Object subclass:#ClassInfo |
27 |
instanceVariableNames:'conditionForInclusion className classFileName' |
|
4668 | 28 |
classVariableNames:'' |
29 |
poolDictionaries:'' |
|
30 |
privateIn:Project |
|
31 |
! |
|
32 |
||
5734 | 33 |
Object subclass:#MethodInfo |
34 |
instanceVariableNames:'conditionForInclusion methodName className fileName' |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
35 |
classVariableNames:'' |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
36 |
poolDictionaries:'' |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
37 |
privateIn:Project |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
38 |
! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
39 |
|
1854
b44227fd2b3d
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
40 |
!Project class methodsFor:'documentation'! |
89 | 41 |
|
42 |
copyright |
|
43 |
" |
|
44 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
203 | 45 |
All Rights Reserved |
89 | 46 |
|
47 |
This software is furnished under a license and may be used |
|
48 |
only in accordance with the terms of that license and with the |
|
49 |
inclusion of the above copyright notice. This software may not |
|
50 |
be provided or otherwise made available to, or used by, any |
|
51 |
other person. No title to or ownership of the software is |
|
52 |
hereby transferred. |
|
53 |
" |
|
54 |
! |
|
55 |
||
56 |
documentation |
|
57 |
" |
|
12362 | 58 |
WARNING: |
19055 | 59 |
This class is almost completely obsolete |
60 |
(before even being finished) |
|
12362 | 61 |
|
12373 | 62 |
Most references to this class are being removed, and we are only |
12211 | 63 |
looking at PackageId and ProjectDefinition in the future. |
12373 | 64 |
Please ignore everything regarding to packaging and building below. |
65 |
Project instance(s) are still used to keep a reference to the current changeSet, |
|
66 |
but even that may move to a projectDefinition in the future. |
|
12211 | 67 |
|
19055 | 68 |
All this class does is to keep track of per-project views |
235 | 69 |
(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
|
70 |
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
|
71 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
72 |
instance variables: |
12211 | 73 |
name <String> the name of this project, as shown |
74 |
in a ProjectView |
|
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
75 |
|
12211 | 76 |
changeSet <ChangeSet> changes done, while this was the active project |
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
77 |
|
12211 | 78 |
views <Collection> views opened while this was the active project |
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
79 |
|
12211 | 80 |
directoryName <String> directory name, where fileOuts are done |
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
81 |
|
12211 | 82 |
properties |
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
83 |
|
12211 | 84 |
packageName <String> given to classes/methods which are created while |
85 |
this is the active project |
|
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
86 |
|
12211 | 87 |
repositoryDirectory (default) name of the repository, when a new source containers are |
88 |
created. |
|
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
89 |
|
12211 | 90 |
repositoryModule (default) name of the module, when new source containers are |
91 |
created. |
|
235 | 92 |
|
93 |
Future: |
|
12211 | 94 |
- keep track of per-project changes |
95 |
- allow speficiation of the type of the project (application or library) |
|
96 |
- allow building of whatever the target (as defined by the type) is |
|
97 |
(this will allow build of class libs and apps by clicking a button) |
|
98 |
- allow removal of project specific classes, methods etc. |
|
1286 | 99 |
|
100 |
[author:] |
|
12211 | 101 |
Claus Gittinger |
89 | 102 |
" |
103 |
! ! |
|
104 |
||
1854
b44227fd2b3d
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
105 |
!Project class methodsFor:'initialization'! |
236 | 106 |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
107 |
initKnownProjects |
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
108 |
"this is a temporary experimental kludge" |
4668 | 109 |
|
110 |
AllProjects isNil ifTrue:[ |
|
5547 | 111 |
AllProjects := IdentitySet new. |
4668 | 112 |
]. |
5547 | 113 |
|
114 |
AllProjects add:SystemProject. |
|
115 |
AllProjects add:CurrentProject. |
|
116 |
||
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
117 |
" |
4668 | 118 |
AllProjects := nil. |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
119 |
self initKnownProjects |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
120 |
" |
4069 | 121 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
122 |
"Modified: / 17-08-2006 / 14:08:47 / cg" |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
123 |
! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
124 |
|
236 | 125 |
initialize |
338 | 126 |
SystemProject isNil ifTrue:[ |
5547 | 127 |
self initializeSystemProject. |
338 | 128 |
]. |
129 |
||
130 |
CurrentProject := SystemProject. |
|
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
131 |
AllProjects := nil. |
5547 | 132 |
self initKnownProjects. |
236 | 133 |
|
315 | 134 |
" |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
135 |
SystemProject := nil. |
315 | 136 |
Project initialize |
137 |
" |
|
4886 | 138 |
! |
139 |
||
5547 | 140 |
initializeSystemProject |
141 |
NextSequential := 1. |
|
142 |
SystemProject := self new name:'default'. |
|
12247
9ec89f811832
changed: #initializeSystemProject
Claus Gittinger <cg@exept.de>
parents:
12211
diff
changeset
|
143 |
SystemProject package:(PackageId noProjectID). |
5547 | 144 |
SystemProject defaultNameSpace:Smalltalk. |
145 |
||
146 |
ChangeSet notNil ifTrue:[ |
|
147 |
SystemProject changeSet:ChangeSet new |
|
148 |
]. |
|
149 |
self changed:#defaultProject |
|
9566 | 150 |
|
151 |
"Modified: / 17-08-2006 / 16:39:25 / cg" |
|
5547 | 152 |
! |
153 |
||
4886 | 154 |
reinitKnownProjects |
155 |
"rescan the image for projects" |
|
156 |
||
157 |
AllProjects := nil. |
|
158 |
self initKnownProjects |
|
236 | 159 |
! ! |
160 |
||
1854
b44227fd2b3d
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
161 |
!Project class methodsFor:'instance creation'! |
236 | 162 |
|
163 |
new |
|
164 |
^ self basicNew initialize |
|
165 |
! ! |
|
166 |
||
1854
b44227fd2b3d
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
167 |
!Project class methodsFor:'accessing'! |
1 | 168 |
|
4071 | 169 |
addKnownProject:aProject |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
170 |
|allProjects| |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
171 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
172 |
allProjects := self knownProjects. |
8842
f9132fc3e425
refadctored intention revealing code:
Claus Gittinger <cg@exept.de>
parents:
8761
diff
changeset
|
173 |
(allProjects contains:[:p | p package = aProject package]) ifTrue:[ |
f9132fc3e425
refadctored intention revealing code:
Claus Gittinger <cg@exept.de>
parents:
8761
diff
changeset
|
174 |
self warn:'Project for ' , aProject package , ' is already present.'. |
f9132fc3e425
refadctored intention revealing code:
Claus Gittinger <cg@exept.de>
parents:
8761
diff
changeset
|
175 |
^ self. |
4071 | 176 |
]. |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
177 |
|
4071 | 178 |
AllProjects add:aProject. |
179 |
self changed:#allProjects |
|
180 |
! |
|
181 |
||
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
182 |
addLoadedProject:aProject |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
183 |
aProject isLoaded:true. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
184 |
self addKnownProject:aProject. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
185 |
! |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
186 |
|
1 | 187 |
current |
10 | 188 |
"return the currently active project" |
189 |
||
5692 | 190 |
CurrentProject isNil ifTrue:[CurrentProject := SystemProject ]. |
1 | 191 |
^ CurrentProject |
192 |
||
362 | 193 |
" |
194 |
Project current |
|
195 |
" |
|
1 | 196 |
! |
197 |
||
198 |
current:aProject |
|
10 | 199 |
"set the currently active project" |
200 |
||
5542 | 201 |
|prevProject| |
202 |
||
203 |
prevProject := CurrentProject. |
|
315 | 204 |
CurrentProject := aProject. |
5542 | 205 |
prevProject notNil ifTrue:[ |
206 |
self changed:#currentProject |
|
207 |
]. |
|
334 | 208 |
! |
209 |
||
617 | 210 |
currentPackageName |
211 |
CurrentProject notNil ifTrue:[ |
|
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
212 |
^ CurrentProject package |
617 | 213 |
]. |
4112
5ee841c34b10
return nil (instead of 'no package') if no current package is defined.
Claus Gittinger <cg@exept.de>
parents:
4099
diff
changeset
|
214 |
^ nil |
617 | 215 |
|
216 |
" |
|
217 |
Project currentPackageName |
|
218 |
" |
|
219 |
! |
|
220 |
||
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
221 |
defaultNameSpace |
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
222 |
"return the default namespace, where new classes are installed, |
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
223 |
if NO special nameSpace handler is present" |
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
224 |
|
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
225 |
|p| |
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
226 |
|
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
227 |
(p := Project current) notNil ifTrue:[ |
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
228 |
^ p defaultNameSpace |
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
229 |
]. |
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
230 |
|
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
231 |
^ Smalltalk |
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
232 |
|
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
233 |
"Created: / 17-08-2006 / 14:01:02 / cg" |
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
234 |
! |
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
235 |
|
336 | 236 |
defaultProject |
237 |
"return the SystemDefault project" |
|
238 |
||
239 |
^ SystemProject. |
|
6032 | 240 |
|
241 |
" |
|
242 |
Project defaultProject package |
|
243 |
" |
|
336 | 244 |
! |
245 |
||
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
246 |
knownProjects |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
247 |
AllProjects isNil ifTrue:[ |
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
248 |
self initKnownProjects |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
249 |
]. |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
250 |
^ AllProjects ? #() |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
251 |
! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
252 |
|
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
253 |
loadedProjects |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
254 |
^ self knownProjects select:[:p | p isLoaded] |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
255 |
! |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
256 |
|
8086 | 257 |
noProjectID |
12211 | 258 |
<resource: #obsolete> |
259 |
||
260 |
self obsoleteMethodWarning:'Please use PackageId noProjectID'. |
|
261 |
^ PackageId noProjectID |
|
8086 | 262 |
! |
263 |
||
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
264 |
projectNamed:aProjectName |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
265 |
"retrieve the named project; return nil if not known" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
266 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
267 |
^ self knownProjects detect:[:p | p name = aProjectName] ifNone:nil. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
268 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
269 |
" |
5547 | 270 |
Project projectNamed:'stx' |
271 |
Project projectNamed:'default' |
|
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
272 |
" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
273 |
! |
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 |
projectWithId:aPackageId |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
276 |
"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
|
277 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
278 |
^ self knownProjects detect:[:p | p package = aPackageId] ifNone:nil. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
279 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
280 |
" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
281 |
Project projectWithId:#'stx:libbasic' |
5547 | 282 |
Project projectWithId:'__NoProject__' |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
283 |
" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
284 |
! |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
285 |
|
334 | 286 |
setDefaultProject |
287 |
"set the currently active project to be the SystemDEfault project" |
|
288 |
||
289 |
self current:SystemProject. |
|
939
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
290 |
! |
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
291 |
|
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
292 |
setProject:aProjectOrNil |
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
293 |
"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
|
294 |
|
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
295 |
CurrentProject := aProjectOrNil. |
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
296 |
|
ffee570b0f09
added #setProject: (does not send change notifications)
Claus Gittinger <cg@exept.de>
parents:
848
diff
changeset
|
297 |
"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
|
298 |
"Modified: 7.2.1996 / 14:01:16 / cg" |
1 | 299 |
! ! |
300 |
||
1854
b44227fd2b3d
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
301 |
!Project class methodsFor:'changes management'! |
149 | 302 |
|
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
303 |
addClassCommentChangeFor:aClass |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
304 |
"add a comment-change for aClass to the current project" |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
305 |
|
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
306 |
|p| |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
307 |
|
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
308 |
p := CurrentProject. |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
309 |
p notNil ifTrue:[ |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
310 |
p addClassCommentChangeFor:aClass |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
311 |
] |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
312 |
! |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
313 |
|
664 | 314 |
addClassDefinitionChangeFor:aClass |
1115 | 315 |
"add a class-def-change for aClass to the current project" |
316 |
||
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
317 |
|p| |
664 | 318 |
|
319 |
p := CurrentProject. |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
320 |
p notNil ifTrue:[ |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
321 |
p addClassDefinitionChangeFor:aClass |
664 | 322 |
] |
323 |
||
324 |
"Created: 3.12.1995 / 13:44:58 / cg" |
|
325 |
"Modified: 3.12.1995 / 13:58:04 / cg" |
|
326 |
! |
|
327 |
||
7182 | 328 |
addClassRemoveChange:oldClass |
6178 | 329 |
"add a class-remove-change to the current project" |
330 |
||
331 |
|p| |
|
332 |
||
333 |
p := CurrentProject. |
|
334 |
p notNil ifTrue:[ |
|
7182 | 335 |
p addClassRemoveChange:oldClass |
6178 | 336 |
] |
337 |
! |
|
338 |
||
6167 | 339 |
addClassRenameChangeFrom:oldName to:newName |
340 |
"add a class-rename-change to the current project" |
|
341 |
||
342 |
|p| |
|
343 |
||
344 |
p := CurrentProject. |
|
345 |
p notNil ifTrue:[ |
|
346 |
p addClassRenameChangeFrom:oldName to:newName |
|
347 |
] |
|
348 |
! |
|
349 |
||
6097 | 350 |
addDoIt:aString |
351 |
"add a doIt to the current project" |
|
352 |
||
353 |
|p| |
|
354 |
||
355 |
p := CurrentProject. |
|
356 |
p notNil ifTrue:[ |
|
357 |
p addDoIt:aString |
|
358 |
] |
|
359 |
||
360 |
"Created: 3.12.1995 / 13:44:58 / cg" |
|
361 |
"Modified: 3.12.1995 / 13:58:04 / cg" |
|
362 |
! |
|
363 |
||
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
364 |
addInstVarDefinitionChangeFor:aClass |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
365 |
"add an instvar-change for aClass to the current project" |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
366 |
|
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
367 |
|p| |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
368 |
|
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
369 |
p := CurrentProject. |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
370 |
p notNil ifTrue:[ |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
371 |
p addInstVarDefinitionChangeFor:aClass |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
372 |
] |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
373 |
|
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
374 |
"Created: 3.12.1995 / 13:44:58 / cg" |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
375 |
"Modified: 3.12.1995 / 13:58:04 / cg" |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
376 |
! |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
377 |
|
617 | 378 |
addMethodCategoryChange:aMethod category:newCategory in:aClass |
1115 | 379 |
"add a method-category-change for aMethod in aClass to the current project" |
380 |
||
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
381 |
|p| |
617 | 382 |
|
383 |
p := CurrentProject. |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
384 |
p notNil ifTrue:[ |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
385 |
p addMethodCategoryChange:aMethod category:newCategory in:aClass |
617 | 386 |
] |
387 |
! |
|
388 |
||
5553
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
389 |
addMethodChange:aMethod fromOld:oldMethod in:aClass |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
390 |
"add a method change in aClass to the current project" |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
391 |
|
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
392 |
|p| |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
393 |
|
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
394 |
p := CurrentProject. |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
395 |
p notNil ifTrue:[ |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
396 |
p addMethodChange:aMethod fromOld:oldMethod in:aClass |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
397 |
]. |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
398 |
! |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
399 |
|
149 | 400 |
addMethodChange:aMethod in:aClass |
1115 | 401 |
"add a method change in aClass to the current project" |
149 | 402 |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
403 |
|p| |
149 | 404 |
|
405 |
p := CurrentProject. |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
406 |
p notNil ifTrue:[ |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
407 |
p addMethodChange:aMethod in:aClass |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
408 |
]. |
203 | 409 |
! |
410 |
||
10059
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
411 |
addMethodPackageChange:aMethod package:newPackage in:aClass |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
412 |
"add a method-package-change for aMethod in aClass to the current project" |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
413 |
|
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
414 |
|p| |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
415 |
|
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
416 |
p := CurrentProject. |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
417 |
p notNil ifTrue:[ |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
418 |
p addMethodPackageChange:aMethod package:newPackage in:aClass |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
419 |
] |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
420 |
|
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
421 |
"Created: / 09-10-2006 / 13:50:30 / cg" |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
422 |
! |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
423 |
|
617 | 424 |
addMethodPrivacyChange:aMethod in:aClass |
1115 | 425 |
"add a privacy change for aMethod in aClass to the current project" |
426 |
||
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
427 |
|p| |
617 | 428 |
|
429 |
p := CurrentProject. |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
430 |
p notNil ifTrue:[ |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
431 |
p addMethodPrivacyChange:aMethod in:aClass |
617 | 432 |
] |
433 |
||
434 |
"Modified: 27.8.1995 / 22:48:17 / claus" |
|
435 |
! |
|
436 |
||
705 | 437 |
addPrimitiveDefinitionsChangeFor:aClass |
1115 | 438 |
"add a primitiveDef change for aClass to the current project" |
439 |
||
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
440 |
|p| |
705 | 441 |
|
442 |
p := CurrentProject. |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
443 |
p notNil ifTrue:[ |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
444 |
p addPrimitiveDefinitionsChangeFor:aClass |
705 | 445 |
] |
446 |
! |
|
447 |
||
448 |
addPrimitiveFunctionsChangeFor:aClass |
|
1115 | 449 |
"add a primitiveFuncs change for aClass to the current project" |
450 |
||
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
451 |
|p| |
705 | 452 |
|
453 |
p := CurrentProject. |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
454 |
p notNil ifTrue:[ |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
455 |
p addPrimitiveFunctionsChangeFor:aClass |
705 | 456 |
] |
457 |
! |
|
458 |
||
459 |
addPrimitiveVariablesChangeFor:aClass |
|
1115 | 460 |
"add a primitiveVars change for aClass to the current project" |
461 |
||
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
462 |
|p| |
705 | 463 |
|
464 |
p := CurrentProject. |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
465 |
p notNil ifTrue:[ |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
466 |
p addPrimitiveVariablesChangeFor:aClass |
705 | 467 |
] |
468 |
! |
|
469 |
||
6746
8bbd639df663
removeSelector change: remember methods previous version
Claus Gittinger <cg@exept.de>
parents:
6557
diff
changeset
|
470 |
addRemoveSelectorChange:aSelector fromOld:oldMethod in:aClass |
3288
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
471 |
"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
|
472 |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
473 |
|p| |
3288
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
474 |
|
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
475 |
p := CurrentProject. |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
476 |
p notNil ifTrue:[ |
6746
8bbd639df663
removeSelector change: remember methods previous version
Claus Gittinger <cg@exept.de>
parents:
6557
diff
changeset
|
477 |
p addRemoveSelectorChange:aSelector fromOld:oldMethod in:aClass |
3288
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
478 |
] |
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
479 |
|
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
480 |
"Created: / 16.2.1998 / 12:45:10 / cg" |
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
481 |
! |
373af30a15ca
add removeSelectorChange to current projects changeSet
Claus Gittinger <cg@exept.de>
parents:
2962
diff
changeset
|
482 |
|
5239
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
483 |
addRenameCategoryChangeIn:aClass from:oldCategory to:newCategory |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
484 |
"add a category rename change for aClass to the current project" |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
485 |
|
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
486 |
|p| |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
487 |
|
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
488 |
p := CurrentProject. |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
489 |
p notNil ifTrue:[ |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
490 |
p addRenameCategoryChangeIn:aClass from:oldCategory to:newCategory |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
491 |
] |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
492 |
|
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
493 |
"Created: / 6.2.2000 / 02:27:35 / cg" |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
494 |
! |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
495 |
|
149 | 496 |
currentProjectDirectory |
497 |
"return the name of the directory to use for fileOut. |
|
235 | 498 |
The returned name already includes a file-separator at the end, |
499 |
so the filename can be concatenated to it." |
|
149 | 500 |
|
501 |
|p dirName| |
|
502 |
||
503 |
p := CurrentProject. |
|
504 |
p notNil ifTrue:[ |
|
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
505 |
dirName := p directory |
149 | 506 |
] ifFalse:[ |
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
507 |
dirName := Filename currentDirectory name |
149 | 508 |
]. |
2962 | 509 |
^ dirName |
2907 | 510 |
|
511 |
"Modified: 7.9.1997 / 23:52:25 / cg" |
|
5151 | 512 |
! ! |
513 |
||
1 | 514 |
!Project methodsFor:'accessing'! |
515 |
||
516 |
changeSet |
|
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
517 |
"return the set of changes made in this project" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
518 |
|
6557 | 519 |
changeSet isNil ifTrue:[ |
520 |
"/ |
|
521 |
"/ for tiny-configurations, allow ChangeSet to be absent |
|
522 |
"/ |
|
523 |
ChangeSet notNil ifTrue:[ |
|
524 |
changeSet := ChangeSet new. |
|
525 |
]. |
|
526 |
]. |
|
527 |
||
1 | 528 |
^ changeSet |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
529 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
530 |
"Modified: 27.1.1997 / 11:58:36 / cg" |
1 | 531 |
! |
532 |
||
236 | 533 |
changeSet:aChangeSet |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
534 |
"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
|
535 |
the actual changeSet." |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
536 |
|
236 | 537 |
changeSet := aChangeSet |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
538 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
539 |
"Modified: 27.1.1997 / 11:59:02 / cg" |
73 | 540 |
! |
541 |
||
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
542 |
changedClasses |
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
543 |
^ self changeSet changedClasses |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
544 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
545 |
" |
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
546 |
Project current changedClasses |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
547 |
" |
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
548 |
|
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
549 |
"Modified: / 17-08-2006 / 12:46:35 / cg" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
550 |
! |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
551 |
|
2028 | 552 |
defaultNameSpace |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
553 |
"return the defaultNameSpace of this project. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
554 |
New classes will (if not specified by a directive) be installed |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
555 |
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
|
556 |
overwriting of standard classes." |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
557 |
|
4726 | 558 |
^ (self propertyAt:#defaultNameSpace) ? Smalltalk |
2028 | 559 |
|
560 |
! |
|
561 |
||
562 |
defaultNameSpace:aNamespace |
|
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
563 |
"set the defaultNameSpace of this project. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
564 |
New classes will (if not specified by a directive) be installed |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
565 |
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
|
566 |
overwriting of standard classes." |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
567 |
|
4726 | 568 |
|prevDefault| |
569 |
||
570 |
prevDefault := self defaultNameSpace. |
|
571 |
aNamespace ~~ prevDefault ifTrue:[ |
|
16629 | 572 |
self propertyAt:#defaultNameSpace put:aNamespace. |
573 |
self changed:#defaultNameSpace. |
|
574 |
self == CurrentProject ifTrue:[ |
|
575 |
self class changed:#defaultNameSpace |
|
576 |
] |
|
2032 | 577 |
] |
2028 | 578 |
|
579 |
"Created: 2.1.1997 / 19:54:37 / cg" |
|
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
580 |
"Modified: 27.1.1997 / 12:00:01 / cg" |
2028 | 581 |
! |
582 |
||
315 | 583 |
directory |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
584 |
"return the projects directory. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
585 |
If not specified, a fileOut will be done into that directory" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
586 |
|
315 | 587 |
directoryName isNil ifTrue:[^ '.']. |
588 |
^ directoryName |
|
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
589 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
590 |
"Modified: 27.1.1997 / 12:00:41 / cg" |
315 | 591 |
! |
592 |
||
593 |
directory:aDirectoryName |
|
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
594 |
"set the projects directory. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
595 |
If not specified, a fileOut will be done into that directory" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
596 |
|
315 | 597 |
directoryName := aDirectoryName. |
4070 | 598 |
self changed:#directory. |
315 | 599 |
self == CurrentProject ifTrue:[ |
16629 | 600 |
self class changed:#directory |
315 | 601 |
] |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
602 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
603 |
"Modified: 27.1.1997 / 12:00:47 / cg" |
617 | 604 |
! |
356 | 605 |
|
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
606 |
isLoaded:aBoolean |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
607 |
isLoaded := aBoolean |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
608 |
! |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
609 |
|
4789
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
610 |
libraryName |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
611 |
"return the projects library name. |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
612 |
This is the name of a classLibrary, created from this project" |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
613 |
|
9588 | 614 |
^ self name asPackageId libraryName. |
4789
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
615 |
|
9588 | 616 |
"Modified: / 18-08-2006 / 17:14:52 / cg" |
4789
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
617 |
! |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
618 |
|
617 | 619 |
name |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
620 |
"return the projects name. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
621 |
This is for the user only - shown in the projectViews label" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
622 |
|
617 | 623 |
^ name |
2276
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 |
"Modified: 27.1.1997 / 12:01:16 / cg" |
617 | 626 |
! |
356 | 627 |
|
617 | 628 |
name:aString |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
629 |
"set the projects name. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
630 |
This is for the user only - shown in the projectViews label" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
631 |
|
617 | 632 |
name := aString. |
4070 | 633 |
self changed:#name. |
617 | 634 |
self == CurrentProject ifTrue:[ |
16629 | 635 |
self class changed:#name |
617 | 636 |
] |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
637 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
638 |
"Modified: 27.1.1997 / 12:01:09 / cg" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
639 |
! |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
640 |
|
4668 | 641 |
package |
642 |
"return the projects package identifier. |
|
9691 | 643 |
This identifier marks all methods and new classes which are created |
4668 | 644 |
in this project." |
645 |
||
646 |
^ packageName |
|
647 |
||
648 |
"Modified: 27.1.1997 / 12:10:00 / cg" |
|
649 |
! |
|
650 |
||
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
651 |
package:aPackageId |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
652 |
"set the projects package identifier. |
9691 | 653 |
This identifier marks all methods and new classes which are created |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
654 |
in this project." |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
655 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
656 |
packageName := aPackageId |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
657 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
658 |
"Modified: 27.1.1997 / 12:10:00 / cg" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
659 |
! |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
660 |
|
654 | 661 |
repositoryDirectory |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
662 |
"return the projects default repository location. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
663 |
This is offered initially, when classes are checked into the |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
664 |
source repository initially" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
665 |
|
725
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
666 |
^ repositoryDirectory |
654 | 667 |
|
668 |
"Created: 25.11.1995 / 18:04:51 / cg" |
|
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
669 |
"Modified: 27.1.1997 / 12:13:35 / cg" |
654 | 670 |
! |
671 |
||
672 |
repositoryDirectory:aRelativePathName |
|
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
673 |
"set the projects default repository location. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
674 |
This will be offered initially, when classes are checked into the |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
675 |
source repository initially" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
676 |
|
725
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
677 |
repositoryDirectory := aRelativePathName |
654 | 678 |
|
679 |
"Created: 25.11.1995 / 18:05:06 / cg" |
|
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
680 |
"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
|
681 |
! |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
682 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
683 |
repositoryModule |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
684 |
"return the projects default repository module name. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
685 |
This is offered initially, when classes are checked into the |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
686 |
source repository initially" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
687 |
|
725
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
688 |
^ repositoryModule |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
689 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
690 |
"Created: 25.11.1995 / 18:04:51 / cg" |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
691 |
"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
|
692 |
! |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
693 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
694 |
repositoryModule:aString |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
695 |
"set the projects default repository module name. |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
696 |
This is offered initially, when classes are checked into the |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
697 |
source repository initially" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
698 |
|
725
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
699 |
repositoryModule := aString |
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
700 |
|
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
701 |
"Created: 25.11.1995 / 18:05:06 / cg" |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
702 |
"Modified: 27.1.1997 / 12:13:57 / cg" |
654 | 703 |
! |
704 |
||
617 | 705 |
views |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
706 |
"return a collection of views which were opened in this project" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
707 |
|
617 | 708 |
^ views asArray |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
709 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
710 |
"Modified: 27.1.1997 / 12:14:18 / cg" |
338 | 711 |
! |
712 |
||
617 | 713 |
views:aSetOfViews |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
714 |
"set the collection of views which were opened in this project" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
715 |
|
617 | 716 |
views := WeakIdentitySet withAll:aSetOfViews |
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
717 |
|
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
718 |
"Modified: 27.1.1997 / 12:14:26 / cg" |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
719 |
! ! |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
720 |
|
4079 | 721 |
!Project methodsFor:'administration'! |
722 |
||
723 |
removeClassesFromSystem |
|
724 |
"remove the all of my classes & patches from the system" |
|
725 |
||
726 |
self classInfo do:[:clsInfo | |
|
8315 | 727 |
|clsName cls| |
728 |
||
729 |
clsName := clsInfo className. |
|
730 |
clsName isSymbol ifTrue:[ |
|
731 |
cls := Smalltalk at:clsName. |
|
732 |
cls notNil ifTrue:[ |
|
733 |
cls removeFromSystem. |
|
734 |
]. |
|
735 |
] ifFalse:[ |
|
23014 | 736 |
self proceedableError:'non-symbol class name'. |
8315 | 737 |
]. |
4079 | 738 |
]. |
23014 | 739 |
|
740 |
"Modified: / 24-05-2018 / 21:04:47 / Claus Gittinger" |
|
4079 | 741 |
! |
742 |
||
743 |
removeFromSystem |
|
21233 | 744 |
"remove the project and all of its classes & patches from the system" |
4079 | 745 |
|
746 |
self removeClassesFromSystem. |
|
747 |
AllProjects remove:self ifAbsent:nil. |
|
748 |
! ! |
|
749 |
||
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
750 |
!Project methodsFor:'changes'! |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
751 |
|
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
752 |
addClassCommentChangeFor:aClass |
19441 | 753 |
"add a comment-change for aClass to the receiver's changeSet" |
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
754 |
|
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
755 |
|changeSet| |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
756 |
|
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
757 |
(changeSet := self changeSet) notNil ifTrue:[ |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
758 |
changeSet addClassCommentChangeFor:aClass |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
759 |
]. |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
760 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
761 |
"Modified: / 17-08-2006 / 11:20:04 / cg" |
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
762 |
! |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
763 |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
764 |
addClassDefinitionChangeFor:aClass |
19441 | 765 |
"add a class-def-change for aClass to the receiver's changeSet" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
766 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
767 |
|changeSet| |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
768 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
769 |
(changeSet := self changeSet) notNil ifTrue:[ |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
770 |
changeSet addClassDefinitionChangeFor:aClass |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
771 |
]. |
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
772 |
|
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
773 |
"Modified: / 17-08-2006 / 11:20:07 / cg" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
774 |
! |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
775 |
|
7182 | 776 |
addClassRemoveChange:oldClass |
6167 | 777 |
"add a class-remove-change to the current project" |
778 |
||
779 |
|changeSet| |
|
780 |
||
781 |
(changeSet := self changeSet) notNil ifTrue:[ |
|
7182 | 782 |
changeSet addClassRemoveChange:oldClass |
6167 | 783 |
]. |
784 |
! |
|
785 |
||
786 |
addClassRenameChangeFrom:oldName to:newName |
|
787 |
"add a class-rename-change to the current project" |
|
788 |
||
789 |
|changeSet| |
|
790 |
||
791 |
(changeSet := self changeSet) notNil ifTrue:[ |
|
792 |
changeSet addClassRenameChangeFrom:oldName to:newName |
|
793 |
]. |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
794 |
|
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
795 |
"Modified: / 17-08-2006 / 11:20:12 / cg" |
6167 | 796 |
! |
797 |
||
6097 | 798 |
addDoIt:aString |
19441 | 799 |
"add a doIt to the receiver's changeSet" |
6097 | 800 |
|
801 |
|changeSet| |
|
802 |
||
803 |
(changeSet := self changeSet) notNil ifTrue:[ |
|
804 |
changeSet addDoIt:aString |
|
805 |
]. |
|
806 |
! |
|
807 |
||
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
808 |
addInstVarDefinitionChangeFor:aClass |
19441 | 809 |
"add an instvar-definition-change for aClass to the receiver's changeSet" |
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
810 |
|
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
811 |
|changeSet| |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
812 |
|
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
813 |
(changeSet := self changeSet) notNil ifTrue:[ |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
814 |
changeSet addInstVarDefinitionChangeFor:aClass |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
815 |
]. |
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
816 |
|
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
817 |
"Modified: / 17-08-2006 / 11:20:15 / cg" |
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
818 |
! |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
819 |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
820 |
addMethodCategoryChange:aMethod category:newCategory in:aClass |
19441 | 821 |
"add a method-category-change for aMethod in aClass to the receiver's changeSet" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
822 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
823 |
|changeSet| |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
824 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
825 |
(changeSet := self changeSet) notNil ifTrue:[ |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
826 |
changeSet addMethodCategoryChange:aMethod category:newCategory in:aClass |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
827 |
]. |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
828 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
829 |
"Modified: / 17-08-2006 / 11:20:17 / cg" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
830 |
! |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
831 |
|
5553
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
832 |
addMethodChange:aMethod fromOld:oldMethod in:aClass |
19441 | 833 |
"add a method change in aClass to the receiver's changeSet" |
5553
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
834 |
|
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
835 |
|changeSet| |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
836 |
|
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
837 |
(changeSet := self changeSet) notNil ifTrue:[ |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
838 |
changeSet addMethodChange:aMethod fromOld:oldMethod in:aClass |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
839 |
]. |
6152
b987f345234e
condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents:
6141
diff
changeset
|
840 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
841 |
"Modified: / 17-08-2006 / 11:20:20 / cg" |
5553
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
842 |
! |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
843 |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
844 |
addMethodChange:aMethod in:aClass |
18735 | 845 |
"add a method change in aClass to the receiver's changeSet" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
846 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
847 |
|changeSet| |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
848 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
849 |
(changeSet := self changeSet) notNil ifTrue:[ |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
850 |
changeSet addMethodChange:aMethod in:aClass |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
851 |
]. |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
852 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
853 |
"Modified: / 17-08-2006 / 11:20:23 / cg" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
854 |
! |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
855 |
|
10059
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
856 |
addMethodPackageChange:aMethod package:newPackage in:aClass |
19441 | 857 |
"add a method-package-change for aMethod in aClass to the receiver's changeSet" |
10059
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
858 |
|
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
859 |
|changeSet| |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
860 |
|
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
861 |
(changeSet := self changeSet) notNil ifTrue:[ |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
862 |
changeSet addMethodPackageChange:aMethod package:newPackage in:aClass |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
863 |
]. |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
864 |
|
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
865 |
"Created: / 09-10-2006 / 13:48:55 / cg" |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
866 |
! |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
867 |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
868 |
addMethodPrivacyChange:aMethod in:aClass |
19441 | 869 |
"add a privacy change for aMethod in aClass to the receiver's changeSet" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
870 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
871 |
|changeSet| |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
872 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
873 |
(changeSet := self changeSet) notNil ifTrue:[ |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
874 |
changeSet addMethodPrivacyChange:aMethod in:aClass |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
875 |
]. |
5156 | 876 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
877 |
"Modified: / 17-08-2006 / 11:20:26 / cg" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
878 |
! |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
879 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
880 |
addPrimitiveDefinitionsChangeFor:aClass |
19441 | 881 |
"add a primitiveDef change for aClass to the receiver's changeSet" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
882 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
883 |
|changeSet| |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
884 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
885 |
(changeSet := self changeSet) notNil ifTrue:[ |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
886 |
changeSet addPrimitiveDefinitionsChangeFor:aClass |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
887 |
]. |
5156 | 888 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
889 |
"Modified: / 17-08-2006 / 11:20:29 / cg" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
890 |
! |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
891 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
892 |
addPrimitiveFunctionsChangeFor:aClass |
19441 | 893 |
"add a primitiveFuncs change for aClass to the receiver's changeSet" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
894 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
895 |
|changeSet| |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
896 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
897 |
(changeSet := self changeSet) notNil ifTrue:[ |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
898 |
changeSet addPrimitiveFunctionsChangeFor:aClass |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
899 |
]. |
5156 | 900 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
901 |
"Modified: / 17-08-2006 / 11:20:32 / cg" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
902 |
! |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
903 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
904 |
addPrimitiveVariablesChangeFor:aClass |
19441 | 905 |
"add a primitiveVars change for aClass to the receiver's changeSet" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
906 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
907 |
|changeSet| |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
908 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
909 |
(changeSet := self changeSet) notNil ifTrue:[ |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
910 |
changeSet addPrimitiveVariablesChangeFor:aClass |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
911 |
]. |
5156 | 912 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
913 |
"Modified: / 17-08-2006 / 11:20:35 / cg" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
914 |
! |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
915 |
|
6746
8bbd639df663
removeSelector change: remember methods previous version
Claus Gittinger <cg@exept.de>
parents:
6557
diff
changeset
|
916 |
addRemoveSelectorChange:aSelector fromOld:oldMethod in:aClass |
19441 | 917 |
"add a method-remove change in aClass to the receiver's changeSet" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
918 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
919 |
|changeSet| |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
920 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
921 |
(changeSet := self changeSet) notNil ifTrue:[ |
6746
8bbd639df663
removeSelector change: remember methods previous version
Claus Gittinger <cg@exept.de>
parents:
6557
diff
changeset
|
922 |
changeSet addRemoveSelectorChange:aSelector fromOld:oldMethod in:aClass |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
923 |
]. |
5156 | 924 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
925 |
"Modified: / 17-08-2006 / 11:20:39 / cg" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
926 |
! |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
927 |
|
5239
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
928 |
addRenameCategoryChangeIn:aClass from:oldCategory to:newCategory |
19441 | 929 |
"add a category rename change in aClass to the receiver's changeSet" |
5239
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
930 |
|
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
931 |
|changeSet| |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
932 |
|
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
933 |
(changeSet := self changeSet) notNil ifTrue:[ |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
934 |
changeSet addRenameCategoryChangeIn:aClass from:oldCategory to:newCategory |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
935 |
]. |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
936 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
937 |
"Created: / 06-02-2000 / 02:28:07 / cg" |
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
938 |
"Modified: / 17-08-2006 / 11:20:37 / cg" |
5239
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
939 |
! |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
940 |
|
5155 | 941 |
condenseChangesForClassCheckin:aClass |
942 |
|changeSet| |
|
943 |
||
944 |
(changeSet := self changeSet) notNil ifTrue:[ |
|
945 |
changeSet condenseChangesForClass:aClass package:aClass package |
|
946 |
]. |
|
6152
b987f345234e
condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents:
6141
diff
changeset
|
947 |
|
b987f345234e
condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents:
6141
diff
changeset
|
948 |
"Modified: / 5.11.2001 / 16:24:18 / cg" |
5156 | 949 |
! |
950 |
||
6152
b987f345234e
condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents:
6141
diff
changeset
|
951 |
condenseChangesForExtensionsCheckInInPackage:package |
6141
cd681933c6bf
condense changes for extensions
Claus Gittinger <cg@exept.de>
parents:
6097
diff
changeset
|
952 |
|changeSet| |
cd681933c6bf
condense changes for extensions
Claus Gittinger <cg@exept.de>
parents:
6097
diff
changeset
|
953 |
|
cd681933c6bf
condense changes for extensions
Claus Gittinger <cg@exept.de>
parents:
6097
diff
changeset
|
954 |
(changeSet := self changeSet) notNil ifTrue:[ |
cd681933c6bf
condense changes for extensions
Claus Gittinger <cg@exept.de>
parents:
6097
diff
changeset
|
955 |
changeSet condenseChangesForExtensionsInPackage:package |
cd681933c6bf
condense changes for extensions
Claus Gittinger <cg@exept.de>
parents:
6097
diff
changeset
|
956 |
]. |
cd681933c6bf
condense changes for extensions
Claus Gittinger <cg@exept.de>
parents:
6097
diff
changeset
|
957 |
|
6152
b987f345234e
condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents:
6141
diff
changeset
|
958 |
"Created: / 5.11.2001 / 17:07:45 / cg" |
10 | 959 |
! ! |
960 |
||
236 | 961 |
!Project methodsFor:'initialization'! |
962 |
||
963 |
initialize |
|
338 | 964 |
|numString| |
965 |
||
330 | 966 |
views := WeakIdentitySet new. |
338 | 967 |
numString := NextSequential printString. |
315 | 968 |
NextSequential := NextSequential + 1. |
338 | 969 |
|
970 |
name := 'new Project-' , numString. |
|
971 |
packageName := 'private-' , numString. |
|
2034
1c96469c3df8
preinit the defaultNamespace of new projects (to Smalltalk)
Claus Gittinger <cg@exept.de>
parents:
2032
diff
changeset
|
972 |
|
654 | 973 |
self directory:'.'. |
18872 | 974 |
self repositoryModule:(UserPreferences current usersModuleName "OperatingSystem getLoginName"). |
654 | 975 |
self repositoryDirectory:'private' |
976 |
||
977 |
"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
|
978 |
"Modified: 3.1.1997 / 13:24:10 / cg" |
236 | 979 |
! ! |
980 |
||
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
981 |
!Project methodsFor:'printing & storing'! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
982 |
|
14289
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
983 |
displayOn:aGCOrStream |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
984 |
"Compatibility |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
985 |
append a printed desription on some stream (Dolphin, Squeak) |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
986 |
OR: |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
987 |
display the receiver in a graphicsContext at 0@0 (ST80). |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
988 |
This method allows for any object to be displayed in some view |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
989 |
(although the fallBack is to display its printString ...)" |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
990 |
|
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
991 |
"/ what a kludge - Dolphin and Squeak mean: printOn: a stream; |
21549 | 992 |
"/ old ST80 means: draw-yourself on a GC. |
14289
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
993 |
aGCOrStream isStream ifFalse:[ |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
994 |
^ super displayOn:aGCOrStream. |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
995 |
]. |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
996 |
|
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
997 |
aGCOrStream |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
998 |
nextPutAll:self class name; |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
999 |
nextPut:$(; |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
1000 |
nextPutAll:(name ? '<unnamed>'); |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
1001 |
nextPut:$). |
21549 | 1002 |
|
1003 |
"Modified (comment): / 22-02-2017 / 16:47:57 / cg" |
|
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1004 |
! ! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1005 |
|
617 | 1006 |
!Project methodsFor:'properties'! |
1007 |
||
4886 | 1008 |
addClass:classOrClassName |
1009 |
"add a class to the project" |
|
1010 |
||
1011 |
|fn| |
|
1012 |
||
1013 |
(classOrClassName isBehavior and:[classOrClassName isLoaded]) ifTrue:[ |
|
1014 |
fn := classOrClassName classFilename. |
|
1015 |
]. |
|
1016 |
self addClass:classOrClassName classFileName:fn |
|
1017 |
! |
|
1018 |
||
4097 | 1019 |
addClass:classOrClassName classFileName:fileName |
1020 |
"add a class to the project" |
|
1021 |
||
1022 |
self |
|
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1023 |
addClass:classOrClassName |
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1024 |
conditionForInclusion:#always |
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1025 |
classFileName:fileName |
4097 | 1026 |
|
1027 |
! |
|
1028 |
||
1029 |
addClass:classOrClassName conditionForInclusion:conditionBlock classFileName:fileName |
|
1030 |
"add a class to the project" |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1031 |
|
4789
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1032 |
|i clsName| |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1033 |
|
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1034 |
(clsName := classOrClassName) isBehavior ifTrue:[ |
4886 | 1035 |
clsName := classOrClassName name |
1036 |
]. |
|
15224 | 1037 |
clsName := clsName withoutPrefix:'Smalltalk::'. |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1038 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1039 |
i := ClassInfo new. |
4789
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1040 |
i className:clsName. |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1041 |
i classFileName:fileName. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1042 |
i conditionForInclusion:conditionBlock. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1043 |
self addClassInfo:i |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1044 |
! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1045 |
|
4089 | 1046 |
addClassInfo:newInfo |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1047 |
"add a class info to the project" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1048 |
|
16629 | 1049 |
|infoCollection index| |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1050 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1051 |
(infoCollection := self classInfo) isNil ifTrue:[ |
16629 | 1052 |
self classInfo:(infoCollection := OrderedCollection new). |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1053 |
]. |
4315 | 1054 |
|
1055 |
index := infoCollection findFirst:[:i | |nm1 nm2| |
|
16629 | 1056 |
nm1 := i className. |
1057 |
nm2 := newInfo className. |
|
1058 |
nm1 = nm2 |
|
1059 |
]. |
|
4089 | 1060 |
index ~~ 0 ifTrue:[ |
16629 | 1061 |
infoCollection at:index put:newInfo |
4089 | 1062 |
] ifFalse:[ |
16629 | 1063 |
infoCollection add:newInfo |
4089 | 1064 |
] |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1065 |
! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1066 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1067 |
classInfo:aClassInfoCollection |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1068 |
"set the class info of the project" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1069 |
|
4071 | 1070 |
self propertyAt:#classInfo put:aClassInfoCollection |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1071 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1072 |
! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1073 |
|
617 | 1074 |
properties |
4097 | 1075 |
"return the property dictionary" |
1076 |
||
617 | 1077 |
^ properties |
1078 |
! |
|
1079 |
||
1080 |
properties:p |
|
4097 | 1081 |
"set the property dictionary" |
1082 |
||
617 | 1083 |
properties := p |
1084 |
! |
|
1085 |
||
4071 | 1086 |
propertyAt:aKey |
4097 | 1087 |
"return a property; the key is a symbol" |
1088 |
||
4071 | 1089 |
properties isNil ifTrue:[^ nil]. |
1090 |
^ properties at:aKey ifAbsent:nil. |
|
1091 |
! |
|
1092 |
||
1093 |
propertyAt:aKey put:aValue |
|
4097 | 1094 |
"set a property; the key is a symbol" |
1095 |
||
4077 | 1096 |
|oldValue| |
1097 |
||
1098 |
oldValue := self propertyAt:aKey. |
|
1099 |
||
4071 | 1100 |
properties isNil ifTrue:[ |
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1101 |
properties := IdentityDictionary new |
4071 | 1102 |
]. |
1103 |
properties at:aKey put:aValue. |
|
4077 | 1104 |
|
1105 |
oldValue ~~ aValue ifTrue:[ |
|
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1106 |
self changed:aKey. |
4077 | 1107 |
]. |
4071 | 1108 |
|
1109 |
"Created: / 23.3.1999 / 14:21:11 / cg" |
|
617 | 1110 |
! ! |
1111 |
||
1112 |
!Project methodsFor:'queries'! |
|
1113 |
||
4688 | 1114 |
areAllClassesLoaded |
1115 |
"return true, if all classes of the package are loaded |
|
1116 |
(i.e. there are no autoloaded stubs present)" |
|
1117 |
||
4690 | 1118 |
|classes| |
1119 |
||
1120 |
classes := self classes. |
|
16629 | 1121 |
classes isEmptyOrNil ifTrue:[^ isLoaded ? false]. |
4885 | 1122 |
|
4690 | 1123 |
classes do:[:aClass | |
4900 | 1124 |
aClass isBehavior ifFalse:[^ false]. |
4885 | 1125 |
aClass isLoaded ifFalse:[^ false]. |
4688 | 1126 |
]. |
1127 |
^ true |
|
1128 |
! |
|
1129 |
||
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1130 |
classInfo |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1131 |
"return a classInfo collection of classes belonging to that project" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1132 |
|
4073 | 1133 |
|classInfo classes| |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1134 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1135 |
properties notNil ifTrue:[ |
9498 | 1136 |
classInfo := properties at:#classInfo ifAbsent:nil. |
1137 |
classInfo notNil ifTrue:[^ classInfo]. |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1138 |
]. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1139 |
|
4073 | 1140 |
classes := self classes. |
16629 | 1141 |
classes isEmptyOrNil ifTrue:[ |
9498 | 1142 |
classInfo := OrderedCollection new |
4073 | 1143 |
] ifFalse:[ |
16629 | 1144 |
classInfo := classes |
9498 | 1145 |
collect:[:class | |
10081 | 1146 |
|i| |
9498 | 1147 |
|
1148 |
i := ClassInfo new. |
|
1149 |
i conditionForInclusion:#always. |
|
1150 |
i className:class name. |
|
10081 | 1151 |
i classFileName:(class classBaseFilename). |
9498 | 1152 |
i |
16629 | 1153 |
] as:OrderedCollection. |
4073 | 1154 |
]. |
1155 |
self propertyAt:#classInfo put:classInfo. |
|
1156 |
^ classInfo |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1157 |
|
10081 | 1158 |
"Modified: / 12-10-2006 / 15:51:42 / cg" |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1159 |
! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1160 |
|
4789
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1161 |
classInfoFor:aClassOrClassName |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1162 |
"return a classInfo for a particular class" |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1163 |
|
16629 | 1164 |
|classInfo clsName| |
4789
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1165 |
|
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1166 |
(classInfo := self classInfo) isNil ifTrue:[^ nil]. |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1167 |
(clsName := aClassOrClassName) isBehavior ifTrue:[ |
16629 | 1168 |
clsName := aClassOrClassName name |
4789
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1169 |
]. |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1170 |
^ classInfo detect:[:i | i className = clsName] ifNone:nil. |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1171 |
|
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1172 |
|
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1173 |
"Modified: 4.1.1997 / 16:51:18 / cg" |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1174 |
! |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1175 |
|
617 | 1176 |
classes |
4013
f06d31702f2a
ignore private classes in classList
Claus Gittinger <cg@exept.de>
parents:
4010
diff
changeset
|
1177 |
"return a collection of classes belonging to that project. |
f06d31702f2a
ignore private classes in classList
Claus Gittinger <cg@exept.de>
parents:
4010
diff
changeset
|
1178 |
This excludes any private classes." |
617 | 1179 |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1180 |
|classes classInfo| |
617 | 1181 |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1182 |
properties notNil ifTrue:[ |
4885 | 1183 |
classInfo := properties at:#classInfo ifAbsent:nil. |
1184 |
classInfo notNil ifTrue:[ |
|
1185 |
classes := classInfo collect:[:i | i className] |
|
1186 |
] ifFalse:[ |
|
1187 |
classes := properties at:#classes ifAbsent:nil |
|
1188 |
] |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1189 |
]. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1190 |
|
5201 | 1191 |
(properties isNil |
1192 |
or:[properties at:#autoIncludeImageClasses ifAbsent:true]) |
|
1193 |
ifTrue:[ |
|
1194 |
classes isNil ifTrue:[ |
|
9507 | 1195 |
classes := Smalltalk |
1196 |
allClassesForWhich: |
|
1197 |
[:aClass | |
|
1198 |
(true "aClass owningClass isNil" |
|
1199 |
and:[aClass isMeta not |
|
1200 |
and:[aClass package = packageName |
|
10175 | 1201 |
and:[aClass isRealNameSpace not]]]) |
9507 | 1202 |
]. |
5201 | 1203 |
]. |
617 | 1204 |
]. |
4885 | 1205 |
^ classes ? #() |
617 | 1206 |
|
10175 | 1207 |
"Modified: / 10-11-2006 / 17:12:21 / cg" |
617 | 1208 |
! |
1209 |
||
4887 | 1210 |
includesClass:aClassOrClassName |
1211 |
"return true, if a class is contained in the project" |
|
1212 |
||
1213 |
|infoCollection index className| |
|
1214 |
||
1215 |
(infoCollection := self classInfo) isNil ifTrue:[^ false]. |
|
1216 |
||
1217 |
aClassOrClassName isBehavior ifTrue:[ |
|
1218 |
className := aClassOrClassName name |
|
1219 |
] ifFalse:[ |
|
1220 |
className := aClassOrClassName |
|
1221 |
]. |
|
1222 |
||
1223 |
index := infoCollection findFirst:[:i | |nm1 nm2| |
|
1224 |
i className = className |
|
1225 |
]. |
|
1226 |
^ index ~~ 0 |
|
1227 |
! |
|
1228 |
||
1229 |
includesMethod:aMethod |
|
1230 |
"return true, if the given method is contained in the project |
|
1231 |
(either as patch/extension or as class" |
|
1232 |
||
1233 |
|who methodClass| |
|
1234 |
||
1235 |
who := aMethod who. |
|
1236 |
who isNil ifTrue:[^ false]. |
|
1237 |
methodClass := who methodClass. |
|
1238 |
(self includesClass:methodClass) ifTrue:[^ true]. |
|
1239 |
^ self includesMethodPatch:aMethod |
|
1240 |
! |
|
1241 |
||
1242 |
includesMethodPatch:aMethod |
|
1243 |
"return true, if the given method is contained in the project |
|
1244 |
as patch/extension" |
|
1245 |
||
16629 | 1246 |
|who methodClass methodClassName methodSelector infoCollection index| |
4887 | 1247 |
|
1248 |
who := aMethod who. |
|
1249 |
who isNil ifTrue:[^ false]. |
|
1250 |
methodClass := who methodClass. |
|
1251 |
methodClassName := methodClass name. |
|
1252 |
methodSelector := who methodSelector. |
|
1253 |
||
1254 |
infoCollection := self methodInfo. |
|
1255 |
||
1256 |
index := infoCollection findFirst:[:i | |
|
1257 |
(i className = methodClassName |
|
1258 |
and:[i methodName = methodSelector]) |
|
1259 |
]. |
|
1260 |
^ index ~~ 0 |
|
1261 |
! |
|
1262 |
||
5897 | 1263 |
isDefaultProject |
16629 | 1264 |
^ self == self class defaultProject |
5897 | 1265 |
! |
1266 |
||
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1267 |
isLoaded |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1268 |
"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
|
1269 |
into the system" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1270 |
|
16629 | 1271 |
|cls| |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1272 |
|
5178 | 1273 |
isLoaded == true ifTrue:[^ isLoaded]. |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1274 |
|
4791 | 1275 |
"/ check for loaded class-library - assume loaded if present. |
10082 | 1276 |
(ObjectMemory binaryModuleInfo contains:[:i | i package = self package]) ifTrue:[ |
5178 | 1277 |
isLoaded := true. |
4819 | 1278 |
^ true |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1279 |
]. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1280 |
|
4769 | 1281 |
"/ check for all classes ... |
1282 |
self classes do:[:aClassOrClassName | |
|
10082 | 1283 |
aClassOrClassName isString ifTrue:[ |
1284 |
(cls := Smalltalk at:aClassOrClassName asSymbol) isNil ifTrue:[ |
|
1285 |
^ false |
|
1286 |
]. |
|
1287 |
cls isBehavior ifFalse:[^ false]. |
|
1288 |
cls isLoaded ifFalse:[^ false]. |
|
1289 |
] ifFalse:[ |
|
1290 |
aClassOrClassName isBehavior ifFalse:[ |
|
23014 | 1291 |
self proceedableError:'class is neither a string or a behavior'. |
4819 | 1292 |
^ false |
10082 | 1293 |
]. |
4819 | 1294 |
] |
4769 | 1295 |
]. |
1296 |
||
4791 | 1297 |
"/ check for all patches & extensions ... |
9228 | 1298 |
(self methods contains:[:aMethodInfo | aMethodInfo theMethod isNil]) ifTrue:[^ false]. |
4791 | 1299 |
|
5178 | 1300 |
isLoaded := true. |
4791 | 1301 |
^ true |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1302 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1303 |
" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1304 |
(Project projectWithId:#'stx:libbasic') isLoaded |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1305 |
(Project projectWithId:#'stx:goodies/persistency') isLoaded |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1306 |
" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1307 |
|
10082 | 1308 |
"Modified: / 12-10-2006 / 20:11:04 / cg" |
23014 | 1309 |
"Modified: / 24-05-2018 / 21:04:39 / Claus Gittinger" |
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1310 |
! |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1311 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1312 |
methodInfo |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1313 |
"return a methodInfo collection of methods belonging to that project" |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1314 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1315 |
|methodInfo methods| |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1316 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1317 |
properties notNil ifTrue:[ |
10082 | 1318 |
methodInfo := properties at:#methodInfo ifAbsent:nil. |
1319 |
methodInfo notNil ifTrue:[^ methodInfo]. |
|
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1320 |
]. |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1321 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1322 |
methods := self methods. |
16629 | 1323 |
methods isEmptyOrNil ifTrue:[ |
10082 | 1324 |
methodInfo := OrderedCollection new |
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1325 |
] ifFalse:[ |
16629 | 1326 |
methodInfo := methods |
10082 | 1327 |
collect:[:mthd | |
1328 |
|i| |
|
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1329 |
|
10082 | 1330 |
mthd isMethod ifTrue:[ |
1331 |
i := MethodInfo new. |
|
1332 |
i setupFromMethod:mthd. |
|
1333 |
i conditionForInclusion:#always. |
|
1334 |
i |
|
1335 |
] ifFalse:[ |
|
1336 |
mthd "/ already a methodInfo |
|
1337 |
] |
|
16629 | 1338 |
] as:OrderedCollection. |
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1339 |
]. |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1340 |
self propertyAt:#methodInfo put:methodInfo. |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1341 |
^ methodInfo |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1342 |
|
10082 | 1343 |
"Modified: / 12-10-2006 / 20:14:09 / cg" |
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1344 |
! |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1345 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1346 |
methods |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1347 |
"return a collection of methods belonging to that project. |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1348 |
This excludes any methods which are already in my class-set." |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1349 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1350 |
|methods methodsInfo| |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1351 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1352 |
properties notNil ifTrue:[ |
5327
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1353 |
methodsInfo := properties at:#methodsInfo ifAbsent:nil. |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1354 |
methodsInfo notNil ifTrue:[ |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1355 |
methods := methodsInfo collect:[:i | i className] |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1356 |
] ifFalse:[ |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1357 |
methods := properties at:#methods ifAbsent:nil |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1358 |
] |
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1359 |
]. |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1360 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1361 |
methods isNil ifTrue:[ |
5327
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1362 |
methods := OrderedCollection new. |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1363 |
Smalltalk allClassesDo:[:aClass | |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1364 |
(true "aClass owningClass isNil" |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1365 |
and:[aClass isMeta not |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1366 |
and:[aClass package ~= packageName |
10175 | 1367 |
and:[aClass isRealNameSpace not]]]) ifTrue:[ |
5327
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1368 |
|
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1369 |
aClass methodDictionary keysAndValuesDo:[:sel :mthd | |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1370 |
mthd package = packageName ifTrue:[ |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1371 |
methods add:(MethodInfo new |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1372 |
className:aClass name; |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1373 |
methodName:sel; |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1374 |
yourself) |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1375 |
]. |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1376 |
]. |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1377 |
aClass class methodDictionary keysAndValuesDo:[:sel :mthd | |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1378 |
mthd package = packageName ifTrue:[ |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1379 |
methods add:(MethodInfo new |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1380 |
className:(aClass name , ' class'); |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1381 |
methodName:sel; |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1382 |
yourself) |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1383 |
]. |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1384 |
] |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1385 |
] |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1386 |
]. |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1387 |
methods isEmpty ifTrue:[^ #()]. |
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1388 |
]. |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1389 |
^ methods |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1390 |
|
10175 | 1391 |
"Modified: / 10-11-2006 / 17:12:28 / cg" |
2 | 1392 |
! ! |
1393 |
||
617 | 1394 |
!Project methodsFor:'views'! |
1395 |
||
1396 |
addView:aView |
|
2164
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
1397 |
"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
|
1398 |
|
617 | 1399 |
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
|
1400 |
|
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
1401 |
"Modified: 14.2.1997 / 15:36:51 / cg" |
617 | 1402 |
! |
1403 |
||
1404 |
destroyViews |
|
1405 |
"destroy all views of this project" |
|
1406 |
||
1407 |
views notNil ifTrue:[ |
|
1408 |
views do:[:aView | |
|
1409 |
aView notNil ifTrue:[aView destroy] |
|
1410 |
] |
|
1411 |
]. |
|
1412 |
! |
|
1413 |
||
1414 |
hideViews |
|
1415 |
"hide all views of this project" |
|
1416 |
||
1417 |
views notNil ifTrue:[ |
|
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1418 |
views do:[:aView | |
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1419 |
aView notNil ifTrue:[aView unmap] |
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1420 |
] |
617 | 1421 |
]. |
1332
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
1422 |
|
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
1423 |
"Modified: 3.5.1996 / 23:48:51 / stefan" |
617 | 1424 |
! |
1425 |
||
1426 |
removeView:aView |
|
2164
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
1427 |
"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
|
1428 |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1429 |
views notNil ifTrue:[ |
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1430 |
views remove:aView ifAbsent:nil |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1431 |
] |
2164
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
1432 |
|
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
1433 |
"Modified: 14.2.1997 / 15:37:20 / cg" |
617 | 1434 |
! |
1435 |
||
1436 |
showViews |
|
2164
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
1437 |
"show all views of this project" |
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
1438 |
|
617 | 1439 |
views notNil ifTrue:[ |
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1440 |
views do:[:aView | |
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1441 |
aView notNil ifTrue:[aView remap] |
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1442 |
] |
617 | 1443 |
]. |
1332
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
1444 |
|
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
1445 |
"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
|
1446 |
"Modified: 14.2.1997 / 15:38:47 / cg" |
617 | 1447 |
! ! |
1448 |
||
5734 | 1449 |
!Project::ClassInfo methodsFor:'accessing'! |
1450 |
||
1451 |
classFileName |
|
1452 |
"return the value of the instance variable 'classFileName' (automatically generated)" |
|
1453 |
||
1454 |
^ classFileName |
|
1455 |
! |
|
1456 |
||
1457 |
classFileName:something |
|
1458 |
"set the value of the instance variable 'classFileName' (automatically generated)" |
|
1459 |
||
1460 |
classFileName := something. |
|
1461 |
! |
|
1462 |
||
1463 |
className |
|
1464 |
"return the value of the instance variable 'className' (automatically generated)" |
|
1465 |
||
1466 |
^ className |
|
1467 |
! |
|
1468 |
||
1469 |
className:something |
|
1470 |
"set the value of the instance variable 'className' (automatically generated)" |
|
1471 |
||
1472 |
className := something. |
|
1473 |
! |
|
1474 |
||
1475 |
conditionForInclusion |
|
1476 |
"return the value of the instance variable 'conditionForInclusion' (automatically generated)" |
|
1477 |
||
1478 |
^ conditionForInclusion |
|
1479 |
! |
|
1480 |
||
1481 |
conditionForInclusion:something |
|
1482 |
"set the value of the instance variable 'conditionForInclusion' (automatically generated)" |
|
1483 |
||
1484 |
conditionForInclusion := something. |
|
1485 |
! ! |
|
1486 |
||
1487 |
!Project::ClassInfo methodsFor:'printing & storing'! |
|
1488 |
||
15647
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1489 |
displayOn:aGCOrStream |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1490 |
|
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1491 |
"/ what a kludge - Dolphin and Squeak mean: printOn: a stream; |
21549 | 1492 |
"/ old ST80 means: draw-yourself on a GC. |
15647
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1493 |
(aGCOrStream isStream) ifFalse:[ |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1494 |
^ super displayOn:aGCOrStream |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1495 |
]. |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1496 |
|
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1497 |
aGCOrStream nextPutAll:'ClassInfo: '. |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1498 |
className printOn:aGCOrStream. |
21549 | 1499 |
|
1500 |
"Modified (comment): / 22-02-2017 / 16:46:59 / cg" |
|
5734 | 1501 |
! ! |
1502 |
||
1503 |
!Project::ClassInfo methodsFor:'queries'! |
|
1504 |
||
1505 |
theClass |
|
1506 |
|cls| |
|
1507 |
||
1508 |
cls := Smalltalk classNamed:className. |
|
1509 |
cls isNil ifTrue:[ ^ nil]. |
|
1510 |
^ cls |
|
1511 |
||
1512 |
"Created: / 26.9.1999 / 13:39:00 / cg" |
|
1513 |
! ! |
|
1514 |
||
4743 | 1515 |
!Project::MethodInfo methodsFor:'accessing'! |
1516 |
||
1517 |
className |
|
1518 |
"return the value of the instance variable 'className' (automatically generated)" |
|
1519 |
||
5734 | 1520 |
^ className |
1521 |
! |
|
4743 | 1522 |
|
1523 |
className:something |
|
1524 |
"set the value of the instance variable 'className' (automatically generated)" |
|
1525 |
||
5734 | 1526 |
className := something. |
1527 |
! |
|
4743 | 1528 |
|
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1529 |
conditionForInclusion |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1530 |
"return the value of the instance variable 'conditionForInclusion' (automatically generated)" |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1531 |
|
5734 | 1532 |
^ conditionForInclusion |
1533 |
! |
|
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1534 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1535 |
conditionForInclusion:something |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1536 |
"set the value of the instance variable 'conditionForInclusion' (automatically generated)" |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1537 |
|
5734 | 1538 |
conditionForInclusion := something. |
1539 |
! |
|
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1540 |
|
4743 | 1541 |
fileName |
1542 |
"return the value of the instance variable 'fileName' (automatically generated)" |
|
1543 |
||
5734 | 1544 |
^ fileName |
1545 |
! |
|
4743 | 1546 |
|
1547 |
fileName:something |
|
1548 |
"set the value of the instance variable 'fileName' (automatically generated)" |
|
1549 |
||
5734 | 1550 |
fileName := something. |
1551 |
! |
|
4743 | 1552 |
|
1553 |
methodName |
|
1554 |
"return the value of the instance variable 'methodName' (automatically generated)" |
|
1555 |
||
5734 | 1556 |
^ methodName |
1557 |
! |
|
4743 | 1558 |
|
1559 |
methodName:something |
|
1560 |
"set the value of the instance variable 'methodName' (automatically generated)" |
|
1561 |
||
5734 | 1562 |
methodName := something. |
10082 | 1563 |
! |
1564 |
||
1565 |
setupFromMethod:aMethod |
|
1566 |
|who| |
|
1567 |
||
1568 |
who := aMethod who. |
|
1569 |
className := who methodClass name. |
|
1570 |
methodName := who methodSelector. |
|
1571 |
fileName := aMethod sourceFilename. |
|
1572 |
||
1573 |
"Created: / 12-10-2006 / 20:13:32 / cg" |
|
5734 | 1574 |
! ! |
4743 | 1575 |
|
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1576 |
!Project::MethodInfo methodsFor:'printing & storing'! |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1577 |
|
15647
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1578 |
displayOn:aGCOrStream |
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1579 |
|
15647
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1580 |
"/ what a kludge - Dolphin and Squeak mean: printOn: a stream; |
21549 | 1581 |
"/ old ST80 means: draw-yourself on a GC. |
15647
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1582 |
(aGCOrStream isStream) ifFalse:[ |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1583 |
^ super displayOn:aGCOrStream |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1584 |
]. |
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1585 |
|
15647
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1586 |
aGCOrStream nextPutAll:'MethodInfo: '. |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1587 |
className printOn:aGCOrStream. |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1588 |
aGCOrStream nextPutAll:'>>'. |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1589 |
methodName printOn:aGCOrStream |
21549 | 1590 |
|
1591 |
"Modified (comment): / 22-02-2017 / 16:48:33 / cg" |
|
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1592 |
! ! |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1593 |
|
4791 | 1594 |
!Project::MethodInfo methodsFor:'queries'! |
1595 |
||
1596 |
method |
|
11597 | 1597 |
<resource: #obsolete> |
4819 | 1598 |
self obsoleteMethodWarning. |
1599 |
^ self theMethod. |
|
1600 |
||
1601 |
"Modified: / 26.9.1999 / 13:40:16 / cg" |
|
1602 |
! |
|
1603 |
||
1604 |
theMethod |
|
4791 | 1605 |
|cls| |
1606 |
||
1607 |
cls := Smalltalk classNamed:className. |
|
1608 |
cls isNil ifTrue:[ ^ nil]. |
|
1609 |
^ cls compiledMethodAt:methodName asSymbol. |
|
4819 | 1610 |
|
1611 |
"Created: / 26.9.1999 / 13:39:07 / cg" |
|
1612 |
! ! |
|
1613 |
||
1854
b44227fd2b3d
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
1614 |
!Project class methodsFor:'documentation'! |
630 | 1615 |
|
1616 |
version |
|
18735 | 1617 |
^ '$Header$' |
12211 | 1618 |
! |
1619 |
||
1620 |
version_CVS |
|
18735 | 1621 |
^ '$Header$' |
1298 | 1622 |
! ! |
7090
7afcbe4a5264
Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents:
6746
diff
changeset
|
1623 |
|
15029 | 1624 |
|
1 | 1625 |
Project initialize! |