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