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 |
|
1226
|
13 |
"{ Package: 'stx:libbasic3' }"
|
|
14 |
|
|
15 |
"{ NameSpace: Packages }"
|
|
16 |
|
|
17 |
Object subclass:#AbstractPackage
|
|
18 |
instanceVariableNames:'name category'
|
|
19 |
classVariableNames:''
|
|
20 |
poolDictionaries:''
|
|
21 |
category:'Package'
|
|
22 |
!
|
|
23 |
|
1443
|
24 |
!AbstractPackage 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 |
! !
|
1226
|
39 |
|
1268
|
40 |
!AbstractPackage class methodsFor:'default'!
|
|
41 |
|
|
42 |
defaultCategoryName
|
|
43 |
^ #'__NoName__'
|
|
44 |
! !
|
|
45 |
|
1226
|
46 |
!AbstractPackage methodsFor:'accessing'!
|
|
47 |
|
|
48 |
category
|
1268
|
49 |
"return the value of the instance variable 'category'.
|
|
50 |
Is initialized by the initialize method"
|
1226
|
51 |
^ category
|
|
52 |
!
|
|
53 |
|
|
54 |
category:something
|
|
55 |
"set the value of the instance variable 'category' (automatically generated)"
|
|
56 |
|
|
57 |
category := something.
|
|
58 |
!
|
|
59 |
|
|
60 |
name
|
|
61 |
"return the value of the instance variable 'name' (automatically generated)"
|
|
62 |
|
|
63 |
^ name
|
|
64 |
!
|
|
65 |
|
1268
|
66 |
name:aSymbol
|
1226
|
67 |
"set the value of the instance variable 'name' (automatically generated)"
|
1268
|
68 |
self assert:(aSymbol isSymbol). "needed for quick comparison. NO STRINGS!!"
|
|
69 |
name := aSymbol.
|
1226
|
70 |
! !
|
|
71 |
|
|
72 |
!AbstractPackage methodsFor:'initialization'!
|
|
73 |
|
|
74 |
initialize
|
1268
|
75 |
category := self class defaultCategoryName.
|
1226
|
76 |
! !
|
|
77 |
|
|
78 |
!AbstractPackage methodsFor:'installation / deinstallation'!
|
|
79 |
|
|
80 |
install
|
|
81 |
self subclassResponsibility
|
|
82 |
!
|
|
83 |
|
|
84 |
uninstall
|
|
85 |
self subclassResponsibility
|
|
86 |
! !
|
|
87 |
|
1268
|
88 |
!AbstractPackage methodsFor:'queries'!
|
|
89 |
|
|
90 |
isInCategoryNamed:aName
|
|
91 |
^ category = aName
|
|
92 |
! !
|
|
93 |
|
1226
|
94 |
!AbstractPackage methodsFor:'queries-type'!
|
|
95 |
|
|
96 |
isDolphinPackage
|
|
97 |
^ false
|
|
98 |
!
|
|
99 |
|
|
100 |
isStxPackage
|
|
101 |
^ false
|
|
102 |
! !
|
|
103 |
|
|
104 |
!AbstractPackage methodsFor:'saving'!
|
|
105 |
|
|
106 |
save
|
|
107 |
self subclassResponsibility
|
|
108 |
!
|
|
109 |
|
|
110 |
saveAs:aFilename
|
|
111 |
self subclassResponsibility
|
|
112 |
! !
|
|
113 |
|
|
114 |
!AbstractPackage class methodsFor:'documentation'!
|
|
115 |
|
|
116 |
version
|
1443
|
117 |
^ '$Header: /cvs/stx/stx/libbasic3/packages/AbstractPackage.st,v 1.3 2006-01-10 09:25:15 cg Exp $'
|
1226
|
118 |
! !
|