Tools__StoreProjectBrowser.st
author Claus Gittinger <cg@exept.de>
Mon, 21 Sep 2009 15:57:32 +0200
changeset 8739 ab7074522afd
parent 8731 646fdd59f4ef
child 8747 e6a0a25f6f2d
permissions -rw-r--r--
*** empty log message ***
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
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   643
    |item cursor row blobType blobData|
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   644
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   645
    item := Set new.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   646
    cursor := connection 
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   647
                execute:'SELECT blobtype,blobdata FROM tw_blob where primarykey = ',id printString,';'
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   648
                release:false.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   649
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   650
    cursor next notNil ifTrue:[
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   651
        row := cursor rowAsArray.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   652
        blobType := (row at:1).
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   653
        blobData := Base64Coder decode:(row at:2).
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   654
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   655
    cursor release.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   656
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   657
    blobType == 1 ifTrue:[
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   658
        "binary"
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   659
        ^ blobData
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   660
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   661
    blobType == 2 ifTrue:[
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   662
        "string"
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   663
        ^ blobData asString
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   664
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   665
    blobType == 3 ifTrue:[
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   666
        "2-byte string"
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   667
self halt.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   668
        ^ nil
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   669
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   670
self halt.
8739
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   671
    ^ blobData asString
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   672
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   673
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   674
getBundles
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   675
    |items cursor row|
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   676
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   677
    items := Set new.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   678
    cursor := connection 
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   679
                execute:'SELECT DISTINCT name FROM tw_bundle;'
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   680
                release:false.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   681
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   682
    [cursor next notNil] whileTrue:[
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   683
        row := cursor rowAsArray.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   684
        Transcript showCR:row.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   685
        items add:(Bundle new name:(row at:1)).
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   686
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   687
    cursor release.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   688
    ^ items asOrderedCollection sort:[:a :b| a name < b name]
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   689
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   690
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   691
getConnection
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   692
    |session|
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   693
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   694
    dbInfo isNil ifTrue:[
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   695
        self askForDatabaseInfo
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   696
    ].
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   697
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   698
    session := SQL::ODBCSession new.
8739
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   699
    SQL::ODBCError handle:[:ex |
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   700
        ^ nil.
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   701
    ] do:[
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   702
        session 
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   703
            connectWithUsername:(dbInfo userName) 
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   704
            password:(dbInfo password) 
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   705
            dbname:(dbInfo dbName).
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
   706
    ].
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   707
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   708
    (session isConnected) ifFalse:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   709
        ^ nil.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   710
    ].
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   711
    ^ session.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   712
!
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   713
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   714
getPackages
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   715
    |items cursor row|
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   716
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   717
    items := Set new.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   718
    cursor := connection 
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   719
                execute:'SELECT DISTINCT name FROM tw_package;'
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   720
                release:false.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   721
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   722
    [cursor next notNil] whileTrue:[
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   723
        row := cursor rowAsArray.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   724
        Transcript showCR:row.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   725
        items add:(Package new name:(row at:1)).
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   726
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   727
    cursor release.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   728
    ^ items asOrderedCollection sort:[:a :b| a name < b name]
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   729
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   730
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   731
getVersionsForBundle:aBundle
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   732
    ^ self getVersionsForBundleOrPackage:aBundle isBundle:true
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   733
!
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   734
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   735
getVersionsForBundleOrPackage:aBundle isBundle:isBundle
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   736
    |items cursor row table|
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   737
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   738
    connection isNil ifTrue:[^ #() ].
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   739
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   740
    table := isBundle ifTrue:'tw_bundle' ifFalse:'tw_package'.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   741
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   742
    items := Set new.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   743
    cursor := connection 
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   744
                execute:'SELECT name,version,username,timestamp,commentid,primarykey,blessinglevel 
8729
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   745
                         FROM ',table,
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   746
                         "/ ' WHERE name = ''',aBundle name,''' ',
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   747
                         ';'
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   748
                release:false.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   749
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   750
    [cursor next notNil] whileTrue:[
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   751
        |v name version username timestamp commentid primarykey blessinglevel|
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   752
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   753
        row := cursor rowAsArray.
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   754
Transcript showCR:row.
8729
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   755
        name := row at:1.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   756
        version := row at:2.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   757
        username := row at:3.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   758
        timestamp := row at:4.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   759
        commentid := row at:5.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   760
        primarykey := row at:6.
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   761
        blessinglevel := row at:7.
8729
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   762
        name = aBundle name ifTrue:[
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   763
            v := PundleVersion new.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   764
            v pundle:aBundle version:version user:username.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   765
            v timestampInt:timestamp commentId:commentid.
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   766
            v blessingLevel:blessinglevel.
8729
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   767
            v id:primarykey.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   768
            v isBundle:isBundle.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   769
            items add:v.
cbdde553e2cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8727
diff changeset
   770
        ]
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   771
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   772
    cursor release.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   773
    ^ items asOrderedCollection sort:[:a :b| a isVersionAfter: b]
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   774
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   775
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   776
getVersionsForPackage:aPackage
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   777
    ^ self getVersionsForBundleOrPackage:aPackage isBundle:false
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   778
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   779
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   780
updateBlessingCommentFor:aPundleVersion
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   781
    |versionId commentId user comment cursor row recType|
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   782
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   783
    versionId := aPundleVersion id.
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   784
    recType := aPundleVersion isBundle ifTrue:'B' ifFalse:'P'.
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   785
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   786
    cursor := connection 
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   787
                execute:'SELECT username,commentid FROM tw_blessing 
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   788
WHERE pkgid = ',versionId printString,' AND rectype = ''',recType,''';'
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   789
                release:false.
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   790
    cursor isNil ifTrue:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   791
        commentId :=0
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   792
    ] ifFalse:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   793
        row := cursor next rowAsArray.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   794
        cursor release.
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   795
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   796
        user := row at:1.    
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   797
        commentId := row at:2.    
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   798
    ].
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   799
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   800
    commentId == 0 ifTrue:[
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   801
        comment := 'No comment' allItalic  
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   802
    ] ifFalse:[
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   803
        comment := self getBlob:commentId.
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   804
        comment := comment asCollectionOfSubCollectionsSeparatedBy:Character return.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   805
        comment := comment asStringCollection asString.
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   806
    ].
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   807
    self commentTextHolder value:comment.
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   808
!
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   809
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   810
updateCommentFor:aPundleVersion
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   811
    |comment id|
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   812
7009
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   813
    id := aPundleVersion commentId.
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   814
    id == 0 ifTrue:[
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   815
        comment := 'No comment' allItalic  
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   816
    ] ifFalse:[
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   817
        comment := self getBlob:(aPundleVersion commentId).
8664e1a7ac19 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7008
diff changeset
   818
    ].
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   819
    self commentTextHolder value:comment.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   820
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   821
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   822
updatePackagesList
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   823
    |bundles packages|
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   824
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   825
    connection isNil ifTrue:[^ self ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   826
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   827
    self withReadCursorDo:[
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   828
        bundles := self getBundles.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   829
        packages := self getPackages.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   830
    ].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   831
    packagesList value:(bundles , packages).
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   832
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   833
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   834
updateVersionsListFor:aBundleOrPackage
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   835
    |items|
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   836
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   837
    aBundleOrPackage isBundle ifTrue:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   838
        items := self getVersionsForBundle:aBundleOrPackage
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   839
    ] ifFalse:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   840
        items := self getVersionsForPackage:aBundleOrPackage
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   841
    ].
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   842
    self selectedVersionHolder value:nil.
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   843
    versionsList value:items.
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   844
! !
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   845
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   846
!StoreProjectBrowser methodsFor:'help'!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   847
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   848
aboutThisApplicationText
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   849
    ^ super aboutThisApplicationText , 
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   850
      '\\Written by Claus Gittinger, eXept Software AG.' withCRs
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   851
! !
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   852
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   853
!StoreProjectBrowser methodsFor:'initialization & release'!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   854
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   855
dbInfo:aDBInfo
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   856
    |session|
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   857
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   858
    dbInfo := aDBInfo.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   859
    session := self getConnection.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   860
    (session notNil) ifFalse:[
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   861
        ^ self.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   862
    ].
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   863
    connection := session.
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   864
    self updateInfo.
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   865
    ^ self
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   866
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   867
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   868
postOpenWith:aBuilder
8727
58ac9f09962b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7028
diff changeset
   869
    super postOpenWith:aBuilder.
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   870
    self updatePackagesList.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   871
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   872
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   873
release
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   874
    connection notNil ifTrue:[
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   875
        connection disconnect.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   876
        connection := nil.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   877
    ]
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   878
!
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   879
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   880
updateInfo
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   881
    self isConnected ifTrue:[
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   882
        self window label:('Store Browser: ',dbInfo dbName).
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   883
        self infoLabelHolder value:('Connected to ',dbInfo dbName).
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   884
    ] ifFalse:[
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   885
        self window label:'Store Browser'.
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   886
        self infoLabelHolder value:nil.
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   887
    ]
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   888
! !
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   889
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   890
!StoreProjectBrowser methodsFor:'menu actions'!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   891
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   892
askForDatabaseInfo
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   893
    |defaultInfo|
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   894
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   895
    defaultInfo := StoreSourceCodeManager defaultDBInfo.
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   896
    defaultInfo dbName isNil ifTrue:[
8727
58ac9f09962b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7028
diff changeset
   897
        defaultInfo := StoreSourceCodeManager repositoryInfoPerModule firstIfEmpty:nil.
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   898
    ].
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   899
    dbInfo := defaultInfo
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   900
!
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   901
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   902
menuConnect
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   903
    |session|
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   904
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   905
    connection isNil ifTrue:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   906
        session := self getConnection.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   907
        (session notNil) ifFalse:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   908
            ^ self.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   909
        ].
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   910
        connection := session.
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   911
        self updateInfo.
8727
58ac9f09962b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7028
diff changeset
   912
        self updatePackagesList.
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   913
    ]
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   914
!
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
menuDisconnect
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   917
    connection notNil ifTrue:[
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   918
        connection disconnect.
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   919
        connection := nil.
7028
c3c4741aaf0f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7013
diff changeset
   920
        self updateInfo.
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   921
    ]
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   922
!
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
   923
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   924
menuFileoutAs
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   925
    "automatically generated by UIPainter ..."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   926
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   927
    "*** the code below performs no action"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   928
    "*** (except for some feedback on the Transcript)"
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   929
    "*** Please change as required and accept in the browser."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   930
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   931
    "action to be added ..."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   932
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   933
    Transcript showCR:self class name, ': menu action for menuFileoutAs ...'.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   934
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   935
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   936
menuOpen
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   937
    "This method was generated by the Browser.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   938
     It will be invoked when the menu-item 'open' is selected."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   939
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   940
    "/ change below and add any actions as required here ...
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   941
    self warn:'no action for ''open'' available.'.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   942
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   943
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   944
menuUpdate
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   945
    self updatePackagesList
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   946
!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   947
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   948
openDocumentation
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   949
    "This method was generated by the Browser.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   950
     It will be invoked when the menu-item 'help-documentation' is selected."
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   951
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   952
    "/ change below as required ...
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   953
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   954
    "/ to open an HTML viewer on some document (under 'doc/online/<language>/' ):
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   955
    HTMLDocumentView openFullOnDocumentationFile:'TOP.html'.
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   956
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   957
    "/ add application-specific help files under the 'doc/online/<language>/help/appName'
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   958
    "/ directory, and open a viewer with:
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   959
    "/ HTMLDocumentView openFullOnDocumentationFile:'help/<MyApplication>/TOP.html'.
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   960
!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   961
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   962
versionsListMenuBrowse
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   963
    |reader changeSet environment|
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   964
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   965
    reader := StoreProjectChangeSetReader new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   966
    reader 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   967
        browser:self dbConnection:connection 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   968
        bundleOrPackage:selectedBundleOrPackage version:selectedVersion.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   969
    changeSet :=reader changeSet.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   970
    ChangeSetBrowser openOn:changeSet.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   971
self halt.
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
    environment := StoreProjectEnvironment for:selectedVersion connection:connection.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   974
        SystemBrowser
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   975
            openOn:environment 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   976
            label:(resources string:'%1' with:selectedBundleOrPackage name , ' ' , selectedVersion version)
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   977
!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   978
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   979
versionsListMenuLoad
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   980
self halt.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   981
!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   982
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   983
versionsListMenuUpdate
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
   984
self halt.
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   985
! !
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   986
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   987
!StoreProjectBrowser::Pundle methodsFor:'accessing'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   988
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   989
name
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   990
    ^ name
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   991
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   992
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   993
name:something
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   994
    name := something.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   995
! !
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   996
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   997
!StoreProjectBrowser::Pundle methodsFor:'printing'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   998
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
   999
displayString
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
! !
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
!StoreProjectBrowser::Pundle methodsFor:'testing'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1004
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1005
isBundle
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1006
    ^ false
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
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1009
isPackage
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1010
    ^ false
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1011
! !
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
!StoreProjectBrowser::Package methodsFor:'testing'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1014
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1015
isPackage
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1016
    ^ true
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1017
! !
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
!StoreProjectBrowser::Bundle methodsFor:'printing'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1020
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1021
displayString
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1022
    ^ name ,' (Bundle)'
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
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1025
!StoreProjectBrowser::Bundle methodsFor:'testing'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1026
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1027
isBundle
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1028
    ^ true
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
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1031
!StoreProjectBrowser::PundleVersion methodsFor:'accessing'!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1032
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1033
blessingLevel
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1034
    ^ blessingLevel
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1035
!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1036
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1037
blessingLevel:something
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1038
    blessingLevel := something.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1039
!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1040
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1041
commentId
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1042
    ^ commentId
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1043
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1044
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1045
id
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1046
    ^ id
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1047
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1048
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1049
id:something
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1050
    id := something.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1051
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1052
7010
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1053
isBundle
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1054
    ^ isBundle
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1055
!
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1056
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1057
isBundle:aBoolean
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1058
    isBundle := aBoolean
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1059
!
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1060
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1061
isPackage
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1062
    ^ isBundle not
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1063
!
52a2a508e169 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7009
diff changeset
  1064
7008
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1065
pundle
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1066
    ^ pundle
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1067
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1068
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1069
pundle:pundleArg version:versionArg user:userArg 
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1070
    pundle := pundleArg.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1071
    version := versionArg.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1072
    user := userArg.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1073
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1074
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1075
timestamp
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1076
    |deltaSeconds|
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1077
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1078
    timestamp isNil ifTrue:[
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1079
        "/ to compute the timestamp, we have to do this:
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1080
        "/   the timestampInt are seconds since 1993 + 10d + 19min + 47sec"
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1081
        "/   can anyone explain this ????
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1082
        deltaSeconds := 23*365 * 24*60*60.                  "/ 23 years
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1083
        deltaSeconds := deltaSeconds + (233*24*60*60).      "/ 10 days
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1084
        deltaSeconds := deltaSeconds + (19*60).             "/ 19 minutes
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1085
        deltaSeconds := deltaSeconds + (47).                "/ 47 seconds
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1086
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1087
        timestamp := Timestamp secondsSince1970:(timestampInt + 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
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1090
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1091
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1092
timestampInt:timestampIntArg commentId:commentIdArg 
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1093
    timestampInt := timestampIntArg.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1094
    commentId := commentIdArg.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1095
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1096
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1097
user
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1098
    ^ user
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
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1101
version
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1102
    ^ version
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1103
! !
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1104
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1105
!StoreProjectBrowser::PundleVersion methodsFor:'comparing'!
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
isVersionAfter:anotherVersion
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1108
    |myMajor othersMajor myMinor othersMinor|
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1109
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1110
    myMajor := self majorVersion.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1111
    othersMajor := anotherVersion majorVersion.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1112
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1113
    myMajor > othersMajor ifTrue:[^ true].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1114
    myMajor < othersMajor ifTrue:[^ false].
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
    myMinor := self minorVersion.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1117
    othersMinor := anotherVersion minorVersion.
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1118
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1119
    myMinor > othersMinor ifTrue:[^ true].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1120
    myMinor < othersMinor ifTrue:[^ false].
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1121
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1122
    ^ version > anotherVersion version
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
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1125
majorVersion
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1126
    ^ Integer readFrom:(version upTo:$:)
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1127
!
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1128
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1129
minorVersion
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1130
    ^ Integer readFrom:((version restAfter:$.) upTo:$.)
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1131
! !
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
!StoreProjectBrowser::PundleVersion methodsFor:'printing'!
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
displayString
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1136
    ^ version , ' (',user,') ' , self timestamp printString
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1137
! !
1342e46cb074 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7006
diff changeset
  1138
8731
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1139
!StoreProjectBrowser::StoreProjectChangeSetReader methodsFor:'accessing'!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1140
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1141
browser:browserArg dbConnection:dbConnectionArg bundleOrPackage:bundleOrPackageArg version:versionArg 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1142
    browser := browserArg.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1143
    dbConnection := dbConnectionArg.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1144
    bundleOrPackage := bundleOrPackageArg.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1145
    version := versionArg.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1146
! !
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1147
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1148
!StoreProjectBrowser::StoreProjectChangeSetReader methodsFor:'reading'!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1149
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1150
allClassesDo:aBlock
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1151
    |packageId cursor row entries classes|
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1152
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1153
    packageId := bundleOrPackage id.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1154
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1155
    entries := OrderedCollection new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1156
    cursor := dbConnection
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1157
        execute:('SELECT classref,metaclassref,definitionorder FROM tw_pkgclasses WHERE packageref = %1'
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1158
                bindWith:packageId)
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1159
        release:false.
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
    [cursor next notNil] whileTrue:[
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1162
        row := cursor rowAsObject.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1163
        entries add:row.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1164
    ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1165
    cursor release.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1166
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1167
    classes := entries collect:[:entry |
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1168
                |records classRecord metaclassRecord|
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1169
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1170
                "/ entry classref 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1171
                "/ entry metaclassref 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1172
                "/ entry definitionorder 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1173
                cursor := dbConnection
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1174
                    execute:('SELECT name,definitionid,commentid,environmentstring,superclass
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1175
                              FROM tw_classrecord WHERE primarykey = %1'
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1176
                            bindWith:entry classref)
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1177
                    release:false.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1178
                records := OrderedCollection new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1179
                [cursor next notNil] whileTrue:[
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1180
                    row := cursor rowAsObject.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1181
                    records add:row.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1182
                ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1183
                cursor release.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1184
                self assert:(records size == 1).
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1185
                classRecord := records first.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1186
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1187
                cursor := dbConnection
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1188
                    execute:('SELECT name,definitionid,commentid,environmentstring,superclass
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1189
                              FROM tw_classrecord WHERE primarykey = %1'
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1190
                            bindWith:entry metaclassref)
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1191
                    release:false.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1192
                records := OrderedCollection new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1193
                [cursor next notNil] whileTrue:[
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1194
                    row := cursor rowAsObject.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1195
                    records add:row.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1196
                ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1197
                cursor release.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1198
                self assert:(records size == 1).
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1199
                metaclassRecord := records first.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1200
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1201
                { classRecord. metaclassRecord. entry definitionorder }
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1202
           ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1203
!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1204
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1205
changeSet
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1206
    "build a changeSet from the bundle or package
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1207
     Return the changeSet."
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1208
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1209
    changeSet := ChangeSet new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1210
    self fetchClassDefinitions.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1211
"/        changesFromStream:aStream 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1212
"/        for:changeSet 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1213
"/        reader:(ChangeFileReader new)
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1214
"/        do:[:aChange :lineNumberOrNil :posOrNil |
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1215
"/            changeSet add:aChange.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1216
"/            (aConditionBlock value:aChange) ifFalse:[^ changeSet].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1217
"/        ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1218
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1219
    ^ changeSet
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1220
!
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1221
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1222
fetchClassDefinitions
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1223
    |packageId cursor row entries classes change|
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1224
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1225
    packageId := version id.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1226
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1227
    entries := OrderedCollection new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1228
    cursor := dbConnection
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1229
        execute:('SELECT classref,metaclassref,definitionorder FROM tw_pkgclasses WHERE packageref = %1'
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1230
                bindWith:packageId)
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1231
        release:false.
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
    [cursor next notNil] whileTrue:[
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1234
        row := cursor rowAsObject.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1235
        entries add:row.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1236
    ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1237
    cursor release.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1238
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1239
    classes := entries collect:[:entry |
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1240
                |records classRecord metaclassRecord definitionString|
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1241
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1242
                "/ entry classref 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1243
                "/ entry metaclassref 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1244
                "/ entry definitionorder 
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1245
                cursor := dbConnection
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1246
                    execute:('SELECT name,definitionid,commentid,environmentstring,superclass
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1247
                              FROM tw_classrecord WHERE primarykey = %1'
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1248
                            bindWith:entry classref)
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1249
                    release:false.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1250
                records := OrderedCollection new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1251
                [cursor next notNil] whileTrue:[
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1252
                    row := cursor rowAsObject.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1253
                    records add:row.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1254
                ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1255
                cursor release.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1256
                self assert:(records size == 1).
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1257
                classRecord := records first.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1258
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1259
                cursor := dbConnection
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1260
                    execute:('SELECT name,definitionid,commentid,environmentstring,superclass
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1261
                              FROM tw_classrecord WHERE primarykey = %1'
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1262
                            bindWith:entry metaclassref)
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1263
                    release:false.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1264
                records := OrderedCollection new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1265
                [cursor next notNil] whileTrue:[
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1266
                    row := cursor rowAsObject.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1267
                    records add:row.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1268
                ].
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1269
                cursor release.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1270
                self assert:(records size == 1).
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1271
                metaclassRecord := records first.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1272
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1273
                change := ClassDefinitionChange new.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1274
                definitionString := browser getBlob:(classRecord definitionid).
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1275
                change source:definitionString.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1276
                change className:classRecord name.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1277
                "/ change superClassName:metaclassRecord name.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1278
                change package:bundleOrPackage name.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1279
                changeSet add:change.
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1280
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1281
                { classRecord. metaclassRecord. entry definitionorder }
646fdd59f4ef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8729
diff changeset
  1282
           ].
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
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1285
!StoreProjectBrowser class methodsFor:'documentation'!
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1286
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1287
version
8739
ab7074522afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8731
diff changeset
  1288
    ^ '$Header: /cvs/stx/stx/libtool/Tools__StoreProjectBrowser.st,v 1.12 2009-09-21 13:57:32 cg Exp $'
7006
68750ac4af53 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1289
! !