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