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