packages/PackageBrowser.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 31 May 2018 10:52:50 +0100
branchjv
changeset 4330 998eb03f0736
parent 3011 1997ff6e7e55
permissions -rw-r--r--
Copyright updates
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1443
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
     1
"
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
     2
 COPYRIGHT (c) 2003 by eXept Software AG
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
     3
              All Rights Reserved
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
     4
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
     5
 This software is furnished under a license and may be used
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
     6
 only in accordance with the terms of that license and with the
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
     8
 be provided or otherwise made available to, or used by, any
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
     9
 other person.  No title to or ownership of the software is
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    10
 hereby transferred.
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    11
"
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    12
1227
ab88e78f027c initial checkin
james
parents:
diff changeset
    13
"{ Package: 'stx:libbasic3' }"
ab88e78f027c initial checkin
james
parents:
diff changeset
    14
ab88e78f027c initial checkin
james
parents:
diff changeset
    15
"{ NameSpace: Packages }"
ab88e78f027c initial checkin
james
parents:
diff changeset
    16
ab88e78f027c initial checkin
james
parents:
diff changeset
    17
AbstractPackageBrowser subclass:#PackageBrowser
ab88e78f027c initial checkin
james
parents:
diff changeset
    18
	instanceVariableNames:'packageSelectorSelectionHolder packageDetailsApplicationHolder
ab88e78f027c initial checkin
james
parents:
diff changeset
    19
		packageSelectorApplicationHolder'
ab88e78f027c initial checkin
james
parents:
diff changeset
    20
	classVariableNames:''
ab88e78f027c initial checkin
james
parents:
diff changeset
    21
	poolDictionaries:''
ab88e78f027c initial checkin
james
parents:
diff changeset
    22
	category:'Package-Application'
ab88e78f027c initial checkin
james
parents:
diff changeset
    23
!
ab88e78f027c initial checkin
james
parents:
diff changeset
    24
ab88e78f027c initial checkin
james
parents:
diff changeset
    25
!PackageBrowser class methodsFor:'documentation'!
ab88e78f027c initial checkin
james
parents:
diff changeset
    26
1443
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    27
copyright
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    28
"
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    29
 COPYRIGHT (c) 2003 by eXept Software AG
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    30
              All Rights Reserved
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    31
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    32
 This software is furnished under a license and may be used
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    33
 only in accordance with the terms of that license and with the
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    35
 be provided or otherwise made available to, or used by, any
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    36
 other person.  No title to or ownership of the software is
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    37
 hereby transferred.
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    38
"
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    39
!
6dfdf336b472 copyright
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
    40
1227
ab88e78f027c initial checkin
james
parents:
diff changeset
    41
documentation
ab88e78f027c initial checkin
james
parents:
diff changeset
    42
"
ab88e78f027c initial checkin
james
parents:
diff changeset
    43
    documentation to be added.
ab88e78f027c initial checkin
james
parents:
diff changeset
    44
ab88e78f027c initial checkin
james
parents:
diff changeset
    45
    [author:]
ab88e78f027c initial checkin
james
parents:
diff changeset
    46
         (james@miraculix)
ab88e78f027c initial checkin
james
parents:
diff changeset
    47
ab88e78f027c initial checkin
james
parents:
diff changeset
    48
    [instance variables:]
ab88e78f027c initial checkin
james
parents:
diff changeset
    49
ab88e78f027c initial checkin
james
parents:
diff changeset
    50
    [class variables:]
ab88e78f027c initial checkin
james
parents:
diff changeset
    51
ab88e78f027c initial checkin
james
parents:
diff changeset
    52
    [see also:]
ab88e78f027c initial checkin
james
parents:
diff changeset
    53
ab88e78f027c initial checkin
james
parents:
diff changeset
    54
"
ab88e78f027c initial checkin
james
parents:
diff changeset
    55
!
ab88e78f027c initial checkin
james
parents:
diff changeset
    56
ab88e78f027c initial checkin
james
parents:
diff changeset
    57
examples
ab88e78f027c initial checkin
james
parents:
diff changeset
    58
"
ab88e78f027c initial checkin
james
parents:
diff changeset
    59
  Starting the application:
ab88e78f027c initial checkin
james
parents:
diff changeset
    60
                                                                [exBegin]
ab88e78f027c initial checkin
james
parents:
diff changeset
    61
    Packages::PackageBrowser open
ab88e78f027c initial checkin
james
parents:
diff changeset
    62
ab88e78f027c initial checkin
james
parents:
diff changeset
    63
                                                                [exEnd]
ab88e78f027c initial checkin
james
parents:
diff changeset
    64
ab88e78f027c initial checkin
james
parents:
diff changeset
    65
  more examples to be added:
ab88e78f027c initial checkin
james
parents:
diff changeset
    66
                                                                [exBegin]
ab88e78f027c initial checkin
james
parents:
diff changeset
    67
    ... add code fragment for 
ab88e78f027c initial checkin
james
parents:
diff changeset
    68
    ... executable example here ...
ab88e78f027c initial checkin
james
parents:
diff changeset
    69
                                                                [exEnd]
ab88e78f027c initial checkin
james
parents:
diff changeset
    70
"
ab88e78f027c initial checkin
james
parents:
diff changeset
    71
!
ab88e78f027c initial checkin
james
parents:
diff changeset
    72
ab88e78f027c initial checkin
james
parents:
diff changeset
    73
history
ab88e78f027c initial checkin
james
parents:
diff changeset
    74
    "Created: / 19.3.2003 / 11:23:18 / james"
ab88e78f027c initial checkin
james
parents:
diff changeset
    75
! !
ab88e78f027c initial checkin
james
parents:
diff changeset
    76
ab88e78f027c initial checkin
james
parents:
diff changeset
    77
!PackageBrowser class methodsFor:'interface specs'!
ab88e78f027c initial checkin
james
parents:
diff changeset
    78
1268
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
    79
XXXwindowSpec
1227
ab88e78f027c initial checkin
james
parents:
diff changeset
    80
    "This resource specification was automatically generated
ab88e78f027c initial checkin
james
parents:
diff changeset
    81
     by the UIPainter of ST/X."
ab88e78f027c initial checkin
james
parents:
diff changeset
    82
ab88e78f027c initial checkin
james
parents:
diff changeset
    83
    "Do not manually edit this!! If it is corrupted,
ab88e78f027c initial checkin
james
parents:
diff changeset
    84
     the UIPainter may not be able to read the specification."
