author | Patrik Svestka <patrik.svestka@gmail.com> |
Wed, 17 Feb 2021 15:24:09 +0100 | |
branch | jv |
changeset 4568 | 524471ef6575 |
parent 3011 | 1997ff6e7e55 |
permissions | -rw-r--r-- |
1445 | 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 |
||
1231 | 13 |
"{ Package: 'stx:libbasic3' }" |
14 |
||
15 |
"{ NameSpace: Packages }" |
|
16 |
||
17 |
Object subclass:#PackageHandler |
|
18 |
instanceVariableNames:'' |
|
19 |
classVariableNames:'' |
|
20 |
poolDictionaries:'' |
|
21 |
category:'Package-Handlers' |
|
22 |
! |
|
23 |
||
1445 | 24 |
!PackageHandler 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 |
! ! |
|
1231 | 39 |
|
40 |
!PackageHandler class methodsFor:'instance creation'! |
|
41 |
||
42 |
forFilename:aFilename |
|
43 |
(self isStxFile:aFilename) ifTrue:[ |
|
1244 | 44 |
^ StxPackageFileHandler forFilename:aFilename |
1231 | 45 |
]. |
46 |
||
47 |
||
1244 | 48 |
self error:'Unknown file format' |
1231 | 49 |
! |
50 |
||
51 |
forPackage:aPackage |
|
52 |
||
53 |
(self isStxPackage:aPackage) ifTrue:[ |
|
54 |
^ StxPackageFileHandler forPackage:aPackage |
|
55 |
]. |
|
56 |
||
57 |
self error:'Package not known...' |
|
58 |
! |
|
59 |
||
60 |
openStxPackageFormat:aFormat |
|
61 |
^ (StxPackageFileHandler) openStxPackageFormat:aFormat |
|
62 |
! ! |
|
63 |
||
64 |
!PackageHandler class methodsFor:'globals'! |
|
65 |
||
66 |
smalltalkPackageManager |
|
67 |
^ PackageManager smalltalkPackageManager |
|
68 |
! ! |
|
69 |
||
70 |
!PackageHandler class methodsFor:'queries'! |
|
71 |
||
72 |
isStxFile:aFilename |
|
73 |
^ true |
|
74 |
! |
|
75 |
||
76 |
isStxPackage:aPackage |
|
77 |
^ true |
|
78 |
! ! |
|
79 |
||
80 |
!PackageHandler class methodsFor:'documentation'! |
|
81 |
||
82 |
version |
|
3011
1997ff6e7e55
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1445
diff
changeset
|
83 |
^ '$Header: /var/local/cvs/stx/libbasic3/packages/PackageHandler.st,v 1.3 2006-01-10 09:32:12 cg Exp $' |
1231 | 84 |
! ! |