Skip to content

Commit c0f3876

Browse files
committed
use dynamic action for metacello baselines group
1 parent c7a5640 commit c0f3876

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Iceberg-Plugin-Metacello/IceTipRepositoriesBrowser.extension.st

+9-8
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ Extension { #name : 'IceTipRepositoriesBrowser' }
22

33
{ #category : '*Iceberg-Plugin-Metacello' }
44
IceTipRepositoriesBrowser class >> metacelloCommandsWith: presenter forRootGroup: aCommandGroup [
5-
65
<extensionCommands>
76
| newGroup |
8-
newGroup := CmCommandGroup forSpec
7+
8+
newGroup := SpDynamicActionGroup new
99
name: 'Metacello';
1010
description: 'Metacello install operations';
11+
with: [ :aGroup |
12+
presenter selectedItem ifNotNil: [
13+
IceTipMetacelloInstallCommandBuilder new
14+
addCommandsFor: presenter selectedItem
15+
intoGroup: aGroup
16+
context: presenter ] ];
1117
yourself.
1218

13-
(aCommandGroup commandOrGroupNamed: 'Selection') register: newGroup.
14-
15-
presenter selectedItem ifNotNil: [
16-
IceTipMetacelloInstallCommandBuilder new
17-
addCommandsFor: presenter selectedItem intoGroup: newGroup context: presenter ]
18-
19+
(aCommandGroup commandOrGroupNamed: 'Selection') register: newGroup
1920
]

Iceberg-Plugin-Metacello/IceTipWorkingCopyBrowser.extension.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Extension { #name : 'IceTipWorkingCopyBrowser' }
44
IceTipWorkingCopyBrowser class >> metacelloCommandsWith: presenter forRootGroup: aCommandGroup [
55
<extensionCommands>
66
| newGroup |
7-
7+
88
newGroup := CmCommandGroup forSpec
99
name: 'Metacello';
1010
description: 'Metacello install operations';

0 commit comments

Comments
 (0)