MCRepositoryBrowser.st
author mawalch
Mon, 08 Aug 2016 20:13:50 +0200
changeset 1010 bac4a6f2690e
parent 970 fa5b935ff989
child 982 230ed8c7d051
child 1017 4fb9d248ea7b
permissions -rw-r--r--
#OTHER by mawalch Fix ridiculously propagated typo.
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
970
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
     3
"{ NameSpace: Smalltalk }"
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
     4
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
ApplicationModel subclass:#MCRepositoryBrowser
911
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
     6
	instanceVariableNames:'repositoriesHolder packagesHolder versionsHolder
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
     7
		selectedVersionHolder worker selectedVersionDetailsHolder
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
     8
		selectedRepositoryHolder targetPackage targetNamespace
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
     9
		lastPackage targetPackageHolder targetNamespaceNameHolder
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
    10
		updateChangefileHolder selectedPackageHolder'
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
    11
	classVariableNames:'LastAddedRepository LastAddedURLString'
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
    12
	poolDictionaries:''
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
    13
	category:'SCM-Monticello-St/X UI'
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
563
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    17
!MCRepositoryBrowser class methodsFor:'initialization'!
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    18
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    19
initialize
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    20
    "/ 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
    21
    ObjectMemory addDependent:self.
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    22
!
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    23
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    24
installInLauncher
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    25
    |menuItem action|
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    26
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    27
    NewLauncher isNil ifTrue:[^ self].
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    28
    ToolbarIconLibrary isNil ifTrue:[^ self].
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
    "/ NewLauncher removeUserTool:#TestRunner2.
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    31
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    32
    "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
    33
    "/ 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
    34
    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
    35
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    36
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    37
    "Install in Tools menu"
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    38
    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
    39
                nameKey:#MonticelloBrowser;
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    40
                "/labelImage:self startSUnitIcon;
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    41
                value:action;
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    42
                isButton:false.
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    43
    NewLauncher 
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    44
        addMenuItem:menuItem
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    45
        from:self
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    46
        in:'menu.tools.programming'
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    47
        position:nil
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    48
        space:false.
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
    "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
    51
!
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    52
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    53
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
    54
    something == #initialized ifTrue:[
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    55
        changedObject == ObjectMemory ifTrue:[
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    56
            self installInLauncher.
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    57
            ObjectMemory removeDependent:self.
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
    ].
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    60
! !
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
    61
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    62
!MCRepositoryBrowser class methodsFor:'help specs'!
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    63
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    64
flyByHelpSpec
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    65
    "This resource specification was automatically generated
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    66
     by the UIHelpTool of ST/X."
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    67
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    68
    "Do not manually edit this!! If it is corrupted,
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    69
     the UIHelpTool may not be able to read the specification."
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    70
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
     UIHelpTool openOnClass:MCRepositoryBrowser    
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    73
    "
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
    <resource: #help>
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    76
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    77
    ^ super flyByHelpSpec addPairsFrom:#(
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    78
558
6740bbea6eeb added: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 540
diff changeset
    79
#browseVersion
6740bbea6eeb added: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 540
diff changeset
    80
