packages/PackageHandler.st
author Claus Gittinger <cg@exept.de>
Thu, 14 Jun 2018 17:02:40 +0200
changeset 4329 f1a534377d1e
parent 1445 b8cc2792ab97
child 3011 1997ff6e7e55
permissions -rw-r--r--
#UI_ENHANCEMENT by cg class: SourceCodeManagerUtilities class definition changed: #checkoutClass:askForRevision:askForMerge:askForConfirmation: optout the "only version methods are different..." dialog

"
 COPYRIGHT (c) 2003 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"

"{ Package: 'stx:libbasic3' }"

"{ NameSpace: Packages }"

Object subclass:#PackageHandler
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Package-Handlers'
!

!PackageHandler class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 2003 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
! !

!PackageHandler class methodsFor:'instance creation'!

forFilename:aFilename
    (self isStxFile:aFilename) ifTrue:[
        ^ StxPackageFileHandler forFilename:aFilename
    ].


    self error:'Unknown file format'
!

forPackage:aPackage

    (self isStxPackage:aPackage) ifTrue:[
        ^ StxPackageFileHandler forPackage:aPackage
    ].

    self error:'Package not known...'
!

openStxPackageFormat:aFormat
    ^ (StxPackageFileHandler) openStxPackageFormat:aFormat
! !

!PackageHandler class methodsFor:'globals'!

smalltalkPackageManager
    ^ PackageManager smalltalkPackageManager  
! !

!PackageHandler class methodsFor:'queries'!

isStxFile:aFilename
    ^ true
!

isStxPackage:aPackage
    ^ true
! !

!PackageHandler class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/libbasic3/packages/PackageHandler.st,v 1.3 2006-01-10 09:32:12 cg Exp $'
! !