pharo-spec / Spec

Spec is a framework in Pharo for describing user interfaces.
MIT License
62 stars 65 forks source link

Method missing: SpCommandGroup>>#asToolbarPresenter #1601

Closed koendehondt closed 1 month ago

koendehondt commented 2 months ago

Context: Pharo 12 and Pharo 13

SpCommandGroup has these 4 methods:

but it does not have:

Due to the missing methods, developers have to write:

| toolbarCommandGroup |
toolBar := self newToolbar.
toolbarCommandGroup := self rootCommandsGroup / 'ToolBar'.
SpToolbarPresenterBuilder new
    toolbarPresenter: toolBar;
    visit: toolbarCommandGroup

instead of:

toolBar := (self rootCommandsGroup / 'ToolBar') asToolbarPresenter

The purpose of this ticket is to add the two methods.