ab88e78f027c initial checkin
james
parents:
diff changeset
    85
ab88e78f027c initial checkin
james
parents:
diff changeset
    86
    "
ab88e78f027c initial checkin
james
parents:
diff changeset
    87
     UIPainter new openOnClass:Packages::PackageBrowser andSelector:#windowSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
    88
     Packages::PackageBrowser new openInterface:#windowSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
    89
     Packages::PackageBrowser open
ab88e78f027c initial checkin
james
parents:
diff changeset
    90
    "
ab88e78f027c initial checkin
james
parents:
diff changeset
    91
ab88e78f027c initial checkin
james
parents:
diff changeset
    92
    <resource: #canvas>
ab88e78f027c initial checkin
james
parents:
diff changeset
    93
ab88e78f027c initial checkin
james
parents:
diff changeset
    94
    ^ 
ab88e78f027c initial checkin
james
parents:
diff changeset
    95
     #(#FullSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
    96
        #name: #windowSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
    97
        #window: 
ab88e78f027c initial checkin
james
parents:
diff changeset
    98
       #(#WindowSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
    99
          #label: 'Packages::PackageBrowser'
ab88e78f027c initial checkin
james
parents:
diff changeset
   100
          #name: 'Packages::PackageBrowser'
ab88e78f027c initial checkin
james
parents:
diff changeset
   101
          #min: #(#Point 10 10)
ab88e78f027c initial checkin
james
parents:
diff changeset
   102
          #max: #(#Point 1024 768)
ab88e78f027c initial checkin
james
parents:
diff changeset
   103
          #bounds: #(#Rectangle 29 59 777 532)
ab88e78f027c initial checkin
james
parents:
diff changeset
   104
          #menu: #mainMenu
ab88e78f027c initial checkin
james
parents:
diff changeset
   105
        )
ab88e78f027c initial checkin
james
parents:
diff changeset
   106
        #component: 
ab88e78f027c initial checkin
james
parents:
diff changeset
   107
       #(#SpecCollection
ab88e78f027c initial checkin
james
parents:
diff changeset
   108
          #collection: #(
ab88e78f027c initial checkin
james
parents:
diff changeset
   109
           #(#VariableHorizontalPanelSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
   110
              #name: 'VariableHorizontalPanel1'
ab88e78f027c initial checkin
james
parents:
diff changeset
   111
              #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
ab88e78f027c initial checkin
james
parents:
diff changeset
   112
              #showHandle: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   113
              #snapMode: #both
ab88e78f027c initial checkin
james
parents:
diff changeset
   114
              #component: 
ab88e78f027c initial checkin
james
parents:
diff changeset
   115
             #(#SpecCollection
ab88e78f027c initial checkin
james
parents:
diff changeset
   116
                #collection: #(
ab88e78f027c initial checkin
james
parents:
diff changeset
   117
                 #(#SubCanvasSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
   118
                    #name: 'PackageSelector'
ab88e78f027c initial checkin
james
parents:
diff changeset
   119
                    #hasHorizontalScrollBar: false
ab88e78f027c initial checkin
james
parents:
diff changeset
   120
                    #hasVerticalScrollBar: false
ab88e78f027c initial checkin
james
parents:
diff changeset
   121
                    #majorKey: #'Packages::PackageSelector'
ab88e78f027c initial checkin
james
parents:
diff changeset
   122
                    #subAspectHolders: 
ab88e78f027c initial checkin
james
parents:
diff changeset
   123
                   #(#Array
ab88e78f027c initial checkin
james
parents:
diff changeset
   124
                      
ab88e78f027c initial checkin
james
parents:
diff changeset
   125
                     #(#SubChannelInfoSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
   126
                        #subAspect: #packagesSelectedHolder
ab88e78f027c initial checkin
james
parents:
diff changeset
   127
                        #aspect: #packagesSelectedHolder
ab88e78f027c initial checkin
james
parents:
diff changeset
   128
                      )
ab88e78f027c initial checkin
james
parents:
diff changeset
   129
                    )
ab88e78f027c initial checkin
james
parents:
diff changeset
   130
                    #createNewApplication: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   131
                    #createNewBuilder: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   132
                    #postBuildCallback: #packageSelectorCreated:
ab88e78f027c initial checkin
james
parents:
diff changeset
   133
                  )
ab88e78f027c initial checkin
james
parents:
diff changeset
   134
                 #(#SubCanvasSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
   135
                    #name: 'PackageDetails'
ab88e78f027c initial checkin
james
parents:
diff changeset
   136
                    #hasHorizontalScrollBar: false
ab88e78f027c initial checkin
james
parents:
diff changeset
   137
                    #hasVerticalScrollBar: false
ab88e78f027c initial checkin
james
parents:
diff changeset
   138
                    #majorKey: #'Packages::PackageDetails'
ab88e78f027c initial checkin
james
parents:
diff changeset
   139
                    #createNewApplication: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   140
                    #createNewBuilder: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   141
                    #postBuildCallback: #packageDetailsCreated:
ab88e78f027c initial checkin
james
parents:
diff changeset
   142
                  )
ab88e78f027c initial checkin
james
parents:
diff changeset
   143
                 )
ab88e78f027c initial checkin
james
parents:
diff changeset
   144
               
ab88e78f027c initial checkin
james
parents:
diff changeset
   145
              )
ab88e78f027c initial checkin
james
parents:
diff changeset
   146
              #handles: #(#Any 0.260695 1.0)
ab88e78f027c initial checkin
james
parents:
diff changeset
   147
            )
ab88e78f027c initial checkin
james
parents:
diff changeset
   148
           )
ab88e78f027c initial checkin
james
parents:
diff changeset
   149
         
ab88e78f027c initial checkin
james
parents:
diff changeset
   150
        )
ab88e78f027c initial checkin
james
parents:
diff changeset
   151
      )
ab88e78f027c initial checkin
james
parents:
diff changeset
   152
!
ab88e78f027c initial checkin
james
parents:
diff changeset
   153
1268
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   154
windowSpec
1227
ab88e78f027c initial checkin
james
parents:
diff changeset
   155
    "This resource specification was automatically generated
ab88e78f027c initial checkin
james
parents:
diff changeset
   156
     by the UIPainter of ST/X."
ab88e78f027c initial checkin
james
parents:
diff changeset
   157
ab88e78f027c initial checkin
james
parents:
diff changeset
   158
    "Do not manually edit this!! If it is corrupted,
