Tools__StoreProjectBrowser.st
author Stefan Vogel <sv@exept.de>
Fri, 17 May 2019 17:11:44 +0200
changeset 18767 0478d93cdb75
parent 8747 e6a0a25f6f2d
child 12123 4bde08cebd48
permissions -rw-r--r--
#REFACTORING by stefan Sanitize BlockValues class: Tools::Inspector2 changed: #toolbarBackgroundHolder
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"{ Package: 'stx:libtool' }"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
"{ NameSpace: Tools }"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
ApplicationModel subclass:#StoreProjectBrowser
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
     6
	instanceVariableNames:'dbInfo connection commentTextHolder packagesList
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
     7
		selectedVersionHolder versionsList selectedPackageHolder
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
     8
		packagesFilterHolder infoLabelHolder selectedBundleOrPackage
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
     9
		selectedVersion'
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
	classVariableNames:''
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
	poolDictionaries:''
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
	category:'System-SourceCodeManagement'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    15
Object subclass:#Pundle
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    16
	instanceVariableNames:'name'
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    17
	classVariableNames:''
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    18
	poolDictionaries:''
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    19
	privateIn:StoreProjectBrowser
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    20
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    21
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    22
StoreProjectBrowser::Pundle subclass:#Package
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    23
	instanceVariableNames:''
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    24
	classVariableNames:''
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    25
	poolDictionaries:''
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    26
	privateIn:StoreProjectBrowser
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    27
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    28
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    29
StoreProjectBrowser::Pundle subclass:#Bundle
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    30
	instanceVariableNames:''
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    31
	classVariableNames:''
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    32
	poolDictionaries:''
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    33
	privateIn:StoreProjectBrowser
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    34
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    35
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    36
Object subclass:#PundleVersion
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
    37
	instanceVariableNames:'id pundle version user timestamp comment timestampInt commentId
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    38
		isBundle blessingLevel'
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    39
	classVariableNames:''
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    40
	poolDictionaries:''
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    41
	privateIn:StoreProjectBrowser
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    42
!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    43
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    44
Object subclass:#StoreProjectChangeSetReader
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    45
	instanceVariableNames:'browser dbConnection bundleOrPackage version changeSet'
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    46
	classVariableNames:''
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    47
	poolDictionaries:''
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    48
	privateIn:StoreProjectBrowser
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    49
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
    50
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
!StoreProjectBrowser class methodsFor:'documentation'!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
documentation
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
"
7011
c7eb68743e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7010
diff changeset
    55
    An experimental first attempt to access a Store database.
c7eb68743e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7010
diff changeset
    56
    As I dont have (and dont want) access to a VW implementation for reference,
c7eb68743e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7010
diff changeset
    57
    the layout and contents of the tables has been guessed.
