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