ab88e78f027c initial checkin
james
parents:
diff changeset
   159
     the UIPainter may not be able to read the specification."
ab88e78f027c initial checkin
james
parents:
diff changeset
   160
ab88e78f027c initial checkin
james
parents:
diff changeset
   161
    "
ab88e78f027c initial checkin
james
parents:
diff changeset
   162
     UIPainter new openOnClass:Packages::PackageBrowser andSelector:#windowSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
   163
     Packages::PackageBrowser new openInterface:#windowSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
   164
     Packages::PackageBrowser open
ab88e78f027c initial checkin
james
parents:
diff changeset
   165
    "
ab88e78f027c initial checkin
james
parents:
diff changeset
   166
ab88e78f027c initial checkin
james
parents:
diff changeset
   167
    <resource: #canvas>
ab88e78f027c initial checkin
james
parents:
diff changeset
   168
ab88e78f027c initial checkin
james
parents:
diff changeset
   169
    ^ 
ab88e78f027c initial checkin
james
parents:
diff changeset
   170
     #(#FullSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
   171
        #name: #windowSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
   172
        #window: 
ab88e78f027c initial checkin
james
parents:
diff changeset
   173
       #(#WindowSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
   174
          #label: 'Packages::PackageBrowser'
ab88e78f027c initial checkin
james
parents:
diff changeset
   175
          #name: 'Packages::PackageBrowser'
ab88e78f027c initial checkin
james
parents:
diff changeset
   176
          #min: #(#Point 10 10)
ab88e78f027c initial checkin
james
parents:
diff changeset
   177
          #max: #(#Point 1024 768)
1268
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   178
          #bounds: #(#Rectangle 29 59 777 532)
1227
ab88e78f027c initial checkin
james
parents:
diff changeset
   179
          #menu: #mainMenu
ab88e78f027c initial checkin
james
parents:
diff changeset
   180
        )
ab88e78f027c initial checkin
james
parents:
diff changeset
   181
        #component: 
ab88e78f027c initial checkin
james
parents:
diff changeset
   182
       #(#SpecCollection
ab88e78f027c initial checkin
james
parents:
diff changeset
   183
          #collection: #(
1268
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   184
           #(#MenuPanelSpec
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   185
              #name: 'ToolBar1'
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   186
              #layout: #(#LayoutFrame 0 0 0 0 0 1 30 0)
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   187
              #menu: #menu
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   188
              #textDefault: true
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   189
            )
1227
ab88e78f027c initial checkin
james
parents:
diff changeset
   190
           #(#VariableHorizontalPanelSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
   191
              #name: 'VariableHorizontalPanel1'
1268
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   192
              #layout: #(#LayoutFrame 0 0.0 30 0.0 0 1.0 0 1.0)
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   193
              #showHandle: true
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   194
              #snapMode: #both
1227
ab88e78f027c initial checkin
james
parents:
diff changeset
   195
              #component: 
ab88e78f027c initial checkin
james
parents:
diff changeset
   196
             #(#SpecCollection
ab88e78f027c initial checkin
james
parents:
diff changeset
   197
                #collection: #(
ab88e78f027c initial checkin
james
parents:
diff changeset
   198
                 #(#SubCanvasSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
   199
                    #name: 'PackageSelector'
ab88e78f027c initial checkin
james
parents:
diff changeset
   200
                    #hasHorizontalScrollBar: false
ab88e78f027c initial checkin
james
parents:
diff changeset
   201
                    #hasVerticalScrollBar: false
ab88e78f027c initial checkin
james
parents:
diff changeset
   202
                    #majorKey: #'Packages::PackageSelector'
ab88e78f027c initial checkin
james
parents:
diff changeset
   203
                    #subAspectHolders: 
ab88e78f027c initial checkin
james
parents:
diff changeset
   204
                   #(#Array
ab88e78f027c initial checkin
james
parents:
diff changeset
   205
                      
ab88e78f027c initial checkin
james
parents:
diff changeset
   206
                     #(#SubChannelInfoSpec
1268
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   207
                        #subAspect: #packagesSelectedHolder
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   208
                        #aspect: #packagesSelectedHolder
1227
ab88e78f027c initial checkin
james
parents:
diff changeset
   209
                      )
ab88e78f027c initial checkin
james
parents:
diff changeset
   210
                    )
ab88e78f027c initial checkin
james
parents:
diff changeset
   211
                    #createNewApplication: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   212
                    #createNewBuilder: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   213
                    #postBuildCallback: #packageSelectorCreated:
ab88e78f027c initial checkin
james
parents:
diff changeset
   214
                  )
ab88e78f027c initial checkin
james
parents:
diff changeset
   215
                 #(#SubCanvasSpec
ab88e78f027c initial checkin
james
parents:
diff changeset
   216
                    #name: 'PackageDetails'
ab88e78f027c initial checkin
james
parents:
diff changeset
   217
                    #hasHorizontalScrollBar: false
ab88e78f027c initial checkin
james
parents:
diff changeset
   218
                    #hasVerticalScrollBar: false
ab88e78f027c initial checkin
james
parents:
diff changeset
   219
                    #majorKey: #'Packages::PackageDetails'
ab88e78f027c initial checkin
james
parents:
diff changeset
   220
                    #createNewApplication: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   221
                    #createNewBuilder: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   222
                    #postBuildCallback: #packageDetailsCreated:
ab88e78f027c initial checkin
james
parents:
diff changeset
   223
                  )
ab88e78f027c initial checkin
james
parents:
diff changeset
   224
                 )
ab88e78f027c initial checkin
james
parents:
diff changeset
   225
               
ab88e78f027c initial checkin
james
parents:
diff changeset
   226
              )
1268
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   227
              #handles: #(#Any 0.287433 1.0)
1227
ab88e78f027c initial checkin
james
parents:
diff changeset
   228
            )
ab88e78f027c initial checkin
james
parents:
diff changeset
   229
           )
ab88e78f027c initial checkin
james
parents:
diff changeset
   230
         
ab88e78f027c initial checkin
james
parents:
diff changeset
   231
        )
ab88e78f027c initial checkin
james
parents:
diff changeset
   232
      )
ab88e78f027c initial checkin
james
parents:
diff changeset
   233
! !
ab88e78f027c initial checkin
james
parents:
diff changeset
   234
ab88e78f027c initial checkin
james
parents:
diff changeset
   235