c7eb68743e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7010
diff changeset
    58
    The goal is to be able to read public domain code from a store DB.
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
examples
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
  Starting the application:
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
                                                                [exBegin]
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
    Tools::StoreProjectBrowser open
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
                                                                [exEnd]
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
  more examples to be added:
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
                                                                [exBegin]
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
    ... add code fragment for 
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
    ... executable example here ...
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
                                                                [exEnd]
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
! !
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    78
!StoreProjectBrowser class methodsFor:'image specs'!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    79
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    80
bundleImage
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    81
    "This resource specification was automatically generated
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    82
     by the ImageEditor of ST/X."
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    83
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    84
    "Do not manually edit this!! If it is corrupted,
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    85
     the ImageEditor may not be able to read the specification."
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    86
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    87
    "
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    88
     self bundleImage inspect
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    89
     ImageEditor openOnClass:self andSelector:#bundleImage
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    90
     Icon flushCachedIcons
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    91
    "
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    92
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    93
    <resource: #image>
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    94
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    95
    ^Icon
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    96
        constantNamed:'Tools::StoreProjectBrowser class bundleImage'
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    97
        ifAbsentPut:[(Depth8Image new) width: 17; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    98
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BP$IBP$IBP$IBP$IBP@@@@@INS$9A!!\$BQ$YFRDI@@@@@@$9KSX?MP4IFP@*K0$@@@@@BS$C
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
    99
E@PIEP$YJ#0VBP@@@@@IA!!PDBQ$IBSL<LP8I@@@@@@$WI@4IFQ$3N \XI $@@@@@BS SGP$@J!!DGL!!@^BP@@@@@IAQ,%BRDIBTMDN3\I@@@@@@%AH2,ABQHI
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   100
JS,(K $@@@@@BT@4OP(Z@ $*LB@''BP@@@@@IJ00\KC8KBRH_C4HI@@@@@@$IBP$IBP$IBP$IBP$@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   101
@@@b') ; colorMapFromArray:#[229 232 255 221 221 160 202 203 179 252 253 186 222 223 196 240 241 213 247 248 218 219 223 255 255 255 255 0 0 0 216 216 156 200 201 178 209 210 185 219 220 194 192 194 214 178 181 214 209 214 255 224 226 255 212 211 153 240 241 177 249 249 184 217 217 192 194 196 214 245 246 217 214 219 255 241 243 255 212 212 153 235 236 173 206 207 183 216 217 192 186 189 214 181 184 214 194 200 255 227 229 255 199 204 255 231 231 169 245 245 181 214 214 190 189 192 214 178 182 214 199 205 255 231 233 255 227 230 255 226 225 164 204 205 181 255 255 189 180 184 214 196 198 214 198 205 255 219 222 255 215 218 255 240 241 255 225 226 164 245 245 180 253 252 187 183 187 214 243 244 215 249 249 219 223 226 255 204 209 255 223 227 255 221 220 160 202 202 179 250 249 184 235 237 208 238 239 211 176 180 214 215 219 255 210 214 255]; mask:((Depth1Image new) width: 17; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@A?@@A?O?9?O?9?O?9?O?9?O?9?O?9?O?9?O?9?O?9?O?9?O?9?O?9?@@A?@@A?') ; yourself); yourself]
8739
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   102
!
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   103
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   104
packageImage
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   105
    "This resource specification was automatically generated
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   106
     by the ImageEditor of ST/X."
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   107
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   108
    "Do not manually edit this!! If it is corrupted,
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   109
     the ImageEditor may not be able to read the specification."
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   110
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   111
    "
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   112
     self packageImage inspect
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   113
     ImageEditor openOnClass:self andSelector:#packageImage
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   114
     Icon flushCachedIcons
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   115
    "
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   116
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   117
    <resource: #image>
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   118
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   119
    ^Icon
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   120
        constantNamed:'Tools::StoreProjectBrowser class packageImage'
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   121
        ifAbsentPut:[(Depth8Image new) width: 17; height: 16; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   122
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BL#H2L#H2L#@@@@@@@@@@@#ECPRHB0CDQ #@@@@@@@@H20,KB0,KB0XH"L@@@@@@BLT
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   123
A@,''KCLJG0T)H0@@@@@#K!!PTEB TEAP[AR<#@@@@@BLYE18%GQ@IJ2$ECBL@@@@@H24ALPD]@PDHMPTZH0@@@@@#I"P$IA4OIAXSARL@@@@@@BL2@B(0GP\N
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   124
A2D#@@@@@@@@H0H\M!!T]CPX6H0@@@@@@@@@@H2L#H2L#H2L@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   125
@@@b') ; colorMapFromArray:#[185 185 131 197 197 141 211 212 153 238 239 175 253 253 187 109 109 109 180 180 127 184 185 132 197 198 141 202 203 146 234 234 172 250 249 185 155 155 108 179 180 128 184 185 131 191 191 137 203 202 146 235 235 171 250 250 185 154 155 109 255 255 255 179 179 128 191 190 136 203 202 145 232 232 170 249 249 184 149 149 105 173 172 122 180 179 128 136 136 136 202 202 146 231 231 169 247 247 182 149 150 104 172 172 122 0 0 0 191 191 136 202 202 145 230 231 169 246 246 181 194 194 194 167 167 118 185 185 132 203 203 145 165 165 165 241 241 177 255 255 189 160 160 113 185 184 131 197 197 142 221 221 160 238 238 175 253 253 188 161 161 113 180 180 128]; mask:((Depth1Image new) width: 17; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@A?@@A?@?1?A?9?C?9?G?9?O?9?O?9?O?9?O?1?O?!!?O?A?G>A?@@A?@@A?@@A?') ; yourself); yourself]
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   126
! !
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   127
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
!StoreProjectBrowser class methodsFor:'interface specs'!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
windowSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
    "This resource specification was automatically generated
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
     by the UIPainter of ST/X."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
    "Do not manually edit this!! If it is corrupted,
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
     the UIPainter may not be able to read the specification."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
    "
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
     UIPainter new openOnClass:Tools::StoreProjectBrowser andSelector:#windowSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
     Tools::StoreProjectBrowser new openInterface:#windowSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
     Tools::StoreProjectBrowser open
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
    "
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
    <resource: #canvas>
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
    ^ 
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
     #(FullSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
        name: windowSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
        window: 
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
       (WindowSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
          label: 'Tools::StoreProjectBrowser'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
          name: 'Tools::StoreProjectBrowser'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
          min: (Point 10 10)
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
          max: (Point 1024 768)
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
          bounds: (Rectangle 0 0 527 369)
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
          menu: mainMenu
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
        )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
        component: 
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
       (SpecCollection
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
          collection: (
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
           (VariableHorizontalPanelSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
              name: 'VariableHorizontalPanel1'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
              layout: (LayoutFrame 0 0 0 0 0 1 -30 1)
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
              snapMode: both
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
              handlePosition: right
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
              component: 
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
             (SpecCollection
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
                collection: (
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
                 (ViewSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
                    name: 'Box1'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
                    component: 
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
                   (SpecCollection
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
                      collection: (
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
                       (LabelSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
                          label: 'Bundles and Packages:'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
                          name: 'Label1'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
                          layout: (LayoutFrame 0 0 0 0 0 1 30 0)
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
                          translateLabel: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
                          adjust: left
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
                        )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
                       (InputFieldSpec
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   181
                          name: 'PackageFilterEntryField'
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
                          layout: (LayoutFrame 2 0 30 0 -2 1 58 0)
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
                          model: packagesFilterHolder
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
                          immediateAccept: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
                          acceptOnReturn: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
                          acceptOnTab: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
                          acceptOnLostFocus: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
                          acceptOnPointerLeave: false
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
                        )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
                       (SequenceViewSpec
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   191
                          name: 'PackageList'
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
                          layout: (LayoutFrame 0 0 60 0 0 1 0 1)
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
                          model: selectedPackageHolder
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   194
                          menu: packageListMenu
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
                          hasHorizontalScrollBar: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
                          hasVerticalScrollBar: true
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   197
                          valueChangeSelector: packageSelectionChanged
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
                          useIndex: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
                          sequenceList: packagesList
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
                        )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
                       )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
                     
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
                    )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
                  )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
                 (ViewSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
                    name: 'Box3'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
                    component: 
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   208
                   (SpecCollection
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
                      collection: (
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
                       (LabelSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
                          label: 'Versions:'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
                          name: 'Label2'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
                          layout: (LayoutFrame 0 0 0 0 0 1 30 0)
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
                          translateLabel: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
                          adjust: left
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
                        )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   217
                       (VariableVerticalPanelSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   218
                          name: 'VariableVerticalPanel1'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
                          layout: (LayoutFrame 0 0 30 0 0 1 0 1)
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   220
                          component: 
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   221
                         (SpecCollection
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   222
                            collection: (
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   223
                             (SequenceViewSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   224
                                name: 'VersionsList'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   225
                                model: selectedVersionHolder
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   226
                                menu: versionsListMenu
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
                                hasHorizontalScrollBar: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
                                hasVerticalScrollBar: true
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   229
                                valueChangeSelector: versionSelectionChanged
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
                                useIndex: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
                                sequenceList: versionsList
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
                              )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   233
                             (ViewSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   234
                                name: 'Box2'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   235
                                component: 
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
                               (SpecCollection
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   237
                                  collection: (
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
                                   (LabelSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
                                      label: 'Comment:'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
                                      name: 'Label3'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
                                      layout: (LayoutFrame 0 0 0 0 0 1 30 0)
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
                                      translateLabel: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
                                      adjust: left
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
                                    )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
                                   (TextEditorSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
                                      name: 'CommentTextEditor'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   247
                                      layout: (LayoutFrame 0 0 30 0 0 1 -1 1)
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   248
                                      model: commentTextHolder
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
                                      hasHorizontalScrollBar: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   250
                                      hasVerticalScrollBar: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
                                    )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
                                   )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
                                 
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
                                )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   255
                              )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
                             )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
                           
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   258
                          )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   259
                          handles: (Any 0.5 1.0)
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   260
                        )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   261
                       )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   262
                     
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
                    )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
                  )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
                 )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
               
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   267
              )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   268
              handles: (Any 0.5 1.0)
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
            )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
           (LabelSpec
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
              name: 'InfoLabel'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   272
              layout: (LayoutFrame 2 0 -28 1 -1 1 -1 1)
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   273
              level: -1
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   274
              translateLabel: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   275
              labelChannel: infoLabelHolder
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   276
              adjust: left
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   277
            )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   278
           )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   279
         
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   280
        )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   281
      )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
