Manuscript (Case [Issue]20849) Spec - Setting a handler for deleting a Tab

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]20849) Spec - Setting a handler for deleting a Tab

Pharo Issue Tracker
Manuscript Notification
avatar
Andrew P Black opened Case 20849: Setting a handler for deleting a Tab and assigned it to Everyone:
Enhancement in Project:  Spec: 1. Pharo Image  •  You are subscribed to this case
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 Priority: 5 – Fix If Time Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Later

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker