MCRepositoryBrowser.st
author Claus Gittinger <cg@exept.de>
Wed, 07 Sep 2011 15:15:34 +0200
changeset 485 a2fd0438b8ac
parent 484 72911faa1f0a
child 495 cacb11edaf45
permissions -rw-r--r--
class definition added: #flyByHelpSpec #helpSpec #targetNamespaceNameHolder #targetPackageHolder changed: #packageDetailsSpec #setTargetNamespace #setTargetPackage #windowSpec
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"{ Package: 'stx:goodies/monticello' }"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
ApplicationModel subclass:#MCRepositoryBrowser
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
	instanceVariableNames:'repositoriesHolder packagesHolder versionsHolder
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
     5
		selectedVersionHolder worker selectedVersionDetailsHolder
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
     6
		selectedRepositoryHolder targetPackage targetNamespace
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
     7
		lastPackage targetPackageHolder targetNamespaceNameHolder'
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
	classVariableNames:''
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
	poolDictionaries:''
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
	category:'Monticello-St/X UI'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    14
!MCRepositoryBrowser class methodsFor:'help specs'!
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    15
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    16
flyByHelpSpec
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    17
    "This resource specification was automatically generated
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    18
     by the UIHelpTool of ST/X."
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    19
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    20
    "Do not manually edit this!! If it is corrupted,
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    21
     the UIHelpTool may not be able to read the specification."
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    22
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    23
    "
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    24
     UIHelpTool openOnClass:MCRepositoryBrowser    
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    25
    "
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    26
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    27
    <resource: #help>
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    28
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    29
    ^ super flyByHelpSpec addPairsFrom:#(
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    30
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    31
#loadVersion
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    32
'Load the selected version'
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    33
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    34
#targetNamespace
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    35
'Namespace override. Change via the "Loading"-Menu'
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    36
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    37
#targetPackage
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    38
'ST/X Package override. Change via the "Loading"-Menu'
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    39
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    40
)
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    41
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    42
    "Created: / 07-09-2011 / 15:13:00 / cg"
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    43
! !
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    44
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
!MCRepositoryBrowser class methodsFor:'interface specs'!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
packageDetailsSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
    "This resource specification was automatically generated
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
     by the UIPainter of ST/X."
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
    "Do not manually edit this!! If it is corrupted,
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
     the UIPainter may not be able to read the specification."
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    "
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
    55
     UIPainter new openOnClass:MCRepositoryBrowser andSelector:#packageDetailsSpec
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
    56
     MCRepositoryBrowser new openInterface:#packageDetailsSpec
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
    "
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
    <resource: #canvas>
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
    ^ 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
     #(FullSpec
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
    63
        name: packageDetailsSpec
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
        window: 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
       (WindowSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
          label: 'MC Package Details'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
          name: 'MC Package Details'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
          min: (Point 10 10)
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
          bounds: (Rectangle 0 0 533 326)
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
        )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
        component: 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
       (SpecCollection
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
          collection: (
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
           (TextEditorSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
              name: 'PackageDetails'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
              layout: (LayoutFrame 0 0 0 0 0 1 -30 1)
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
              model: selectedVersionDetailsHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
              hasHorizontalScrollBar: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
              hasVerticalScrollBar: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
              isReadOnly: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
              hasKeyboardFocusInitially: false
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
            )
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    83
           (LabelSpec
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    84
              name: 'Label1'
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    85
              layout: (LayoutFrame 2 0 -30 1 -1 0.5 -2 1)
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    86
              activeHelpKey: targetNamespace
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    87
              level: -1
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    88
              translateLabel: true
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    89
              labelChannel: targetNamespaceNameHolder
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    90
              adjust: left
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    91
            )
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    92
           (LabelSpec
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    93
              name: 'Label2'
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    94
              layout: (LayoutFrame 1 0.5 -30 1 -2 1 -2 1)
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    95
              activeHelpKey: targetPackage
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    96
              level: -1
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    97
              translateLabel: true
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    98
              labelChannel: targetPackageHolder
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    99
              adjust: left
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   100
            )
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
           )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
         
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
        )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
      )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
windowSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
    "This resource specification was automatically generated
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
     by the UIPainter of ST/X."
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
    "Do not manually edit this!! If it is corrupted,
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
     the UIPainter may not be able to read the specification."
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
    "
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
     UIPainter new openOnClass:MCRepositoryBrowser andSelector:#windowSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
     MCRepositoryBrowser new openInterface:#windowSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
     MCRepositoryBrowser open
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
    "
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
    <resource: #canvas>
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
    ^ 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
     #(FullSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
        name: windowSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
        window: 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
       (WindowSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
          label: 'MC Repository Browser'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
          name: 'MC Repository Browser'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
          min: (Point 10 10)
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
          bounds: (Rectangle 0 0 796 497)
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   131
          menu: mainMenu
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
        )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
        component: 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
       (SpecCollection
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
          collection: (
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
           (VariableVerticalPanelSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
              name: 'VariableVerticalPanel1'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
              layout: (LayoutFrame 0 0 0 0 0 1 0 1)
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
              component: 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
             (SpecCollection
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
                collection: (
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
                 (VariableHorizontalPanelSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
                    name: 'VariableHorizontalPanel1'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
                    component: 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
                   (SpecCollection
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
                      collection: (
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
                       (SubCanvasSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
                          name: 'RepositoryList'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
                          hasHorizontalScrollBar: false
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
                          hasVerticalScrollBar: false
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
                          majorKey: MCRepositoryList
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
                          subAspectHolders: 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
                         (Array
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   154
                            
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   155
                           (SubChannelInfoSpec
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   156
                              subAspect: menuHolder
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   157
                              aspect: repositoryListMenu
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   158
                            ) 
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   159
                           (SubChannelInfoSpec
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   160
                              subAspect: inGeneratorHolder
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   161
                              aspect: repositoriesHolder
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   162
                            )
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
                            
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
                           (SubChannelInfoSpec
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   165
                              subAspect: outGeneratorHolder
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   166
                              aspect: packagesHolder
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
                            ) 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
                           (SubChannelInfoSpec
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   169
                              subAspect: selectionHolder
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   170
                              aspect: selectedRepositoryHolder
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
                            )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
                          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
                          createNewApplication: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
                          createNewBuilder: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
                        )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
                       (SubCanvasSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
                          name: 'PackageList'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
                          hasHorizontalScrollBar: false
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
                          hasVerticalScrollBar: false
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
                          majorKey: MCPackageList
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
                          subAspectHolders: 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
                         (Array
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   183
                            
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   184
                           (SubChannelInfoSpec
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   185
                              subAspect: menuHolder
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   186
                              aspect: packageListMenu
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   187
                            ) 
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   188
                           (SubChannelInfoSpec
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   189
                              subAspect: inGeneratorHolder
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   190
                              aspect: packagesHolder
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   191
                            )
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
                            
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
                           (SubChannelInfoSpec
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   194
                              subAspect: outGeneratorHolder
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   195
                              aspect: versionsHolder
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
                            ) 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
                           (SubChannelInfoSpec
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   198
                              subAspect: selectionHolder
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   199
                              aspect: selectedPackageHolder
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
                            )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
                          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
                          createNewApplication: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
                          createNewBuilder: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
                        )
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   205
                       (ViewSpec
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   206
                          name: 'Box1'
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   207
                          component: 
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   208
                         (SpecCollection
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   209
                            collection: (
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   210
                             (SubCanvasSpec
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   211
                                name: 'VersionList'
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   212
                                layout: (LayoutFrame 0 0 0 0 0 1 -30 1)
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   213
                                hasHorizontalScrollBar: false
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   214
                                hasVerticalScrollBar: false
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   215
                                majorKey: MCVersionList
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   216
                                subAspectHolders: 
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   217
                               (Array
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   218
                                  
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   219
                                 (SubChannelInfoSpec
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   220
                                    subAspect: inGeneratorHolder
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   221
                                    aspect: versionsHolder
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   222
                                  ) 
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   223
                                 (SubChannelInfoSpec
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   224
                                    subAspect: menuHolder
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   225
                                    aspect: versionsMenu
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   226
                                  )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   227
                                  
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   228
                                 (SubChannelInfoSpec
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   229
                                    subAspect: selectionHolder
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   230
                                    aspect: selectedVersionHolder
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   231
                                  )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   232
                                )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   233
                                createNewApplication: true
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   234
                                createNewBuilder: true
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   235
                              )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   236
                             (ActionButtonSpec
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   237
                                label: 'Load'
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   238
                                name: 'LoadButton'
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   239
                                layout: (LayoutFrame 0 0 -30 1 0 1 0 1)
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   240
                                translateLabel: true
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   241
                                model: versionLoad
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   242
                                enableChannel: hasVersionSelectedHolder
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   243
                                activeHelpKey: loadVersion
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   244
                              )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   245
                             )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   246
                           
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   247
                          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   248
                        )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
                       )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   250
                     
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
                    )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
                    handles: (Any 0.333333333333333 0.666666666666667 1.0)
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
                  )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
                 (UISubSpecification
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   255
                    name: 'SubSpecification1'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
                    minorKey: packageDetailsSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
                  )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   258
                 )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   259
               
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   260
              )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   261
              handles: (Any 0.5 1.0)
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   262
            )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
           )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
         
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
        )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
      )
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   267
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   268
    "Modified: / 07-09-2011 / 15:14:55 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
! !
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
!MCRepositoryBrowser class methodsFor:'menu specs'!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   272
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   273
loadingMenu
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   274
    "This resource specification was automatically generated
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   275
     by the MenuEditor of ST/X."
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   276
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   277
    "Do not manually edit this!! If it is corrupted,
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   278
     the MenuEditor may not be able to read the specification."
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   279
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   280
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   281
    "
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   282
     MenuEditor new openOnClass:MCRepositoryBrowser andSelector:#loadingMenu
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   283
     (Menu new fromLiteralArrayEncoding:(MCRepositoryBrowser loadingMenu)) startUp
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   284
    "
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   285
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   286
    <resource: #menu>
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   287
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   288
    ^ 
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   289
     #(Menu
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   290
        (
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   291
         (MenuItem
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   292
            label: 'Set Target Package...'
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   293
            itemValue: setTargetPackage
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   294
            translateLabel: true
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   295
          )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   296
         (MenuItem
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   297
            label: 'Set Target Namespace...'
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   298
            itemValue: setTargetNamespace
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   299
            translateLabel: true
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   300
          )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   301
         )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   302
        nil
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   303
        nil
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   304
      )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   305
!
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   306
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   307
mainMenu
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   308
    "This resource specification was automatically generated
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   309
     by the MenuEditor of ST/X."
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   310
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   311
    "Do not manually edit this!! If it is corrupted,
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   312
     the MenuEditor may not be able to read the specification."
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   313
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   314
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   315
    "
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   316
     MenuEditor new openOnClass:MCRepositoryBrowser andSelector:#mainMenu
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   317
     (Menu new fromLiteralArrayEncoding:(MCRepositoryBrowser mainMenu)) startUp
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   318
    "
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   319
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   320
    <resource: #menu>
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   321
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   322
    ^ 
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   323
     #(Menu
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   324
        (
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   325
         (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   326
            label: 'File'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   327
            translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   328
            submenu: 
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   329
           (Menu
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   330
              (
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   331
               (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   332
                  label: 'Exit'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   333
                  itemValue: closeRequest
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   334
                  translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   335
                )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   336
               )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   337
              nil
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   338
              nil
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   339
            )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   340
          )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   341
         (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   342
            label: 'Repository'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   343
            translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   344
            submenuChannel: repositoryListMenu
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   345
          )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   346
         (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   347
            label: 'Package'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   348
            translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   349
            submenuChannel: packageListMenu
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   350
          )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   351
         (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   352
            label: 'Version'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   353
            translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   354
            submenuChannel: versionsMenu
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   355
          )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   356
         (MenuItem
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   357
            label: 'Loading'
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   358
            translateLabel: true
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   359
            submenuChannel: loadingMenu
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   360
          )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   361
         (MenuItem
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   362
            label: 'Help'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   363
            translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   364
            startGroup: conditionalRight
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   365
            submenu: 
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   366
           (Menu
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   367
              (
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   368
               (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   369
                  label: 'Documentation'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   370
                  itemValue: openDocumentation
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   371
                  translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   372
                )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   373
               (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   374
                  label: '-'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   375
                )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   376
               (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   377
                  label: 'About this Application...'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   378
                  itemValue: openAboutThisApplication
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   379
                  translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   380
                )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   381
               )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   382
              nil
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   383
              nil
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   384
            )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   385
          )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   386
         )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   387
        nil
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   388
        nil
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   389
      )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   390