! !
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
!StoreProjectBrowser class methodsFor:'internationalization'!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   286
resourcePackName
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   287
    ^ 'StoreProjectBrowser'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   288
! !
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   289
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
!StoreProjectBrowser class methodsFor:'menu specs'!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
mainMenu
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   293
    "This resource specification was automatically generated
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
     by the MenuEditor of ST/X."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   295
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   296
    "Do not manually edit this!! If it is corrupted,
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   297
     the MenuEditor may not be able to read the specification."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   298
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
    "
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
     MenuEditor new openOnClass:Tools::StoreProjectBrowser andSelector:#mainMenu
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   301
     (Menu new fromLiteralArrayEncoding:(Tools::StoreProjectBrowser mainMenu)) startUp
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
    "
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
    <resource: #menu>
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
    ^ 
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   307
     #(Menu
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   308
        (
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   309
         (MenuItem
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   310
            label: 'File'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
            translateLabel: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
            submenu: 
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   313
           (Menu
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   314
              (
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
               (MenuItem
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
                  label: 'Fileout As...'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
                  itemValue: menuFileoutAs
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   318
                  translateLabel: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
                )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
               (MenuItem
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
                  label: '-'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
                )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
               (MenuItem
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
                  label: 'Update'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
                  itemValue: menuUpdate
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   326
                  translateLabel: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
                )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
               (MenuItem
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
                  label: '-'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   330
                )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   331
               (MenuItem
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   332
                  label: 'Exit'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
                  itemValue: closeRequest
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
                  translateLabel: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
                )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
               )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   337
              nil
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
              nil
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
            )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
          )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
         (MenuItem
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   342
            label: 'Connection'
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   343
            translateLabel: true
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   344
            submenu: 
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   345
           (Menu
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   346
              (
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   347
               (MenuItem
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   348
                  label: 'Connect'
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   349
                  itemValue: menuConnect
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   350
                  translateLabel: true
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   351
                  isVisible: notConnectedHolder
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   352
                )
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   353
               (MenuItem
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   354
                  label: 'Disconnect'
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   355
                  itemValue: menuDisconnect
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   356
                  translateLabel: true
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   357
                  isVisible: isConnectedHolder
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   358
                )
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   359
               )
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   360
              nil
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   361
              nil
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   362
            )
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   363
          )
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   364
         (MenuItem
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   365
            label: 'Help'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   366
            translateLabel: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   367
            startGroup: right
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   368
            submenu: 
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   369
           (Menu
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   370
              (
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   371
               (MenuItem
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   372
                  label: 'Documentation'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   373
                  itemValue: openDocumentation
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   374
                  translateLabel: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   375
                )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   376
               (MenuItem
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   377
                  label: '-'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   378
                )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   379
               (MenuItem
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   380
                  label: 'About this Application...'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   381
                  itemValue: openAboutThisApplication
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   382
                  translateLabel: true
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   383
                )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   384
               )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   385
              nil
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   386
              nil
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   387
            )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   388
          )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   389
         )
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   390
        nil
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   391
        nil
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   392
      )
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   393
!
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   394
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   395
packageListMenu
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   396
    "This resource specification was automatically generated
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   397
     by the MenuEditor of ST/X."
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   398
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   399
    "Do not manually edit this!! If it is corrupted,
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   400
     the MenuEditor may not be able to read the specification."
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   401
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   402
    "
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   403
     MenuEditor new openOnClass:Tools::StoreProjectBrowser andSelector:#packageListMenu
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   404
     (Menu new fromLiteralArrayEncoding:(Tools::StoreProjectBrowser packageListMenu)) startUp
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   405
    "
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   406
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   407
    <resource: #menu>
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   408
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   409
    ^ 
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   410
     #(Menu
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   411
        (
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   412
         (MenuItem
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   413
            label: 'Update'
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   414
            itemValue: menuUpdatePackageList
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   415
            translateLabel: true
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   416
          )
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   417
         )
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   418
        nil
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   419
        nil
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   420
      )
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   421
!
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   422
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   423
versionsListMenu
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   424
    "This resource specification was automatically generated
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   425
     by the MenuEditor of ST/X."
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   426
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   427
    "Do not manually edit this!! If it is corrupted,
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   428
     the MenuEditor may not be able to read the specification."
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   429
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   430
    "
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   431
     MenuEditor new openOnClass:Tools::StoreProjectBrowser andSelector:#versionsListMenu
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   432
     (Menu new fromLiteralArrayEncoding:(Tools::StoreProjectBrowser versionsListMenu)) startUp
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   433
    "
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   434
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   435
    <resource: #menu>
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   436
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   437
    ^ 
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   438
     #(Menu
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   439
        (
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   440
         (MenuItem
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   441
            label: 'Load'
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   442
            itemValue: versionsListMenuLoad
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   443
            translateLabel: true
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   444
          )
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   445
         (MenuItem
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   446
            label: 'Browse'
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   447
            itemValue: versionsListMenuBrowse
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   448
            translateLabel: true
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   449
          )
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   450
         (MenuItem
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   451
            label: '-'
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   452
          )
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   453
         (MenuItem
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   454
            label: 'Update'
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   455
            itemValue: versionsListMenuUpdate
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   456
            translateLabel: true
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   457
          )
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   458
         )
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   459
        nil
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   460
        nil
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   461
      )
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   462
! !
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   463
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   464
!StoreProjectBrowser class methodsFor:'startup'!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   465
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   466
openOn:aDBInfo
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   467
    |newApp|
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   468
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   469
    newApp := self new.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   470
    newApp allButOpen.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   471
    newApp dbInfo:aDBInfo.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   472
    newApp open.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   473
    ^ newApp
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   474
! !
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   475
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   476
!StoreProjectBrowser methodsFor:'actions'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   477
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   478
packageSelectionChanged
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   479
    |newest|
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   480
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   481
    self withReadCursorDo:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   482
        selectedBundleOrPackage := packagesList value at:(selectedPackageHolder value).
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   483
        self updateVersionsListFor:selectedBundleOrPackage.
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   484
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   485
        versionsList value notEmptyOrNil ifTrue:[
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   486
            newest := versionsList value first.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   487
            self updateCommentFor:newest
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   488
        ]
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   489
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   490
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   491
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   492
versionSelectionChanged
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   493
    |selIndex|
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   494
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   495
    selIndex := selectedVersionHolder value.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   496
    selIndex isNil ifTrue:[
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   497
        self commentTextHolder value:nil.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   498
        selectedVersion := nil.
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   499
    ] ifFalse:[
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   500
        selectedVersion := versionsList value at:selIndex.
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   501
        self withReadCursorDo:[
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   502
            self updateBlessingCommentFor:selectedVersion
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   503
        ].
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   504
    ]
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   505
! !
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   506
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   507
!StoreProjectBrowser methodsFor:'aspects'!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   508
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   509
commentTextHolder
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
    "automatically generated by UIPainter ..."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   511
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   512
    "*** the code below creates a default model when invoked."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   513
    "*** (which may not be the one you wanted)"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   514
    "*** Please change as required and accept it in the browser."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   515
    "*** (and replace this comment by something more useful ;-)"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   516
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   517
    commentTextHolder isNil ifTrue:[
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   518
        commentTextHolder := '' asValue.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   519
"/ if your app needs to be notified of changes, uncomment one of the lines below:
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   520
"/       commentTextHolder addDependent:self.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   521
"/       commentTextHolder onChangeSend:#commentTextHolderChanged to:self.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   522
    ].
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   523
    ^ commentTextHolder.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   524
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   525
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   526
infoLabelHolder
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   527
    "automatically generated by UIPainter ..."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   528
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   529
    "*** the code below creates a default model when invoked."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   530
    "*** (which may not be the one you wanted)"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   531
    "*** Please change as required and accept it in the browser."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   532
    "*** (and replace this comment by something more useful ;-)"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   534
    infoLabelHolder isNil ifTrue:[
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   535
        infoLabelHolder := ValueHolder new.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   536
"/ if your app needs to be notified of changes, uncomment one of the lines below:
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   537
"/       infoLabelHolder addDependent:self.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   538
"/       infoLabelHolder onChangeSend:#infoLabelHolderChanged to:self.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   539
    ].
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   540
    ^ infoLabelHolder.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   541
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   542
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   543
isConnected
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   544
    ^ connection notNil and:[ connection isConnected ].
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   545
!
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   546
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   547
isConnectedHolder
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   548
    ^ [ self isConnected ]
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   549
!
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   550
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   551
notConnectedHolder
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   552
    ^ [ self isConnected not ]
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   553
!
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   554
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   555
packagesFilterHolder
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   556
    "automatically generated by UIPainter ..."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   557
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   558
    "*** the code below creates a default model when invoked."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   559
    "*** (which may not be the one you wanted)"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   560
    "*** Please change as required and accept it in the browser."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   561
    "*** (and replace this comment by something more useful ;-)"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   562
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   563
    packagesFilterHolder isNil ifTrue:[
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   564
        packagesFilterHolder := ValueHolder new.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   565
"/ if your app needs to be notified of changes, uncomment one of the lines below:
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   566
"/       packagesFilterHolder addDependent:self.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   567
"/       packagesFilterHolder onChangeSend:#packagesFilterHolderChanged to:self.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   568
    ].
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   569
    ^ packagesFilterHolder.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   570
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   571
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   572
packagesList
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   573
    "automatically generated by UIPainter ..."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   574
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   575
    "*** the code below creates a default model when invoked."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   576
    "*** (which may not be the one you wanted)"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   577
    "*** Please change as required and accept it in the browser."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   578
    "*** (and replace this comment by something more useful ;-)"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   579
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   580
    packagesList isNil ifTrue:[
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   581
        packagesList := ValueHolder new.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   582
"/ if your app needs to be notified of changes, uncomment one of the lines below:
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   583
"/       packagesList addDependent:self.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   584
"/       packagesList onChangeSend:#packagesListChanged to:self.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   585
    ].
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   586
    ^ packagesList.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   587
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   588
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   589
selectedPackageHolder
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   590
    "automatically generated by UIPainter ..."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   591
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   592
    "*** the code below creates a default model when invoked."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   593
    "*** (which may not be the one you wanted)"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   594
    "*** Please change as required and accept it in the browser."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   595
    "*** (and replace this comment by something more useful ;-)"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   596
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   597
    selectedPackageHolder isNil ifTrue:[
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   598
        selectedPackageHolder := ValueHolder new.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   599
"/ if your app needs to be notified of changes, uncomment one of the lines below:
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   600
"/       selectedPackageHolder addDependent:self.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   601
"/       selectedPackageHolder onChangeSend:#selectedPackageHolderChanged to:self.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   602
    ].
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   603
    ^ selectedPackageHolder.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   604
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   605
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   606
selectedVersionHolder
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   607
    "automatically generated by UIPainter ..."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   608
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   609
    "*** the code below creates a default model when invoked."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   610
    "*** (which may not be the one you wanted)"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   611
    "*** Please change as required and accept it in the browser."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   612
    "*** (and replace this comment by something more useful ;-)"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   613
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   614
    selectedVersionHolder isNil ifTrue:[
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   615
        selectedVersionHolder := ValueHolder new.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   616
"/ if your app needs to be notified of changes, uncomment one of the lines below:
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   617
"/       selectedVersionHolder addDependent:self.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   618
"/       selectedVersionHolder onChangeSend:#selectedVersionHolderChanged to:self.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   619
    ].
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   620
    ^ selectedVersionHolder.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   621
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   622
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   623
versionsList
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   624
    "automatically generated by UIPainter ..."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   625
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   626
    "*** the code below creates a default model when invoked."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   627
    "*** (which may not be the one you wanted)"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   628
    "*** Please change as required and accept it in the browser."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   629
    "*** (and replace this comment by something more useful ;-)"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   630
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   631
    versionsList isNil ifTrue:[
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   632
        versionsList := ValueHolder new.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   633
"/ if your app needs to be notified of changes, uncomment one of the lines below:
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   634
"/       versionsList addDependent:self.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   635
"/       versionsList onChangeSend:#versionsListChanged to:self.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   636
    ].
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   637
    ^ versionsList.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   638