!PackageBrowser class methodsFor:'menu specs'!
ab88e78f027c initial checkin
james
parents:
diff changeset
   236
ab88e78f027c initial checkin
james
parents:
diff changeset
   237
mainMenu
ab88e78f027c initial checkin
james
parents:
diff changeset
   238
    "This resource specification was automatically generated by the CodeGeneratorTool."
ab88e78f027c initial checkin
james
parents:
diff changeset
   239
ab88e78f027c initial checkin
james
parents:
diff changeset
   240
    "Do not manually edit this!! If it is corrupted,
ab88e78f027c initial checkin
james
parents:
diff changeset
   241
     the MenuEditor may not be able to read the specification."
ab88e78f027c initial checkin
james
parents:
diff changeset
   242
ab88e78f027c initial checkin
james
parents:
diff changeset
   243
    "
ab88e78f027c initial checkin
james
parents:
diff changeset
   244
     MenuEditor new openOnClass:Packages::PackageBrowser andSelector:#mainMenu
ab88e78f027c initial checkin
james
parents:
diff changeset
   245
    "
ab88e78f027c initial checkin
james
parents:
diff changeset
   246
ab88e78f027c initial checkin
james
parents:
diff changeset
   247
    <resource: #menu>
ab88e78f027c initial checkin
james
parents:
diff changeset
   248
ab88e78f027c initial checkin
james
parents:
diff changeset
   249
    ^ #(#Menu
ab88e78f027c initial checkin
james
parents:
diff changeset
   250
           #(
ab88e78f027c initial checkin
james
parents:
diff changeset
   251
             #(#MenuItem
ab88e78f027c initial checkin
james
parents:
diff changeset
   252
                #label: 'File'
ab88e78f027c initial checkin
james
parents:
diff changeset
   253
                #translateLabel: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   254
                #submenu: 
ab88e78f027c initial checkin
james
parents:
diff changeset
   255
                 #(#Menu
ab88e78f027c initial checkin
james
parents:
diff changeset
   256
                     #(
ab88e78f027c initial checkin
james
parents:
diff changeset
   257
                       #(#MenuItem
ab88e78f027c initial checkin
james
parents:
diff changeset
   258
                          #label: 'New'
ab88e78f027c initial checkin
james
parents:
diff changeset
   259
                          #translateLabel: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   260
                          #value: #menuNew
ab88e78f027c initial checkin
james
parents:
diff changeset
   261
                      )
ab88e78f027c initial checkin
james
parents:
diff changeset
   262
                       #(#MenuItem
ab88e78f027c initial checkin
james
parents:
diff changeset
   263
                          #label: '-'
ab88e78f027c initial checkin
james
parents:
diff changeset
   264
                      )
ab88e78f027c initial checkin
james
parents:
diff changeset
   265
                       #(#MenuItem
ab88e78f027c initial checkin
james
parents:
diff changeset
   266
                          #label: 'Open...'
ab88e78f027c initial checkin
james
parents:
diff changeset
   267
                          #translateLabel: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   268
                          #value: #menuOpen
ab88e78f027c initial checkin
james
parents:
diff changeset
   269
                      )
ab88e78f027c initial checkin
james
parents:
diff changeset
   270
                       #(#MenuItem
ab88e78f027c initial checkin
james
parents:
diff changeset
   271
                          #label: '-'
ab88e78f027c initial checkin
james
parents:
diff changeset
   272
                      )
ab88e78f027c initial checkin
james
parents:
diff changeset
   273
                       #(#MenuItem
ab88e78f027c initial checkin
james
parents:
diff changeset
   274
                          #label: 'Save'
ab88e78f027c initial checkin
james
parents:
diff changeset
   275
                          #translateLabel: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   276
                          #value: #menuSave
ab88e78f027c initial checkin
james
parents:
diff changeset
   277
                      )
ab88e78f027c initial checkin
james
parents:
diff changeset
   278
                       #(#MenuItem
ab88e78f027c initial checkin
james
parents:
diff changeset
   279
                          #label: 'Save As...'
ab88e78f027c initial checkin
james
parents:
diff changeset
   280
                          #translateLabel: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   281
                          #value: #menuSaveAs
ab88e78f027c initial checkin
james
parents:
diff changeset
   282
                      )
ab88e78f027c initial checkin
james
parents:
diff changeset
   283
                       #(#MenuItem
ab88e78f027c initial checkin
james
parents:
diff changeset
   284
                          #label: '-'
ab88e78f027c initial checkin
james
parents:
diff changeset
   285
                      )
ab88e78f027c initial checkin
james
parents:
diff changeset
   286
                       #(#MenuItem
ab88e78f027c initial checkin
james
parents:
diff changeset
   287
                          #label: 'Exit'
ab88e78f027c initial checkin
james
parents:
diff changeset
   288
                          #translateLabel: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   289
                          #value: #closeRequest
ab88e78f027c initial checkin
james
parents:
diff changeset
   290
                      )
ab88e78f027c initial checkin
james
parents:
diff changeset
   291
                    ) nil
ab88e78f027c initial checkin
james
parents:
diff changeset
   292
                    nil
ab88e78f027c initial checkin
james
parents:
diff changeset
   293
                )
ab88e78f027c initial checkin
james
parents:
diff changeset
   294
            )
ab88e78f027c initial checkin
james
parents:
diff changeset
   295
             #(#MenuItem
ab88e78f027c initial checkin
james
parents:
diff changeset
   296
                #label: 'Help'
ab88e78f027c initial checkin
james
parents:
diff changeset
   297
                #translateLabel: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   298
                #startGroup: #right
ab88e78f027c initial checkin
james
parents:
diff changeset
   299
                #submenu: 
ab88e78f027c initial checkin
james
parents:
diff changeset
   300
                 #(#Menu
ab88e78f027c initial checkin
james
parents:
diff changeset
   301
                     #(
ab88e78f027c initial checkin
james
parents:
diff changeset
   302
                       #(#MenuItem
ab88e78f027c initial checkin
james
parents:
diff changeset
   303
                          #label: 'Documentation'
ab88e78f027c initial checkin
james
parents:
diff changeset
   304
                          #translateLabel: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   305
                          #value: #openDocumentation
ab88e78f027c initial checkin
james
parents:
diff changeset
   306
                      )
ab88e78f027c initial checkin
james
parents:
diff changeset
   307
                       #(#MenuItem
ab88e78f027c initial checkin
james
parents:
diff changeset
   308
                          #label: '-'
ab88e78f027c initial checkin
james
parents:
diff changeset
   309
                      )
ab88e78f027c initial checkin
james
parents:
diff changeset
   310
                       #(#MenuItem
ab88e78f027c initial checkin
james
parents:
diff changeset
   311
                          #label: 'About this Application'
ab88e78f027c initial checkin
james
parents:
diff changeset
   312
                          #translateLabel: true
ab88e78f027c initial checkin
james
parents:
diff changeset
   313
                          #value: #openAboutThisApplication
ab88e78f027c initial checkin
james
parents:
diff changeset
   314
                      )
ab88e78f027c initial checkin
james
parents:
diff changeset
   315
                    ) nil
ab88e78f027c initial checkin
james
parents:
diff changeset
   316
                    nil
ab88e78f027c initial checkin
james
parents:
diff changeset
   317
                )
ab88e78f027c initial checkin
james
parents:
diff changeset
   318
            )
ab88e78f027c initial checkin
james
parents:
diff changeset
   319
          ) nil
ab88e78f027c initial checkin
james
parents:
diff changeset
   320
          nil
ab88e78f027c initial checkin
james
parents:
diff changeset
   321
      )
1268
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   322
!
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   323
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   324
menu
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   325
    "This resource specification was automatically generated
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   326
     by the MenuEditor of ST/X."
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   327
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   328
    "Do not manually edit this!! If it is corrupted,
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   329
     the MenuEditor may not be able to read the specification."
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   330
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   331
    "
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   332
     MenuEditor new openOnClass:Packages::PackageBrowser andSelector:#menu
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   333
     (Menu new fromLiteralArrayEncoding:(Packages::PackageBrowser menu)) startUp
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   334
    "
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   335
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   336
    <resource: #menu>
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   337
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   338
    ^ 
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   339
     #(#Menu
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   340
        #(
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   341
         #(#MenuItem
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   342
            #label: 'Reset Smalltalk Manager'
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   343
            #itemValue: #resetSmalltalkManager
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   344
            #translateLabel: true
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   345
            #labelImage: #(#ResourceRetriever #ToolbarIconLibrary #idea16x16Icon)
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   346
          )
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   347
         #(#MenuItem
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   348
            #label: 'Action'
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   349
            #itemValue: #inspectSmalltalkManager
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   350
            #translateLabel: true
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   351
            #labelImage: #(#ResourceRetriever #ToolbarIconLibrary #inspectLocals20x20Icon)
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   352
          )
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   353
         )
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   354
        nil
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   355
        nil
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   356
      )
1227
ab88e78f027c initial checkin
james
parents:
diff changeset
   357
! !
ab88e78f027c initial checkin
james
parents:
diff changeset
   358
ab88e78f027c initial checkin
james
parents:
diff changeset
   359
!PackageBrowser class methodsFor:'plugIn spec'!
ab88e78f027c initial checkin
james
parents:
diff changeset
   360
ab88e78f027c initial checkin
james
parents:
diff changeset
   361
aspectSelectors
ab88e78f027c initial checkin
james
parents:
diff changeset
   362
    "This resource specification was automatically generated
ab88e78f027c initial checkin
james
parents:
diff changeset
   363
     by the UIPainter of ST/X."
ab88e78f027c initial checkin
james
parents:
diff changeset
   364
ab88e78f027c initial checkin
james
parents:
diff changeset
   365
    "Do not manually edit this. If it is corrupted,
ab88e78f027c initial checkin
james
parents:
diff changeset
   366
     the UIPainter may not be able to read the specification."
ab88e78f027c initial checkin
james
parents:
diff changeset
   367
ab88e78f027c initial checkin
james
parents:
diff changeset
   368
    "Return a description of exported aspects;
ab88e78f027c initial checkin
james
parents:
diff changeset
   369
     these can be connected to aspects of an embedding application
ab88e78f027c initial checkin
james
parents:
diff changeset
   370
     (if this app is embedded in a subCanvas)."
ab88e78f027c initial checkin
james
parents:
diff changeset
   371
ab88e78f027c initial checkin
james
parents:
diff changeset
   372
    ^ #(
ab88e78f027c initial checkin
james
parents:
diff changeset
   373
        #packageDetailsApplicationHolder
ab88e78f027c initial checkin
james
parents:
diff changeset
   374
        #packageSelectorApplicationHolder
ab88e78f027c initial checkin
james
parents:
diff changeset
   375
        #packageSelectorSelectionHolder
ab88e78f027c initial checkin
james
parents:
diff changeset
   376
      ).
ab88e78f027c initial checkin
james
parents:
diff changeset
   377
ab88e78f027c initial checkin
james
parents:
diff changeset
   378
! !
ab88e78f027c initial checkin
james
parents:
diff changeset
   379
ab88e78f027c initial checkin
james
parents:
diff changeset
   380
!PackageBrowser methodsFor:'accessing'!
ab88e78f027c initial checkin
james
parents:
diff changeset
   381
ab88e78f027c initial checkin
james
parents:
diff changeset
   382
packageDetailsApplication
ab88e78f027c initial checkin
james
parents:
diff changeset
   383
    ^ packageDetailsApplicationHolder value
ab88e78f027c initial checkin
james
parents:
diff changeset
   384
! !
ab88e78f027c initial checkin
james
parents:
diff changeset
   385
1268
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   386
!PackageBrowser methodsFor:'actions'!
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   387
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   388
inspectSmalltalkManager
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   389
    "This is temporary for when the manager goes a bit bonkers!!"
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   390
    self packageManager inspect
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   391
!
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   392
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   393
resetSmalltalkManager
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   394
    "This is temporary for when the manager goes a bit bonkers!!"
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   395
    | aPackageManager |
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   396
    self withWaitCursorDo:[
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   397
        Packages::PackageManager smalltalkPackageManager becomeNil.
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   398
        aPackageManager := Packages::PackageManager smalltalkPackageManager.
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   399
        self packageManager:aPackageManager
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   400
    ].
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   401
! !
9dc8d1b8ce9b Lots and lots of changes...
james
parents: 1227
diff changeset
   402
1227
ab88e78f027c initial checkin
james
parents:
diff changeset
   403
!PackageBrowser methodsFor:'aspects'!
ab88e78f027c initial checkin
james
parents:
diff changeset
   404
ab88e78f027c initial checkin
james
parents:
diff changeset
   405
packageDetailsApplicationHolder
ab88e78f027c initial checkin
james
parents:
diff changeset
   406
    "automatically generated by UIPainter ..."
ab88e78f027c initial checkin
james
parents:
diff changeset
   407
ab88e78f027c initial checkin
james
parents:
diff changeset
   408
    "*** the code below creates a default model when invoked."
ab88e78f027c initial checkin
james
parents:
diff changeset
   409
    "*** (which may not be the one you wanted)"
ab88e78f027c initial checkin
james
parents:
diff changeset
   410
    "*** Please change as required and accept it in the browser."
ab88e78f027c initial checkin
james
parents:
diff changeset
   411
    "*** (and replace this comment by something more useful ;-)"
ab88e78f027c initial checkin
james
parents:
diff changeset
   412
ab88e78f027c initial checkin
james
parents:
diff changeset
   413
    packageDetailsApplicationHolder isNil ifTrue:[
ab88e78f027c initial checkin
james
parents:
diff changeset
   414
        packageDetailsApplicationHolder := ValueHolder new.
ab88e78f027c initial checkin
james
parents:
diff changeset
   415
"/ if your app needs to be notified of changes, uncomment one of the lines below:
ab88e78f027c initial checkin
james
parents:
diff changeset
   416
"/       packageDetailsApplicationHolder addDependent:self.
ab88e78f027c initial checkin
james
parents:
diff changeset
   417
"/       packageDetailsApplicationHolder onChangeSend:#packageDetailsApplicationHolderChanged to:self.
ab88e78f027c initial checkin
james
parents:
diff changeset
   418
    ].
ab88e78f027c initial checkin
james
parents:
diff changeset
   419
    ^ packageDetailsApplicationHolder.
ab88e78f027c initial checkin
james
parents:
diff changeset
   420
!
ab88e78f027c initial checkin
james
parents:
diff changeset
   421
ab88e78f027c initial checkin
james
parents:
diff changeset
   422
packageSelectorApplicationHolder
ab88e78f027c initial checkin
james
parents:
diff changeset
   423
    "automatically generated by UIPainter ..."
ab88e78f027c initial checkin
james
parents:
diff changeset
   424
ab88e78f027c initial checkin
james
parents:
diff changeset
   425
    "*** the code below creates a default model when invoked."
ab88e78f027c initial checkin
james
parents:
diff changeset
   426
    "*** (which may not be the one you wanted)"
ab88e78f027c initial checkin
james
parents:
diff changeset
   427
    "*** Please change as required and accept it in the browser."
ab88e78f027c initial checkin
james
parents:
diff changeset
   428
    "*** (and replace this comment by something more useful ;-)"
ab88e78f027c initial checkin
james
parents:
diff changeset
   429
ab88e78f027c initial checkin
james
parents:
diff changeset
   430
    packageSelectorApplicationHolder isNil ifTrue:[
ab88e78f027c initial checkin
james
parents:
diff changeset
   431
        packageSelectorApplicationHolder := ValueHolder new.
ab88e78f027c initial checkin
james
parents:
diff changeset
   432
"/ if your app needs to be notified of changes, uncomment one of the lines below:
ab88e78f027c initial checkin
james
parents:
diff changeset
   433
"/       packageSelectorApplicationHolder addDependent:self.
ab88e78f027c initial checkin
james
parents:
diff changeset
   434
"/       packageSelectorApplicationHolder onChangeSend:#packageSelectorApplicationHolderChanged to:self.
ab88e78f027c initial checkin
james
parents:
diff changeset
   435
    ].
ab88e78f027c initial checkin
james
parents:
diff changeset
   436
    ^ packageSelectorApplicationHolder.
ab88e78f027c initial checkin
james
parents:
diff changeset
   437
!
ab88e78f027c initial checkin
james
parents:
diff changeset
   438
ab88e78f027c initial checkin
james
parents:
diff changeset
   439
packagesSelectedHolder
ab88e78f027c initial checkin
james
parents:
diff changeset
   440
    packageSelectorSelectionHolder isNil ifTrue:[
ab88e78f027c initial checkin
james
parents:
diff changeset
   441
        self applicationAspectsAt:#packagesSelectedHolder put:ValueHolder new.
ab88e78f027c initial checkin
james
parents:
diff changeset
   442
    ].
ab88e78f027c initial checkin
james
parents:
diff changeset
   443
    ^ packageSelectorSelectionHolder.
ab88e78f027c initial checkin
james
parents:
diff changeset
   444
! !
ab88e78f027c initial checkin
james
parents:
diff changeset
   445
ab88e78f027c initial checkin
james
parents:
diff changeset
   446
!PackageBrowser methodsFor:'callbacks'!
ab88e78f027c initial checkin
james
parents:
diff changeset
   447
ab88e78f027c initial checkin
james
parents:
diff changeset
   448
packageDetailsCreated:aSubCanvas
ab88e78f027c initial checkin
james
parents:
diff changeset
   449
    "do nothing...for now"
ab88e78f027c initial checkin
james
parents:
diff changeset
   450
ab88e78f027c initial checkin
james
parents:
diff changeset
   451
    self packageDetailsApplicationHolder value:aSubCanvas client.
ab88e78f027c initial checkin
james
parents:
diff changeset
   452
!
ab88e78f027c initial checkin
james
parents:
diff changeset
   453
ab88e78f027c initial checkin
james
parents:
diff changeset
   454
packageSelectorCreated:aSubCanvas
ab88e78f027c initial checkin
james
parents:
diff changeset
   455
    "do nothing...for now"
ab88e78f027c initial checkin
james
parents:
diff changeset
   456
    self packageSelectorApplicationHolder value:aSubCanvas client.
ab88e78f027c initial checkin
james
parents:
diff changeset
   457
! !
ab88e78f027c initial checkin
james
parents:
diff changeset
   458
ab88e78f027c initial checkin
james
parents:
diff changeset
   459
!PackageBrowser methodsFor:'constants'!
ab88e78f027c initial checkin
james
parents:
diff changeset
   460
ab88e78f027c initial checkin
james
parents:
diff changeset
   461
smalltalkPackageManager
ab88e78f027c initial checkin
james
parents:
diff changeset
   462
    ^ PackageManager smalltalkPackageManager
ab88e78f027c initial checkin
james
parents:
diff changeset
   463
! !
ab88e78f027c initial checkin
james
parents:
diff changeset
   464
ab88e78f027c initial checkin
james
parents:
diff changeset
   465
!PackageBrowser methodsFor:'initialization & release'!
ab88e78f027c initial checkin
james
parents:
diff changeset
   466
ab88e78f027c initial checkin
james
parents:
diff changeset
   467
closeDownViews
ab88e78f027c initial checkin
james
parents:
diff changeset
   468
    "This is a hook method generated by the Browser.
ab88e78f027c initial checkin
james
parents:
diff changeset
   469
     It will be invoked when your app/dialog-window is really closed.
ab88e78f027c initial checkin
james
parents:
diff changeset
   470
     See also #closeDownViews, which is invoked before and may suppress the close
ab88e78f027c initial checkin
james
parents:
diff changeset
   471
     or ask the user for confirmation."
ab88e78f027c initial checkin
james
parents:
diff changeset
   472
ab88e78f027c initial checkin
james
parents:
diff changeset
   473
    "/ change the code below as required ...
ab88e78f027c initial checkin
james
parents:
diff changeset
   474
    "/ This should cleanup any leftover resources
ab88e78f027c initial checkin
james
parents:
diff changeset
   475
    "/ (for example, temporary files)
ab88e78f027c initial checkin
james
parents:
diff changeset
   476
    "/ super closeRequest will initiate the closeDown
ab88e78f027c initial checkin
james
parents:
diff changeset
   477
ab88e78f027c initial checkin
james
parents:
diff changeset
   478
    "/ add your code here
ab88e78f027c initial checkin
james
parents:
diff changeset
   479
ab88e78f027c initial checkin
james
parents:
diff changeset
   480
    "/ do not remove the one below ...
ab88e78f027c initial checkin
james
parents:
diff changeset
   481
    ^ super closeDownViews
ab88e78f027c initial checkin
james
parents:
diff changeset
   482
!
ab88e78f027c initial checkin
james
parents:
diff changeset
   483
ab88e78f027c initial checkin
james
parents:
diff changeset
   484
closeRequest
ab88e78f027c initial checkin
james
parents:
diff changeset
   485
    "This is a hook method generated by the Browser.
ab88e78f027c initial checkin
james
parents:
diff changeset
   486
     It will be invoked when your app/dialog-window is about to be
ab88e78f027c initial checkin
james
parents:
diff changeset
   487
     closed (this method has a chance to suppress the close).
ab88e78f027c initial checkin
james
parents:
diff changeset
   488
     See also #closeDownViews, which is invoked when the close is really done."
ab88e78f027c initial checkin
james
parents:
diff changeset
   489
ab88e78f027c initial checkin
james
parents:
diff changeset
   490
    "/ change the code below as required ...
ab88e78f027c initial checkin
james
parents:
diff changeset
   491
    "/ Closing can be suppressed, by simply returning.
ab88e78f027c initial checkin
james
parents:
diff changeset
   492
    "/ The 'super closeRequest' at the end will initiate the real closeDown
ab88e78f027c initial checkin
james
parents:
diff changeset
   493
ab88e78f027c initial checkin
james
parents:
diff changeset
   494
    ("self hasUnsavedChanges" true) ifTrue:[
ab88e78f027c initial checkin
james
parents:
diff changeset
   495
        (self confirm:(resources string:'Close without saving ?')) ifFalse:[
ab88e78f027c initial checkin
james
parents:
diff changeset
   496
            ^ self
ab88e78f027c initial checkin
james
parents:
diff changeset
   497
        ]
ab88e78f027c initial checkin
james
parents:
diff changeset
   498
    ].
ab88e78f027c initial checkin
james
parents:
diff changeset
   499
ab88e78f027c initial checkin
james
parents:
diff changeset
   500
    ^ super closeRequest
ab88e78f027c initial checkin
james
parents:
diff changeset
   501
!
ab88e78f027c initial checkin
james
parents:
diff changeset
   502
ab88e78f027c initial checkin
james
parents:
diff changeset
   503
initialize
ab88e78f027c initial checkin
james
parents:
diff changeset
   504
    self packageManager:self smalltalkPackageManager.
ab88e78f027c initial checkin
james
parents:
diff changeset
   505
!
ab88e78f027c initial checkin
james
parents:
diff changeset
   506
ab88e78f027c initial checkin
james
parents:
diff changeset
   507
postBuildWith:aBuilder
ab88e78f027c initial checkin
james
parents:
diff changeset
   508
    "This is a hook method generated by the Browser.
ab88e78f027c initial checkin
james
parents:
diff changeset
   509
     It will be invoked during the initialization of your app/dialog,
ab88e78f027c initial checkin
james
parents:
diff changeset
   510
     after all of the visual components have been built, 
ab88e78f027c initial checkin
james
parents:
diff changeset
   511
     but BEFORE the top window is made visible.
ab88e78f027c initial checkin
james
parents:
diff changeset
   512
     Add any app-specific actions here (reading files, setting up values etc.)
ab88e78f027c initial checkin
james
parents:
diff changeset
   513
     See also #postOpenWith:, which is invoked after opening."
ab88e78f027c initial checkin
james
parents:
diff changeset
   514
ab88e78f027c initial checkin
james
parents:
diff changeset
   515
    "/ add any code here ...
ab88e78f027c initial checkin
james
parents:
diff changeset
   516
ab88e78f027c initial checkin
james
parents:
diff changeset
   517
    ^ super postBuildWith:aBuilder
ab88e78f027c initial checkin
james
parents:
diff changeset
   518
!
ab88e78f027c initial checkin
james
parents:
diff changeset
   519
ab88e78f027c initial checkin
james
parents:
diff changeset
   520
postOpenWith:aBuilder
ab88e78f027c initial checkin
james
parents:
diff changeset
   521
    "This is a hook method generated by the Browser.
ab88e78f027c initial checkin
james
parents:
diff changeset
   522
     It will be invoked right after the applications window has been opened.
ab88e78f027c initial checkin
james
parents:
diff changeset
   523
     Add any app-specific actions here (starting background processes etc.).
ab88e78f027c initial checkin
james
parents:
diff changeset
   524
     See also #postBuildWith:, which is invoked before opening."
ab88e78f027c initial checkin
james
parents:
diff changeset
   525
ab88e78f027c initial checkin
james
parents:
diff changeset
   526
    "/ add any code here ...
ab88e78f027c initial checkin
james
parents:
diff changeset
   527
    ^ super postOpenWith:aBuilder
