|
There does not seem to be a way to set a handler for the deletion of a TabPresenter. This code works:
tab := self newTab.
tab label: aFileReference basenameWithoutExtension;
model: editor;
whenTabSelected: [ currentTab := tab. currentEditor := editor. aBlock value ];
whenBuiltDo: [ :w |
w widget when: #tabDeleted evaluate: [ :_ | self tabDeletedFor: aFileReference ]
].
but requires reaching inside the Presenter to grab the widget. There should be a way to achieve this in Spec itself.
|
|
|
Priority: 5 – Fix If Time
|
|
Status: Work Needed
|
|
Assigned to: Everyone
|
|
Milestone: Later
|
Go to Case
|
|