author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Sun, 29 Jan 2012 12:51:41 +0000 | |
branch | jv |
changeset 3011 | 1997ff6e7e55 |
parent 1443 | 6dfdf336b472 |
permissions | -rw-r--r-- |
1443 | 1 |
" |
2 |
COPYRIGHT (c) 2003 by eXept Software AG |
|
3 |
All Rights Reserved |
|
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 |
" |
|
12 |
||
1227 | 13 |
"{ Package: 'stx:libbasic3' }" |
14 |
||
15 |
"{ NameSpace: Packages }" |
|
16 |
||
17 |
ApplicationModel subclass:#AbstractPackageBrowser |
|
18 |
instanceVariableNames:'applicationAspects' |
|
19 |
classVariableNames:'' |
|
20 |
poolDictionaries:'' |
|
21 |
category:'Package-Application' |
|
22 |
! |
|
23 |
||
1443 | 24 |
!AbstractPackageBrowser class methodsFor:'documentation'! |
25 |
||
26 |
copyright |
|
27 |
" |
|
28 |
COPYRIGHT (c) 2003 by eXept Software AG |
|
29 |
All Rights Reserved |
|
30 |
||
31 |
This software is furnished under a license and may be used |
|
32 |
only in accordance with the terms of that license and with the |
|
33 |
inclusion of the above copyright notice. This software may not |
|
34 |
be provided or otherwise made available to, or used by, any |
|
35 |
other person. No title to or ownership of the software is |
|
36 |
hereby transferred. |
|
37 |
" |
|
38 |
! ! |
|
1227 | 39 |
|
40 |
!AbstractPackageBrowser methodsFor:'accessing'! |
|
41 |
||
42 |
applicationAspects |
|
43 |
applicationAspects ifNil:[ |
|
44 |
applicationAspects := Dictionary new |
|
45 |
]. |
|
46 |
^ applicationAspects |
|
47 |
! |
|
48 |
||
49 |
applicationAspects:something |
|
50 |
"set the value of the instance variable 'applicationAspects' (automatically generated)" |
|
51 |
||
52 |
applicationAspects := something. |
|
53 |
! |
|
54 |
||
55 |
declareDependents |
|
56 |
! |
|
57 |
||
58 |
masterApplication:aMasterApplication |
|
59 |
aMasterApplication ifNil:[ |
|
60 |
^ self. |
|
61 |
]. |
|
62 |
||
63 |
self applicationAspects: aMasterApplication applicationAspects. |
|
64 |
self declareDependents. |
|
65 |
^ super masterApplication:aMasterApplication. |
|
66 |
! |
|
67 |
||
68 |
packagesNamed:aCollectionOfPackageNamesOrSymbol |
|
69 |
|aCollectionOfPackageNames| |
|
70 |
aCollectionOfPackageNames := aCollectionOfPackageNamesOrSymbol. |
|
71 |
aCollectionOfPackageNames isSymbol ifTrue:[ |
|
72 |
aCollectionOfPackageNames := Array with:aCollectionOfPackageNamesOrSymbol. |
|
73 |
]. |
|
1268 | 74 |
[(aCollectionOfPackageNamesOrSymbol includes:nil)] whileTrue:[ |
75 |
aCollectionOfPackageNamesOrSymbol remove:nil |
|
76 |
]. |
|
77 |
||
1227 | 78 |
^ self packageManager packagesNamed:aCollectionOfPackageNames |
79 |
! |
|
80 |
||
81 |
packagesSelected |
|
82 |
^ self packagesSelectedHolder value |
|
1268 | 83 |
! |
84 |
||
85 |
undeclareDependents |
|
1227 | 86 |
! ! |
87 |
||
88 |
!AbstractPackageBrowser methodsFor:'accessing - shared'! |
|
89 |
||
90 |
applicationAspectsAt:anIdentifier ifAbsent:aBlock |
|
91 |
^ self applicationAspects at:anIdentifier ifAbsent:aBlock |
|
92 |
! |
|
93 |
||
94 |
applicationAspectsAt:aSymbol ifAbsentPut:anObject |
|
95 |
^ self applicationAspects at:aSymbol ifAbsentPut:anObject |
|
96 |
! |
|
97 |
||
98 |
applicationAspectsAt:anIdentifier put:anObject |
|
99 |
^ self applicationAspects at:anIdentifier put:anObject |
|
100 |
! |
|
101 |
||
102 |
packageManager |
|
103 |
^ self applicationAspectsAt:#packageManager ifAbsent:[nil] |
|
104 |
! |
|
105 |
||
106 |
packageManager:aPackageManager |
|
107 |
^ self applicationAspectsAt:#packageManager put:aPackageManager |
|
108 |
! |
|
109 |
||
110 |
packagesSelectedHolder |
|
111 |
^ self applicationAspectsAt:#packagesSelectedHolder ifAbsent:[ValueHolder new] |
|
112 |
! |
|
113 |
||
114 |
packagesSelectedHolder:aPackageManager |
|
115 |
^ self applicationAspectsAt:#packagesSelectedHolder put:aPackageManager |
|
116 |
! ! |
|
117 |
||
118 |
!AbstractPackageBrowser class methodsFor:'documentation'! |
|
119 |
||
120 |
version |
|
3011
1997ff6e7e55
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1443
diff
changeset
|
121 |
^ '$Header: /var/local/cvs/stx/libbasic3/packages/AbstractPackageBrowser.st,v 1.3 2006-01-10 09:25:27 cg Exp $' |
1227 | 122 |
! ! |