'Open a changelist browser on the selected version'
6740bbea6eeb added: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 540
diff changeset
    81
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    82
#loadVersion
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    83
'Load the selected version'
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    84
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    85
#targetNamespace
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    86
'Namespace override. Change via the "Loading"-Menu'
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    87
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    88
#targetPackage
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    89
'ST/X Package override. Change via the "Loading"-Menu'
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
)
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
    "Created: / 07-09-2011 / 15:13:00 / cg"
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    94
! !
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    95
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
!MCRepositoryBrowser class methodsFor:'interface specs'!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
packageDetailsSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
    "This resource specification was automatically generated
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
     by the UIPainter of ST/X."
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
    "Do not manually edit this!! If it is corrupted,
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
     the UIPainter may not be able to read the specification."
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
    "
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   106
     UIPainter new openOnClass:MCRepositoryBrowser andSelector:#packageDetailsSpec
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   107
     MCRepositoryBrowser new openInterface:#packageDetailsSpec
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
    "
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
    <resource: #canvas>
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
    ^ 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
     #(FullSpec
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   114
        name: packageDetailsSpec
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
        window: 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
       (WindowSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
          label: 'MC Package Details'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
          name: 'MC Package Details'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
          min: (Point 10 10)
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
          bounds: (Rectangle 0 0 533 326)
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
        )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
        component: 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
       (SpecCollection
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
          collection: (
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
           (TextEditorSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
              name: 'PackageDetails'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
              layout: (LayoutFrame 0 0 0 0 0 1 -30 1)
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
              model: selectedVersionDetailsHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
              hasHorizontalScrollBar: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
              hasVerticalScrollBar: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
              isReadOnly: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
              hasKeyboardFocusInitially: false
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
            )
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   134
           (LabelSpec
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   135
              name: 'Label1'
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   136
              layout: (LayoutFrame 2 0 -30 1 -1 0.5 -2 1)
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   137
              activeHelpKey: targetNamespace
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   138
              level: -1
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   139
              translateLabel: true
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   140
              labelChannel: targetNamespaceNameHolder
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   141
              adjust: left
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   142
            )
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   143
           (LabelSpec
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   144
              name: 'Label2'
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   145
              layout: (LayoutFrame 1 0.5 -30 1 -2 1 -2 1)
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   146
              activeHelpKey: targetPackage
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   147
              level: -1
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   148
              translateLabel: true
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   149
              labelChannel: targetPackageHolder
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   150
              adjust: left
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   151
            )
289
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
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
windowSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
    "This resource specification was automatically generated
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
     by the UIPainter of ST/X."
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
    "Do not manually edit this!! If it is corrupted,
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
     the UIPainter may not be able to read the specification."
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
    "
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
     UIPainter new openOnClass:MCRepositoryBrowser andSelector:#windowSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
     MCRepositoryBrowser new openInterface:#windowSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
     MCRepositoryBrowser open
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
    "
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
    <resource: #canvas>
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
    ^ 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
     #(FullSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
        name: windowSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
        window: 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
       (WindowSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
          label: 'MC Repository Browser'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
          name: 'MC Repository Browser'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
          min: (Point 10 10)
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
          bounds: (Rectangle 0 0 796 497)
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   182
          menu: mainMenu
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
        )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
        component: 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
       (SpecCollection
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
          collection: (
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
           (VariableVerticalPanelSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
              name: 'VariableVerticalPanel1'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
              layout: (LayoutFrame 0 0 0 0 0 1 0 1)
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
              component: 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
             (SpecCollection
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
                collection: (
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
                 (VariableHorizontalPanelSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
                    name: 'VariableHorizontalPanel1'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
                    component: 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
                   (SpecCollection
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
                      collection: (
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
                       (SubCanvasSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
                          name: 'RepositoryList'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
                          hasHorizontalScrollBar: false
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
                          hasVerticalScrollBar: false
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
                          majorKey: MCRepositoryList
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
                          subAspectHolders: 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
                         (Array
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   205
                            
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   206
                           (SubChannelInfoSpec
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   207
                              subAspect: menuHolder
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   208
                              aspect: repositoryListMenu
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   209
                            ) 
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   210
                           (SubChannelInfoSpec
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   211
                              subAspect: inGeneratorHolder
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   212
                              aspect: repositoriesHolder
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   213
                            )
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
                            
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
                           (SubChannelInfoSpec
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   216
                              subAspect: outGeneratorHolder
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   217
                              aspect: packagesHolder
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   218
                            ) 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
                           (SubChannelInfoSpec
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   220
                              subAspect: selectionHolder
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   221
                              aspect: selectedRepositoryHolder
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   222
                            )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   223
                          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   224
                          createNewApplication: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   225
                          createNewBuilder: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
                        )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
                       (SubCanvasSpec
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
                          name: 'PackageList'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
                          hasHorizontalScrollBar: false
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
                          hasVerticalScrollBar: false
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
                          majorKey: MCPackageList
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
                          subAspectHolders: 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   233
                         (Array
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   234
                            
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   235
                           (SubChannelInfoSpec
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   236
                              subAspect: menuHolder
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   237
                              aspect: packageListMenu
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   238
                            ) 
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   239
                           (SubChannelInfoSpec
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   240
                              subAspect: inGeneratorHolder
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   241
                              aspect: packagesHolder
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   242
                            )
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
                            
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
                           (SubChannelInfoSpec
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   245
                              subAspect: outGeneratorHolder
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   246
                              aspect: versionsHolder
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   247
                            ) 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   248
                           (SubChannelInfoSpec
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   249
                              subAspect: selectionHolder
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   250
                              aspect: selectedPackageHolder
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
                            )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
                          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
                          createNewApplication: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
                          createNewBuilder: true
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   255
                        )
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   256
                       (ViewSpec
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   257
                          name: 'Box1'
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   258
                          component: 
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   259
                         (SpecCollection
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   260
                            collection: (
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   261
                             (SubCanvasSpec
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   262
                                name: 'VersionList'
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   263
                                layout: (LayoutFrame 0 0 0 0 0 1 -30 1)
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   264
                                hasHorizontalScrollBar: false
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   265
                                hasVerticalScrollBar: false
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   266
                                majorKey: MCVersionList
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   267
                                subAspectHolders: 
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   268
                               (Array
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   269
                                  
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   270
                                 (SubChannelInfoSpec
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   271
                                    subAspect: inGeneratorHolder
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   272
                                    aspect: versionsHolder
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   273
                                  ) 
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   274
                                 (SubChannelInfoSpec
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   275
                                    subAspect: menuHolder
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   276
                                    aspect: versionsMenu
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   277
                                  )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   278
                                  
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   279
                                 (SubChannelInfoSpec
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   280
                                    subAspect: selectionHolder
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   281
                                    aspect: selectedVersionHolder
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   282
                                  )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   283
                                )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   284
                                createNewApplication: true
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   285
                                createNewBuilder: true
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   286
                              )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   287
                             (ActionButtonSpec
558
6740bbea6eeb added: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 540
diff changeset
   288
                                label: 'Browse'
6740bbea6eeb added: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 540
diff changeset
   289
                                name: 'Button1'
6740bbea6eeb added: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 540
diff changeset
   290
                                layout: (LayoutFrame 0 0 -30 1 0 0.5 0 1)
6740bbea6eeb added: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 540
diff changeset
   291
                                activeHelpKey: browseVersion
6740bbea6eeb added: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 540
diff changeset
   292
                                translateLabel: true
6740bbea6eeb added: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 540
diff changeset
   293
                                model: versionBrowser
6740bbea6eeb added: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 540
diff changeset
   294
                                enableChannel: hasVersionSelectedHolder
6740bbea6eeb added: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 540
diff changeset
   295
                              )
6740bbea6eeb added: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 540
diff changeset
   296
                             (ActionButtonSpec
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   297
                                label: 'Load'
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   298
                                name: 'LoadButton'
558
6740bbea6eeb added: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 540
diff changeset
   299
                                layout: (LayoutFrame 0 0.5 -30 1 0 1 0 1)
6740bbea6eeb added: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 540
diff changeset
   300
                                activeHelpKey: loadVersion
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   301
                                translateLabel: true
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   302
                                model: versionLoad
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   303
                                enableChannel: hasVersionSelectedHolder
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   304
                              )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   305
                             )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   306
                           
289
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
                     
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
                    )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
                    handles: (Any 0.333333333333333 0.666666666666667 1.0)
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   313
                  )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   314
                 (UISubSpecification
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
                    name: 'SubSpecification1'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
                    minorKey: packageDetailsSpec
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
               
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
              )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
              handles: (Any 0.5 1.0)
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
         
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
        )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   326
      )
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   327
558
6740bbea6eeb added: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 540
diff changeset
   328
    "Modified: / 16-03-2012 / 10:51:24 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
! !
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   330
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   331
!MCRepositoryBrowser class methodsFor:'menu specs'!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   332
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   333
loadingMenu
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   334
    "This resource specification was automatically generated
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   335
     by the MenuEditor of ST/X."
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   336
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   337
    "Do not manually edit this!! If it is corrupted,
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   338
     the MenuEditor may not be able to read the specification."
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
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   341
    "
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   342
     MenuEditor new openOnClass:MCRepositoryBrowser andSelector:#loadingMenu
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   343
     (Menu new fromLiteralArrayEncoding:(MCRepositoryBrowser loadingMenu)) startUp
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   344
    "
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
    <resource: #menu>
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   347
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
     #(Menu
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   350
        (
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   351
         (MenuItem
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   352
            label: 'Set Target Package...'
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   353
            itemValue: setTargetPackage
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   354
          )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   355
         (MenuItem
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   356
            label: 'Set Target Namespace...'
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   357
            itemValue: setTargetNamespace
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
772
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   363
            label: 'Update Changefile when Loading'
495
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   364
            indication: updateChangefileHolder
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   365
          )
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   366
         )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   367
        nil
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
      )
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
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   372
mainMenu
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   373
    "This resource specification was automatically generated
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   374
     by the MenuEditor of ST/X."
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   375
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   376
    "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
   377
     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
   378
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
     MenuEditor new openOnClass:MCRepositoryBrowser andSelector:#mainMenu
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   382
     (Menu new fromLiteralArrayEncoding:(MCRepositoryBrowser mainMenu)) startUp
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   383
    "
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
    <resource: #menu>
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   386
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   387
    ^ 
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   388
     #(Menu
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   389
        (
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   390
         (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   391
            label: 'File'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   392
            translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   393
            submenu: 
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   394
           (Menu
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   395
              (
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   396
               (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   397
                  label: 'Exit'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   398
                  itemValue: closeRequest
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   399
                  translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   400
                )
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
              nil
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
            )
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
         (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   407
            label: 'Repository'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   408
            translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   409
            submenuChannel: repositoryListMenu
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   410
          )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   411
         (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   412
            label: 'Package'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   413
            translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   414
            submenuChannel: packageListMenu
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   415
          )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   416
         (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   417
            label: 'Version'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   418
            translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   419
            submenuChannel: versionsMenu
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   420
          )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   421
         (MenuItem
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   422
            label: 'Loading'
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   423
            translateLabel: true
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   424
            submenuChannel: loadingMenu
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   425
          )
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   426
         (MenuItem
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   427
            label: 'Help'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   428
            translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   429
            startGroup: conditionalRight
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   430
            submenu: 
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   431
           (Menu
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   432
              (
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   433
               (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   434
                  label: 'Documentation'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   435
                  itemValue: openDocumentation
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   436
                  translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   437
                )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   438
               (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   439
                  label: '-'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   440
                )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   441
               (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   442
                  label: 'About this Application...'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   443
                  itemValue: openAboutThisApplication
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   444
                  translateLabel: true
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   445
                )
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
              nil
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
            )
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
        nil
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
      )
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
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   457
packageListMenu
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   458
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   459
     by the MenuEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   460
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   461
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   462
     the MenuEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   463
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
     MenuEditor new openOnClass:MCRepositoryBrowser andSelector:#packageListMenu
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   467
     (Menu new fromLiteralArrayEncoding:(MCRepositoryBrowser packageListMenu)) startUp
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   468
    "
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   469
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   470
    <resource: #menu>
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   471
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   472
    ^ 
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   473
     #(Menu
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   474
        (
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   475
         (MenuItem
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   476
            enabled: packageSelectedAndOperatingSystemIsWindows
468
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   477
            label: 'No Menuentry Yet'
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   478
            translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   479
          )
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   480
         )
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   481
        nil
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   482
        nil
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   483
      )
468
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   484
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   485
    "Modified: / 07-09-2011 / 11:44:38 / cg"
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   486
!
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   487
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   488
repositoryListMenu
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   489
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   490
     by the MenuEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   491
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   492
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   493
     the MenuEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   494
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   495
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   496
    "
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   497
     MenuEditor new openOnClass:MCRepositoryBrowser andSelector:#repositoryListMenu
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   498
     (Menu new fromLiteralArrayEncoding:(MCRepositoryBrowser repositoryListMenu)) startUp
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   499
    "
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   500
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   501
    <resource: #menu>
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   502
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   503
    ^ 
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   504
     #(Menu
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   505
        (
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   506
         (MenuItem
773
2f780b5aa85b class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 772
diff changeset
   507
            label: 'Add Repository (URL)...'
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   508
            itemValue: repositoryAdd
772
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   509
          )
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   510
         (MenuItem
773
2f780b5aa85b class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 772
diff changeset
   511
            label: 'Add Repository (Expression)...'
2f780b5aa85b class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 772
diff changeset
   512
            itemValue: repositoryAddFromExpressionString
2f780b5aa85b class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 772
diff changeset
   513
          )
2f780b5aa85b class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 772
diff changeset
   514
         (MenuItem
772
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   515
            label: 'Add Directory Repository...'
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   516
            itemValue: directoryRepositoryAdd
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   517
          )
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   518
         (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   519
            label: '-'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   520
          )
559
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   521
         (MenuItem
484
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   522
            enabled: hasRepositorySelectedHolder
923
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
   523
            label: 'Remove from List'
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
   524
            itemValue: repositoryRemove
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
   525
          )
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
   526
         (MenuItem
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
   527
            enabled: hasRepositorySelectedHolder
484
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   528
            label: 'Flush Cache'
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   529
            itemValue: repositoryFlushCache
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   530
          )
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   531
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   532
            label: '-'
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   533
          )
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   534
         (MenuItem
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   535
            enabled: repositoryIsDirectory
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   536
            label: 'Browse Directory'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   537
            itemValue: repositoryBrowseDirectory
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   538
          )
516
41006ee80f02 added: #repositoryInspect
Claus Gittinger <cg@exept.de>
parents: 503
diff changeset
   539
         (MenuItem
41006ee80f02 added: #repositoryInspect
Claus Gittinger <cg@exept.de>
parents: 503
diff changeset
   540
            label: '-'
41006ee80f02 added: #repositoryInspect
Claus Gittinger <cg@exept.de>
parents: 503
diff changeset
   541
          )
41006ee80f02 added: #repositoryInspect
Claus Gittinger <cg@exept.de>
parents: 503
diff changeset
   542
         (MenuItem
41006ee80f02 added: #repositoryInspect
Claus Gittinger <cg@exept.de>
parents: 503
diff changeset
   543
            label: 'Inspect'
41006ee80f02 added: #repositoryInspect
Claus Gittinger <cg@exept.de>
parents: 503
diff changeset
   544
            itemValue: repositoryInspect
41006ee80f02 added: #repositoryInspect
Claus Gittinger <cg@exept.de>
parents: 503
diff changeset
   545
          )
435
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   546
         )
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   547
        nil
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   548
        nil
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   549
      )
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   550
!
Claus Gittinger <cg@exept.de>
parents: 432
diff changeset
   551
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   552
versionsMenu
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   553
    "This resource specification was automatically generated
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   554
     by the MenuEditor of ST/X."
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   555
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   556
    "Do not manually edit this!! If it is corrupted,
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   557
     the MenuEditor may not be able to read the specification."
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   558
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   559
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   560
    "
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   561
     MenuEditor new openOnClass:MCRepositoryBrowser andSelector:#versionsMenu
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   562
     (Menu new fromLiteralArrayEncoding:(MCRepositoryBrowser versionsMenu)) startUp
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
    <resource: #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
    ^ 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   568
     #(Menu
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   569
        (
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   570
         (MenuItem
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   571
            enabled: hasVersionSelectedHolder
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   572
            label: 'Load'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   573
            itemValue: versionLoad
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   574
          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   575
         (MenuItem
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   576
            enabled: hasVersionSelectedHolder
468
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
   577
            label: 'Load into Package...'
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   578
            itemValue: versionLoadIntoPackage
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   579
          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   580
         (MenuItem
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   581
            label: '-'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   582
          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   583
         (MenuItem
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   584
            enabled: hasVersionSelectedHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   585
            label: 'Browse'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   586
            itemValue: versionBrowser
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
          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   593
         (MenuItem
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   594
            label: '-'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   595
          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   596
         (MenuItem
935
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
   597
            label: 'Compare with Image'
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
   598
            itemValue: versionCompareWithImage
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
   599
          )
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
   600
         (MenuItem
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
   601
            label: '-'
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
   602
          )
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
   603
         (MenuItem
921
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   604
            label: 'Save .mcz File As...'
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   605
            itemValue: saveMCZFileAs
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   606
          )
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   607
         (MenuItem
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   608
            label: 'Show in File Browser'
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   609
            itemValue: showPackageInFileBrowser
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   610
          )
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   611
         (MenuItem
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   612
            enabled: hasVersionSelectedAndOperatingSystemIsWindowsHolder
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   613
            label: 'Show in Winzip'
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   614
            itemValue: showPackageInWinZip
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   615
          )
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   616
         (MenuItem
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   617
            enabled: hasVersionSelectedHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   618
            label: 'Inspect'
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   619
            itemValue: versionInspect
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   620
          )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   621
         )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   622
        nil
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   623
        nil
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   624
      )
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   625
! !
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   626
563
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   627
!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
   628
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   629
aboutThisApplicationText
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   630
    |msg|
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   631
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   632
    msg := super aboutThisApplicationText.
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   633
    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
   634
    ^msg withCRs.
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   635
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   636
    "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
   637
! !
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   638
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   639
!MCRepositoryBrowser class methodsFor:'startup'!
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   640
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   641
openOnPrimaryRepository
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   642
    "the primary repository is the one into which we checkin by default.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   643
     (see MCSettingsApplication)"
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   644
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   645
    ^ self openOnPrimaryRepositoryForPackage:nil
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   646
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   647
    "Created: / 03-12-2011 / 10:41:03 / cg"
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   648
!
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   649
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   650
openOnPrimaryRepositoryForPackage:anSTXPackageIdOrNil
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   651
    "the primary repository is the one into which we checkin by default.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   652
     (see MCSettingsApplication)"
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   653
970
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
   654
    |repository|
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   655
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   656
    repository := UserPreferences current at:#mcPrimaryRepository ifAbsent:nil.
970
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
   657
    ^ self openOnRepository:repository forPackage:anSTXPackageIdOrNil
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
   658
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
   659
    "Created: / 03-12-2011 / 10:42:01 / cg"
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
   660
!
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
   661
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
   662
openOnRepository:aRepository forPackage:anSTXPackageIdOrNil
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
   663
    "the primary repository is the one into which we checkin by default.
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
   664
     (see MCSettingsApplication)"
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
   665
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
   666
    |browser|
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   667
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   668
    browser := self new.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   669
    browser allButOpen.
970
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
   670
    browser selectedRepository:aRepository.
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   671
    anSTXPackageIdOrNil notNil ifTrue:[
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   672
        browser selectedPackage:anSTXPackageIdOrNil.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   673
    ].
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   674
    browser openWindow.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   675
    ^ browser.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   676
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   677
    "Created: / 03-12-2011 / 10:42:01 / cg"
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   678
! !
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   679
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   680
!MCRepositoryBrowser methodsFor:'accessing'!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   681
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   682
selectedPackage:aPackageName
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   683
    |listEntry packageListApp|
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   684
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   685
    packageListApp := (builder componentAt:#PackageList) application.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   686
    listEntry := packageListApp listHolder value detect:[:listEntry | listEntry name = aPackageName] ifNone:nil.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   687
    packageListApp selectionHolder value:listEntry.
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
    "Created: / 04-12-2011 / 09:30:00 / cg"
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   690
!
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   691
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   692
selectedRepository:aRepository
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   693
    |rep fakeEntry listEntry repListApp|
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   694
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   695
    rep := self repositoriesHolder value detect:[:e | e = aRepository] ifNone:nil.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   696
    rep notNil ifTrue:[
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   697
        repListApp := (builder componentAt:#RepositoryList) application.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   698
        fakeEntry := repListApp makeEntry:rep.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   699
        listEntry := repListApp listHolder value detect:[:listEntry | listEntry repository = fakeEntry repository].
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   700
        repListApp selectionHolder value:listEntry.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   701
    ]
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   702
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   703
    "Created: / 03-12-2011 / 10:44:16 / cg"
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   704
!
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   705
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   706
selectedVersion
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   707
    "return the value in 'selectedVersionHolder'"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   708
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   709
    ^ self selectedVersionHolder value
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   710
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   711
    "Modified (comment): / 04-12-2011 / 09:28:52 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   712
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   713
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   714
selectedVersion: newValue
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   715
    "set the value in 'selectedVersionHolder'"
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   716
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   717
    self selectedVersionHolder value: newValue
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   718
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   719
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   720
selectedVersionAsMCVersion
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   721
    | entry |
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   722
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   723
    entry :=  self selectedVersionHolder value.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   724
    ^entry ifNil:[nil] ifNotNil:[entry asMCVersion].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   725
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   726
    "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
   727
    "Modified (format): / 04-12-2011 / 09:29:01 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   728
! !
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   729
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   730
!MCRepositoryBrowser methodsFor:'aspect-queries'!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   731
484
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   732
hasRepositorySelectedHolder
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   733
    ^ BlockValue
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   734
        with:[:h | h value notNil]
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   735
        argument:(self selectedRepositoryHolder)
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   736
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   737
    "Created: / 13-10-2010 / 17:08:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   738
    "Modified: / 07-09-2011 / 13:14:17 / cg"
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   739
    "Created: / 07-09-2011 / 15:00:44 / cg"
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   740
!
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   741
460
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   742
hasVersionSelectedAndOperatingSystemIsWindowsHolder
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   743
    ^[self hasVersionSelectedHolder value
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   744
      and:[ OperatingSystem isMSWINDOWSlike ]]
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   745
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   746
    "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
   747
!
46f1637ee276 give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents: 435
diff changeset
   748
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   749
hasVersionSelectedHolder
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   750
    ^ BlockValue
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   751
        with:[:h | h value notNil]
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   752
        argument:(self selectedVersionHolder)
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
    "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
   755
    "Modified: / 07-09-2011 / 13:14:17 / cg"
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   756
!
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   757
563
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   758
packageSelectedAndOperatingSystemIsWindows
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   759
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   760
    ^[
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   761
        OperatingSystem isMSWINDOWSlike 
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   762
            and:[selectedPackageHolder value notNil]
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   763
    ]
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   764
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   765
    "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
   766
!
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   767
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   768
repositoryIsDirectory
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   769
    ^ BlockValue
484
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   770
        with:[:h | h value notNil
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
   771
                   and:[ h value repository isKindOf: MCDirectoryRepository ]]
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   772
        argument:[ self selectedRepositoryHolder ]
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   773
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   774
    "Created: / 31-08-2011 / 09:08:54 / cg"
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
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   777
!MCRepositoryBrowser methodsFor:'aspects'!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   778
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   779
packagesHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   780
    packagesHolder isNil ifTrue:[
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   781
        packagesHolder := ValueHolder new.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   782
    ].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   783
    ^ packagesHolder
540
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:27:57 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   786
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   787
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   788
packagesHolder:something
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   789
    packagesHolder := something.
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   790
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   791
    "Modified (comment): / 04-12-2011 / 09:28:01 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   792
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   793
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   794
repositoriesHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   795
    repositoriesHolder isNil ifTrue:[
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   796
        repositoriesHolder := ValueHolder with:(MCRepositoryGroup default repositories).
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   797
    ].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   798
    ^ repositoriesHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   799
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   800
    "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
   801
    "Modified (comment): / 04-12-2011 / 09:28:06 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   802
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   803
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   804
repositoriesHolder:something
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   805
    repositoriesHolder := something.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   806
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   807
    "Modified (comment): / 04-12-2011 / 09:28:09 / cg"
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   808
!
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   809
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   810
selectedPackageHolder
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   811
    selectedPackageHolder isNil ifTrue:[
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   812
        selectedPackageHolder := nil asValue.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   813
    ].
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   814
    ^ selectedPackageHolder
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   815
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   816
    "Created: / 04-12-2011 / 09:27:50 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   817
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   818
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   819
selectedRepositoryHolder
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   820
    selectedRepositoryHolder isNil ifTrue:[
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   821
        selectedRepositoryHolder := nil asValue.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   822
    ].
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   823
    ^ selectedRepositoryHolder
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   824
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   825
    "Created: / 31-08-2011 / 09:09:56 / cg"
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   826
!
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   827
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   828
selectedVersionDetailsHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   829
    <resource: #uiAspect>
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   830
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   831
    selectedVersionDetailsHolder isNil ifTrue:[
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   832
        selectedVersionDetailsHolder := '' asValue.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   833
    ].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   834
    ^ selectedVersionDetailsHolder.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   835
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   836
    "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
   837
    "Modified (comment): / 03-12-2011 / 11:08:52 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   838
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   839
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   840
selectedVersionHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   841
    selectedVersionHolder isNil ifTrue:[
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   842
        selectedVersionHolder := ValueHolder with:nil "defaultValue here".
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   843
        selectedVersionHolder onChangeSend: #updateVersionDetails to: self.        
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   844
    ].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   845
    ^ selectedVersionHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   846
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   847
    "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
   848
    "Modified (comment): / 04-12-2011 / 09:28:21 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   849
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   850
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   851
selectedVersionHolder:something
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   852
    selectedVersionHolder := something.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   853
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   854
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   855
targetNamespaceNameHolder
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   856
    <resource: #uiAspect>
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   857
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   858
    targetNamespaceNameHolder isNil ifTrue:[
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   859
        targetNamespaceNameHolder := ValueHolder new.
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   860
    ].
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   861
    ^ targetNamespaceNameHolder.
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   862
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   863
    "Modified (comment): / 03-12-2011 / 11:09:03 / cg"
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   864
!
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   865
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   866
targetPackageHolder
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   867
    <resource: #uiAspect>
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   868
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   869
    targetPackageHolder isNil ifTrue:[
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   870
        targetPackageHolder := ValueHolder new.
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   871
    ].
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   872
    ^ targetPackageHolder.
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   873
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   874
    "Modified (comment): / 03-12-2011 / 11:09:09 / cg"
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   875
!
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
   876
495
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   877
updateChangefileHolder
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   878
    updateChangefileHolder isNil ifTrue:[
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   879
        updateChangefileHolder := false asValue.
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   880
    ].
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   881
    ^ updateChangefileHolder
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   882
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   883
    "Created: / 07-09-2011 / 15:54:03 / cg"
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   884
!
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   885
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   886
versionsHolder
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   887
    versionsHolder isNil ifTrue:[
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   888
        versionsHolder := ValueHolder new.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   889
    ].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   890
    ^ versionsHolder
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   891
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   892
    "Modified (comment): / 04-12-2011 / 09:28:30 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   893
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   894
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   895
versionsHolder:something
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   896
    versionsHolder := something.
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   897
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   898
    "Modified (comment): / 04-12-2011 / 09:28:33 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   899
! !
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   900
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   901
!MCRepositoryBrowser methodsFor:'menu actions'!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   902
559
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   903
addRepository:rep
779
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   904
    | files didWarn |
559
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   905
779
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   906
    didWarn := false.    
559
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   907
    Error handle:[:ex |
779
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   908
        Dialog warn:'Exception: ',ex description.
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   909
        didWarn := true.
559
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   910
    ] do:[
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   911
        files := rep allFileNames.
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   912
    ].
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   913
    files isNil ifTrue:[
779
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   914
        didWarn ifFalse:[
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   915
            Dialog warn:'repository does not exist or is inaccessable.'.
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   916
        ].
559
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   917
        ^ self.
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   918
    ].
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   919
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   920
    MCRepositoryGroup default addRepository:rep.
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   921
    self repositoriesHolder value:(MCRepositoryGroup default repositories)
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   922
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   923
    "Created: / 20-03-2012 / 17:37:17 / cg"
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   924
!
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
   925
772
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   926
directoryRepositoryAdd
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   927
    |repStr rep|
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   928
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   929
    repStr := Dialog requestDirectoryName:'Directory repository to add:'.
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   930
    repStr isEmptyOrNil ifTrue:[^ self].
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   931
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   932
    rep := MCDirectoryRepository directory:repStr.
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   933
    self addRepository:rep
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   934
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   935
    "Created: / 29-08-2011 / 12:25:40 / cg"
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   936
!
2b761f943a57 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 768
diff changeset
   937
563
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   938
openDocumentation
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   939
    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
   940
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   941
    "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
   942
!
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
   943
923
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
   944
removeRepository:rep
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
   945
    MCRepositoryGroup default removeRepository:rep.
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
   946
    self repositoriesHolder value:(MCRepositoryGroup default repositories)
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
   947
!
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
   948
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   949
repositoryAdd
781
6a0c60c2d9f7 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
   950
    |repStr rep url initialURL|
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   951
896
2e49dd573eaf class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 879
diff changeset
   952
    initialURL := LastAddedURLString ? 'http://www.squeaksource.com/project'.
779
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
   953
    repStr := Dialog 
781
6a0c60c2d9f7 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
   954
                request:'Repository to add (file- or HTTP-URL):' 
6a0c60c2d9f7 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
   955
                initialAnswer:initialURL
6a0c60c2d9f7 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
   956
                initialSelection:((initialURL findString:'project') to:(initialURL size)).
6a0c60c2d9f7 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 780
diff changeset
   957
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   958
    repStr isEmptyOrNil ifTrue:[^ self].
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   959
896
2e49dd573eaf class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 879
diff changeset
   960
    (repStr startsWith:'www.') ifTrue:[
2e49dd573eaf class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 879
diff changeset
   961
        repStr := 'http://',repStr.
2e49dd573eaf class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 879
diff changeset
   962
    ].
2e49dd573eaf class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 879
diff changeset
   963
768
5798e82337da class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 761
diff changeset
   964
    Error handle:[:ex |
896
2e49dd573eaf class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 879
diff changeset
   965
        LastAddedURLString := repStr.
768
5798e82337da class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 761
diff changeset
   966
        Dialog warn:'Invalid URL (',ex description,')'.
5798e82337da class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 761
diff changeset
   967
        ^ self
5798e82337da class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 761
diff changeset
   968
    ] do:[
911
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
   969
        url := URI fromString:repStr.
768
5798e82337da class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 761
diff changeset
   970
    ].
896
2e49dd573eaf class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 879
diff changeset
   971
    url isNil ifTrue:[
2e49dd573eaf class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 879
diff changeset
   972
        LastAddedURLString := repStr.
2e49dd573eaf class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 879
diff changeset
   973
        Dialog warn:'Invalid URL'.
2e49dd573eaf class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 879
diff changeset
   974
        ^ self
2e49dd573eaf class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 879
diff changeset
   975
    ].
768
5798e82337da class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 761
diff changeset
   976
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   977
    url method = 'http' ifTrue:[
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   978
        rep := MCHttpRepository
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   979
                location: repStr
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   980
                user: ''
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   981
                password: ''
911
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
   982
    ] ifFalse:[ 
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
   983
        url method = 'ftp' ifTrue:[
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
   984
            rep := MCFtpRepository
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
   985
                    host: url host 
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
   986
                    directory: url path 
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
   987
                    user: url user
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
   988
                    password: (url password ? 'anonymous')
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
   989
        ] ifFalse:[
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
   990
            url isFileScheme ifTrue:[
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
   991
                rep := MCDirectoryRepository directory:repStr.
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
   992
            ].
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
   993
        ]
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   994
    ].
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   995
    rep isNil ifTrue:[
896
2e49dd573eaf class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 879
diff changeset
   996
        LastAddedURLString := repStr.
2e49dd573eaf class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 879
diff changeset
   997
        Dialog warn:'Cannot figure out access scheme from URL.'.
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
   998
        ^ self.
911
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
   999
    ].  
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
  1000
    self withWaitCursorDo:[
9e6130c597b9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 896
diff changeset
  1001
        self addRepository:rep
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1002
    ].
559
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
  1003
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
  1004
    "Created: / 29-08-2011 / 12:25:40 / cg"
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
  1005
!
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
  1006
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
  1007
repositoryAddFromExpressionString
779
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
  1008
    |str repStr rep|
559
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
  1009
779
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
  1010
    rep := LastAddedRepository ? 'XMLSchemaCodeGen'.
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
  1011
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
  1012
    str := 'MCHttpRepository
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
  1013
    location: ''http://www.squeaksource.com/',rep,'''
559
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
  1014
    user: ''''
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
  1015
    password: ''''
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
  1016
'.
779
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
  1017
    repStr := Dialog 
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
  1018
                requestText:'Repository to add:'
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
  1019
                initialAnswer:str
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
  1020
                initialSelection:(str findRangeOfString:rep).
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
  1021
559
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
  1022
    repStr isEmptyOrNil ifTrue:[^ self].
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
  1023
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1024
    Error handle:[:ex |
779
708d7b360e51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 777
diff changeset
  1025
        Transcript showCR:ex description
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1026
    ] do:[
559
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
  1027
        rep := Parser evaluate:repStr.
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1028
    ].
559
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
  1029
    rep isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
  1030
        Dialog warn:'cannot figure out access scheme.'.
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1031
        ^ self.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1032
    ].
780
fdd6a57098e4 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 779
diff changeset
  1033
    self withWaitCursorDo:[
fdd6a57098e4 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 779
diff changeset
  1034
        self addRepository:rep
fdd6a57098e4 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 779
diff changeset
  1035
    ]
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1036
559
Claus Gittinger <cg@exept.de>
parents: 558
diff changeset
  1037
    "Created: / 20-03-2012 / 17:34:33 / cg"
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1038
!
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1039
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1040
repositoryBrowseDirectory
879
af18ca45a23d class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 781
diff changeset
  1041
    "open a filebrowser on the selected directory-repository"
463
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1042
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1043
    |fn|
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1044
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1045
    fn := self selectedRepositoryHolder value repository directory asFilename.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1046
    fn exists ifFalse:[
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1047
        Dialog warn:'No such directory'.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1048
        ^ self.
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1049
    ].
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1050
    UserPreferences current fileBrowserClass openIn:fn
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1051
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1052
    "Created: / 31-08-2011 / 09:16:33 / cg"
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1053
!
8dee452fcd3e class definition
Claus Gittinger <cg@exept.de>
parents: 462
diff changeset
  1054
484
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
  1055
repositoryFlushCache
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
  1056
    "flush the repository cache - useful only in case of an aborted file load"
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
  1057
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
  1058
    self selectedRepositoryHolder value repository flushCache
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
  1059
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
  1060
    "Created: / 07-09-2011 / 15:02:21 / cg"
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
  1061
!
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
  1062
516
41006ee80f02 added: #repositoryInspect
Claus Gittinger <cg@exept.de>
parents: 503
diff changeset
  1063
repositoryInspect
41006ee80f02 added: #repositoryInspect
Claus Gittinger <cg@exept.de>
parents: 503
diff changeset
  1064
    "for debugging"
41006ee80f02 added: #repositoryInspect
Claus Gittinger <cg@exept.de>
parents: 503
diff changeset
  1065
41006ee80f02 added: #repositoryInspect
Claus Gittinger <cg@exept.de>
parents: 503
diff changeset
  1066
    self selectedRepositoryHolder value repository inspect
41006ee80f02 added: #repositoryInspect
Claus Gittinger <cg@exept.de>
parents: 503
diff changeset
  1067
41006ee80f02 added: #repositoryInspect
Claus Gittinger <cg@exept.de>
parents: 503
diff changeset
  1068
    "Created: / 25-11-2011 / 11:33:09 / cg"
41006ee80f02 added: #repositoryInspect
Claus Gittinger <cg@exept.de>
parents: 503
diff changeset
  1069
!
41006ee80f02 added: #repositoryInspect
Claus Gittinger <cg@exept.de>
parents: 503
diff changeset
  1070
923
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
  1071
repositoryRemove
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
  1072
    |entry rep|
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
  1073
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
  1074
    entry := self selectedRepositoryHolder value.
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
  1075
    entry isNil ifTrue:[^ self].
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
  1076
    rep := entry repository.
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
  1077
    self withWaitCursorDo:[
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
  1078
        self removeRepository:rep
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
  1079
    ].
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
  1080
!
5e64988682fe class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
  1081
921
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1082
saveMCZFileAs
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1083
    |entry fn|
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1084
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1085
    entry := self selectedVersionHolder value.
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1086
    fn := Dialog 
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1087
            requestFileNameForSave:'Save MCZ file as:'
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1088
            default:entry name 
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1089
            fromDirectory:nil.
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1090
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1091
    self saveVersionFileToTempThenDo:[:tempFile |
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1092
        tempFile moveTo:(fn asFilename).
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1093
    ].
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1094
!
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1095
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1096
saveVersionFileToTempThenDo:aBlock
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1097
    |entry tempFile fileStream|
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1098
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1099
    tempFile := Filename newTemporary withSuffix:'zip'.
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1100
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1101
    self withReadCursorDo:[
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1102
        entry := self selectedVersionHolder value.
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1103
        entry repository
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1104
            readStreamForFileNamed:entry name do:[:s |
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1105
                fileStream := tempFile writeStream.
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1106
                s reset.
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1107
                s copyToEndInto:fileStream.
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1108
                fileStream close.
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1109
            ].
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1110
    ].
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1111
    aBlock value:tempFile
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1112
!
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1113
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1114
setTargetNamespace
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1115
    "specify an st/x namespace to be used as default"
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1116
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1117
    | nsName |
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1118
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1119
    nsName := Dialog 
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1120
                requestNameSpace:'Namepace to load code into:' 
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1121
                initialAnswer:targetNamespace.    
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1122
    nsName isEmptyOrNil ifTrue:[^self].
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1123
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1124
    targetNamespace := nsName.
485
a2fd0438b8ac class definition
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
  1125
    self targetNamespaceNameHolder value:('Target-Namespace: ',targetNamespace).
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1126
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1127
    "Created: / 07-09-2011 / 12:49:42 / cg"
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1128
!
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1129
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1130
setTargetPackage
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1131
    "specify an st/x package identifier to be used as default"
933
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1132
    
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1133
    | package |
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1134
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1135
    package := Dialog 
933
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1136
            requestProject:'Default Smalltalk/X package to load code into:'
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1137
            initialAnswer:targetPackage
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1138
            suggestions:#().
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1139
    package isNil ifTrue:[
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1140
        ^ self
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1141
    ].
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1142
    targetPackage := lastPackage := package.
933
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1143
    self targetPackageHolder value:('Target-Package: ' , targetPackage).
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1144
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1145
    "Created: / 07-09-2011 / 12:47:15 / cg"
933
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1146
    "Modified: / 06-10-2014 / 23:38:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1147
!
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1148
921
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1149
showPackageInFileBrowser
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1150
    self saveVersionFileToTempThenDo:[:tempFile |
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1151
        UserPreferences current fileBrowserClass
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1152
            openOnFileNamed:tempFile
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1153
    ].
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1154
!
468
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
  1155
921
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1156
showPackageInWinZip
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1157
    self saveVersionFileToTempThenDo:[:tempFile |
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1158
        Win32OperatingSystem
dda5a9038a51 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
  1159
            openApplicationForDocument:tempFile operation:#open
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1160
    ].
468
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
  1161
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
  1162
    "Created: / 07-09-2011 / 11:46:08 / cg"
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
  1163
!
11afd0e38d2f added: #showPackageInWinZip
Claus Gittinger <cg@exept.de>
parents: 463
diff changeset
  1164
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1165
versionBrowseUnloadable
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1166
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1167
     | version snapshot loader unloadables |
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1168
    version := self selectedVersionAsMCVersion.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1169
    version ifNil:[^self].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1170
    snapshot := version snapshot.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1171
    loader := MCPackageLoader new 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1172
                installSnapshot: snapshot;
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1173
                yourself.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1174
    loader analyze.      
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1175
    unloadables := ChangeSet withAll:
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1176
        (loader unloadableDefinitions collect:
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1177
            [:def|def asChange]).
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1178
432
e66073959001 csbrowser2 in: #versionBrowseUnloadable
Claus Gittinger <cg@exept.de>
parents: 291
diff changeset
  1179
    (Tools::ChangeSetBrowser2
503
fff20d405433 changed:
Claus Gittinger <cg@exept.de>
parents: 502
diff changeset
  1180
            on: unloadables 
fff20d405433 changed:
Claus Gittinger <cg@exept.de>
parents: 502
diff changeset
  1181
            label: version info name  , ' (unloadable definitions)')
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1182
        beTwoColumn;
503
fff20d405433 changed:
Claus Gittinger <cg@exept.de>
parents: 502
diff changeset
  1183
        targetNamespace:targetNamespace;
fff20d405433 changed:
Claus Gittinger <cg@exept.de>
parents: 502
diff changeset
  1184
        targetPackage:targetPackage;
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1185
        open
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1186
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1187
    "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
  1188
    "Modified: / 07-09-2011 / 20:17:15 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1189
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1190
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1191
versionBrowser
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1192
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1193
    | version snapshot |
462
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
  1194
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
  1195
    self withWaitCursorDo:[
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
  1196
        version := self selectedVersionAsMCVersion.
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
  1197
        version ifNil:[^self].
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
  1198
        snapshot := version snapshot.
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
  1199
        (Tools::ChangeSetBrowser2 
916
2d95d9b3fbe9 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 911
diff changeset
  1200
                on: (snapshot asChangeSet name:('ChangeSet for: ',version fileName))
503
fff20d405433 changed:
Claus Gittinger <cg@exept.de>
parents: 502
diff changeset
  1201
                label: version info name)
462
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
  1202
            beTwoColumn;
503
fff20d405433 changed:
Claus Gittinger <cg@exept.de>
parents: 502
diff changeset
  1203
            targetNamespace:targetNamespace;
fff20d405433 changed:
Claus Gittinger <cg@exept.de>
parents: 502
diff changeset
  1204
            targetPackage:targetPackage;
462
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
  1205
            open
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
  1206
    ].
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1207
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1208
    "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
  1209
    "Modified: / 07-09-2011 / 20:17:36 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1210
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1211
935
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1212
versionCompareWithImage
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1213
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1214
    | version snapshot |
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1215
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1216
    self withWaitCursorDo:[
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1217
        version := self selectedVersionAsMCVersion.
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1218
        version isNil ifTrue:[ ^ self ].
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1219
        snapshot := version snapshot.
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1220
        (Tools::ChangeSetBrowser2 
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1221
                on: (snapshot asChangeSet name:('Diff for: ',version fileName))
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1222
                label: version info name)
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1223
            beOneColumn;
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1224
            showSame: false;
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1225
            targetNamespace:targetNamespace;
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1226
            targetPackage:targetPackage;
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1227
            open
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1228
    ].
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1229
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1230
    "Modified: / 01-11-2014 / 00:04:56 / Jan Vrany <jan.vrany@fit.cvut.cz>"
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1231
!
5e40fb19c435 Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 933
diff changeset
  1232
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1233
versionInspect
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1234
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1235
    | v |
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1236
    v := self selectedVersionAsMCVersion.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1237
    v ifNotNil:[v inspect]
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1238
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1239
    "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
  1240
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1241
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1242
versionLoad
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1243
    "load into the default (or previously set) package"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1244
462
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
  1245
    | entry |
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
  1246
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1247
    entry := self selectedVersionHolder value.
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1248
    entry notNil ifTrue:[
484
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
  1249
        self withWaitCursorDo:[
933
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1250
            | version package |
761
618f0ee3896a class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 603
diff changeset
  1251
618f0ee3896a class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 603
diff changeset
  1252
            version := entry asMCVersion.
933
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1253
            package := targetPackage.
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1254
            package isNil ifTrue:[ 
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1255
                version package name notNil ifTrue:[ 
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1256
                    "/ Just a guess...
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1257
                    package := 'stx:goodies/', (version package name asLowercase replaceAll: $- with: $_)
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1258
                ] ifFalse:[ 
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1259
                    package := PackageId noProjectID.
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1260
                ].
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1261
                package := Dialog 
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1262
                        requestProject:'Smalltalk/X package to load code into:'
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1263
                        initialAnswer:package
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1264
                        suggestions:#().
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1265
                package isNil ifTrue:[
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1266
                    ^ self
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1267
                ].  
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1268
            ].
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1269
            self versionLoad: version into:package
484
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
  1270
        ]
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1271
    ].
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1272
484
Claus Gittinger <cg@exept.de>
parents: 472
diff changeset
  1273
    "Modified: / 07-09-2011 / 14:51:57 / cg"
933
3d57bd5bac92 Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 924
diff changeset
  1274
    "Modified: / 06-10-2014 / 23:39:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1275
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1276
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1277
versionLoad: version into: package
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1278
462
bc04bf43bf7a comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents: 460
diff changeset
  1279
    self withWaitCursorDo:[
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1280
        MCStXNamespaceQuery 
502
8842b23dd67c changed: #versionLoad:into:
Claus Gittinger <cg@exept.de>
parents: 495
diff changeset
  1281
            answer:(NameSpace name:targetNamespace ? 'Smalltalk')   
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1282
            do: [
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1283
                MCStXPackageQuery 
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1284
                    answer: package   
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1285
                    do: [
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1286
                        MCInteractiveLoadingQuery answer: true do:[
924
9e110e13d059 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 923
diff changeset
  1287
                            self updateChangefileHolder value ifTrue:[
495
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
  1288
                                version load
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
  1289
                            ] ifFalse:[
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
  1290
                                Class withoutUpdatingChangesDo:[
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
  1291
                                    version load
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
  1292
                                ]
cacb11edaf45 class definition
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
  1293
                            ].
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1294
                        ]
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1295
                    ].
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1296
            ].
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1297
    ].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1298
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1299
    "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
  1300
    "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
  1301
    "Modified: / 07-09-2011 / 20:16:19 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1302
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1303
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1304
versionLoadIntoPackage
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1305
    "specify an st/x package identifier"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1306
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1307
    | version package |
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1308
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1309
    version := self selectedVersionAsMCVersion.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1310
    version ifNil:[^self].
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1311
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1312
    package := Dialog 
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1313
                requestProject:'Smalltalk/X package to load code into' 
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1314
                initialAnswer:lastPackage
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1315
                suggestions:#().    
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1316
    package ifNil:[^self].
472
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1317
bd20d42c186c support namespace override
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
  1318
    lastPackage := package.
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1319
    self versionLoad: version into: package
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1320
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1321
    "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
  1322
    "Modified: / 07-09-2011 / 12:47:51 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1323
! !
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1324
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1325
!MCRepositoryBrowser methodsFor:'updating'!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1326
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1327
updateVersionDetails
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
  1328
    |  versionEntry version |
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1329
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1330
    worker ifNotNil:[worker terminate. worker := nil].
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1331
    versionEntry := self selectedVersion.
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1332
    versionEntry ifNil:[selectedVersionDetailsHolder value:'No version selected'. ^self].
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
  1333
    "/ 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
  1334
"/    worker := 
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
  1335
"/        [[selectedVersionDetailsHolder value:'Reading ',versionEntry name,'...'.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
  1336
"/        version := versionEntry asMCVersion.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
  1337
"/        version ifNotNil:
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
  1338
"/            [selectedVersionDetailsHolder value: version summary]] ensure:[worker := nil]] newProcess.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
  1339
"/    worker resume.
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
  1340
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
  1341
    self withWaitCursorDo:[
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
  1342
        selectedVersionDetailsHolder value:'Reading ',versionEntry name,'...'.
777
e37741a76b01 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1343
        ZipArchive zipFileFormatErrorSignal handle:[:ex |
e37741a76b01 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1344
            (Dialog confirm:'Zipfile format error encountered while reading (corrupt file?).\\Debug?' withCRs)
e37741a76b01 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1345
                ifTrue:[ex reject].
e37741a76b01 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1346
        ] do:[
e37741a76b01 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1347
            version := versionEntry asMCVersion.
e37741a76b01 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 773
diff changeset
  1348
        ].
540
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
  1349
        version ifNotNil:[
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
  1350
            selectedVersionDetailsHolder value: version summary
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
  1351
        ]
bacdf1aea4a3 checkin support
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
  1352
    ].
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1353
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1354
    "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
  1355
    "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
  1356
    "Modified (comment): / 03-12-2011 / 11:11:28 / cg"
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1357
! !
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1358
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1359
!MCRepositoryBrowser class methodsFor:'documentation'!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1360
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1361
version
970
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
  1362
    ^ '$Header: /cvs/stx/stx/goodies/monticello/MCRepositoryBrowser.st,v 1.38 2015-02-09 13:57:08 cg Exp $'
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1363
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1364
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1365
version_CVS
970
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
  1366
    ^ '$Header: /cvs/stx/stx/goodies/monticello/MCRepositoryBrowser.st,v 1.38 2015-02-09 13:57:08 cg Exp $'
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1367
!
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1368
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1369
version_SVN
970
fa5b935ff989 class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 935
diff changeset
  1370
    ^ '$Id: MCRepositoryBrowser.st,v 1.38 2015-02-09 13:57:08 cg Exp $'
289
ac6dfc008bfc initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1371
! !
563
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
  1372
761
618f0ee3896a class: MCRepositoryBrowser
Claus Gittinger <cg@exept.de>
parents: 603
diff changeset
  1373
563
098783ae2b50 Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 559
diff changeset
  1374
MCRepositoryBrowser initialize!