ab88e78f027c initial checkin
james
parents:
diff changeset
   528
! !
ab88e78f027c initial checkin
james
parents:
diff changeset
   529
ab88e78f027c initial checkin
james
parents:
diff changeset
   530
!PackageBrowser methodsFor:'menu actions'!
ab88e78f027c initial checkin
james
parents:
diff changeset
   531
ab88e78f027c initial checkin
james
parents:
diff changeset
   532
menuNew
ab88e78f027c initial checkin
james
parents:
diff changeset
   533
    "This method was generated by the Browser.
ab88e78f027c initial checkin
james
parents:
diff changeset
   534
     It will be invoked when the menu-item 'new' is selected."
ab88e78f027c initial checkin
james
parents:
diff changeset
   535
ab88e78f027c initial checkin
james
parents:
diff changeset
   536
    "/ change below and add any actions as required here ...
ab88e78f027c initial checkin
james
parents:
diff changeset
   537
    self warn:'no action for ''new'' available.'.
ab88e78f027c initial checkin
james
parents:
diff changeset
   538
!
ab88e78f027c initial checkin
james
parents:
diff changeset
   539
ab88e78f027c initial checkin
james
parents:
diff changeset
   540
menuOpen
ab88e78f027c initial checkin
james
parents:
diff changeset
   541
    "This method was generated by the Browser.
ab88e78f027c initial checkin
james
parents:
diff changeset
   542
     It will be invoked when the menu-item 'open' is selected."
ab88e78f027c initial checkin
james
parents:
diff changeset
   543
ab88e78f027c initial checkin
james
parents:
diff changeset
   544
    "/ change below and add any actions as required here ...
ab88e78f027c initial checkin
james
parents:
diff changeset
   545
    self warn:'no action for ''open'' available.'.
ab88e78f027c initial checkin
james
parents:
diff changeset
   546
!
ab88e78f027c initial checkin
james
parents:
diff changeset
   547
ab88e78f027c initial checkin
james
parents:
diff changeset
   548
menuSave
ab88e78f027c initial checkin
james
parents:
diff changeset
   549
    "This method was generated by the Browser.
ab88e78f027c initial checkin
james
parents:
diff changeset
   550
     It will be invoked when the menu-item 'save' is selected."
ab88e78f027c initial checkin
james
parents:
diff changeset
   551
ab88e78f027c initial checkin
james
parents:
diff changeset
   552
    "/ change below and add any actions as required here ...
ab88e78f027c initial checkin
james
parents:
diff changeset
   553
    self warn:'no action for ''save'' available.'.
ab88e78f027c initial checkin
james
parents:
diff changeset
   554
!
ab88e78f027c initial checkin
james
parents:
diff changeset
   555
ab88e78f027c initial checkin
james
parents:
diff changeset
   556
menuSaveAs
ab88e78f027c initial checkin
james
parents:
diff changeset
   557
    "This method was generated by the Browser.
ab88e78f027c initial checkin
james
parents:
diff changeset
   558
     It will be invoked when the menu-item 'saveAs' is selected."
ab88e78f027c initial checkin
james
parents:
diff changeset
   559
ab88e78f027c initial checkin
james
parents:
diff changeset
   560
    "/ change below and add any actions as required here ...
ab88e78f027c initial checkin
james
parents:
diff changeset
   561
    self warn:'no action for ''saveAs'' available.'.
ab88e78f027c initial checkin
james
parents:
diff changeset
   562
!
ab88e78f027c initial checkin
james
parents:
diff changeset
   563
ab88e78f027c initial checkin
james
parents:
diff changeset
   564
openAboutThisApplication
ab88e78f027c initial checkin
james
parents:
diff changeset
   565
    "This method was generated by the Browser.
ab88e78f027c initial checkin
james
parents:
diff changeset
   566
     It will be invoked when the menu-item 'help-about' is selected."
ab88e78f027c initial checkin
james
parents:
diff changeset
   567
ab88e78f027c initial checkin
james
parents:
diff changeset
   568
    "/ could open a customized aboutBox here ...
ab88e78f027c initial checkin
james
parents:
diff changeset
   569
    super openAboutThisApplication
ab88e78f027c initial checkin
james
parents:
diff changeset
   570
!
ab88e78f027c initial checkin
james
parents:
diff changeset
   571
ab88e78f027c initial checkin
james
parents:
diff changeset
   572
openDocumentation
ab88e78f027c initial checkin
james
parents:
diff changeset
   573
    "This method was generated by the Browser.
ab88e78f027c initial checkin
james
parents:
diff changeset
   574
     It will be invoked when the menu-item 'help-documentation' is selected."
ab88e78f027c initial checkin
james
parents:
diff changeset
   575
ab88e78f027c initial checkin
james
parents:
diff changeset
   576
    "/ change below as required ...
ab88e78f027c initial checkin
james
parents:
diff changeset
   577
ab88e78f027c initial checkin
james
parents:
diff changeset
   578
    "/ to open an HTML viewer on some document (under 'doc/online/<language>/' ):
ab88e78f027c initial checkin
james
parents:
diff changeset
   579
    HTMLDocumentView openFullOnDocumentationFile:'TOP.html'.
ab88e78f027c initial checkin
james
parents:
diff changeset
   580
ab88e78f027c initial checkin
james
parents:
diff changeset
   581
    "/ add application-specific help files under the 'doc/online/<language>/help/appName'
ab88e78f027c initial checkin
james
parents:
diff changeset
   582
    "/ directory, and open a viewer with:
ab88e78f027c initial checkin
james
parents:
diff changeset
   583
    "/ HTMLDocumentView openFullOnDocumentationFile:'help/<MyApplication>/TOP.html'.
ab88e78f027c initial checkin
james
parents:
diff changeset
   584
! !
ab88e78f027c initial checkin
james
parents:
diff changeset
   585
ab88e78f027c initial checkin
james
parents:
diff changeset
   586
!PackageBrowser class methodsFor:'documentation'!
ab88e78f027c initial checkin
james
parents:
diff changeset
   587
ab88e78f027c initial checkin
james
parents:
diff changeset
   588
version
3011
1997ff6e7e55 trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1443
diff changeset
   589
    ^ '$Header: /var/local/cvs/stx/libbasic3/packages/PackageBrowser.st,v 1.4 2006-01-10 09:25:17 cg Exp $'
1227
ab88e78f027c initial checkin
james
parents:
diff changeset
   590
! !