!
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   391
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   392
packageListMenu
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   393
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   394
     by the MenuEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   395
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   396
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   397
     the MenuEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   398
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   399
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   400
    "
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   401
     MenuEditor new openOnClass:MCRepositoryBrowser andSelector:#packageListMenu
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   402
     (Menu new fromLiteralArrayEncoding:(MCRepositoryBrowser packageListMenu)) startUp
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   403
    "
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   404
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   405
    <resource: #menu>
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   406
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   407
    ^ 
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   408
     #(Menu
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   409
        (
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   410
         (MenuItem
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   411
            enabled: packageSelectedAndOperatingSystemIsWindows
468
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   412
            label: 'No Menuentry Yet'
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   413
            translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   414
          )
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   415
         )
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   416
        nil
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   417
        nil
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   418
      )
468
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   419
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   420
    "Modified: / 07-09-2011 / 11:44:38 / cg"
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   421
!
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   422
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   423
repositoryListMenu
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   424
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   425
     by the MenuEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   426
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   427
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   428
     the MenuEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   429
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   430
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   431
    "
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   432
     MenuEditor new openOnClass:MCRepositoryBrowser andSelector:#repositoryListMenu
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   433
     (Menu new fromLiteralArrayEncoding:(MCRepositoryBrowser repositoryListMenu)) startUp
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   434
    "
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   436
    <resource: #menu>
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   437
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   438
    ^ 
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   439
     #(Menu
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   440
        (
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   441
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   442
            label: 'Add Repository...'
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   443
            itemValue: repositoryAdd
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   444
            translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   445
          )
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   446
         (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   447
            label: '-'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   448
          )
484
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   449
         (MenuItem   
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   450
            enabled: hasRepositorySelectedHolder
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   451
            label: 'Flush Cache'
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   452
            itemValue: repositoryFlushCache
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   453
            translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   454
          )
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   455
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   456
            label: '-'
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   457
          )
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   458
         (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   459
            enabled: repositoryIsDirectory
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   460
            label: 'Browse Directory'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   461
            itemValue: repositoryBrowseDirectory
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   462
            translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   463
          )
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   464
         )
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   465
        nil
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   466
        nil
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   467
      )
484
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   468
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   469
    "Modified: / 07-09-2011 / 15:00:57 / cg"
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   470
!
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   471
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   472
versionsMenu
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   473
    "This resource specification was automatically generated
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   474
     by the MenuEditor of ST/X."
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   475
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   476
    "Do not manually edit this!! If it is corrupted,
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   477
     the MenuEditor may not be able to read the specification."
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   478
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   479
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   480
    "
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   481
     MenuEditor new openOnClass:MCRepositoryBrowser andSelector:#versionsMenu
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   482
     (Menu new fromLiteralArrayEncoding:(MCRepositoryBrowser versionsMenu)) startUp
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   483
    "
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   484
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   485
    <resource: #menu>
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   486
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   487
    ^ 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   488
     #(Menu
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   489
        (
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   490
         (MenuItem
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   491
            enabled: hasVersionSelectedHolder
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   492
            label: 'Load'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   493
            itemValue: versionLoad
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   494
            translateLabel: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   495
          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   496
         (MenuItem
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   497
            enabled: hasVersionSelectedHolder
468
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   498
            label: 'Load into Package...'
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   499
            itemValue: versionLoadIntoPackage
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   500
            translateLabel: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   501
          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   502
         (MenuItem
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   503
            label: '-'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   504
          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   505
         (MenuItem
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   506
            enabled: hasVersionSelectedHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   507
            label: 'Browse'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   508
            itemValue: versionBrowser
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   509
            translateLabel: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   511
         (MenuItem
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   512
            enabled: hasVersionSelectedHolder
468
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   513
            label: 'Browse Unloadable'
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   514
            itemValue: versionBrowseUnloadable
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   515
            translateLabel: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   516
          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   517
         (MenuItem
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   518
            label: '-'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   519
          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   520
         (MenuItem
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   521
            enabled: hasVersionSelectedAndOperatingSystemIsWindowsHolder
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   522
            label: 'Show in Winzip'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   523
            itemValue: showPackageInWinZip
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   524
            translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   525
          )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   526
         (MenuItem
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   527
            enabled: hasVersionSelectedHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   528
            label: 'Inspect'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   529
            itemValue: versionInspect
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   530
            translateLabel: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   531
          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   532
         )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
        nil
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   534
        nil
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   535
      )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   536
! !
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   537
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   538
!MCRepositoryBrowser methodsFor:'accessing'!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   539
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   540
selectedVersion
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   541
    "return the value in 'selectedVersionHolder'"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   542
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   543
    ^ self selectedVersionHolder value
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   544
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   545
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   546
selectedVersion: newValue
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   547
    "set the value in 'selectedVersionHolder'"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   548
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   549
    self selectedVersionHolder value: newValue
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   550
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   551
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   552
selectedVersionAsMCVersion
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   553
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   554
    | entry |
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   555
    entry :=  self selectedVersionHolder value.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   556
    ^entry ifNil:[nil] ifNotNil:[entry asMCVersion].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   557
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   558
    "Created: / 13-10-2010 / 17:48:05 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   559
! !
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   560
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   561
!MCRepositoryBrowser methodsFor:'aspect-queries'!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   562
484
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   563
hasRepositorySelectedHolder
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   564
    ^ BlockValue
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   565
        with:[:h | h value notNil]
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   566
        argument:(self selectedRepositoryHolder)
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   567
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   568
    "Created: / 13-10-2010 / 17:08:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   569
    "Modified: / 07-09-2011 / 13:14:17 / cg"
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   570
    "Created: / 07-09-2011 / 15:00:44 / cg"
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   571
!
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   572
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   573
hasVersionSelectedAndOperatingSystemIsWindowsHolder
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   574
    ^[self hasVersionSelectedHolder value
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   575
      and:[ OperatingSystem isMSWINDOWSlike ]]
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   576
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   577
    "Created: / 25-08-2011 / 08:49:24 / cg"
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   578
!
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   579
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   580
hasVersionSelectedHolder
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   581
    ^ BlockValue
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   582
        with:[:h | h value notNil]
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   583
        argument:(self selectedVersionHolder)
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   584
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   585
    "Created: / 13-10-2010 / 17:08:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   586
    "Modified: / 07-09-2011 / 13:14:17 / cg"
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   587
!
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   588
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   589
repositoryIsDirectory
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   590
    ^ BlockValue
484
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   591
        with:[:h | h value notNil
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   592
                   and:[ h value repository isKindOf: MCDirectoryRepository ]]
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   593
        argument:[ self selectedRepositoryHolder ]
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   594
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   595
    "Created: / 31-08-2011 / 09:08:54 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   596
! !
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   597
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   598
!MCRepositoryBrowser methodsFor:'aspects'!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   599
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   600
packagesHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   601
    "return/create the 'packagesHolder' value holder (automatically generated)"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   602
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   603
    packagesHolder isNil ifTrue:[
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   604
        packagesHolder := ValueHolder new.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   605
    ].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   606
    ^ packagesHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   607
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   608
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   609
packagesHolder:something
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   610
    "set the 'packagesHolder' value holder (automatically generated)"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   611
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   612
    packagesHolder := something.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   613
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   614
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   615
repositoriesHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   616
    "return/create the 'repositoriesHolder' value holder (automatically generated)"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   617
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   618
    repositoriesHolder isNil ifTrue:[
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   619
        repositoriesHolder := ValueHolder with:(MCRepositoryGroup default repositories).
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   620
    ].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   621
    ^ repositoriesHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   622
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   623
    "Modified: / 16-09-2010 / 18:33:42 / Jan Vrany <jan.vrany@fit.cvut.cz>"
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   624
    "Modified (format): / 29-08-2011 / 12:26:04 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   625
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   626
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   627
repositoriesHolder:something
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   628
    "set the 'repositoriesHolder' value holder (automatically generated)"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   629
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   630
    repositoriesHolder := something.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   631
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   632
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   633
selectedRepositoryHolder
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   634
    "return/create the valueHolder 'selectedVersionHolder'"
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   635
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   636
    selectedRepositoryHolder isNil ifTrue:[
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   637
        selectedRepositoryHolder := nil asValue.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   638
    ].
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   639
    ^ selectedRepositoryHolder
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   640
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   641
    "Created: / 31-08-2011 / 09:09:56 / cg"
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   642
!
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   643
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   644
selectedVersionDetailsHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   645
    <resource: #uiAspect>
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   646
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   647
    "automatically generated by UIPainter ..."
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   648
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   649
    "*** the code below creates a default model when invoked."
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   650
    "*** (which may not be the one you wanted)"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   651
    "*** Please change as required and accept it in the browser."
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   652
    "*** (and replace this comment by something more useful ;-)"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   653
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   654
    selectedVersionDetailsHolder isNil ifTrue:[
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   655
        selectedVersionDetailsHolder := '' asValue.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   656
"/ if your app needs to be notified of changes, uncomment one of the lines below:
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   657
"/       selectedPackageDetailsHolder addDependent:self.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   658
"/       selectedPackageDetailsHolder onChangeSend:#selectedPackageDetailsHolderChanged to:self.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   659
    ].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   660
    ^ selectedVersionDetailsHolder.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   661
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   662
    "Modified: / 17-09-2010 / 15:17:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   663
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   664
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   665
selectedVersionHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   666
    "return/create the valueHolder 'selectedVersionHolder'"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   667
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   668
    selectedVersionHolder isNil ifTrue:[
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   669
        selectedVersionHolder := ValueHolder with:nil "defaultValue here".
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   670
        selectedVersionHolder onChangeSend: #updateVersionDetails to: self.        
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   671
    ].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   672
    ^ selectedVersionHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   673
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   674
    "Modified: / 17-09-2010 / 15:23:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   675
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   676
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   677
selectedVersionHolder:something
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   678
    selectedVersionHolder := something.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   679
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   680
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   681
targetNamespaceNameHolder
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   682
    <resource: #uiAspect>
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   683
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   684
    "automatically generated by UIPainter ..."
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   685
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   686
    "*** the code below creates a default model when invoked."
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   687
    "*** (which may not be the one you wanted)"
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   688
    "*** Please change as required and accept it in the browser."
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   689
    "*** (and replace this comment by something more useful ;-)"
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   690
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   691
    targetNamespaceNameHolder isNil ifTrue:[
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   692
        targetNamespaceNameHolder := ValueHolder new.
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   693
"/ if your app needs to be notified of changes, uncomment one of the lines below:
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   694
"/       targetNamespaceNameHolder addDependent:self.
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   695
"/       targetNamespaceNameHolder onChangeSend:#targetNamespaceNameHolderChanged to:self.
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   696
    ].
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   697
    ^ targetNamespaceNameHolder.
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   698
!
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   699
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   700
targetPackageHolder
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   701
    <resource: #uiAspect>
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   702
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   703
    "automatically generated by UIPainter ..."
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   704
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   705
    "*** the code below creates a default model when invoked."
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   706
    "*** (which may not be the one you wanted)"
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   707
    "*** Please change as required and accept it in the browser."
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   708
    "*** (and replace this comment by something more useful ;-)"
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   709
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   710
    targetPackageHolder isNil ifTrue:[
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   711
        targetPackageHolder := ValueHolder new.
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   712
"/ if your app needs to be notified of changes, uncomment one of the lines below:
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   713
"/       targetPackageHolder addDependent:self.
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   714
"/       targetPackageHolder onChangeSend:#targetPackageHolderChanged to:self.
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   715
    ].
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   716
    ^ targetPackageHolder.
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   717
!
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   718
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   719
versionsHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   720
    "return/create the 'versionsHolder' value holder (automatically generated)"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   721
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   722
    versionsHolder isNil ifTrue:[
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   723
        versionsHolder := ValueHolder new.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   724
    ].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   725
    ^ versionsHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   726
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   727
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   728
versionsHolder:something
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   729
    "set the 'versionsHolder' value holder (automatically generated)"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   730
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   731
    versionsHolder := something.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   732
! !
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   733
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   734
!MCRepositoryBrowser methodsFor:'menu actions'!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   735
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   736
repositoryAdd
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   737
    |repStr rep url files|
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   738
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   739
    repStr := Dialog request:'Reporitory to add:'.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   740
    repStr isEmptyOrNil ifTrue:[^ self].
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   741
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   742
    url := URL fromString:repStr.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   743
    url method = 'http' ifTrue:[
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   744
        rep := MCHttpRepository
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   745
                location: repStr
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   746
                user: ''
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   747
                password: ''
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   748
    ] ifFalse:[
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   749
        url isFileScheme ifTrue:[
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   750
            rep := MCDirectoryRepository directory:repStr.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   751
        ].
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   752
    ].
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   753
    rep isNil ifTrue:[
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   754
        Dialog warn:'cannot figure out access scheme.'.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   755
        ^ self.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   756
    ].
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   757
    Error handle:[:ex |
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   758
    ] do:[
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   759
        files := rep allFileNames.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   760
    ].
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   761
    files isNil ifTrue:[
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   762
        Dialog warn:'repository does not exist or is inaccessable.'.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   763
        ^ self.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   764
    ].
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   765
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   766
    MCRepositoryGroup default addRepository:rep.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   767
    self repositoriesHolder value:(MCRepositoryGroup default repositories)
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   768
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   769
    "Created: / 29-08-2011 / 12:25:40 / cg"
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   770
!
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   771
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   772
repositoryBrowseDirectory
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   773
    "open a filebrowser on the seleccted directory-repository"
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   774
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   775
    |fn|
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   776
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   777
    fn := self selectedRepositoryHolder value repository directory asFilename.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   778
    fn exists ifFalse:[
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   779
        Dialog warn:'No such directory'.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   780
        ^ self.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   781
    ].
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   782
    UserPreferences current fileBrowserClass openIn:fn
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   783
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   784
    "Created: / 31-08-2011 / 09:16:33 / cg"
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   785
!
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   786
484
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   787
repositoryFlushCache
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   788
    "flush the repository cache - useful only in case of an aborted file load"
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   789
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   790
    self selectedRepositoryHolder value repository flushCache
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   791
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   792
    "Created: / 07-09-2011 / 15:02:21 / cg"
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   793
!
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   794
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   795
setTargetNamespace
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   796
    "specify an st/x namespace to be used as default"
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   797
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   798
    | nsName |
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   799
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   800
    nsName := Dialog 
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   801
                requestNameSpace:'Namepace to load code into:' 
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   802
                initialAnswer:targetNamespace.    
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   803
    nsName isEmptyOrNil ifTrue:[^self].
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   804
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   805
    targetNamespace := nsName.
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   806
    self targetNamespaceNameHolder value:('Target-Namespace: ',targetNamespace).
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   807
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   808
    "Created: / 07-09-2011 / 12:49:42 / cg"
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   809
!
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   810
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   811
setTargetPackage
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   812
    "specify an st/x package identifier to be used as default"
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   813
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   814
    | package |
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   815
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   816
    package := Dialog 
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   817
                requestProject:'Default Smalltalk/X package to load code into:' 
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   818
                initialAnswer:targetPackage
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   819
                suggestions:#().    
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   820
    package ifNil:[^self].
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   821
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   822
    targetPackage := lastPackage := package.
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   823
    self targetPackageHolder value:('Target-Package: ',targetPackage).
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   824
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   825
    "Created: / 07-09-2011 / 12:47:15 / cg"
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   826
!
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   827
468
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   828
showPackageInWinZip
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   829
    | entry tempFile fileStream|
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   830
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   831
    tempFile := Filename newTemporary withSuffix:'zip'.
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   832
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   833
    self withReadCursorDo:[
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   834
        entry :=  self selectedVersionHolder value.
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   835
        entry repository
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   836
            readStreamForFileNamed:entry name do:[:s |
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   837
                fileStream := tempFile writeStream.
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   838
                s reset.
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   839
                s copyToEndInto:fileStream.
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   840
                fileStream close.
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   841
            ].
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   842
    ].
468
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   843
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   844
    Win32OperatingSystem
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   845
        openApplicationForDocument:tempFile operation:#open
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   846
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   847
    "Created: / 07-09-2011 / 11:46:08 / cg"
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   848
!
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   849
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   850
versionBrowseUnloadable
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   851
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   852
     | version snapshot loader unloadables |
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   853
    version := self selectedVersionAsMCVersion.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   854
    version ifNil:[^self].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   855
    snapshot := version snapshot.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   856
    loader := MCPackageLoader new 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   857
                installSnapshot: snapshot;
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   858
                yourself.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   859
    loader analyze.      
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   860
    unloadables := ChangeSet withAll:
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   861
        (loader unloadableDefinitions collect:
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   862
            [:def|def asChange]).
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   863
432
e66073959001 csbrowser2 in: #versionBrowseUnloadable
Claus Gittinger <cg@exept.de>
parents: 291
diff changeset
   864
    (Tools::ChangeSetBrowser2
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   865
        on: unloadables 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   866
        label: version info name  , ' (unloadable definitions)')
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   867
        beTwoColumn;
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   868
        open
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   869
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   870
    "Modified: / 26-10-2010 / 23:04:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
432
e66073959001 csbrowser2 in: #versionBrowseUnloadable
Claus Gittinger <cg@exept.de>
parents: 291
diff changeset
   871
    "Modified: / 20-08-2011 / 18:40:24 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   872
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   873
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   874
versionBrowser
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   875
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   876
    | version snapshot |
462
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
   877
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
   878
    self withWaitCursorDo:[
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
   879
        version := self selectedVersionAsMCVersion.
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
   880
        version ifNil:[^self].
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
   881
        snapshot := version snapshot.
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
   882
        (Tools::ChangeSetBrowser2 
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
   883
            on: snapshot asChangeSet
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
   884
            label: version info name)
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
   885
            beTwoColumn;
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
   886
            open
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
   887
    ].
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   888
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   889
    "Modified: / 04-08-2011 / 19:03:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
462
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
   890
    "Modified: / 29-08-2011 / 08:21:53 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   891
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   892
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   893
versionInspect
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   894
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   895
    | v |
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   896
    v := self selectedVersionAsMCVersion.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   897
    v ifNotNil:[v inspect]
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   898
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   899
    "Modified: / 13-10-2010 / 17:48:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   900
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   901
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   902
versionLoad
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   903
    "load into the default (or previously set) package"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   904
462
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
   905
    | entry |
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
   906
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   907
    entry := self selectedVersionHolder value.
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   908
    entry notNil ifTrue:[
484
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   909
        self withWaitCursorDo:[
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   910
            self versionLoad: entry asMCVersion into:(targetPackage ? PackageId noProjectID)
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   911
        ]
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   912
    ].
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   913
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   914
    "Modified: / 09-11-2010 / 13:26:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
484
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   915
    "Modified: / 07-09-2011 / 14:51:57 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   916
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   917
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   918
versionLoad: version into: package
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   919
462
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
   920
    self withWaitCursorDo:[
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   921
        MCStXNamespaceQuery 
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   922
            answer:(NameSpace name:targetNamespace)   
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   923
            do: [
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   924
                MCStXPackageQuery 
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   925
                    answer: package   
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   926
                    do: [
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   927
                        MCInteractiveLoadingQuery answer: true do:[
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   928
                            version load
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   929
                        ]
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   930
                    ].
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   931
            ].
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   932
    ].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   933
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   934
    "Created: / 09-11-2010 / 13:25:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   935
    "Modified: / 06-03-2011 / 20:44:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   936
    "Modified: / 07-09-2011 / 12:50:06 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   937
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   938
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   939
versionLoadIntoPackage
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   940
    "specify an st/x package identifier"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   941
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   942
    | version package |
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   943
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   944
    version := self selectedVersionAsMCVersion.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   945
    version ifNil:[^self].
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   946
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   947
    package := Dialog 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   948
                requestProject:'Smalltalk/X package to load code into' 
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   949
                initialAnswer:lastPackage
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   950
                suggestions:#().    
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   951
    package ifNil:[^self].
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   952
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   953
    lastPackage := package.
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   954
    self versionLoad: version into: package
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   955
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   956
    "Modified: / 09-11-2010 / 13:33:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   957
    "Modified: / 07-09-2011 / 12:47:51 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   958
! !
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   959
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   960
!MCRepositoryBrowser methodsFor:'updating'!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   961
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   962
updateVersionDetails
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   963
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   964
    |  versionEntry version |
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   965
    worker ifNotNil:[worker terminate. worker := nil].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   966
    versionEntry := self selectedVersion.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   967
    versionEntry ifNil:[selectedVersionDetailsHolder value:'No version selected'. ^self].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   968
    worker := 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   969
        [[selectedVersionDetailsHolder value:'Reading ' , versionEntry name.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   970
        version := versionEntry asMCVersion.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   971
        version ifNotNil:
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   972
            [selectedVersionDetailsHolder value: version summary]] ensure:[worker := nil]] newProcess.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   973
    worker resume.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   974
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   975
    "Created: / 17-09-2010 / 15:23:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   976
    "Modified: / 26-10-2010 / 22:08:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   977
! !
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   978
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   979
!MCRepositoryBrowser class methodsFor:'documentation'!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   980
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   981
version
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   982
    ^ '$Header: /cvs/stx/stx/goodies/monticello/MCRepositoryBrowser.st,v 1.11 2011-09-07 13:15:34 cg Exp $'
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   983
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   984
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   985
version_CVS
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   986
    ^ '$Header: /cvs/stx/stx/goodies/monticello/MCRepositoryBrowser.st,v 1.11 2011-09-07 13:15:34 cg Exp $'
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   987
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   988
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   989
version_SVN
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   990
    ^ '§Id: MCRepositoryBrowser.st 34 2011-08-04 21:44:46Z vranyj1 §'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   991
! !