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