! !
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   639
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   640
!StoreProjectBrowser methodsFor:'db access'!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   641
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   642
getBlob:id
8747
e6a0a25f6f2d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8739
diff changeset
   643
    ^ self getBlob:id withPrefix:nil
e6a0a25f6f2d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8739
diff changeset
   644
!
e6a0a25f6f2d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8739
diff changeset
   645
e6a0a25f6f2d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8739
diff changeset
   646
getBlob:id withPrefix:prefixOrNil
e6a0a25f6f2d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8739
diff changeset
   647
    |item cursor row blobType blobData rawData|
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   648
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   649
    item := Set new.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   650
    cursor := connection 
8747
e6a0a25f6f2d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8739
diff changeset
   651
                execute:('SELECT blobtype,blobdata FROM tw_blob where primarykey = %1;' bindWith:id)
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   652
                release:false.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   653
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   654
    cursor next notNil ifTrue:[
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   655
        row := cursor rowAsArray.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   656
        blobType := (row at:1).
8747
e6a0a25f6f2d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8739
diff changeset
   657
        rawData := (row at:2).
e6a0a25f6f2d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8739
diff changeset
   658
        blobData := Base64Coder decode:rawData.
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   659
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   660
    cursor release.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   661
8747
e6a0a25f6f2d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8739
diff changeset
   662
    blobType < 0 ifTrue:[
e6a0a25f6f2d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8739
diff changeset
   663
        "/ this data is a prefix...
e6a0a25f6f2d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8739
diff changeset
   664
self halt.
e6a0a25f6f2d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8739
diff changeset
   665
        ^ self getBlob:(blobType negated) withPrefix:blobData
e6a0a25f6f2d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8739
diff changeset
   666
    ].
e6a0a25f6f2d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8739
diff changeset
   667
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   668
    blobType == 1 ifTrue:[
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   669
        "binary"
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   670
        ^ blobData
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   671
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   672
    blobType == 2 ifTrue:[
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   673
        "string"
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   674
        ^ blobData asString
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   675
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   676
    blobType == 3 ifTrue:[
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   677
        "2-byte string"
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   678
self halt.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   679
        ^ nil
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   680
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   681
self halt.
8747
e6a0a25f6f2d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8739
diff changeset
   682
    ^ nil
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   683
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   684
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   685
getBundles
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   686
    |items cursor row|
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   687
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   688
    items := Set new.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   689
    cursor := connection 
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   690
                execute:'SELECT DISTINCT name FROM tw_bundle;'
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   691
                release:false.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   692
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   693
    [cursor next notNil] whileTrue:[
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   694
        row := cursor rowAsArray.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   695
        Transcript showCR:row.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   696
        items add:(Bundle new name:(row at:1)).
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   697
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   698
    cursor release.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   699
    ^ items asOrderedCollection sort:[:a :b| a name < b name]
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   700
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   701
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   702
getConnection
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   703
    |session|
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   704
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   705
    dbInfo isNil ifTrue:[
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   706
        self askForDatabaseInfo
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   707
    ].
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   708
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   709
    session := SQL::ODBCSession new.
8739
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   710
    SQL::ODBCError handle:[:ex |
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   711
        ^ nil.
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   712
    ] do:[
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   713
        session 
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   714
            connectWithUsername:(dbInfo userName) 
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   715
            password:(dbInfo password) 
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   716
            dbname:(dbInfo dbName).
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   717
    ].
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   718
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   719
    (session isConnected) ifFalse:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   720
        ^ nil.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   721
    ].
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   722
    ^ session.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   723
!
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   724
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   725
getPackages
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   726
    |items cursor row|
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   727
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   728
    items := Set new.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   729
    cursor := connection 
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   730
                execute:'SELECT DISTINCT name FROM tw_package;'
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   731
                release:false.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   732
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   733
    [cursor next notNil] whileTrue:[
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   734
        row := cursor rowAsArray.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   735
        Transcript showCR:row.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   736
        items add:(Package new name:(row at:1)).
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   737
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   738
    cursor release.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   739
    ^ items asOrderedCollection sort:[:a :b| a name < b name]
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   740
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   741
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   742
getVersionsForBundle:aBundle
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   743
    ^ self getVersionsForBundleOrPackage:aBundle isBundle:true
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   744
!
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   745
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   746
getVersionsForBundleOrPackage:aBundle isBundle:isBundle
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   747
    |items cursor row table|
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   748
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   749
    connection isNil ifTrue:[^ #() ].
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   750
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   751
    table := isBundle ifTrue:'tw_bundle' ifFalse:'tw_package'.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   752
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   753
    items := Set new.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   754
    cursor := connection 
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   755
                execute:'SELECT name,version,username,timestamp,commentid,primarykey,blessinglevel 
8729
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   756
                         FROM ',table,
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   757
                         "/ ' WHERE name = ''',aBundle name,''' ',
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   758
                         ';'
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   759
                release:false.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   760
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   761
    [cursor next notNil] whileTrue:[
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   762
        |v name version username timestamp commentid primarykey blessinglevel|
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   763
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   764
        row := cursor rowAsArray.
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   765
Transcript showCR:row.
8729
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   766
        name := row at:1.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   767
        version := row at:2.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   768
        username := row at:3.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   769
        timestamp := row at:4.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   770
        commentid := row at:5.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   771
        primarykey := row at:6.
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   772
        blessinglevel := row at:7.
8729
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   773
        name = aBundle name ifTrue:[
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   774
            v := PundleVersion new.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   775
            v pundle:aBundle version:version user:username.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   776
            v timestampInt:timestamp commentId:commentid.
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   777
            v blessingLevel:blessinglevel.
8729
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   778
            v id:primarykey.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   779
            v isBundle:isBundle.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   780
            items add:v.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   781
        ]
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   782
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   783
    cursor release.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   784
    ^ items asOrderedCollection sort:[:a :b| a isVersionAfter: b]
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   785
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   786
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   787
getVersionsForPackage:aPackage
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   788
    ^ self getVersionsForBundleOrPackage:aPackage isBundle:false
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   789
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   790
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   791
updateBlessingCommentFor:aPundleVersion
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   792
    |versionId commentId user comment cursor row recType|
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   793
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   794
    versionId := aPundleVersion id.
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   795
    recType := aPundleVersion isBundle ifTrue:'B' ifFalse:'P'.
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   796
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   797
    cursor := connection 
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   798
                execute:'SELECT username,commentid FROM tw_blessing 
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   799
WHERE pkgid = ',versionId printString,' AND rectype = ''',recType,''';'
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   800
                release:false.
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   801
    cursor isNil ifTrue:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   802
        commentId :=0
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   803
    ] ifFalse:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   804
        row := cursor next rowAsArray.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   805
        cursor release.
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   806
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   807
        user := row at:1.    
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   808
        commentId := row at:2.    
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   809
    ].
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   810
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   811
    commentId == 0 ifTrue:[
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   812
        comment := 'No comment' allItalic  
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   813
    ] ifFalse:[
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   814
        comment := self getBlob:commentId.
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   815
        comment := comment asCollectionOfSubCollectionsSeparatedBy:Character return.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   816
        comment := comment asStringCollection asString.
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   817
    ].
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   818
    self commentTextHolder value:comment.
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   819
!
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   820
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   821
updateCommentFor:aPundleVersion
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   822
    |comment id|
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   823
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   824
    id := aPundleVersion commentId.
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   825
    id == 0 ifTrue:[
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   826
        comment := 'No comment' allItalic  
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   827
    ] ifFalse:[
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   828
        comment := self getBlob:(aPundleVersion commentId).
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   829
    ].
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   830
    self commentTextHolder value:comment.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   831
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   832
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   833
updatePackagesList
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   834
    |bundles packages|
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   835
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   836
    connection isNil ifTrue:[^ self ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   837
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   838
    self withReadCursorDo:[
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   839
        bundles := self getBundles.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   840
        packages := self getPackages.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   841
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   842
    packagesList value:(bundles , packages).
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   843
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   844
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   845
updateVersionsListFor:aBundleOrPackage
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   846
    |items|
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   847
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   848
    aBundleOrPackage isBundle ifTrue:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   849
        items := self getVersionsForBundle:aBundleOrPackage
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   850
    ] ifFalse:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   851
        items := self getVersionsForPackage:aBundleOrPackage
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   852
    ].
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   853
    self selectedVersionHolder value:nil.
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   854
    versionsList value:items.
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   855
! !
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   856
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   857
!StoreProjectBrowser methodsFor:'help'!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   858
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   859
aboutThisApplicationText
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   860
    ^ super aboutThisApplicationText , 
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   861
      '\\Written by Claus Gittinger, eXept Software AG.' withCRs
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   862
! !
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   863
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   864
!StoreProjectBrowser methodsFor:'initialization & release'!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   865
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   866
dbInfo:aDBInfo
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   867
    |session|
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   868
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   869
    dbInfo := aDBInfo.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   870
    session := self getConnection.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   871
    (session notNil) ifFalse:[
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   872
        ^ self.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   873
    ].
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   874
    connection := session.
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   875
    self updateInfo.
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   876
    ^ self
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   877
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   878
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   879
postOpenWith:aBuilder
8727
58ac9f09962b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7028
diff changeset
   880
    super postOpenWith:aBuilder.
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   881
    self updatePackagesList.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   882
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   883
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   884
release
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   885
    connection notNil ifTrue:[
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   886
        connection disconnect.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   887
        connection := nil.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   888
    ]
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   889
!
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   890
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   891
updateInfo
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   892
    self isConnected ifTrue:[
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   893
        self window label:('Store Browser: ',dbInfo dbName).
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   894
        self infoLabelHolder value:('Connected to ',dbInfo dbName).
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   895
    ] ifFalse:[
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   896
        self window label:'Store Browser'.
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   897
        self infoLabelHolder value:nil.
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   898
    ]
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   899
! !
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   900
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   901
!StoreProjectBrowser methodsFor:'menu actions'!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   902
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   903
askForDatabaseInfo
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   904
    |defaultInfo|
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   905
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   906
    defaultInfo := StoreSourceCodeManager defaultDBInfo.
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   907
    defaultInfo dbName isNil ifTrue:[
8727
58ac9f09962b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7028
diff changeset
   908
        defaultInfo := StoreSourceCodeManager repositoryInfoPerModule firstIfEmpty:nil.
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   909
    ].
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   910
    dbInfo := defaultInfo
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   911
!
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   912
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   913
menuConnect
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   914
    |session|
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   915
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   916
    connection isNil ifTrue:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   917
        session := self getConnection.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   918
        (session notNil) ifFalse:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   919
            ^ self.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   920
        ].
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   921
        connection := session.
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   922
        self updateInfo.
8727
58ac9f09962b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7028
diff changeset
   923
        self updatePackagesList.
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   924
    ]
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   925
!
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   926
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   927
menuDisconnect
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   928
    connection notNil ifTrue:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   929
        connection disconnect.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   930
        connection := nil.
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   931
        self updateInfo.
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   932
    ]
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   933
!
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   934
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   935
menuFileoutAs
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   936
    "automatically generated by UIPainter ..."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   937
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   938
    "*** the code below performs no action"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   939
    "*** (except for some feedback on the Transcript)"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   940
    "*** Please change as required and accept in the browser."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   941
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   942
    "action to be added ..."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   943
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   944
    Transcript showCR:self class name, ': menu action for menuFileoutAs ...'.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   945
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   946
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   947
menuOpen
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   948
    "This method was generated by the Browser.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   949
     It will be invoked when the menu-item 'open' is selected."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   950
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   951
    "/ change below and add any actions as required here ...
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   952
    self warn:'no action for ''open'' available.'.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   953
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   954
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   955
menuUpdate
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   956
    self updatePackagesList
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   957
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   958
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   959
openDocumentation
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   960
    "This method was generated by the Browser.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   961
     It will be invoked when the menu-item 'help-documentation' is selected."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   962
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   963
    "/ change below as required ...
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   964
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   965
    "/ to open an HTML viewer on some document (under 'doc/online/<language>/' ):
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   966
    HTMLDocumentView openFullOnDocumentationFile:'TOP.html'.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   967
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   968
    "/ add application-specific help files under the 'doc/online/<language>/help/appName'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   969
    "/ directory, and open a viewer with:
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   970
    "/ HTMLDocumentView openFullOnDocumentationFile:'help/<MyApplication>/TOP.html'.
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   971
!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   972
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   973
versionsListMenuBrowse
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   974
    |reader changeSet environment|
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   975
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   976
    reader := StoreProjectChangeSetReader new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   977
    reader 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   978
        browser:self dbConnection:connection 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   979
        bundleOrPackage:selectedBundleOrPackage version:selectedVersion.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   980
    changeSet :=reader changeSet.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   981
    ChangeSetBrowser openOn:changeSet.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   982
self halt.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   983
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   984
    environment := StoreProjectEnvironment for:selectedVersion connection:connection.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   985
        SystemBrowser
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   986
            openOn:environment 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   987
            label:(resources string:'%1' with:selectedBundleOrPackage name , ' ' , selectedVersion version)
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   988
!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   989
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   990
versionsListMenuLoad
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   991
self halt.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   992
!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   993
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   994
versionsListMenuUpdate
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   995
self halt.
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   996
! !
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   997
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   998
!StoreProjectBrowser::Pundle methodsFor:'accessing'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   999
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1000
name
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1001
    ^ name
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1002
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1003
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1004
name:something
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1005
    name := something.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1006
! !
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1007
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1008
!StoreProjectBrowser::Pundle methodsFor:'printing'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1009
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1010
displayString
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1011
    ^ name
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1012
! !
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1013
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1014
!StoreProjectBrowser::Pundle methodsFor:'testing'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1015
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1016
isBundle
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1017
    ^ false
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1018
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1019
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1020
isPackage
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1021
    ^ false
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1022
! !
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1023
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1024
!StoreProjectBrowser::Package methodsFor:'testing'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1025
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1026
isPackage
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1027
    ^ true
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1028
! !
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1029
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1030
!StoreProjectBrowser::Bundle methodsFor:'printing'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1031
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1032
displayString
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1033
    ^ name ,' (Bundle)'
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1034
! !
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1035
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1036
!StoreProjectBrowser::Bundle methodsFor:'testing'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1037
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1038
isBundle
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1039
    ^ true
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1040
! !
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1041
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1042
!StoreProjectBrowser::PundleVersion methodsFor:'accessing'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1043
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1044
blessingLevel
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1045
    ^ blessingLevel
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1046
!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1047
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1048
blessingLevel:something
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1049
    blessingLevel := something.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1050
!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1051
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1052
commentId
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1053
    ^ commentId
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1054
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1055
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1056
id
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1057
    ^ id
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1058
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1059
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1060
id:something
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1061
    id := something.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1062
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1063
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1064
isBundle
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1065
    ^ isBundle
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1066
!
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1067
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1068
isBundle:aBoolean
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1069
    isBundle := aBoolean
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1070
!
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1071
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1072
isPackage
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1073
    ^ isBundle not
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1074
!
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1075
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1076
pundle
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1077
    ^ pundle
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1078
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1079
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1080
pundle:pundleArg version:versionArg user:userArg 
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1081
    pundle := pundleArg.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1082
    version := versionArg.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1083
    user := userArg.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1084
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1085
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1086
timestamp
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1087
    |deltaSeconds|
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1088
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1089
    timestamp isNil ifTrue:[
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1090
        "/ to compute the timestamp, we have to do this:
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1091
        "/   the timestampInt are seconds since 1993 + 10d + 19min + 47sec"
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1092
        "/   can anyone explain this ????
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1093
        deltaSeconds := 23*365 * 24*60*60.                  "/ 23 years
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1094
        deltaSeconds := deltaSeconds + (233*24*60*60).      "/ 10 days
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1095
        deltaSeconds := deltaSeconds + (19*60).             "/ 19 minutes
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1096
        deltaSeconds := deltaSeconds + (47).                "/ 47 seconds
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1097
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1098
        timestamp := Timestamp secondsSince1970:(timestampInt + deltaSeconds).
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1099
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1100
    ^ timestamp
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1101
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1102
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1103
timestampInt:timestampIntArg commentId:commentIdArg 
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1104
    timestampInt := timestampIntArg.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1105
    commentId := commentIdArg.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1106
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1107
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1108
user
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1109
    ^ user
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1110
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1111
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1112
version
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1113
    ^ version
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1114
! !
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1115
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1116
!StoreProjectBrowser::PundleVersion methodsFor:'comparing'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1117
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1118
isVersionAfter:anotherVersion
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1119
    |myMajor othersMajor myMinor othersMinor|
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1120
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1121
    myMajor := self majorVersion.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1122
    othersMajor := anotherVersion majorVersion.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1123
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1124
    myMajor > othersMajor ifTrue:[^ true].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1125
    myMajor < othersMajor ifTrue:[^ false].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1126
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1127
    myMinor := self minorVersion.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1128
    othersMinor := anotherVersion minorVersion.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1129
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1130
    myMinor > othersMinor ifTrue:[^ true].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1131
    myMinor < othersMinor ifTrue:[^ false].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1132
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1133
    ^ version > anotherVersion version
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1134
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1135
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1136
majorVersion
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1137
    ^ Integer readFrom:(version upTo:$:)
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1138
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1139
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1140
minorVersion
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1141
    ^ Integer readFrom:((version restAfter:$.) upTo:$.)
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1142
! !
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1143
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1144
!StoreProjectBrowser::PundleVersion methodsFor:'printing'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1145
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1146
displayString
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1147
    ^ version , ' (',user,') ' , self timestamp printString
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1148
! !
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1149
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1150
!StoreProjectBrowser::StoreProjectChangeSetReader methodsFor:'accessing'!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1151
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1152
browser:browserArg dbConnection:dbConnectionArg bundleOrPackage:bundleOrPackageArg version:versionArg 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1153
    browser := browserArg.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1154
    dbConnection := dbConnectionArg.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1155
    bundleOrPackage := bundleOrPackageArg.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1156
    version := versionArg.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1157
! !
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1158
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1159
!StoreProjectBrowser::StoreProjectChangeSetReader methodsFor:'reading'!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1160
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1161
allClassesDo:aBlock
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1162
    |packageId cursor row entries classes|
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1163
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1164
    packageId := bundleOrPackage id.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1165
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1166
    entries := OrderedCollection new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1167
    cursor := dbConnection
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1168
        execute:('SELECT classref,metaclassref,definitionorder FROM tw_pkgclasses WHERE packageref = %1'
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1169
                bindWith:packageId)
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1170
        release:false.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1171
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1172
    [cursor next notNil] whileTrue:[
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1173
        row := cursor rowAsObject.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1174
        entries add:row.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1175
    ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1176
    cursor release.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1177
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1178
    classes := entries collect:[:entry |
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1179
                |records classRecord metaclassRecord|
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1180
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1181
                "/ entry classref 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1182
                "/ entry metaclassref 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1183
                "/ entry definitionorder 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1184
                cursor := dbConnection
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1185
                    execute:('SELECT name,definitionid,commentid,environmentstring,superclass
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1186
                              FROM tw_classrecord WHERE primarykey = %1'
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1187
                            bindWith:entry classref)
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1188
                    release:false.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1189
                records := OrderedCollection new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1190
                [cursor next notNil] whileTrue:[
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1191
                    row := cursor rowAsObject.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1192
                    records add:row.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1193
                ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1194
                cursor release.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1195
                self assert:(records size == 1).
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1196
                classRecord := records first.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1197
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1198
                cursor := dbConnection
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1199
                    execute:('SELECT name,definitionid,commentid,environmentstring,superclass
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1200
                              FROM tw_classrecord WHERE primarykey = %1'
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1201
                            bindWith:entry metaclassref)
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1202
                    release:false.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1203
                records := OrderedCollection new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1204
                [cursor next notNil] whileTrue:[
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1205
                    row := cursor rowAsObject.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1206
                    records add:row.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1207
                ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1208
                cursor release.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1209
                self assert:(records size == 1).
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1210
                metaclassRecord := records first.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1211
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1212
                { classRecord. metaclassRecord. entry definitionorder }
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1213
           ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1214
!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1215
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1216
changeSet
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1217
    "build a changeSet from the bundle or package
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1218
     Return the changeSet."
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1219
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1220
    changeSet := ChangeSet new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1221
    self fetchClassDefinitions.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1222
"/        changesFromStream:aStream 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1223
"/        for:changeSet 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1224
"/        reader:(ChangeFileReader new)
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1225
"/        do:[:aChange :lineNumberOrNil :posOrNil |
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1226
"/            changeSet add:aChange.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1227
"/            (aConditionBlock value:aChange) ifFalse:[^ changeSet].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1228
"/        ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1229
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1230
    ^ changeSet
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1231
!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1232
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1233
fetchClassDefinitions
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1234
    |packageId cursor row entries classes change|
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1235
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1236
    packageId := version id.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1237
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1238
    entries := OrderedCollection new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1239
    cursor := dbConnection
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1240
        execute:('SELECT classref,metaclassref,definitionorder FROM tw_pkgclasses WHERE packageref = %1'
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1241
                bindWith:packageId)
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1242
        release:false.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1243
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1244
    [cursor next notNil] whileTrue:[
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1245
        row := cursor rowAsObject.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1246
        entries add:row.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1247
    ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1248
    cursor release.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1249
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1250
    classes := entries collect:[:entry |
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1251
                |records classRecord metaclassRecord definitionString|
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1252
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1253
                "/ entry classref 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1254
                "/ entry metaclassref 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1255
                "/ entry definitionorder 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1256
                cursor := dbConnection
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1257
                    execute:('SELECT name,definitionid,commentid,environmentstring,superclass
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1258
                              FROM tw_classrecord WHERE primarykey = %1'
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1259
                            bindWith:entry classref)
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1260
                    release:false.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1261
                records := OrderedCollection new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1262
                [cursor next notNil] whileTrue:[
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1263
                    row := cursor rowAsObject.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1264
                    records add:row.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1265
                ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1266
                cursor release.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1267
                self assert:(records size == 1).
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1268
                classRecord := records first.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1269
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1270
                cursor := dbConnection
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1271
                    execute:('SELECT name,definitionid,commentid,environmentstring,superclass
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1272
                              FROM tw_classrecord WHERE primarykey = %1'
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1273
                            bindWith:entry metaclassref)
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1274
                    release:false.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1275
                records := OrderedCollection new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1276
                [cursor next notNil] whileTrue:[
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1277
                    row := cursor rowAsObject.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1278
                    records add:row.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1279
                ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1280
                cursor release.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1281
                self assert:(records size == 1).
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1282
                metaclassRecord := records first.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1283
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1284
                change := ClassDefinitionChange new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1285
                definitionString := browser getBlob:(classRecord definitionid).
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1286
                change source:definitionString.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1287
                change className:classRecord name.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1288
                "/ change superClassName:metaclassRecord name.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1289
                change package:bundleOrPackage name.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1290
                changeSet add:change.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1291
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1292
                { classRecord. metaclassRecord. entry definitionorder }
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1293
           ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1294
! !
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1295
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1296
!StoreProjectBrowser class methodsFor:'documentation'!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1297
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1298
version
8747
e6a0a25f6f2d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8739
diff changeset
  1299
    ^ '$Header: /cvs/stx/stx/libtool/Tools__StoreProjectBrowser.st,v 1.13 2009-09-21 21:29:29 cg Exp $'
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1300
! !