packages/AbstractPackage.st
author Claus Gittinger <cg@exept.de>
Tue, 09 Jul 2019 15:21:52 +0200
changeset 4455 af2a675e0f32
parent 1443 6dfdf336b472
child 3011 1997ff6e7e55
permissions -rw-r--r--
#FEATURE by exept class: ProjectChecker class definition added: #skipCheckClasses: changed: #checkClasses #initialize
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1443
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
     1
"
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
     2
 COPYRIGHT (c) 2003 by eXept Software AG
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
     3
              All Rights Reserved
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
     4
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
     5
 This software is furnished under a license and may be used
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
     6
 only in accordance with the terms of that license and with the
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
     8
 be provided or otherwise made available to, or used by, any
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
     9
 other person.  No title to or ownership of the software is
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    10
 hereby transferred.
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    11
"
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    12
1226
adff4760750f initial checkin
james
parents:
diff changeset
    13
"{ Package: 'stx:libbasic3' }"
adff4760750f initial checkin
james
parents:
diff changeset
    14
adff4760750f initial checkin
james
parents:
diff changeset
    15
"{ NameSpace: Packages }"
adff4760750f initial checkin
james
parents:
diff changeset
    16
adff4760750f initial checkin
james
parents:
diff changeset
    17
Object subclass:#AbstractPackage
adff4760750f initial checkin
james
parents:
diff changeset
    18
	instanceVariableNames:'name category'
adff4760750f initial checkin
james
parents:
diff changeset
    19
	classVariableNames:''
adff4760750f initial checkin
james
parents:
diff changeset
    20
	poolDictionaries:''
adff4760750f initial checkin
james
parents:
diff changeset
    21
	category:'Package'
adff4760750f initial checkin
james
parents:
diff changeset
    22
!
adff4760750f initial checkin
james
parents:
diff changeset
    23
1443
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    24
!AbstractPackage class methodsFor:'documentation'!
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    25
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    26
copyright
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    27
"
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    28
 COPYRIGHT (c) 2003 by eXept Software AG
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    29
              All Rights Reserved
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    30
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    31
 This software is furnished under a license and may be used
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    32
 only in accordance with the terms of that license and with the
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    33
 inclusion of the above copyright notice.   This software may not
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    34
 be provided or otherwise made available to, or used by, any
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    35
 other person.  No title to or ownership of the software is
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    36
 hereby transferred.
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    37
"
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
    38
! !
1226
adff4760750f initial checkin
james
parents:
diff changeset
    39
1268
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    40
!AbstractPackage class methodsFor:'default'!
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    41
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    42
defaultCategoryName
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    43
    ^ #'__NoName__'  
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    44
! !
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    45
1226
adff4760750f initial checkin
james
parents:
diff changeset
    46
!AbstractPackage methodsFor:'accessing'!
adff4760750f initial checkin
james
parents:
diff changeset
    47
adff4760750f initial checkin
james
parents:
diff changeset
    48
category
1268
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    49
    "return the value of the instance variable 'category'. 
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    50
    Is initialized by the initialize method"
1226
adff4760750f initial checkin
james
parents:
diff changeset
    51
    ^ category
adff4760750f initial checkin
james
parents:
diff changeset
    52
!
adff4760750f initial checkin
james
parents:
diff changeset
    53
adff4760750f initial checkin
james
parents:
diff changeset
    54
category:something
adff4760750f initial checkin
james
parents:
diff changeset
    55
    "set the value of the instance variable 'category' (automatically generated)"
adff4760750f initial checkin
james
parents:
diff changeset
    56
adff4760750f initial checkin
james
parents:
diff changeset
    57
    category := something.
adff4760750f initial checkin
james
parents:
diff changeset
    58
!
adff4760750f initial checkin
james
parents:
diff changeset
    59
adff4760750f initial checkin
james
parents:
diff changeset
    60
name
adff4760750f initial checkin
james
parents:
diff changeset
    61
    "return the value of the instance variable 'name' (automatically generated)"
adff4760750f initial checkin
james
parents:
diff changeset
    62
adff4760750f initial checkin
james
parents:
diff changeset
    63
    ^ name
adff4760750f initial checkin
james
parents:
diff changeset
    64
