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