author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 08 Sep 2015 17:07:52 +0100 | |
branch | jv |
changeset 18738 | 66e019ad4d30 |
parent 18120 | e3a375d5f6a8 |
parent 18735 | 681996ef7e51 |
child 18873 | ce58d469e583 |
permissions | -rw-r--r-- |
18735 | 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: |
12373 | 59 |
This class is almost completely obsolete (before even being finished) |
12362 | 60 |
|
12373 | 61 |
Most references to this class are being removed, and we are only |
12211 | 62 |
looking at PackageId and ProjectDefinition in the future. |
12373 | 63 |
Please ignore everything regarding to packaging and building below. |
64 |
Project instance(s) are still used to keep a reference to the current changeSet, |
|
65 |
but even that may move to a projectDefinition in the future. |
|
12211 | 66 |
|
67 |
This class is still under construction (especially the build features are unfinished). |
|
235 | 68 |
Currently, all it does is keep track of per-project views |
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:[ |
|
736 |
self error:'non-symbol class name' mayProceed:true. |
|
737 |
]. |
|
4079 | 738 |
]. |
739 |
! |
|
740 |
||
741 |
removeFromSystem |
|
742 |
"remove the project and all of its classes & patches from the |
|
743 |
system" |
|
744 |
||
745 |
self removeClassesFromSystem. |
|
746 |
AllProjects remove:self ifAbsent:nil. |
|
747 |
! ! |
|
748 |
||
2276
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
749 |
!Project methodsFor:'changes'! |
4efec5219eef
remember overwritten methods
Claus Gittinger <cg@exept.de>
parents:
2164
diff
changeset
|
750 |
|
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
751 |
addClassCommentChangeFor:aClass |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
752 |
"add a comment-change for aClass to the receivers changeSet" |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
753 |
|
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
754 |
|changeSet| |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
755 |
|
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
756 |
(changeSet := self changeSet) notNil ifTrue:[ |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
757 |
changeSet addClassCommentChangeFor:aClass |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
758 |
]. |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
759 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
760 |
"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
|
761 |
! |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
762 |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
763 |
addClassDefinitionChangeFor:aClass |
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
764 |
"add a class-def-change for aClass to the receivers changeSet" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
765 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
766 |
|changeSet| |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
767 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
768 |
(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
|
769 |
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
|
770 |
]. |
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
771 |
|
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
772 |
"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
|
773 |
! |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
774 |
|
7182 | 775 |
addClassRemoveChange:oldClass |
6167 | 776 |
"add a class-remove-change to the current project" |
777 |
||
778 |
|changeSet| |
|
779 |
||
780 |
(changeSet := self changeSet) notNil ifTrue:[ |
|
7182 | 781 |
changeSet addClassRemoveChange:oldClass |
6167 | 782 |
]. |
783 |
! |
|
784 |
||
785 |
addClassRenameChangeFrom:oldName to:newName |
|
786 |
"add a class-rename-change to the current project" |
|
787 |
||
788 |
|changeSet| |
|
789 |
||
790 |
(changeSet := self changeSet) notNil ifTrue:[ |
|
791 |
changeSet addClassRenameChangeFrom:oldName to:newName |
|
792 |
]. |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
793 |
|
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
794 |
"Modified: / 17-08-2006 / 11:20:12 / cg" |
6167 | 795 |
! |
796 |
||
6097 | 797 |
addDoIt:aString |
798 |
"add a doIt to the receivers changeSet" |
|
799 |
||
800 |
|changeSet| |
|
801 |
||
802 |
(changeSet := self changeSet) notNil ifTrue:[ |
|
803 |
changeSet addDoIt:aString |
|
804 |
]. |
|
805 |
! |
|
806 |
||
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
807 |
addInstVarDefinitionChangeFor:aClass |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
808 |
"add an instvar-definition-change for aClass to the receivers changeSet" |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
809 |
|
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
810 |
|changeSet| |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
811 |
|
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
812 |
(changeSet := self changeSet) notNil ifTrue:[ |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
813 |
changeSet addInstVarDefinitionChangeFor:aClass |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
814 |
]. |
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
815 |
|
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
816 |
"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
|
817 |
! |
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
818 |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
819 |
addMethodCategoryChange:aMethod category:newCategory in:aClass |
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
820 |
"add a method-category-change for aMethod in aClass to the receivers changeSet" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
821 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
822 |
|changeSet| |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
823 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
824 |
(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
|
825 |
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
|
826 |
]. |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
827 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
828 |
"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
|
829 |
! |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
830 |
|
5553
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
831 |
addMethodChange:aMethod fromOld:oldMethod in:aClass |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
832 |
"add a method change in aClass to the receivers changeSet" |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
833 |
|
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
834 |
|changeSet| |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
835 |
|
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
836 |
(changeSet := self changeSet) notNil ifTrue:[ |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
837 |
changeSet addMethodChange:aMethod fromOld:oldMethod in:aClass |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
838 |
]. |
6152
b987f345234e
condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents:
6141
diff
changeset
|
839 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
840 |
"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
|
841 |
! |
1740d3ae50ff
keep previousVersion of method in changeSet
Claus Gittinger <cg@exept.de>
parents:
5547
diff
changeset
|
842 |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
843 |
addMethodChange:aMethod in:aClass |
18735 | 844 |
"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
|
845 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
846 |
|changeSet| |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
847 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
848 |
(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
|
849 |
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
|
850 |
]. |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
851 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
852 |
"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
|
853 |
! |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
854 |
|
10059
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
855 |
addMethodPackageChange:aMethod package:newPackage in:aClass |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
856 |
"add a method-package-change for aMethod in aClass to the receivers changeSet" |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
857 |
|
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
858 |
|changeSet| |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
859 |
|
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
860 |
(changeSet := self changeSet) notNil ifTrue:[ |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
861 |
changeSet addMethodPackageChange:aMethod package:newPackage in:aClass |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
862 |
]. |
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 |
"Created: / 09-10-2006 / 13:48:55 / cg" |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
865 |
! |
1c98742a8ff6
method-package change record added
Claus Gittinger <cg@exept.de>
parents:
9691
diff
changeset
|
866 |
|
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
867 |
addMethodPrivacyChange:aMethod in:aClass |
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
868 |
"add a privacy change for aMethod in aClass to the receivers changeSet" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
869 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
870 |
|changeSet| |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
871 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
872 |
(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
|
873 |
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
|
874 |
]. |
5156 | 875 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
876 |
"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
|
877 |
! |
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 |
addPrimitiveDefinitionsChangeFor:aClass |
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
880 |
"add a primitiveDef change for aClass to the receivers changeSet" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
881 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
882 |
|changeSet| |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
883 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
884 |
(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
|
885 |
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
|
886 |
]. |
5156 | 887 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
888 |
"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
|
889 |
! |
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 |
addPrimitiveFunctionsChangeFor:aClass |
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
892 |
"add a primitiveFuncs change for aClass to the receivers changeSet" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
893 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
894 |
|changeSet| |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
895 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
896 |
(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
|
897 |
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
|
898 |
]. |
5156 | 899 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
900 |
"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
|
901 |
! |
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 |
addPrimitiveVariablesChangeFor:aClass |
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
904 |
"add a primitiveVars change for aClass to the receivers changeSet" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
905 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
906 |
|changeSet| |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
907 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
908 |
(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
|
909 |
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
|
910 |
]. |
5156 | 911 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
912 |
"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
|
913 |
! |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
914 |
|
6746
8bbd639df663
removeSelector change: remember methods previous version
Claus Gittinger <cg@exept.de>
parents:
6557
diff
changeset
|
915 |
addRemoveSelectorChange:aSelector fromOld:oldMethod in:aClass |
5224
003c8edae743
comments; handle class-instvar and comment changes
Claus Gittinger <cg@exept.de>
parents:
5201
diff
changeset
|
916 |
"add a method-remove change in aClass to the receivers changeSet" |
5150
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
917 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
918 |
|changeSet| |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
919 |
|
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
920 |
(changeSet := self changeSet) notNil ifTrue:[ |
6746
8bbd639df663
removeSelector change: remember methods previous version
Claus Gittinger <cg@exept.de>
parents:
6557
diff
changeset
|
921 |
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
|
922 |
]. |
5156 | 923 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
924 |
"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
|
925 |
! |
d7f854b5ede8
keep track of changed classes (even if current project has no changeSet)
Claus Gittinger <cg@exept.de>
parents:
5126
diff
changeset
|
926 |
|
5239
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
927 |
addRenameCategoryChangeIn:aClass from:oldCategory to:newCategory |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
928 |
"add a category rename change in aClass to the receivers changeSet" |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
929 |
|
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
930 |
|changeSet| |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
931 |
|
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
932 |
(changeSet := self changeSet) notNil ifTrue:[ |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
933 |
changeSet addRenameCategoryChangeIn:aClass from:oldCategory to:newCategory |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
934 |
]. |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
935 |
|
9560
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
936 |
"Created: / 06-02-2000 / 02:28:07 / cg" |
555afa00a3c1
code cleanup - remove old obsolete code
Claus Gittinger <cg@exept.de>
parents:
9507
diff
changeset
|
937 |
"Modified: / 17-08-2006 / 11:20:37 / cg" |
5239
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
938 |
! |
8b70947d7036
category change in changeSet
Claus Gittinger <cg@exept.de>
parents:
5232
diff
changeset
|
939 |
|
5155 | 940 |
condenseChangesForClassCheckin:aClass |
941 |
|changeSet| |
|
942 |
||
943 |
(changeSet := self changeSet) notNil ifTrue:[ |
|
944 |
changeSet condenseChangesForClass:aClass package:aClass package |
|
945 |
]. |
|
6152
b987f345234e
condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents:
6141
diff
changeset
|
946 |
|
b987f345234e
condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents:
6141
diff
changeset
|
947 |
"Modified: / 5.11.2001 / 16:24:18 / cg" |
5156 | 948 |
! |
949 |
||
6152
b987f345234e
condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents:
6141
diff
changeset
|
950 |
condenseChangesForExtensionsCheckInInPackage:package |
6141
cd681933c6bf
condense changes for extensions
Claus Gittinger <cg@exept.de>
parents:
6097
diff
changeset
|
951 |
|changeSet| |
cd681933c6bf
condense changes for extensions
Claus Gittinger <cg@exept.de>
parents:
6097
diff
changeset
|
952 |
|
cd681933c6bf
condense changes for extensions
Claus Gittinger <cg@exept.de>
parents:
6097
diff
changeset
|
953 |
(changeSet := self changeSet) notNil ifTrue:[ |
cd681933c6bf
condense changes for extensions
Claus Gittinger <cg@exept.de>
parents:
6097
diff
changeset
|
954 |
changeSet condenseChangesForExtensionsInPackage:package |
cd681933c6bf
condense changes for extensions
Claus Gittinger <cg@exept.de>
parents:
6097
diff
changeset
|
955 |
]. |
cd681933c6bf
condense changes for extensions
Claus Gittinger <cg@exept.de>
parents:
6097
diff
changeset
|
956 |
|
6152
b987f345234e
condense changeSet after checking in an extensions container
Claus Gittinger <cg@exept.de>
parents:
6141
diff
changeset
|
957 |
"Created: / 5.11.2001 / 17:07:45 / cg" |
10 | 958 |
! ! |
959 |
||
236 | 960 |
!Project methodsFor:'initialization'! |
961 |
||
962 |
initialize |
|
338 | 963 |
|numString| |
964 |
||
330 | 965 |
views := WeakIdentitySet new. |
338 | 966 |
numString := NextSequential printString. |
315 | 967 |
NextSequential := NextSequential + 1. |
338 | 968 |
|
969 |
name := 'new Project-' , numString. |
|
970 |
packageName := 'private-' , numString. |
|
2034
1c96469c3df8
preinit the defaultNamespace of new projects (to Smalltalk)
Claus Gittinger <cg@exept.de>
parents:
2032
diff
changeset
|
971 |
|
654 | 972 |
self directory:'.'. |
725
02759b2003a8
keep module & directory separately (as defaults when creating a container)
Claus Gittinger <cg@exept.de>
parents:
705
diff
changeset
|
973 |
self repositoryModule:(OperatingSystem getLoginName). |
654 | 974 |
self repositoryDirectory:'private' |
975 |
||
976 |
"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
|
977 |
"Modified: 3.1.1997 / 13:24:10 / cg" |
236 | 978 |
! ! |
979 |
||
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
980 |
!Project methodsFor:'printing & storing'! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
981 |
|
14289
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
982 |
displayOn:aGCOrStream |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
983 |
"Compatibility |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
984 |
append a printed desription on some stream (Dolphin, Squeak) |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
985 |
OR: |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
986 |
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
|
987 |
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
|
988 |
(although the fallBack is to display its printString ...)" |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
989 |
|
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
990 |
"/ what a kludge - Dolphin and Squeak mean: printOn: a stream; |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
991 |
"/ ST/X (and some old ST80's) mean: draw-yourself on a GC. |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
992 |
aGCOrStream isStream ifFalse:[ |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
993 |
^ super displayOn:aGCOrStream. |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
994 |
]. |
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 |
aGCOrStream |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
997 |
nextPutAll:self class name; |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
998 |
nextPut:$(; |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
999 |
nextPutAll:(name ? '<unnamed>'); |
1b8f3e94952a
Implement #displayOn: instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
12373
diff
changeset
|
1000 |
nextPut:$). |
3972
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1001 |
! ! |
efc25c2863e9
more attributes; some preparations for the ProjectBrowser.
Claus Gittinger <cg@exept.de>
parents:
3332
diff
changeset
|
1002 |
|
617 | 1003 |
!Project methodsFor:'properties'! |
1004 |
||
4886 | 1005 |
addClass:classOrClassName |
1006 |
"add a class to the project" |
|
1007 |
||
1008 |
|fn| |
|
1009 |
||
1010 |
(classOrClassName isBehavior and:[classOrClassName isLoaded]) ifTrue:[ |
|
1011 |
fn := classOrClassName classFilename. |
|
1012 |
]. |
|
1013 |
self addClass:classOrClassName classFileName:fn |
|
1014 |
! |
|
1015 |
||
4097 | 1016 |
addClass:classOrClassName classFileName:fileName |
1017 |
"add a class to the project" |
|
1018 |
||
1019 |
self |
|
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1020 |
addClass:classOrClassName |
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1021 |
conditionForInclusion:#always |
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1022 |
classFileName:fileName |
4097 | 1023 |
|
1024 |
! |
|
1025 |
||
1026 |
addClass:classOrClassName conditionForInclusion:conditionBlock classFileName:fileName |
|
1027 |
"add a class to the project" |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1028 |
|
4789
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1029 |
|i clsName| |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1030 |
|
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1031 |
(clsName := classOrClassName) isBehavior ifTrue:[ |
4886 | 1032 |
clsName := classOrClassName name |
1033 |
]. |
|
15224 | 1034 |
clsName := clsName withoutPrefix:'Smalltalk::'. |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1035 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1036 |
i := ClassInfo new. |
4789
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1037 |
i className:clsName. |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1038 |
i classFileName:fileName. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1039 |
i conditionForInclusion:conditionBlock. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1040 |
self addClassInfo:i |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1041 |
! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1042 |
|
4089 | 1043 |
addClassInfo:newInfo |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1044 |
"add a class info to the project" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1045 |
|
16629 | 1046 |
|infoCollection index| |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1047 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1048 |
(infoCollection := self classInfo) isNil ifTrue:[ |
16629 | 1049 |
self classInfo:(infoCollection := OrderedCollection new). |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1050 |
]. |
4315 | 1051 |
|
1052 |
index := infoCollection findFirst:[:i | |nm1 nm2| |
|
16629 | 1053 |
nm1 := i className. |
1054 |
nm2 := newInfo className. |
|
1055 |
nm1 = nm2 |
|
1056 |
]. |
|
4089 | 1057 |
index ~~ 0 ifTrue:[ |
16629 | 1058 |
infoCollection at:index put:newInfo |
4089 | 1059 |
] ifFalse:[ |
16629 | 1060 |
infoCollection add:newInfo |
4089 | 1061 |
] |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1062 |
! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1063 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1064 |
classInfo:aClassInfoCollection |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1065 |
"set the class info of the project" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1066 |
|
4071 | 1067 |
self propertyAt:#classInfo put:aClassInfoCollection |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1068 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1069 |
! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1070 |
|
617 | 1071 |
properties |
4097 | 1072 |
"return the property dictionary" |
1073 |
||
617 | 1074 |
^ properties |
1075 |
! |
|
1076 |
||
1077 |
properties:p |
|
4097 | 1078 |
"set the property dictionary" |
1079 |
||
617 | 1080 |
properties := p |
1081 |
! |
|
1082 |
||
4071 | 1083 |
propertyAt:aKey |
4097 | 1084 |
"return a property; the key is a symbol" |
1085 |
||
4071 | 1086 |
properties isNil ifTrue:[^ nil]. |
1087 |
^ properties at:aKey ifAbsent:nil. |
|
1088 |
! |
|
1089 |
||
1090 |
propertyAt:aKey put:aValue |
|
4097 | 1091 |
"set a property; the key is a symbol" |
1092 |
||
4077 | 1093 |
|oldValue| |
1094 |
||
1095 |
oldValue := self propertyAt:aKey. |
|
1096 |
||
4071 | 1097 |
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
|
1098 |
properties := IdentityDictionary new |
4071 | 1099 |
]. |
1100 |
properties at:aKey put:aValue. |
|
4077 | 1101 |
|
1102 |
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
|
1103 |
self changed:aKey. |
4077 | 1104 |
]. |
4071 | 1105 |
|
1106 |
"Created: / 23.3.1999 / 14:21:11 / cg" |
|
617 | 1107 |
! ! |
1108 |
||
1109 |
!Project methodsFor:'queries'! |
|
1110 |
||
4688 | 1111 |
areAllClassesLoaded |
1112 |
"return true, if all classes of the package are loaded |
|
1113 |
(i.e. there are no autoloaded stubs present)" |
|
1114 |
||
4690 | 1115 |
|classes| |
1116 |
||
1117 |
classes := self classes. |
|
16629 | 1118 |
classes isEmptyOrNil ifTrue:[^ isLoaded ? false]. |
4885 | 1119 |
|
4690 | 1120 |
classes do:[:aClass | |
4900 | 1121 |
aClass isBehavior ifFalse:[^ false]. |
4885 | 1122 |
aClass isLoaded ifFalse:[^ false]. |
4688 | 1123 |
]. |
1124 |
^ true |
|
1125 |
! |
|
1126 |
||
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1127 |
classInfo |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1128 |
"return a classInfo collection of classes belonging to that project" |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1129 |
|
4073 | 1130 |
|classInfo classes| |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1131 |
|
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1132 |
properties notNil ifTrue:[ |
9498 | 1133 |
classInfo := properties at:#classInfo ifAbsent:nil. |
1134 |
classInfo notNil ifTrue:[^ classInfo]. |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1135 |
]. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1136 |
|
4073 | 1137 |
classes := self classes. |
16629 | 1138 |
classes isEmptyOrNil ifTrue:[ |
9498 | 1139 |
classInfo := OrderedCollection new |
4073 | 1140 |
] ifFalse:[ |
16629 | 1141 |
classInfo := classes |
9498 | 1142 |
collect:[:class | |
10081 | 1143 |
|i| |
9498 | 1144 |
|
1145 |
i := ClassInfo new. |
|
1146 |
i conditionForInclusion:#always. |
|
1147 |
i className:class name. |
|
10081 | 1148 |
i classFileName:(class classBaseFilename). |
9498 | 1149 |
i |
16629 | 1150 |
] as:OrderedCollection. |
4073 | 1151 |
]. |
1152 |
self propertyAt:#classInfo put:classInfo. |
|
1153 |
^ classInfo |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1154 |
|
10081 | 1155 |
"Modified: / 12-10-2006 / 15:51:42 / cg" |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1156 |
! |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1157 |
|
4789
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1158 |
classInfoFor:aClassOrClassName |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1159 |
"return a classInfo for a particular class" |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1160 |
|
16629 | 1161 |
|classInfo clsName| |
4789
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1162 |
|
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1163 |
(classInfo := self classInfo) isNil ifTrue:[^ nil]. |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1164 |
(clsName := aClassOrClassName) isBehavior ifTrue:[ |
16629 | 1165 |
clsName := aClassOrClassName name |
4789
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1166 |
]. |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1167 |
^ classInfo detect:[:i | i className = clsName] ifNone:nil. |
72a61dc595ad
loadAll/Make.proto file generation
Claus Gittinger <cg@exept.de>
parents:
4787
diff
changeset
|
1168 |
|
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 |
"Modified: 4.1.1997 / 16:51:18 / cg" |
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 |
|
617 | 1173 |
classes |
4013
f06d31702f2a
ignore private classes in classList
Claus Gittinger <cg@exept.de>
parents:
4010
diff
changeset
|
1174 |
"return a collection of classes belonging to that project. |
f06d31702f2a
ignore private classes in classList
Claus Gittinger <cg@exept.de>
parents:
4010
diff
changeset
|
1175 |
This excludes any private classes." |
617 | 1176 |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1177 |
|classes classInfo| |
617 | 1178 |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1179 |
properties notNil ifTrue:[ |
4885 | 1180 |
classInfo := properties at:#classInfo ifAbsent:nil. |
1181 |
classInfo notNil ifTrue:[ |
|
1182 |
classes := classInfo collect:[:i | i className] |
|
1183 |
] ifFalse:[ |
|
1184 |
classes := properties at:#classes ifAbsent:nil |
|
1185 |
] |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1186 |
]. |
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1187 |
|
5201 | 1188 |
(properties isNil |
1189 |
or:[properties at:#autoIncludeImageClasses ifAbsent:true]) |
|
1190 |
ifTrue:[ |
|
1191 |
classes isNil ifTrue:[ |
|
9507 | 1192 |
classes := Smalltalk |
1193 |
allClassesForWhich: |
|
1194 |
[:aClass | |
|
1195 |
(true "aClass owningClass isNil" |
|
1196 |
and:[aClass isMeta not |
|
1197 |
and:[aClass package = packageName |
|
10175 | 1198 |
and:[aClass isRealNameSpace not]]]) |
9507 | 1199 |
]. |
5201 | 1200 |
]. |
617 | 1201 |
]. |
4885 | 1202 |
^ classes ? #() |
617 | 1203 |
|
10175 | 1204 |
"Modified: / 10-11-2006 / 17:12:21 / cg" |
617 | 1205 |
! |
1206 |
||
4887 | 1207 |
includesClass:aClassOrClassName |
1208 |
"return true, if a class is contained in the project" |
|
1209 |
||
1210 |
|infoCollection index className| |
|
1211 |
||
1212 |
(infoCollection := self classInfo) isNil ifTrue:[^ false]. |
|
1213 |
||
1214 |
aClassOrClassName isBehavior ifTrue:[ |
|
1215 |
className := aClassOrClassName name |
|
1216 |
] ifFalse:[ |
|
1217 |
className := aClassOrClassName |
|
1218 |
]. |
|
1219 |
||
1220 |
index := infoCollection findFirst:[:i | |nm1 nm2| |
|
1221 |
i className = className |
|
1222 |
]. |
|
1223 |
^ index ~~ 0 |
|
1224 |
! |
|
1225 |
||
1226 |
includesMethod:aMethod |
|
1227 |
"return true, if the given method is contained in the project |
|
1228 |
(either as patch/extension or as class" |
|
1229 |
||
1230 |
|who methodClass| |
|
1231 |
||
1232 |
who := aMethod who. |
|
1233 |
who isNil ifTrue:[^ false]. |
|
1234 |
methodClass := who methodClass. |
|
1235 |
(self includesClass:methodClass) ifTrue:[^ true]. |
|
1236 |
^ self includesMethodPatch:aMethod |
|
1237 |
! |
|
1238 |
||
1239 |
includesMethodPatch:aMethod |
|
1240 |
"return true, if the given method is contained in the project |
|
1241 |
as patch/extension" |
|
1242 |
||
16629 | 1243 |
|who methodClass methodClassName methodSelector infoCollection index| |
4887 | 1244 |
|
1245 |
who := aMethod who. |
|
1246 |
who isNil ifTrue:[^ false]. |
|
1247 |
methodClass := who methodClass. |
|
1248 |
methodClassName := methodClass name. |
|
1249 |
methodSelector := who methodSelector. |
|
1250 |
||
1251 |
infoCollection := self methodInfo. |
|
1252 |
||
1253 |
index := infoCollection findFirst:[:i | |
|
1254 |
(i className = methodClassName |
|
1255 |
and:[i methodName = methodSelector]) |
|
1256 |
]. |
|
1257 |
^ index ~~ 0 |
|
1258 |
! |
|
1259 |
||
5897 | 1260 |
isDefaultProject |
16629 | 1261 |
^ self == self class defaultProject |
5897 | 1262 |
! |
1263 |
||
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1264 |
isLoaded |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1265 |
"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
|
1266 |
into the system" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1267 |
|
16629 | 1268 |
|cls| |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1269 |
|
5178 | 1270 |
isLoaded == true ifTrue:[^ isLoaded]. |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1271 |
|
4791 | 1272 |
"/ check for loaded class-library - assume loaded if present. |
10082 | 1273 |
(ObjectMemory binaryModuleInfo contains:[:i | i package = self package]) ifTrue:[ |
5178 | 1274 |
isLoaded := true. |
4819 | 1275 |
^ true |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1276 |
]. |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1277 |
|
4769 | 1278 |
"/ check for all classes ... |
1279 |
self classes do:[:aClassOrClassName | |
|
10082 | 1280 |
aClassOrClassName isString ifTrue:[ |
1281 |
(cls := Smalltalk at:aClassOrClassName asSymbol) isNil ifTrue:[ |
|
1282 |
^ false |
|
1283 |
]. |
|
1284 |
cls isBehavior ifFalse:[^ false]. |
|
1285 |
cls isLoaded ifFalse:[^ false]. |
|
1286 |
] ifFalse:[ |
|
1287 |
aClassOrClassName isBehavior ifFalse:[ |
|
8315 | 1288 |
self error:'class is neither a string or a behavior' mayProceed:true. |
4819 | 1289 |
^ false |
10082 | 1290 |
]. |
4819 | 1291 |
] |
4769 | 1292 |
]. |
1293 |
||
4791 | 1294 |
"/ check for all patches & extensions ... |
9228 | 1295 |
(self methods contains:[:aMethodInfo | aMethodInfo theMethod isNil]) ifTrue:[^ false]. |
4791 | 1296 |
|
5178 | 1297 |
isLoaded := true. |
4791 | 1298 |
^ true |
4685
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1299 |
|
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1300 |
" |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1301 |
(Project projectWithId:#'stx:libbasic') isLoaded |
d145298696b7
more package loading support
Claus Gittinger <cg@exept.de>
parents:
4670
diff
changeset
|
1302 |
(Project projectWithId:#'stx:goodies/persistency') isLoaded |
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 |
|
10082 | 1305 |
"Modified: / 12-10-2006 / 20:11:04 / cg" |
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1306 |
! |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1307 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1308 |
methodInfo |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1309 |
"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
|
1310 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1311 |
|methodInfo methods| |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1312 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1313 |
properties notNil ifTrue:[ |
10082 | 1314 |
methodInfo := properties at:#methodInfo ifAbsent:nil. |
1315 |
methodInfo notNil ifTrue:[^ methodInfo]. |
|
4755
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 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1318 |
methods := self methods. |
16629 | 1319 |
methods isEmptyOrNil ifTrue:[ |
10082 | 1320 |
methodInfo := OrderedCollection new |
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1321 |
] ifFalse:[ |
16629 | 1322 |
methodInfo := methods |
10082 | 1323 |
collect:[:mthd | |
1324 |
|i| |
|
4814
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1325 |
|
10082 | 1326 |
mthd isMethod ifTrue:[ |
1327 |
i := MethodInfo new. |
|
1328 |
i setupFromMethod:mthd. |
|
1329 |
i conditionForInclusion:#always. |
|
1330 |
i |
|
1331 |
] ifFalse:[ |
|
1332 |
mthd "/ already a methodInfo |
|
1333 |
] |
|
16629 | 1334 |
] as:OrderedCollection. |
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1335 |
]. |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1336 |
self propertyAt:#methodInfo put:methodInfo. |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1337 |
^ methodInfo |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1338 |
|
10082 | 1339 |
"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
|
1340 |
! |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1341 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1342 |
methods |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1343 |
"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
|
1344 |
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
|
1345 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1346 |
|methods methodsInfo| |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1347 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1348 |
properties notNil ifTrue:[ |
5327
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1349 |
methodsInfo := properties at:#methodsInfo ifAbsent:nil. |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1350 |
methodsInfo notNil ifTrue:[ |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1351 |
methods := methodsInfo collect:[:i | i className] |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1352 |
] ifFalse:[ |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1353 |
methods := properties at:#methods ifAbsent:nil |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1354 |
] |
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1355 |
]. |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1356 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1357 |
methods isNil ifTrue:[ |
5327
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1358 |
methods := OrderedCollection new. |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1359 |
Smalltalk allClassesDo:[:aClass | |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1360 |
(true "aClass owningClass isNil" |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1361 |
and:[aClass isMeta not |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1362 |
and:[aClass package ~= packageName |
10175 | 1363 |
and:[aClass isRealNameSpace not]]]) ifTrue:[ |
5327
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1364 |
|
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1365 |
aClass methodDictionary keysAndValuesDo:[:sel :mthd | |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1366 |
mthd package = packageName ifTrue:[ |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1367 |
methods add:(MethodInfo new |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1368 |
className:aClass name; |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1369 |
methodName:sel; |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1370 |
yourself) |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1371 |
]. |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1372 |
]. |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1373 |
aClass class methodDictionary keysAndValuesDo:[:sel :mthd | |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1374 |
mthd package = packageName ifTrue:[ |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1375 |
methods add:(MethodInfo new |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1376 |
className:(aClass name , ' class'); |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1377 |
methodName:sel; |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1378 |
yourself) |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1379 |
]. |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1380 |
] |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1381 |
] |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1382 |
]. |
5e5602d156fa
#isNamespace renamed to #isNameSpace
Claus Gittinger <cg@exept.de>
parents:
5314
diff
changeset
|
1383 |
methods isEmpty ifTrue:[^ #()]. |
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1384 |
]. |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1385 |
^ methods |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1386 |
|
10175 | 1387 |
"Modified: / 10-11-2006 / 17:12:28 / cg" |
2 | 1388 |
! ! |
1389 |
||
617 | 1390 |
!Project methodsFor:'views'! |
1391 |
||
1392 |
addView:aView |
|
2164
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
1393 |
"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
|
1394 |
|
617 | 1395 |
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
|
1396 |
|
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
1397 |
"Modified: 14.2.1997 / 15:36:51 / cg" |
617 | 1398 |
! |
1399 |
||
1400 |
destroyViews |
|
1401 |
"destroy all views of this project" |
|
1402 |
||
1403 |
views notNil ifTrue:[ |
|
1404 |
views do:[:aView | |
|
1405 |
aView notNil ifTrue:[aView destroy] |
|
1406 |
] |
|
1407 |
]. |
|
1408 |
! |
|
1409 |
||
1410 |
hideViews |
|
1411 |
"hide all views of this project" |
|
1412 |
||
1413 |
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
|
1414 |
views do:[:aView | |
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1415 |
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
|
1416 |
] |
617 | 1417 |
]. |
1332
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
1418 |
|
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
1419 |
"Modified: 3.5.1996 / 23:48:51 / stefan" |
617 | 1420 |
! |
1421 |
||
1422 |
removeView:aView |
|
2164
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
1423 |
"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
|
1424 |
|
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1425 |
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
|
1426 |
views remove:aView ifAbsent:nil |
3996
3183ccccabaa
more support for projectBrowser
Claus Gittinger <cg@exept.de>
parents:
3974
diff
changeset
|
1427 |
] |
2164
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
1428 |
|
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
1429 |
"Modified: 14.2.1997 / 15:37:20 / cg" |
617 | 1430 |
! |
1431 |
||
1432 |
showViews |
|
2164
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
1433 |
"show all views of this project" |
063b0227aeda
use #remap instead of #map to show views
Claus Gittinger <cg@exept.de>
parents:
2056
diff
changeset
|
1434 |
|
617 | 1435 |
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
|
1436 |
views do:[:aView | |
7825b9141f01
changes to allow compilation under win32 (does not like strings beginning
Claus Gittinger <cg@exept.de>
parents:
4813
diff
changeset
|
1437 |
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
|
1438 |
] |
617 | 1439 |
]. |
1332
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
1440 |
|
a1d72522f5fc
Rename unrealize-->unmap, rerealize->map.
Stefan Vogel <sv@exept.de>
parents:
1298
diff
changeset
|
1441 |
"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
|
1442 |
"Modified: 14.2.1997 / 15:38:47 / cg" |
617 | 1443 |
! ! |
1444 |
||
5734 | 1445 |
!Project::ClassInfo methodsFor:'accessing'! |
1446 |
||
1447 |
classFileName |
|
1448 |
"return the value of the instance variable 'classFileName' (automatically generated)" |
|
1449 |
||
1450 |
^ classFileName |
|
1451 |
! |
|
1452 |
||
1453 |
classFileName:something |
|
1454 |
"set the value of the instance variable 'classFileName' (automatically generated)" |
|
1455 |
||
1456 |
classFileName := something. |
|
1457 |
! |
|
1458 |
||
1459 |
className |
|
1460 |
"return the value of the instance variable 'className' (automatically generated)" |
|
1461 |
||
1462 |
^ className |
|
1463 |
! |
|
1464 |
||
1465 |
className:something |
|
1466 |
"set the value of the instance variable 'className' (automatically generated)" |
|
1467 |
||
1468 |
className := something. |
|
1469 |
! |
|
1470 |
||
1471 |
conditionForInclusion |
|
1472 |
"return the value of the instance variable 'conditionForInclusion' (automatically generated)" |
|
1473 |
||
1474 |
^ conditionForInclusion |
|
1475 |
! |
|
1476 |
||
1477 |
conditionForInclusion:something |
|
1478 |
"set the value of the instance variable 'conditionForInclusion' (automatically generated)" |
|
1479 |
||
1480 |
conditionForInclusion := something. |
|
1481 |
! ! |
|
1482 |
||
1483 |
!Project::ClassInfo methodsFor:'printing & storing'! |
|
1484 |
||
15647
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1485 |
displayOn:aGCOrStream |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1486 |
|
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1487 |
"/ what a kludge - Dolphin and Squeak mean: printOn: a stream; |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1488 |
"/ ST/X (and some old ST80's) mean: draw-yourself on a GC. |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1489 |
(aGCOrStream isStream) ifFalse:[ |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1490 |
^ super displayOn:aGCOrStream |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1491 |
]. |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1492 |
|
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1493 |
aGCOrStream nextPutAll:'ClassInfo: '. |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1494 |
className printOn:aGCOrStream. |
5734 | 1495 |
! ! |
1496 |
||
1497 |
!Project::ClassInfo methodsFor:'queries'! |
|
1498 |
||
1499 |
theClass |
|
1500 |
|cls| |
|
1501 |
||
1502 |
cls := Smalltalk classNamed:className. |
|
1503 |
cls isNil ifTrue:[ ^ nil]. |
|
1504 |
^ cls |
|
1505 |
||
1506 |
"Created: / 26.9.1999 / 13:39:00 / cg" |
|
1507 |
! ! |
|
1508 |
||
4743 | 1509 |
!Project::MethodInfo methodsFor:'accessing'! |
1510 |
||
1511 |
className |
|
1512 |
"return the value of the instance variable 'className' (automatically generated)" |
|
1513 |
||
5734 | 1514 |
^ className |
1515 |
! |
|
4743 | 1516 |
|
1517 |
className:something |
|
1518 |
"set the value of the instance variable 'className' (automatically generated)" |
|
1519 |
||
5734 | 1520 |
className := something. |
1521 |
! |
|
4743 | 1522 |
|
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1523 |
conditionForInclusion |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1524 |
"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
|
1525 |
|
5734 | 1526 |
^ conditionForInclusion |
1527 |
! |
|
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1528 |
|
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1529 |
conditionForInclusion:something |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1530 |
"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
|
1531 |
|
5734 | 1532 |
conditionForInclusion := something. |
1533 |
! |
|
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1534 |
|
4743 | 1535 |
fileName |
1536 |
"return the value of the instance variable 'fileName' (automatically generated)" |
|
1537 |
||
5734 | 1538 |
^ fileName |
1539 |
! |
|
4743 | 1540 |
|
1541 |
fileName:something |
|
1542 |
"set the value of the instance variable 'fileName' (automatically generated)" |
|
1543 |
||
5734 | 1544 |
fileName := something. |
1545 |
! |
|
4743 | 1546 |
|
1547 |
methodName |
|
1548 |
"return the value of the instance variable 'methodName' (automatically generated)" |
|
1549 |
||
5734 | 1550 |
^ methodName |
1551 |
! |
|
4743 | 1552 |
|
1553 |
methodName:something |
|
1554 |
"set the value of the instance variable 'methodName' (automatically generated)" |
|
1555 |
||
5734 | 1556 |
methodName := something. |
10082 | 1557 |
! |
1558 |
||
1559 |
setupFromMethod:aMethod |
|
1560 |
|who| |
|
1561 |
||
1562 |
who := aMethod who. |
|
1563 |
className := who methodClass name. |
|
1564 |
methodName := who methodSelector. |
|
1565 |
fileName := aMethod sourceFilename. |
|
1566 |
||
1567 |
"Created: / 12-10-2006 / 20:13:32 / cg" |
|
5734 | 1568 |
! ! |
4743 | 1569 |
|
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1570 |
!Project::MethodInfo methodsFor:'printing & storing'! |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1571 |
|
15647
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1572 |
displayOn:aGCOrStream |
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1573 |
|
15647
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1574 |
"/ what a kludge - Dolphin and Squeak mean: printOn: a stream; |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1575 |
"/ ST/X (and some old ST80's) mean: draw-yourself on a GC. |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1576 |
(aGCOrStream isStream) ifFalse:[ |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1577 |
^ super displayOn:aGCOrStream |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1578 |
]. |
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 |
aGCOrStream nextPutAll:'MethodInfo: '. |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1581 |
className printOn:aGCOrStream. |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1582 |
aGCOrStream nextPutAll:'>>'. |
44e37a6f48ef
Refactor to implement #displayOn:aGcOrStream instead of #displayString
Stefan Vogel <sv@exept.de>
parents:
15224
diff
changeset
|
1583 |
methodName printOn:aGCOrStream |
4755
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1584 |
! ! |
2d866f87d1da
preps to keep track of methods
Claus Gittinger <cg@exept.de>
parents:
4747
diff
changeset
|
1585 |
|
4791 | 1586 |
!Project::MethodInfo methodsFor:'queries'! |
1587 |
||
1588 |
method |
|
11597 | 1589 |
<resource: #obsolete> |
4819 | 1590 |
self obsoleteMethodWarning. |
1591 |
^ self theMethod. |
|
1592 |
||
1593 |
"Modified: / 26.9.1999 / 13:40:16 / cg" |
|
1594 |
! |
|
1595 |
||
1596 |
theMethod |
|
4791 | 1597 |
|cls| |
1598 |
||
1599 |
cls := Smalltalk classNamed:className. |
|
1600 |
cls isNil ifTrue:[ ^ nil]. |
|
1601 |
^ cls compiledMethodAt:methodName asSymbol. |
|
4819 | 1602 |
|
1603 |
"Created: / 26.9.1999 / 13:39:07 / cg" |
|
1604 |
! ! |
|
1605 |
||
1854
b44227fd2b3d
use new Method>>who interface
Claus Gittinger <cg@exept.de>
parents:
1636
diff
changeset
|
1606 |
!Project class methodsFor:'documentation'! |
630 | 1607 |
|
1608 |
version |
|
18735 | 1609 |
^ '$Header$' |
12211 | 1610 |
! |
1611 |
||
1612 |
version_CVS |
|
18735 | 1613 |
^ '$Header$' |
1298 | 1614 |
! ! |
7090
7afcbe4a5264
Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents:
6746
diff
changeset
|
1615 |
|
15029 | 1616 |
|
1 | 1617 |
Project initialize! |