!
adff4760750f initial checkin
james
parents:
diff changeset
    65
1268
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    66
name:aSymbol
1226
adff4760750f initial checkin
james
parents:
diff changeset
    67
    "set the value of the instance variable 'name' (automatically generated)"
1268
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    68
    self assert:(aSymbol isSymbol).  "needed for quick comparison. NO STRINGS!!"
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    69
    name := aSymbol.
1226
adff4760750f initial checkin
james
parents:
diff changeset
    70
! !
adff4760750f initial checkin
james
parents:
diff changeset
    71
adff4760750f initial checkin
james
parents:
diff changeset
    72
!AbstractPackage methodsFor:'initialization'!
adff4760750f initial checkin
james
parents:
diff changeset
    73
adff4760750f initial checkin
james
parents:
diff changeset
    74
initialize
1268
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    75
    category := self class defaultCategoryName.
1226
adff4760750f initial checkin
james
parents:
diff changeset
    76
! !
adff4760750f initial checkin
james
parents:
diff changeset
    77
adff4760750f initial checkin
james
parents:
diff changeset
    78
!AbstractPackage methodsFor:'installation / deinstallation'!
adff4760750f initial checkin
james
parents:
diff changeset
    79
adff4760750f initial checkin
james
parents:
diff changeset
    80
install
adff4760750f initial checkin
james
parents:
diff changeset
    81
    self subclassResponsibility
adff4760750f initial checkin
james
parents:
diff changeset
    82
!
adff4760750f initial checkin
james
parents:
diff changeset
    83
adff4760750f initial checkin
james
parents:
diff changeset
    84
uninstall
adff4760750f initial checkin
james
parents:
diff changeset
    85
    self subclassResponsibility
adff4760750f initial checkin
james
parents:
diff changeset
    86
! !
adff4760750f initial checkin
james
parents:
diff changeset
    87
1268
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    88
!AbstractPackage methodsFor:'queries'!
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    89
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    90
isInCategoryNamed:aName 
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    91
    ^ category = aName
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    92
! !
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1226
diff changeset
    93
1226
adff4760750f initial checkin
james
parents:
diff changeset
    94
!AbstractPackage methodsFor:'queries-type'!
adff4760750f initial checkin
james
parents:
diff changeset
    95
adff4760750f initial checkin
james
parents:
diff changeset
    96
isDolphinPackage
adff4760750f initial checkin
james
parents:
diff changeset
    97
    ^ false
adff4760750f initial checkin
james
parents:
diff changeset
    98
!
adff4760750f initial checkin
james
parents:
diff changeset
    99
adff4760750f initial checkin
james
parents:
diff changeset
   100
isStxPackage
adff4760750f initial checkin
james
parents:
diff changeset
   101
    ^ false
adff4760750f initial checkin
james
parents:
diff changeset
   102
! !
adff4760750f initial checkin
james
parents:
diff changeset
   103
adff4760750f initial checkin
james
parents:
diff changeset
   104
!AbstractPackage methodsFor:'saving'!
adff4760750f initial checkin
james
parents:
diff changeset
   105
adff4760750f initial checkin
james
parents:
diff changeset
   106
save
adff4760750f initial checkin
james
parents:
diff changeset
   107
    self subclassResponsibility
adff4760750f initial checkin
james
parents:
diff changeset
   108
!
adff4760750f initial checkin
james
parents:
diff changeset
   109
adff4760750f initial checkin
james
parents:
diff changeset
   110
saveAs:aFilename
adff4760750f initial checkin
james
parents:
diff changeset
   111
    self subclassResponsibility
adff4760750f initial checkin
james
parents:
diff changeset
   112
! !
adff4760750f initial checkin
james
parents:
diff changeset
   113
adff4760750f initial checkin
james
parents:
diff changeset
   114
!AbstractPackage class methodsFor:'documentation'!
adff4760750f initial checkin
james
parents:
diff changeset
   115
adff4760750f initial checkin
james
parents:
diff changeset
   116
version
1443
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1268
diff changeset
   117
    ^ '$Header: /cvs/stx/stx/libbasic3/packages/AbstractPackage.st,v 1.3 2006-01-10 09:25:15 cg Exp $'
1226
adff4760750f initial checkin
james
parents:
diff changeset
   118
! !